ldexpl test: Fix link error on OSF/1 5.1.
[gnulib.git] / ChangeLog
1 2010-12-19  Bruno Haible  <bruno@clisp.org>
2
3         ldexpl test: Fix link error on OSF/1 5.1.
4         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
5
6 2010-12-19  Bruno Haible  <bruno@clisp.org>
7
8         wctype: Make it work in C++ mode on OSF/1 5.1.
9         * lib/wctype.in.h (iswblank): Declare but not define here.
10         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
11         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
12         * modules/wctype (Files): Add lib/iswblank.c.
13
14 2010-12-19  Bruno Haible  <bruno@clisp.org>
15
16         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
17         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
18         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
19
20 2010-12-19  Bruno Haible  <bruno@clisp.org>
21
22         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
23         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
24         _POSIX_PII_SOCKET.
25         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
26         * doc/posix-functions/recvfrom.texi: Likewise.
27         * doc/posix-functions/send.texi: Likewise.
28         * doc/posix-functions/sendto.texi: Likewise.
29
30 2010-12-19  Bruno Haible  <bruno@clisp.org>
31
32         tcgetsid: Add missing declaration on OSF/1 5.1.
33         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
34         HAVE_TCGETSID.
35         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
36         Don't set HAVE_TCGETSID.
37         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
38         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
39         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
40         HAVE_TCGETSID.
41         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
42
43 2010-12-19  Bruno Haible  <bruno@clisp.org>
44
45         stdio: Fix problem with popen() declaration on OSF/1 5.1.
46         * lib/stdio.in.h: During the include_next statement, let recursive
47         includes of this file include only the system header file.
48
49 2010-12-19  Bruno Haible  <bruno@clisp.org>
50
51         iconv_open: Fix regression from 2010-12-04.
52         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
53         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
54
55 2010-12-19  Bruno Haible  <bruno@clisp.org>
56
57         stdbool test: Avoid a gcc warning.
58         * tests/test-stdbool.c (main): Fail if e1 is false.
59         Reported by Jim Meyering.
60
61 2010-12-19  Jim Meyering  <meyering@redhat.com>
62
63         setenv: restore to working order
64         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
65         mistakenly removed.
66         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
67         HAVE_SETENV.
68         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
69         HAVE_SETENV.
70
71 2010-12-19  Bruno Haible  <bruno@clisp.org>
72
73         Document some different function declarations on OSF/1 5.1.
74         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
75         * doc/posix-functions/inet_ntop.texi: Likewise.
76         * doc/posix-functions/gethostname.texi: Likewise.
77         * lib/unistd.in.h (gethostname): Update comment.
78
79 2010-12-19  Bruno Haible  <bruno@clisp.org>
80
81         doc: Mention vasprintf-posix module.
82         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
83         the 'vasprintf-posix' module.
84         * doc/glibc-functions/vasprintf.texi: Likewise.
85
86 2010-12-19  Bruno Haible  <bruno@clisp.org>
87
88         unsetenv: Add missing declaration on OSF/1 5.1.
89         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
90         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
91         Don't set HAVE_UNSETENV. In the test program, set _BSD.
92         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
93         not HAVE_UNSETENV.
94         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
95         HAVE_UNSETENV.
96         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
97
98 2010-12-19  Bruno Haible  <bruno@clisp.org>
99
100         setenv: Add missing declaration on OSF/1 5.1.
101         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
102         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
103         declared. Don't set HAVE_SETENV.
104         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
105         not HAVE_SETENV.
106         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
107         HAVE_SETENV.
108         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
109
110 2010-12-19  Bruno Haible  <bruno@clisp.org>
111
112         nl_langinfo tests: Avoid gcc warning.
113         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
114
115 2010-12-19  Bruno Haible  <bruno@clisp.org>
116
117         mknod: Avoid error in C++ mode on OSF/1 with GCC.
118         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
119         _GL_CXXALIAS_SYS.
120
121 2010-12-19  Bruno Haible  <bruno@clisp.org>
122
123         stdbool: Relax test.
124         * tests/test-stdbool.c (e): Don't require that casts from a variable's
125         address to 'bool' work in static initializer, for compilers other than
126         GCC.
127
128 2010-12-19  Bruno Haible  <bruno@clisp.org>
129
130         ftello: Add missing declaration on OSF/1 5.1.
131         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
132         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
133         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
134         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
135         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
136
137 2010-12-19  Bruno Haible  <bruno@clisp.org>
138
139         fseeko: Add missing declaration on OSF/1 5.1.
140         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
141         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
142         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
143         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
144         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
145
146 2010-12-19  Bruno Haible  <bruno@clisp.org>
147
148         fchdir: Add missing declaration on OSF/1 5.1.
149         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
150         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
151         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
152         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
153         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
154
155 2010-12-19  Bruno Haible  <bruno@clisp.org>
156
157         relocatable-prog-wrapper: Separate from relocatable-prog.
158         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
159         uninstall-relocwrapper rule here.
160         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
161         Reported by Ian Beckwith <ianb@erislabs.net>.
162
163 2010-12-19  Bruno Haible  <bruno@clisp.org>
164
165         unistr/u8-mbsnlen: Add missing dependency.
166         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
167         Reported by Ian Beckwith <ianb@erislabs.net>.
168
169 2010-12-19  Bruno Haible  <bruno@clisp.org>
170
171         iconv: Make it possible again to use this module without 'iconv-h'.
172         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
173         if it is not defined.
174         Reported by Ian Beckwith <ianb@erislabs.net>.
175
176 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
177
178         acl: port to Solaris 8 when copying from tmpfs to ufs
179         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
180         error number.  Problem observed on Solaris 8 with latest
181         coreutils, with "mv A B", where A is on a tmpfs file system and B
182         is on a ufs file system.  This caused coreutils' mv/part-symlink
183         test to fail.
184
185         tests: set fail=0 at start
186         * tests/init.sh (setup_): Move fail=0 initialization here ...
187         (mktempd_): ... from here, so that tests can rely on fail being
188         set to 0 initially.  This fixes a problem in coreutils; see:
189         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
190
191 2010-12-18  Bruno Haible  <bruno@clisp.org>
192
193         memmem-simple: Stylistic changes.
194         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
195         Fix preprocessor directive indentation.
196
197 2010-12-15  Pádraig Brady <P@draigBrady.com>
198
199         memmem, memmem-simple: reorganize and expand empty needle check
200         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
201         functional checks to memmem-simple so that one has a fully functional
202         memmem by using just this module.
203         Restrict the performance only check to the memmem module.
204         Also expand the empty needle check to ensure the correct
205         pointer is returned, not just a non NULL pointer.
206         * doc/glibc-functions/memmem.texi: Rearrange the portability
207         documentation to correlate with the rearranged checks.
208         Clarify exactly how the memmem and memmem-simple modules
209         relate to each other.
210
211 2010-12-15  Pádraig Brady <P@draigBrady.com>
212             Bruno Haible  <bruno@clisp.org>
213
214         Improve cross-compilation guesses for uClibc.
215         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
216         that uClibc does not have the glibc bug.
217         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
218         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
219
220 2010-12-14  Eric Blake  <eblake@redhat.com>
221
222         configmake: provide fallbacks for oldest supported autotools
223         * m4/configmake.m4: New file.
224         * modules/configmake (Files): Ship it.
225         (configure.ac): Use it to guarantee fallbacks.
226
227 2010-12-13  Pádraig Brady <P@draigBrady.com>
228
229         read-file: Improve handling of large files
230         * lib/read-file.c (fread_file): Minimize realloc()s
231         for regular files, and better manage sizes around SIZE_MAX.
232
233 2010-12-13  Eric Blake  <eblake@redhat.com>
234
235         cloexec, fcntl: relax license
236         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
237         consent from all contributors.
238         * modules/fcntl (License): Likewise.
239
240 2010-12-10  Bruno Haible  <bruno@clisp.org>
241
242         Tests for module 'pipe-posix'.
243         * modules/pipe-posix-tests: New file.
244         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
245
246 2010-12-10  Bruno Haible  <bruno@clisp.org>
247
248         pipe-posix: Make it work in C++ mode.
249         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
250         (pipe): Use common idiom, not a macro definition.
251         * lib/pipe.c: New file.
252         * m4/pipe.m4: New file.
253         * modules/pipe-posix (Description): Enhance.
254         (Files): Add lib/pipe.c, m4/pipe.m4.
255         (configure.ac): Invoke gl_FUNC_PIPE.
256         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
257         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
258         * tests/test-unistd-c++.cc: Check the signature of pipe.
259
260 2010-12-10  Bruno Haible  <bruno@clisp.org>
261
262         Rename module 'pipe' to 'spawn-pipe'.
263         * modules/spawn-pipe: New file, renamed from modules/pipe.
264         (Files, configure.ac, Makefile.am): Update.
265         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
266         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
267         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
268         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
269         "spawn-pipe.h" instead of "pipe.h".
270         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
271         to gl_SPAWN_PIPE.
272         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
273         (Files, Makefile.am): Update.
274         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
275         Update.
276         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
277         Include "spawn-pipe.h" instead of "pipe.h".
278         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
279         * lib/javacomp.c: Likewise.
280         * lib/javaversion.c: Likewise.
281         * lib/pipe-filter-gi.c: Likewise.
282         * lib/pipe-filter-ii.c: Likewise.
283         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
284         * modules/javacomp (Depends-on): Likewise.
285         * modules/javaversion (Depends-on): Likewise.
286         * modules/pipe-filter-gi (Depends-on): Likewise.
287         * modules/pipe-filter-ii (Depends-on): Likewise.
288         * MODULES.html.sh (Executing programs): Update.
289         * NEWS: Mention the change.
290
291 2010-12-10  Eric Blake  <eblake@redhat.com>
292
293         pipe-posix: new module
294         * modules/pipe-posix: New file.
295         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
296         (gl_UNISTD_H): Check for declaration.
297         * modules/unistd (Makefile.am): Substitute it.
298         * lib/unistd.in.h (pipe): Provide it for mingw.
299         * doc/posix-functions/pipe.texi (pipe): Update documentation.
300         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
301
302 2010-12-07  Bruno Haible  <bruno@clisp.org>
303
304         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
305         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
306         u8_strcmp_gnu.
307         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
308
309 2010-12-06  Bruno Haible  <bruno@clisp.org>
310
311         Update internal documentation.
312         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
313
314 2010-12-04  Bruno Haible  <bruno@clisp.org>
315
316         Put more information about failed tests into the test return codes.
317         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
318         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
319         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
320         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
321         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
322         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
323         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
324         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
325         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
326         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
327         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
328         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
329         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
330         * m4/stdint.m4 (gl_STDINT_H): Likewise.
331         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
332         returns a bit mask.
333         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
334         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
335         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
336         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
337         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
338         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
339         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
340         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
341         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
342         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
343         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
344         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
345         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
346         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
347         * m4/link.m4 (gl_FUNC_LINK): Likewise.
348         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
349         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
350         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
351         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
352         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
353         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
354         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
355         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
356         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
357         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
358         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
359         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
360         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
361         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
362         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
363         gl_PRINTF_PRECISION): Likewise.
364         * m4/regex.m4 (gl_REGEX): Likewise.
365         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
366         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
367         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
368         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
369         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
370         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
371         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
372         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
373         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
374         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
375         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
376         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
377         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
378         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
379         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
380         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
381         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
382         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
383         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
384         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
385         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
386         enumerated value.
387         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
388
389 2010-12-04  Bruno Haible  <bruno@clisp.org>
390
391         Update for Solaris 11 2010-11.
392         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
393         Express, released in November 2010.
394
395 2010-12-04  Bruno Haible  <bruno@clisp.org>
396
397         nproc: Relax license.
398         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
399         and Paul Eggert.
400         Requested by Ludovic Courtès <ludo@gnu.org>.
401
402 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
403
404         utimecmp: fine-grained src to nearby coarse-grained dest
405
406         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
407         and the source is on a file system with higher-resolution time
408         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
409         not work, and the time stamps are close together, the algorithm to
410         determine the exact resolution from the read-back mtime was buggy:
411         it had a "!=" where it should have had an "==".  This bug has been
412         in the code ever since it was introduced to gnulib.
413         Problem reported by Dan Jacobson in
414         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
415
416 2010-11-30  Bruno Haible  <bruno@clisp.org>
417
418         strerror_r-posix: Fix autoconf test.
419         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
420
421 2010-11-28  Bruno Haible  <bruno@clisp.org>
422             Paul Eggert  <eggert@cs.ucla.edu>
423
424         Tests for module 'getdomainname'.
425         * modules/getdomainname-tests: New file.
426         * tests/test-getdomainname.c: New file, based on
427         tests/test-gethostname.c.
428
429 2010-11-28  Bruno Haible  <bruno@clisp.org>
430             Paul Eggert  <eggert@cs.ucla.edu>
431
432         getdomainname: Use the system function when possible.
433         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
434         (getdomainname): Replace if needed. Provide the declaration if it is
435         missing. Don't use _GL_CXXALIAS_SYS_CAST.
436         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
437         (getdomainname): When the system has getdomainname, call the system
438         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
439         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
440         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
441         found in libnsl. Look for the declaration also in <netdb.h>. Replace
442         the function if its second argument is of type 'int' or if it is found
443         in libnsl.
444         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
445         <sys/systeminfo.h> and sysinfo().
446         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
447         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
448         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
449         HAVE_GETDOMAINNAME.
450         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
451         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
452         * doc/glibc-functions/getdomainname.texi: Document the problems with
453         the getdomainname declaration.
454
455 2010-11-28  Bruno Haible  <bruno@clisp.org>
456
457         sys_socket: Ensure ss_family field on AIX.
458         * lib/sys_socket.in.h (ss_family): New macro definition.
459         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
460         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
461         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
462         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
463         * modules/sys_socket (Makefile.am): Substitute
464         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
465         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
466
467 2010-11-27  Bruno Haible  <bruno@clisp.org>
468
469         readline: Improve configure output.
470         * m4/readline.m4 (gl_FUNC_READLINE): Make the
471         "checking for readline..." result understandable.
472
473 2010-11-27  Bruno Haible  <bruno@clisp.org>
474
475         *printf-posix: Detect a bug on Solaris 10/x86.
476         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
477         for floating-point output.
478         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
479         directive.
480         * tests/test-snprintf-posix.h (test_function): Likewise.
481         * tests/test-sprintf-posix.h (test_function): Likewise.
482         * tests/test-vasprintf-posix.c (test_function): Likewise.
483         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
484         * doc/posix-functions/printf.texi: Likewise.
485         * doc/posix-functions/snprintf.texi: Likewise.
486         * doc/posix-functions/sprintf.texi: Likewise.
487         * doc/posix-functions/vfprintf.texi: Likewise.
488         * doc/posix-functions/vprintf.texi: Likewise.
489         * doc/posix-functions/vsnprintf.texi: Likewise.
490         * doc/posix-functions/vsprintf.texi: Likewise.
491         * doc/glibc-functions/obstack_printf.texi: Likewise.
492         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
493
494 2010-11-27  Bruno Haible  <bruno@clisp.org>
495
496         Fix link error when module libunistring-optional is in use.
497         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
498         * modules/striconveha-tests (Makefile.am): Likewise.
499
500 2010-11-27  Bruno Haible  <bruno@clisp.org>
501
502         regex: Mention link dependencies.
503         * modules/regex (Link): New section.
504         * modules/rpmatch (Link): Likewise.
505         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
506
507 2010-11-27  Bruno Haible  <bruno@clisp.org>
508
509         ftoastr: Fix compilation error on Solaris.
510         * lib/ftoastr.c: Include <config.h>.
511
512 2010-11-27  Bruno Haible  <bruno@clisp.org>
513
514         getloadavg: Update documentation.
515         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
516
517 2010-11-27  Bruno Haible  <bruno@clisp.org>
518
519         sys_socket: Fix test whether the functions are declared.
520         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
521         not <sys/select.h>.
522
523 2010-11-27  Bruno Haible  <bruno@clisp.org>
524
525         getpass: Make sure to get system declaration on some platforms.
526         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
527         gl_USE_SYSTEM_EXTENSIONS.
528         * modules/getpass (Depends-on): Add extensions.
529
530 2010-11-26  Bruno Haible  <bruno@clisp.org>
531
532         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
533         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
534         'iconv' module is present.
535         (ICONV_CONST): New macro.
536         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
537         ICONV_CONST.
538         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
539         set ICONV_CONST.
540         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
541         here.
542         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
543         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
544         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
545         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
546         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
547         present.
548
549 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
550
551         ftoastr: comment fix
552         * lib/ftoastr.c: "little" -> "little or no" in comment
553
554 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
555
556         stdint: port to GCC 4.3 + OSX + Octave
557         On this platform, stdint.h is buggy and defines int64_t to long
558         long int.  The replacement defined it to long int, causing
559         problems with C++ style name mangling.  Instead, trust the system
560         definition if INT64_MAX is defined, and likewise for the unsigned
561         variant.   Problem reported by Jarno Rajahalme in
562         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
563         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
564         and don't mess with int64_t and INT64_MAX in this case.
565         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
566
567 2010-11-24  Bruno Haible  <bruno@clisp.org>
568
569         doc: Corrections regarding MacOS X 10.4 and 10.5.
570         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
571         MacOS X.
572         Reported by Simon Josefsson.
573
574 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
575
576         Uninstall ".bin" files installed by relocwrapper.
577         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
578         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
579         unless it is already there.
580
581 2010-11-21  Bruno Haible  <bruno@clisp.org>
582
583         Update for NetBSD 5.0.
584         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
585         NetBSD; the test fails on NetBSD 5.0.
586         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
587         about NetBSD.
588
589 2010-11-21  Bruno Haible  <bruno@clisp.org>
590
591         Update for HP-UX 11.23 and HP-UX 11.31.
592         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
593         HP-UX.
594
595 2010-11-21  Bruno Haible  <bruno@clisp.org>
596
597         Update for MacOS X 10.5.
598         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
599         MacOS X; the test fails on MacOS X 10.5.8.
600         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
601         about MacOS X.
602
603 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
604
605         bootstrap: add bootstrap_sync option.
606         See discussion at
607         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
608         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
609         * build-aux/bootstrap: Accept --bootstrap-sync to update
610         bootstrap if it is not identical to the local gnulib's
611         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
612         enable this by default.  Accept --no-bootstrap-sync to disable
613         it.
614
615 2010-11-20  Bruno Haible  <bruno@clisp.org>
616
617         Ensure that <features.h> is included before __GLIBC__ is tested.
618         * lib/printf-parse.h: Include <features.h>.
619         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
620         Reported by Mike Frysinger <vapier@gentoo.org>.
621
622         Ensure that <features.h> is included before __GLIBC__ is tested.
623         * lib/wchar.in.h: Include <features.h>.
624         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
625         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
626         Reported by Mike Frysinger <vapier@gentoo.org>.
627
628         Ensure that <features.h> is included before __GLIBC__ is tested.
629         * lib/arpa_inet.in.h: Include <features.h>.
630         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
631         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
632         Reported by Mike Frysinger <vapier@gentoo.org>.
633
634         Ensure that <features.h> is included before __GLIBC__ is tested.
635         * build-aux/link-warning.h: Include <features.h>.
636         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
637         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
638         Reported by Mike Frysinger <vapier@gentoo.org>.
639
640         Ensure that <features.h> is included before __GLIBC__ is tested.
641         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
642         Reported by Mike Frysinger <vapier@gentoo.org>.
643
644 2010-11-20  Bruno Haible  <bruno@clisp.org>
645
646         memmem: Fix autoconf test.
647         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
648
649 2010-11-20  Bruno Haible  <bruno@clisp.org>
650
651         Port to uClibc.
652         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
653         * lib/fcntl.in.h: Likewise.
654         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
655         * lib/mbrtowc.c (mbrtowc): Likewise.
656         * lib/relocatable.c (find_shared_library_fullname): Likewise.
657         * lib/strerror_r.c: Likewise.
658         * lib/unistr/u8-strnlen.c: Likewise.
659         * lib/vasnprintf.c (decimal_point_char): Likewise.
660         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
661         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
662         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
663         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
664         * tests/test-sigaction.c (handler, main): Likewise.
665         * lib/freading.h: Treat uClibc like a non-glibc platform.
666         * lib/freading.c: Likewise.
667         * lib/gettext.h: Likewise.
668         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
669         Likewise.
670         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
671         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
672         * lib/propername.c (proper_name_utf8): Likewise.
673         * lib/spawn.in.h: Likewise.
674         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
675         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
676         mem_cd_iconveh_internal): Likewise.
677         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
678         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
679         strstr, strcasestr): Likewise.
680         * lib/unicodeio.c (unicode_to_mb): Likewise.
681         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
682         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
683         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
684         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
685         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
686         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
687         * lib/unistr/u8-stpncpy.c: Likewise.
688         * lib/vasnprintf.c (VASNPRINTF): Likewise.
689         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
690         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
691         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
692         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
693         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
694         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
695         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
696         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
697         Likewise.
698         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
699         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
700         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
701         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
702         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
703         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
704         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
705         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
706         * tests/test-getopt.h (OPTIND_MIN): Likewise.
707         * tests/test-striconveha.c (main): Likewise.
708         * tests/test-vasnprintf-posix.c (test_function): Likewise.
709         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
710         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
711         * doc/posix-functions/getline.texi: Likewise.
712         Reported by Mike Frysinger <vapier@gentoo.org>.
713
714 2010-11-20  Bruno Haible  <bruno@clisp.org>
715
716         nproc: Fix condition.
717         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
718         HAVE_PTHREAD_AFFINITY_NP.
719
720 2010-11-20  Bruno Haible  <bruno@clisp.org>
721
722         Fix a comment.
723         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
724
725 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
726
727         ftoastr: don't assume snprintf
728         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
729         Implement a subset of snprintf here, by using sprintf safely.
730         * modules/ftoastr (Depends-on): Remove snprintf.
731
732 2010-11-19  Jim Meyering  <meyering@redhat.com>
733
734         test-rename.h: fix compilation failure
735         * tests/test-rename.h (test_rename): Add omitted "}".
736
737 2010-11-17  Jim Meyering  <meyering@redhat.com>
738
739         maint.mk: add a URL discussing the no-@acronym policy
740         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
741
742 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
743
744         ftoastr: depend on snprintf, improve comments
745         * lib/ftoastr.c: Also mention Loitsch's draft.
746         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
747         needed in the current implementation, but it might simplify
748         speeding up the code later.
749         * modules/ftoastr: Depend on snprintf; this improves portability.
750         Suggested by Bruno Haible in the same email.
751
752         ftoastr: port to hosts lacking strtof and strtold
753         Problem reported by Bruno Haible in
754         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
755         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
756         environment and strtold (and presumably strtof) are not available.
757         * modules/ftoastr (Files): Add m4/c-strtod.m4.
758         (configure.ac): Require gl_C99_STRTOLD.
759
760 2010-11-18  Bruno Haible  <bruno@clisp.org>
761
762         c-strtold: Avoid link error on AIX 7.
763         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
764         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
765         (gl_C_STRTOLD): Test whether strtold_l exists.
766         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
767
768 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
769
770         intprops: new macro INT_BITS_STRLEN_BOUND
771         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
772         ftoastr.h.  This exposes an internal of intprops.h that was formerly
773         not exposed.  Also, it uses a slightly tighter bound than before;
774         though this makes no practical difference, we might as well be as
775         tight as we easily can.
776
777         ftoastr: new module, for lossless conversion of floats to short strings
778         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
779         * modules/ftoastr: New files.
780
781 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
782
783         bootstrap: port to Solaris sed
784         * build-aux/bootstrap (get_version): Port to Solaris sed.
785         See Ralf Wildenhues's note in
786         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
787
788 2010-11-14  Jim Meyering  <meyering@redhat.com>
789
790         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
791         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
792         and move definition closer to sole use.
793
794 2010-11-13  Jim Meyering  <meyering@redhat.com>
795
796         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
797         Now we require at least autoconf-2.59, which means the work-around
798         is no longer needed.
799         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
800         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
801         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
802         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
803         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
804
805 2010-11-13  Bruno Haible  <bruno@clisp.org>
806
807         rename, renameat: Avoid test failures at NFS mounted locations.
808         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
809         functions.
810         (test_rename): Use assert_nonexistent.
811         * tests/test-rename.c: Include <dirent.h>.
812         * tests/test-renameat.c: Likewise.
813         Reported by Gary V. Vaughan <gary@gnu.org>.
814
815         rename, renameat: Document Linux bug with NFS
816         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
817         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
818         * doc/posix-functions/renameat.texi: Likewise.
819         Suggested by Eric Blake.
820
821 2010-11-13  Bruno Haible  <bruno@clisp.org>
822
823         rename test: Add comments.
824         * tests/test-rename.h (test_rename): Add structure and comments.
825
826 2010-11-13  Eric Blake  <eblake@redhat.com>
827
828         maintainer-makefile: cover a few more files
829         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
830         scripts generated within C files, for libvirt.
831
832 2010-11-13  Bruno Haible  <bruno@clisp.org>
833
834         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
835         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
836         character, return the number of bytes that belong together, not always
837         1.
838         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
839         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
840         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
841         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
842         number of bytes of an invalid character.
843         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
844         (main): Invoke it.
845         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
846         results.
847         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
848         malformed byte sequences.
849         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
850         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
851         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
852         Reported by Ben Pfaff and Paolo Bonzini.
853
854 2010-11-13  Bruno Haible  <bruno@clisp.org>
855
856         openat: Work around glibc bug with fchownat() and empty file names.
857         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
858         (gl_FUNC_FCHOWNAT): Invoke it.
859         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
860         * doc/posix-functions/fchownat.texi: Document the glibc bug.
861         Reported by Gary V. Vaughan <gary@gnu.org>.
862
863 2010-11-13  Bruno Haible  <bruno@clisp.org>
864
865         openat: Ensure autoconf macro ordering.
866         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
867         gl_USE_SYSTEM_EXTENSIONS.
868         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
869
870 2010-11-13  Bruno Haible  <bruno@clisp.org>
871
872         Update comments.
873         * lib/unistr/u8-check.c: Update file name in comments.
874         * lib/unistr/u8-mblen.c: Likewise.
875         * lib/unistr/u8-prev.c: Likewise.
876         * lib/unistr/u8-strmblen.c: Likewise.
877         * lib/unistr/u8-strmbtouc.c: Likewise.
878
879 2010-11-13  Jim Meyering  <meyering@redhat.com>
880
881         tests: avoid test failure on Solaris 10 due to lack of PATH export
882         * tests/test-update-copyright.sh: Don't forget to export PATH.
883
884         init.sh: ensure that IFS is defined, just in case...
885         * tests/init.sh (setup_): Ensure that IFS is defined,
886         so that saving and restoring it works as expected.  This
887         appears to be useful at least for an old version of dash
888         from a long time ago (RH 6).  See here for details:
889         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
890
891         maint.mk: tighten "test a == b" check
892         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
893         test to files that contain something like #!/bin/sh.
894         Without this, coreutils would get two false positives in
895         the comments of C source files.
896
897 2010-11-12  Eric Blake  <eblake@redhat.com>
898
899         bootstrap: fix typo in previous attempt
900         * build-aux/bootstrap (buildreq): Correct the grouping.
901         Reported by Paul Eggert.
902
903         maintainer-makefile: prohibit test x == x
904         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
905         Based on a report by Matthias Bolte.
906
907         bootstrap: allow FreeBSD gzip
908         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
909         which has no '.' and goes to stderr.
910         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
911         Reported by Matthias Bolte.
912
913         maintainer-makefile: check for i18n setup
914         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
915         will likely work.
916
917 2010-11-12  Bruno Haible  <bruno@clisp.org>
918
919         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
920         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
921         * lib/nanosleep.c (nanosleep): Likewise.
922
923 2010-11-11  Bruno Haible  <bruno@clisp.org>
924
925         fcntl-h: Fix for use of C++ on glibc systems.
926         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
927         also on glibc systems in C++ mode.
928         Reported by Gary V. Vaughan <gary@gnu.org>.
929
930 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
931
932         mknod: avoid false failure with dash
933         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
934
935 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
936
937         unlink: Fix "is it should" typo in diagnostic.
938         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
939         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
940
941 2010-11-11  Bruno Haible  <bruno@clisp.org>
942
943         Tests for module 'strerror_r-posix'.
944         * modules/strerror_r-posix-tests: New file.
945         * tests/test-strerror_r.c: New file.
946         * tests/test-string-c++.cc: Check the signature of strerror_r.
947
948         New module 'strerror_r-posix'.
949         * lib/string.in.h (strerror_r): New declaration.
950         * lib/strerror_r.c: New file.
951         * m4/strerror_r.m4: New file.
952         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
953         of strerror_r.
954         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
955         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
956         * modules/strerror_r-posix: New file.
957         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
958         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
959         * doc/posix-functions/strerror_r.texi: Mention the new module and the
960         portability problems.
961
962 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
963
964         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
965         line is also considered for output. Quoted function name in shell
966         command, so temporary files for functions like MyClass::operator()
967         are removed correctly without errors.
968
969 2010-11-09  Bruno Haible  <bruno@clisp.org>
970
971         * doc/posix-functions/strerror.texi: List more failing platforms.
972
973         * doc/posix-functions/strerror.texi: Add a comment.
974
975 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
976
977         fdopendir: fix bug on MacOS X when low on file descriptors
978
979         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
980         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
981         All callers changed.
982         (fdopendir): Invoke save_cwd at the top level, not after using
983         multiple dup() calls to use up file descriptors.  Then retry
984         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
985         less than the maximum number of open file descriptors, because
986         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
987         on Mac OS X 10.6.4 for tar 1.24
988         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
989         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
990         and for tar 1.25
991         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
992
993 2010-11-07  Bruno Haible  <bruno@clisp.org>
994
995         vasnprintf: Support I flag on glibc systems.
996         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
997         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
998         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
999         snprintf function.
1000         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
1001         glibc systems.
1002         * tests/test-vasnprintf-posix3.c: New file.
1003         * modules/vasnprintf-posix-tests (Files): Add it.
1004         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
1005
1006 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
1007
1008         [html] Fix copy/paste bug: Use unique name for compiler warnings.
1009         * MODULES.html.sh: For compiler warnings, use name
1010         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
1011
1012 2010-11-05  Eric Blake  <eblake@redhat.com>
1013
1014         ceil, floor: avoid spurious failure with icc
1015         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
1016         [denormals-as-zero] when optimizing without -mieee-fp option.
1017         * tests/test-floorf2.c (floorf_reference): Likewise.
1018         * tests/test-ceilf1.c (dummy): New function.
1019         (main): Use it to outsmart icc's optimization.
1020         * tests/test-floorf1.c (dummy, main): Likewise.
1021
1022         tests: require working signbit
1023         * modules/ceilf-tests (Depends-on): Add signbit.
1024         * modules/ceill-tests (Depends-on): Likewise.
1025         * modules/floorf-tests (Depends-on): Likewise.
1026         * modules/floorl-tests (Depends-on): Likewise.
1027         * modules/round-tests (Depends-on): Likewise.
1028         * modules/roundf-tests (Depends-on): Likewise.
1029         * modules/roundl-tests (Depends-on): Likewise.
1030         * modules/trunc-tests (Depends-on): Likewise.
1031         * modules/truncf-tests (Depends-on): Likewise.
1032         * modules/truncl-tests (Depends-on): Likewise.
1033
1034         strtod: work around icc bug
1035         * lib/strtod.c (minus_zero): Define to working value.
1036         (strtod): Use it to avoid icc bug.
1037
1038         copysign: enhance tests
1039         * modules/copysign-tests (Files): Add minus-zero.h.
1040         * tests/test-copysign.c (main): Also test zeros.
1041
1042 2010-11-04  Eric Blake  <eblake@redhat.com>
1043
1044         ceil, floor, round, trunc: enhance tests of -0
1045         * tests/test-ceilf1.c (main): Ensure correct sign of result.
1046         * tests/test-ceill.c (main): Likewise.
1047         * tests/test-floorf1.c (main): Likewise.
1048         * tests/test-floorl.c (main): Likewise.
1049         * tests/test-round1.c (main): Likewise.
1050         * tests/test-roundf1.c (main): Likewise.
1051         * tests/test-roundl.c (main): Likewise.
1052         * tests/test-trunc1.c (main): Likewise.
1053         * tests/test-truncf1.c (main): Likewise.
1054         * tests/test-truncl.c (main): Likewise.
1055
1056 2010-11-04  Eric Blake  <eblake@redhat.com>
1057
1058         frexp, tests: work around ICC bug with -zero
1059         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
1060         works with more compilers.
1061         * tests/minus-zero.h: New file.
1062         * modules/ceilf-tests (Files): Include it.
1063         * modules/ceill-tests (Files): Likewise.
1064         * modules/floorf-tests (Files): Likewise.
1065         * modules/floorl-tests (Files): Likewise.
1066         * modules/frexp-nolibm-tests (Files): Likewise.
1067         * modules/frexp-tests (Files): Likewise.
1068         * modules/frexpl-nolibm-tests (Files): Likewise.
1069         * modules/frexpl-tests (Files): Likewise.
1070         * modules/isnan-tests (Files): Likewise.
1071         * modules/isnand-nolibm-tests (Files): Likewise.
1072         * modules/isnand-tests (Files): Likewise.
1073         * modules/isnanf-nolibm-tests (Files): Likewise.
1074         * modules/isnanf-tests (Files): Likewise.
1075         * modules/isnanl-nolibm-tests (Files): Likewise.
1076         * modules/isnanl-tests (Files): Likewise.
1077         * modules/round-tests (Files): Likewise.
1078         * modules/roundf-tests (Files): Likewise.
1079         * modules/roundl-tests (Files): Likewise.
1080         * modules/ldexpl-tests (Files): Likewise.
1081         * modules/signbit-tests (Files): Likewise.
1082         * modules/snprintf-posix-tests (Files): Likewise.
1083         * modules/sprintf-posix-tests (Files): Likewise.
1084         * modules/strtod-tests (Files): Likewise.
1085         * modules/trunc-tests (Files): Likewise.
1086         * modules/truncf-tests (Files): Likewise.
1087         * modules/truncl-tests (Files): Likewise.
1088         * modules/vsnprintf-posix-tests (Files): Likewise.
1089         * modules/vsprintf-posix-tests (Files): Likewise.
1090         * modules/vasnprintf-posix-tests (Files): Likewise.
1091         * modules/vasprintf-posix-tests (Files): Likewise.
1092         * tests/test-ceilf1.c (main): Use it.
1093         * tests/test-ceill.c (main): Likewise.
1094         * tests/test-floorf1.c (main): Likewise.
1095         * tests/test-floorl.c (main): Likewise.
1096         * tests/test-frexp.c (main): Likewise.
1097         * tests/test-frexpl.c (main): Likewise.
1098         * tests/test-isnan.c (main): Likewise.
1099         * tests/test-isnand.h (main): Likewise.
1100         * tests/test-isnanf.h (main): Likewise.
1101         * tests/test-isnanl.h (main): Likewise.
1102         * tests/test-ldexpl.c (main): Likewise.
1103         * tests/test-round.c (main): Likewise.
1104         * tests/test-roundf.c (main): Likewise.
1105         * tests/test-roundl.c (main): Likewise.
1106         * tests/test-signbit.c (test_signbitf, test_signbitd)
1107         (test_signbitl): Likewise.
1108         * tests/test-snprintf-posix.h (test_function): Likewise.
1109         * tests/test-sprintf-posix.h (test_function): Likewise.
1110         * tests/test-strtod.c (main): Likewise.
1111         * tests/test-trunc1.c (main): Likewise.
1112         * tests/test-truncf1.c (main): Likewise.
1113         * tests/test-truncl.c (main): Likewise.
1114
1115         isnanl: work around icc bug
1116         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
1117
1118 2010-11-03  Eric Blake  <eblake@redhat.com>
1119
1120         tests: fix compiler warnings
1121         * tests/test-getopt.h (test_getopt): Fix condition.
1122         * tests/test-getopt_long.h (test_getopt_long): Likewise.
1123         * tests/test-pipe2.c (main): Likewise.
1124         * tests/test-quotearg-simple.c (main): Avoid icc warning.
1125
1126         utimens: fix broken m4 test
1127         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
1128
1129 2010-10-28  Bruno Haible  <bruno@clisp.org>
1130
1131         posix_spawn*, getdtablesize: Relax license.
1132         * modules/posix_spawn (License): Change to LGPLv2+.
1133         * modules/posix_spawnp (License): Likewise.
1134         * modules/posix_spawn-internal (License): Likewise.
1135         * modules/posix_spawnattr_init (License): Likewise.
1136         * modules/posix_spawnattr_getflags (License): Likewise.
1137         * modules/posix_spawnattr_setflags (License): Likewise.
1138         * modules/posix_spawnattr_getpgroup (License): Likewise.
1139         * modules/posix_spawnattr_setpgroup (License): Likewise.
1140         * modules/posix_spawnattr_getschedparam (License): Likewise.
1141         * modules/posix_spawnattr_setschedparam (License): Likewise.
1142         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
1143         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
1144         * modules/posix_spawnattr_getsigdefault (License): Likewise.
1145         * modules/posix_spawnattr_setsigdefault (License): Likewise.
1146         * modules/posix_spawnattr_getsigmask (License): Likewise.
1147         * modules/posix_spawnattr_setsigmask (License): Likewise.
1148         * modules/posix_spawnattr_destroy (License): Likewise.
1149         * modules/posix_spawn_file_actions_init (License): Likewise.
1150         * modules/posix_spawn_file_actions_addclose (License): Likewise.
1151         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
1152         * modules/posix_spawn_file_actions_addopen (License): Likewise.
1153         * modules/posix_spawn_file_actions_destroy (License): Likewise.
1154         * modules/getdtablesize (License): Likewise.
1155         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
1156
1157 2010-10-26  Bruno Haible  <bruno@clisp.org>
1158
1159         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
1160         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
1161         Cygwin and mingw.
1162         Suggested by Eric Blake.
1163
1164 2010-10-26  Bruno Haible  <bruno@clisp.org>
1165
1166         stdio: Work around compilation error due to renameat() on Solaris 10.
1167         * lib/stdio.in.h: Include <unistd.h> on Solaris.
1168         * lib/renameat.c: Don't include <unistd.h> here.
1169         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
1170         Reported by Paul Eggert and Eric Blake.
1171
1172 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
1173
1174         renameat: port to Solaris 10, which declares renameat in unistd.h
1175
1176         * lib/renameat.c: Include unistd.h before stdio.h, because
1177         Solaris 10 declares renameat in unistd.h.  Problem encountered
1178         when building GNU tar 1.24 on Solaris 10.
1179
1180 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
1181
1182         fdopendir: fix C89 compilation
1183         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
1184         compilers.
1185
1186 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
1187
1188         inttostr: simplify by removing unnecessary redundancy
1189         * lib/anytostr.c: Don't include verify.h.
1190         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
1191         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
1192         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
1193         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
1194         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
1195         Likewise.
1196         * modules/inttostr (Depends-on): Remove 'verify'.
1197
1198 2010-10-23  Bruno Haible  <bruno@clisp.org>
1199
1200         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
1201         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
1202         Reported by Eric Blake.
1203
1204 2010-10-23  Bruno Haible  <bruno@clisp.org>
1205
1206         Tests: Fix LOCALE_JA on MirBSD 10.
1207         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
1208         to an UTF-8 locale.
1209         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
1210         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
1211         Reported by Eric Blake.
1212
1213 2010-10-21  Bruno Haible  <bruno@clisp.org>
1214
1215         nl_langinfo test: Avoid test failure on NetBSD 5.
1216         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
1217         Reported by Eric Blake.
1218
1219 2010-10-21  Eric Blake  <eblake@redhat.com>
1220
1221         c-stack: work around libsigsegv 2.8 bug
1222         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
1223         overflow on at least PowerPC64.
1224
1225 2010-10-17  Bruno Haible  <bruno@clisp.org>
1226
1227         userspec: Drop redundant file.
1228         * modules/userspec (Files): Remove lib/inttostr.h.
1229
1230 2010-10-17  Bruno Haible  <bruno@clisp.org>
1231
1232         nl_langinfo tests: Silence some warnings.
1233         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
1234         Reported by Jim Meyering.
1235
1236 2010-10-17  Bruno Haible  <bruno@clisp.org>
1237
1238         Make use of GCC's attribute __alloc_size__.
1239         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
1240         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
1241         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
1242         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
1243         __alloc_size__.
1244         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
1245         Suggested by Jim Meyering.
1246
1247 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
1248
1249         bootstrap: anchor .gitignore entries.
1250         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
1251         with...
1252         (insert_vc_ignore): ... this new function, which prepends `/' to
1253         all .gitignore entries before passing them to
1254         insert_sorted_if_absent.
1255
1256 2010-10-16  Bruno Haible  <bruno@clisp.org>
1257
1258         nextafter: Fix configure check.
1259         * modules/nextafter (configure.ac): Correct expected prototype.
1260
1261 2010-10-16  Bruno Haible  <bruno@clisp.org>
1262
1263         termios: Update documentation.
1264         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
1265
1266 2010-10-16  Bruno Haible  <bruno@clisp.org>
1267
1268         tests: Make them compile with TinyCC.
1269         * tests/test-strstr.c (main): Remove parentheses around array
1270         initializer.
1271
1272 2010-10-15  Eric Blake  <eblake@redhat.com>
1273
1274         ignore-value: make header idempotent
1275         * lib/ignore-value.h: Add double-inclusion guards.
1276         Reported by Stefan Berger.
1277
1278 2010-10-15  Jim Meyering  <meyering@redhat.com>
1279
1280         GNUmakefile: handle "stable" target, not "major"
1281         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
1282         lists in maint.mk and announce-gen.  Without this, "make stable"
1283         would fail to ensure that $(VERSION) is up to date.
1284
1285 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
1286
1287         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
1288         & co.
1289
1290 2010-10-14  Bruno Haible  <bruno@clisp.org>
1291
1292         vasnprintf: Don't set errno to 0.
1293         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
1294         block that sets it to 0.
1295         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
1296
1297 2010-10-14  Bruno Haible  <bruno@clisp.org>
1298
1299         socketlib: Fix.
1300         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
1301         gl_PREREQ_SYS_H_WINSOCK2.
1302         Reported by Ian Beckwith <ianb@erislabs.net>.
1303
1304 2010-10-13  Jim Meyering  <meyering@redhat.com>
1305
1306         test-select-stdin.c: avoid warn_unused_result warnings
1307         * tests/test-select-stdin.c: Include "macros.h".
1308         ASSERT that read and fflush succeed.
1309
1310 2010-10-13  Jim Meyering  <meyering@redhat.com>
1311
1312         git-version-gen: do require git-VC'd files in cwd
1313         * build-aux/git-version-gen: Reject a git version string
1314         if there are no commits associated with the current directory.
1315         This avoids an unlikely false-positive (unrelated dir whose parent
1316         repository also contains a tag matching v*), as pointed out
1317         by Giuseppe Scrivano in
1318         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
1319
1320 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
1321
1322         argv-iter: omit nonconforming declaration
1323         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
1324         enum arg_iter_err declaration, which doesn't conform to C99.
1325         Solaris 10 cc warns about this.
1326
1327 2010-10-13  Eric Blake  <eblake@redhat.com>
1328
1329         termios: fix compilation on mingw
1330         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
1331         (gl_TERMIOS_H): Adjust it on mingw.
1332         * modules/termios (Makefile.am): Substitute new key.
1333         * lib/termios.in.h (includes): Make include_next conditional.
1334         * doc/posix-headers/termios.texi (termios.h): Update
1335         documentation.
1336         Reported by Daniel P. Berrange.
1337
1338 2010-10-13  Jim Meyering  <meyering@redhat.com>
1339
1340         git-version-gen: don't require that .git/ be in the current dir
1341         * build-aux/git-version-gen: Adjust this script so that it works
1342         when run from any working directory beneath the top-level .git/-
1343         containing directory.  Inspired by a patch from Giuseppe Scrivano,
1344         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
1345
1346         test-select: avoid warn_unused_result warnings
1347         * tests/test-select.c: Include "macros.h".
1348         ASSERT that each call to read, write, and pipe succeeds.
1349         While not technically required, also check each "close".
1350         * modules/select-tests (Files): Add tests/macros.h.
1351
1352         test-symlinkat: remove declaration of unused local
1353         * tests/test-symlinkat.c (main): Remove unused local, "buf".
1354
1355         test-inttostr: avoid shadowing warnings
1356         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
1357         and use malloc rather than the stack for the same reason as
1358         mentioned in the comment justifying the other allocation.
1359
1360 2010-10-11  Bruno Haible  <bruno@clisp.org>
1361
1362         stdlib: Allow multiple gnulib generated replacements to coexist.
1363         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
1364         Reported by Sam Steingold <sds@gnu.org>.
1365
1366 2010-10-11  Jim Meyering  <meyering@redhat.com>
1367
1368         fix a documentation typo
1369         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
1370
1371 2010-10-11  Eric Blake  <eblake@redhat.com>
1372
1373         futimens: work around Solaris 11 bug
1374         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
1375         * tests/test-futimens.h (test_futimens): Enhance, rather than
1376         weaken test.
1377         * doc/posix-functions/futimens.texi (futimens): Document the bug.
1378
1379 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
1380
1381         Indentation.
1382         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
1383         higher-level operators more to the left.
1384
1385 2010-10-11  Jim Meyering  <meyering@redhat.com>
1386
1387         test-futimens: avoid unwarranted test failure on Solaris 5.11
1388         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
1389         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
1390         because it tries to dereference the NULL name argument.
1391
1392 2010-10-11  Bruno Haible  <bruno@clisp.org>
1393
1394         Indentation.
1395         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
1396         indentation.
1397
1398 2010-10-11  Jim Meyering  <meyering@redhat.com>
1399
1400         spawn.in.h: make indentation consistent with parentheses
1401         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
1402         Make indentation consistent with parentheses.
1403
1404 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
1405
1406         Fix mismatched parens in previous commit
1407         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
1408         parens.
1409
1410 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
1411
1412         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
1413
1414         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
1415         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
1416         * lib/malloca.c: Include "verify.h".
1417         (verify1): Remove, replacing with a verify call.
1418         * lib/relocwrapper.c (verify1): Likewise.
1419         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
1420         Likewise.
1421         * modules/malloca (Depends-on): Add 'verify'.
1422         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
1423         * modules/vasnprintf (Depends-on): Add 'verify'.
1424         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
1425         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
1426         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
1427         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
1428         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
1429         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
1430         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
1431
1432         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
1433
1434         Formerly the style was sometimes 2*X - 1, because the C standard
1435         was wrongly thought to disallow ?: in integral constant expressions.
1436         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
1437         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
1438         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
1439         * lib/stdint.in.h (_verify_intmax_size): Likewise.
1440         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
1441         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
1442         verify that time_t cannot be floating.
1443
1444 2010-10-08  Eric Blake  <eblake@redhat.com>
1445
1446         time: enforce recent POSIX ruling that time_t is integral
1447         * lib/time.in.h (__time_t_must_be_integral): Detect any
1448         problematic systems, allowing the rest of gnulib to assume POSIX.
1449
1450 2010-10-08  Jim Meyering  <meyering@redhat.com>
1451
1452         fdopendir: fix a bug on systems lacking openat and /proc support
1453         OpenBSD 4.7 is one such system.  The most noticeable effect was
1454         failure of any application making nontrivial use of fts: rm, du,
1455         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
1456           ./rm: traversal failed: `a': Bad file descriptor
1457         Debugging that, you see that even though FD 6 was closed just
1458         prior to the opendir call in fd_clone_opendir, its resulting
1459         dir->dd_fd was 8, rather than the expected value of 6:
1460
1461         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
1462         93                close (fd);
1463         (gdb) n
1464         94                dir = fd_clone_opendir (dupfd);
1465         (gdb) n
1466         95                saved_errno = errno;
1467         (gdb) p dir->dd_fd
1468         $11 = 8
1469
1470         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
1471         The problem is that on OpenBSD, fd_clone_opendir has to resort
1472         to using the old-style save/restore CWD mechanism, due to its
1473         lack of openat/proc support, and *that* would steal the FD (6)
1474         that opendir was supposed to use.
1475
1476         The fix is to squirrel away the desired FD so that save_cwd uses a
1477         different one, and then free the dest FD right before calling opendir.
1478         That guarantees opendir will use the required file descriptor.
1479
1480         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
1481
1482 2010-10-08  Bruno Haible  <bruno@clisp.org>
1483
1484         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
1485         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
1486
1487 2010-10-08  Bruno Haible  <bruno@clisp.org>
1488
1489         nanosleep: Make replacement POSIX compliant.
1490         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
1491         is out of range.
1492         Reported by Jim Meyering.
1493
1494 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
1495
1496         bootstrap: add hook for altering gnulib.mk, for Bison
1497         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
1498         the Bison bootstrapping process can rewrite file names and variables
1499         in this file before later parts of 'bootstrap' use the file.
1500         Bison wants to include lib/gnulib.mk from the top-level makefile,
1501         so it needs the file names in this file to be relative to the top
1502         level, not relative to lib; plus it needs variable names to be
1503         rewritten.
1504         (slurp): Use the new function.
1505
1506         bootstrap: reformat for readability
1507         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
1508
1509 2010-10-08  Eric Blake  <eblake@redhat.com>
1510
1511         docs: update cygwin progress
1512         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
1513         1.7.7.
1514         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
1515         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
1516         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
1517         * doc/posix-functions/carg.texi (carg): Likewise.
1518         * doc/posix-functions/cargf.texi (cargf): Likewise.
1519         * doc/posix-functions/casin.texi (casin): Likewise.
1520         * doc/posix-functions/casinf.texi (casinf): Likewise.
1521         * doc/posix-functions/casinh.texi (casinh): Likewise.
1522         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
1523         * doc/posix-functions/catan.texi (catan): Likewise.
1524         * doc/posix-functions/catanf.texi (catanf): Likewise.
1525         * doc/posix-functions/catanh.texi (catanh): Likewise.
1526         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
1527         * doc/posix-functions/ccos.texi (ccos): Likewise.
1528         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
1529         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
1530         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
1531         * doc/posix-functions/cexp.texi (cexp): Likewise.
1532         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
1533         * doc/posix-functions/cimag.texi (cimag): Likewise.
1534         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
1535         * doc/posix-functions/clog.texi (clog): Likewise.
1536         * doc/posix-functions/clogf.texi (clogf): Likewise.
1537         * doc/posix-functions/conj.texi (conj): Likewise.
1538         * doc/posix-functions/conjf.texi (conjf): Likewise.
1539         * doc/posix-functions/cpow.texi (cpow): Likewise.
1540         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
1541         * doc/posix-functions/cproj.texi (cproj): Likewise.
1542         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
1543         * doc/posix-functions/creal.texi (creal): Likewise.
1544         * doc/posix-functions/crealf.texi (crealf): Likewise.
1545         * doc/posix-functions/csin.texi (csin): Likewise.
1546         * doc/posix-functions/csinf.texi (csinf): Likewise.
1547         * doc/posix-functions/csinh.texi (csinh): Likewise.
1548         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
1549         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
1550         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
1551         * doc/posix-functions/ctan.texi (ctan): Likewise.
1552         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
1553         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
1554         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
1555         * doc/posix-headers/complex.texi (complex.h): Likewise.
1556
1557 2010-10-07  Jim Meyering  <meyering@redhat.com>
1558
1559         parse-datetime: avoid compilation failure on OpenBSD 4.7
1560         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
1561         This works around a compilation failure on OpenBSD 4.7:
1562         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
1563
1564 2010-10-07  Eric Blake  <eblake@redhat.com>
1565
1566         docs: update cygwin progress
1567         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
1568         1.7.6.
1569         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
1570         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
1571         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
1572         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
1573         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
1574         Likewise.
1575         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
1576         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
1577         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
1578         Likewise.
1579         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
1580         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
1581         Likewise.
1582         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
1583         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
1584         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
1585         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
1586         Likewise.
1587         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
1588         Likewise.
1589         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
1590
1591         docs: update parse-datetime history
1592         * doc/parse-datetime.texi (Authors of parse_datetime): Better
1593         documentation of this function's history and alternatives.
1594
1595         cygwin: use more robust version check
1596         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
1597         exclude an eventual cygwin 1.9.1.
1598         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
1599         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
1600         (gl_FUNC_STRCASESTR): Likewise.
1601         Reported by Bruno Haible.
1602
1603 2010-10-06  Bruno Haible  <bruno@clisp.org>
1604
1605         string, sys_select: Avoid #including large headers unless necessary.
1606         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
1607         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
1608         OSF/1, BeOS, Haiku.
1609         Reported by Jim Meyering.
1610
1611 2010-10-05  Eric Blake  <eblake@redhat.com>
1612
1613         memmem, strstr, strcasestr: fix bug with long periodic needle
1614         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
1615         periodic needle having false positive.
1616         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
1617         and cygwin 1.7.7.
1618         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
1619         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
1620         (gl_FUNC_STRCASESTR): Likewise.
1621         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
1622         * tests/test-memmem.c (main): Expose the bug.
1623         * tests/test-strcasestr.c (main): Likewise.
1624         * tests/test-strstr.c (main): Likewise.
1625         * tests/test-c-strcasestr.c (main): Likewise.
1626         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
1627         * doc/posix-functions/strstr.texi (strstr): Likewise.
1628         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
1629         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
1630
1631 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
1632
1633         parse-datetime: do some more renaming
1634         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
1635         parse_datetime, not get_date.  Mention the renaming.
1636         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
1637         in comments.
1638         * m4/bison.m4: Likewise.
1639
1640 2010-10-05  Eric Blake  <eblake@redhat.com>
1641
1642         parse-datetime: better name than get_date
1643         * NEWS: Reword the deprecation notice.
1644         * modules/get_date: Rename to modules/parse-datetime.
1645         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
1646         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
1647         * lib/get_date.y: Rename to lib/parse-datetime.y.
1648         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
1649         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
1650         * doc/getdate.texi: Provide fallback wrapper.
1651         * lib/getdate.h: Move guts, and wrap...
1652         * lib/parse-datetime.h: ...new file.
1653         * lib/parse-datetime.y (get_date): Rename...
1654         (parse_datetime): ...to this.
1655         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
1656         (gl_PARSE_DATETIME): ...to this.
1657         * doc/posix-functions/getdate.texi (get_date): Provide fallback
1658         documentation.
1659         * modules/getdate (Files): Provide fallback docs and header.
1660         (Notice, Depends-on): Update references.
1661         * tests/test-parse-datetime.c: Likewise.
1662         * DEPENDENCIES: Likewise.
1663         * MODULES.html.sh (Date and time <time.h>): Likewise.
1664         * doc/parse-datetime.texi (Date input formats)
1665         (Authors of parse_datetime): Likewise.
1666         * modules/parse-datetime (Files, configure.ac, Makefile.am)
1667         (Include): Likewise.
1668         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
1669         * gnulib-tool: Likewise.
1670         * m4/bison.m4 (gl_BISON): Likewise.
1671         Suggested by Bruno Haible.
1672
1673 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
1674
1675         more ports to Solaris tr, which needs [] around ranges
1676         * gnulib-tool: Solaris tr needs [] around ranges.
1677         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
1678         * tests/test-pipe-filter-gi1.c (main): Likewise.
1679         * tests/test-pipe-filter-ii1.c (main): Likewise.
1680
1681 2010-10-05  Eric Blake  <eblake@redhat.com>
1682
1683         bootstrap: fix Solaris regression
1684         * build-aux/bootstrap (check_versions): Solaris tr still needs []
1685         around ranges.
1686         Reported by Pádraig Brady.
1687
1688         bootstrap: work with pkg-config
1689         * build-aux/bootstrap (check_versions): Also transliterate - in
1690         prerequisite name.
1691         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
1692         prerequisites that were already found, to avoid confusion.
1693         Reported by Justin Clift.
1694
1695         faccessat: remove unused wrappers
1696         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
1697         presence of these wrappers dragged in -lgen on Solaris.
1698         Reported by Clemens Brogi; fix suggested by Paul Eggert.
1699
1700 2010-10-05  Jim Meyering  <meyering@redhat.com>
1701
1702         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
1703         * Makefile (sc_pragma_columns): New syntax-check rule.
1704
1705 2010-10-04  Bruno Haible  <bruno@clisp.org>
1706
1707         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
1708         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
1709         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
1710         Reported by Bruce Korb and Eric Blake.
1711
1712 2010-10-04  Bruno Haible  <bruno@clisp.org>
1713
1714         threadlib: Make option --with-libpth-prefix work.
1715         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
1716         use $LIBPTH, not just -lpth.
1717
1718 2010-10-04  Bruno Haible  <bruno@clisp.org>
1719
1720         Avoid line length limitation from HP NonStop system header files.
1721         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
1722         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
1723         * lib/ctype.in.h: Likewise.
1724         * lib/dirent.in.h: Likewise.
1725         * lib/errno.in.h: Likewise.
1726         * lib/fcntl.in.h: Likewise.
1727         * lib/float.in.h: Likewise.
1728         * lib/getopt.in.h: Likewise.
1729         * lib/iconv.in.h: Likewise.
1730         * lib/inttypes.in.h: Likewise.
1731         * lib/langinfo.in.h: Likewise.
1732         * lib/locale.in.h: Likewise.
1733         * lib/math.in.h: Likewise.
1734         * lib/netdb.in.h: Likewise.
1735         * lib/netinet_in.in.h: Likewise.
1736         * lib/poll.in.h: Likewise.
1737         * lib/pthread.in.h: Likewise.
1738         * lib/pty.in.h: Likewise.
1739         * lib/sched.in.h: Likewise.
1740         * lib/se-selinux.in.h: Likewise.
1741         * lib/search.in.h: Likewise.
1742         * lib/signal.in.h: Likewise.
1743         * lib/spawn.in.h: Likewise.
1744         * lib/stdarg.in.h: Likewise.
1745         * lib/stddef.in.h: Likewise.
1746         * lib/stdint.in.h: Likewise.
1747         * lib/stdio.in.h: Likewise.
1748         * lib/stdlib.in.h: Likewise.
1749         * lib/string.in.h: Likewise.
1750         * lib/strings.in.h: Likewise.
1751         * lib/sys_file.in.h: Likewise.
1752         * lib/sys_ioctl.in.h: Likewise.
1753         * lib/sys_select.in.h: Likewise.
1754         * lib/sys_socket.in.h: Likewise.
1755         * lib/sys_stat.in.h: Likewise.
1756         * lib/sys_time.in.h: Likewise.
1757         * lib/sys_times.in.h: Likewise.
1758         * lib/sys_utsname.in.h: Likewise.
1759         * lib/sys_wait.in.h: Likewise.
1760         * lib/sysexits.in.h: Likewise.
1761         * lib/termios.in.h: Likewise.
1762         * lib/time.in.h: Likewise.
1763         * lib/unistd.in.h: Likewise.
1764         * lib/wchar.in.h: Likewise.
1765         * lib/wctype.in.h: Likewise.
1766         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
1767         * modules/ctype (Makefile.am): Likewise.
1768         * modules/dirent (Makefile.am): Likewise.
1769         * modules/errno (Makefile.am): Likewise.
1770         * modules/fcntl-h (Makefile.am): Likewise.
1771         * modules/float (Makefile.am): Likewise.
1772         * modules/getopt-posix (Makefile.am): Likewise.
1773         * modules/iconv-h (Makefile.am): Likewise.
1774         * modules/inttypes (Makefile.am): Likewise.
1775         * modules/langinfo (Makefile.am): Likewise.
1776         * modules/locale (Makefile.am): Likewise.
1777         * modules/math (Makefile.am): Likewise.
1778         * modules/netdb (Makefile.am): Likewise.
1779         * modules/netinet_in (Makefile.am): Likewise.
1780         * modules/poll-h (Makefile.am): Likewise.
1781         * modules/pthread (Makefile.am): Likewise.
1782         * modules/pty (Makefile.am): Likewise.
1783         * modules/sched (Makefile.am): Likewise.
1784         * modules/search (Makefile.am): Likewise.
1785         * modules/selinux-h (Makefile.am): Likewise.
1786         * modules/signal (Makefile.am): Likewise.
1787         * modules/spawn (Makefile.am): Likewise.
1788         * modules/stdarg (Makefile.am): Likewise.
1789         * modules/stddef (Makefile.am): Likewise.
1790         * modules/stdint (Makefile.am): Likewise.
1791         * modules/stdio (Makefile.am): Likewise.
1792         * modules/stdlib (Makefile.am): Likewise.
1793         * modules/string (Makefile.am): Likewise.
1794         * modules/strings (Makefile.am): Likewise.
1795         * modules/sys_file (Makefile.am): Likewise.
1796         * modules/sys_ioctl (Makefile.am): Likewise.
1797         * modules/sys_select (Makefile.am): Likewise.
1798         * modules/sys_socket (Makefile.am): Likewise.
1799         * modules/sys_stat (Makefile.am): Likewise.
1800         * modules/sys_time (Makefile.am): Likewise.
1801         * modules/sys_times (Makefile.am): Likewise.
1802         * modules/sys_utsname (Makefile.am): Likewise.
1803         * modules/sys_wait (Makefile.am): Likewise.
1804         * modules/sysexits (Makefile.am): Likewise.
1805         * modules/termios (Makefile.am): Likewise.
1806         * modules/time (Makefile.am): Likewise.
1807         * modules/unistd (Makefile.am): Likewise.
1808         * modules/wchar (Makefile.am): Likewise.
1809         * modules/wctype (Makefile.am): Likewise.
1810
1811 2010-10-04  Bruno Haible  <bruno@clisp.org>
1812
1813         read-file tests: Avoid a test failure on NonStop Kernel.
1814         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
1815         a regular file.
1816         Reported by Joachim Schmitz <schmitz@hp.com>.
1817
1818 2010-10-03  Bruno Haible  <bruno@clisp.org>
1819
1820         gnulib-tool: Fixes for --create-testdir with --libtool.
1821         * gnulib-tool (func_get_automake_snippet): Don't augment
1822         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
1823         an executable.
1824         (func_create_testdir): Handle module 'alloca' like func_import.
1825         Reported by Bruce Korb <bruce.korb@gmail.com>.
1826
1827 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
1828
1829         Avoid some lines longer than 80 characters.
1830         * lib/stdint.in.h: Break long comment lines.
1831         * lib/math.in.h: Likewise.
1832         (_GL_NUM_UINT_WORDS): New macro, for readability.
1833         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
1834         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
1835         * lib/stdlib.in.h: Likewise.
1836         * lib/spawn.in.h: Likewise.
1837         * lib/sys_socket.in.h: Update an URL.
1838         * lib/sys_stat.in.h: Break long line.
1839
1840 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
1841
1842         Improve pmccabe2html.
1843         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
1844         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
1845         when the sources change. Remove the line in the HTML about "Used
1846         ranges" (which implied that there might be other unused ranges),
1847         rename "Resume" to "Summary" (easier to understand for more users).
1848         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
1849         styles, and some unnecessary blank lines.
1850
1851 2010-10-03  Bruno Haible  <bruno@clisp.org>
1852             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
1853
1854         acl: Add support for ACLs on NonStop Kernel.
1855         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
1856         Check whether the function aclsort() exists.
1857         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
1858         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
1859         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
1860         (acl_nontrivial [HAVE_ACLSORT]: New function.
1861         (file_has_acl): Implement for NonStop Kernel.
1862         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
1863         (qset_acl): Implement for NonStop Kernel.
1864         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
1865         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
1866         (main): Implement for NonStop Kernel.
1867         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
1868         Kernel. Handle this flavor.
1869         * tests/test-set-mode-acl.sh: Likewise.
1870         * tests/test-copy-acl.sh: Likewise.
1871         * tests/test-copy-file.sh: Likewise.
1872
1873 2010-10-03  Bruno Haible  <bruno@clisp.org>
1874
1875         Info about ACLs on NonStop Kernel.
1876         * doc/acl-resources.txt: Add info about NonStop Kernel.
1877         References by Joachim Schmitz <schmitz@hp.com>.
1878
1879 2010-10-02  Bruno Haible  <bruno@clisp.org>
1880
1881         Define missing EDQUOT on NonStop Kernel.
1882         * lib/errno.in.h (EDQUOT): Assign a value if missing.
1883         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
1884         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
1885         missing.
1886         * doc/posix-headers/errno.texi: Mention the NSK bug.
1887         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
1888         Reported by Joachim Schmitz <schmitz@hp.com>.
1889
1890 2010-10-02  Bruno Haible  <bruno@clisp.org>
1891
1892         Update doc for POSIX:2008.
1893         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
1894         Update URL of POSIX specification.
1895
1896 2010-10-02  Bruno Haible  <bruno@clisp.org>
1897
1898         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
1899         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
1900         from gnulib, not from Automake.
1901
1902 2010-10-02  Bruno Haible  <bruno@clisp.org>
1903
1904         New module 'system-posix'.
1905         * modules/system-posix: New file.
1906         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
1907         module is present.
1908         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
1909         GNULIB_SYSTEM_POSIX.
1910         * modules/stdlib (Depends-on): Remove sys_wait.
1911         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
1912         * doc/posix-functions/system.texi: Mention the new module.
1913         * doc/posix-headers/stdlib.texi: Likewise.
1914         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
1915         define test_sys_wait_macros to a no-op.
1916         Reported by Sam Steingold <sds@gnu.org>.
1917
1918 2010-09-30  Bruno Haible  <bruno@clisp.org>
1919
1920         More renaming from 'getdate' to 'get_date'.
1921         * doc/get_date.texi: Renamed from doc/getdate.texi.
1922         * modules/get_date (Files): Update.
1923         * MODULES.html.sh (Date and time <time.h>): Update.
1924         * DEPENDENCIES: Update.
1925         * gnulib-tool: Update comment.
1926         * m4/bison.m4 (gl_BISON): Likewise.
1927         * m4/get_date.m4 (gl_GET_DATE): Likewise.
1928
1929 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
1930
1931         bootstrap: support ACLOCAL_FLAGS during aclocal
1932         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
1933         can add additional -I dir for third-party .m4 files.
1934
1935 2010-09-30  Eric Blake  <eblake@redhat.com>
1936
1937         bootstrap: use glibtoolize on MacOS
1938         * build-aux/bootstrap (check_versions): Convert libtool into
1939         libtoolize.
1940         (tool search): Move libtool check earlier, and look for
1941         glibtoolize for MacOS.
1942         (gnulib_tool_options): Auto-add --libtool when appropriate.
1943         Reported by Justin Clift.
1944
1945         poll: fix typo that broke test on MacOS
1946         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
1947         Reported by Justin Clift.
1948
1949         getdate: rename to get_date
1950         Note: getdate.h is not renamed, to minimize client impact.
1951         * modules/getdate: Mark obsolete.  Move old contents...
1952         * modules/get_date: ...to new module name.
1953         * modules/getdate-tests: Move...
1954         * modules/get_date-tests: ...here.
1955         * m4/getdate.m4: Move...
1956         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
1957         * lib/getdate.y: Move...
1958         * lib/get_date.y: ...here.
1959         * tests/test-getdate.c: Move...
1960         * tests/test-get_date.c: ...here.
1961         * doc/posix-functions/getdate.texi (getdate): Update name.
1962         * NEWS: Mention the change.
1963
1964 2010-09-29  Bruno Haible  <bruno@clisp.org>
1965
1966         Separate the module 'waitpid' from the module 'sys_wait'.
1967         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
1968         present.
1969         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
1970         gl_MODULE_INDICATOR_FOR_TESTS.
1971         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
1972         * modules/sys_wait (Depends-on): Remove waitpid.
1973         (Makefile.am): Substitute GNULIB_WAITPID.
1974         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
1975         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
1976         signature only if the 'waitpid' module is present.
1977         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
1978         * NEWS: Mention the change.
1979         * modules/grantpt (Depends-on): Add waitpid.
1980         * modules/wait-process (Depends-on): Likewise.
1981
1982 2010-09-29  Bruno Haible  <bruno@clisp.org>
1983
1984         More tests for module 'sys_wait'.
1985         * modules/sys_wait-c++-tests: New file.
1986         * tests/test-sys_wait-c++.cc: New file.
1987         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
1988         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
1989
1990 2010-09-29  Bruno Haible  <bruno@clisp.org>
1991
1992         New module 'waitpid'.
1993         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
1994         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
1995         Don't include <process.h>.
1996         (waitpid): Declare only, using modern idiom.
1997         * m4/waitpid.m4: New file.
1998         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
1999         * modules/waitpid: New file.
2000         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
2001         (Makefile.am): Update.
2002         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
2003
2004 2010-09-28  Bruno Haible  <bruno@clisp.org>
2005
2006         poll: Assume ANSI C.
2007         * lib/poll.c (poll): Use an ANSI C declaration.
2008
2009 2010-09-28  Bruno Haible  <bruno@clisp.org>
2010
2011         poll-h: Create poll.h on all platforms.
2012         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
2013         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
2014         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
2015         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
2016         (gl_REPLACE_POLL_H): Don't set POLL_H.
2017         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
2018         * modules/poll-h (Depends-on): Add include_next.
2019         (Makefile.am): Create poll.h unconditionally. Substitute also
2020         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
2021
2022 2010-09-28  Bruno Haible  <bruno@clisp.org>
2023
2024         Tests for module 'poll-h'.
2025         * modules/poll-h-c++-tests: New file.
2026         * tests/test-poll-h-c++.cc: New file.
2027
2028         Tests for module 'poll-h'.
2029         * modules/poll-h-tests: New file.
2030         * tests/test-poll-h.c: New file.
2031
2032 2010-09-28  Bruno Haible  <bruno@clisp.org>
2033
2034         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
2035         * modules/poll-h (Depends-on): Add 'extensions'.
2036
2037 2010-09-28  Bruno Haible  <bruno@clisp.org>
2038
2039         New module 'poll-h'.
2040         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
2041         (poll): Use modern idiom.
2042         * modules/poll-h: New file.
2043         * modules/poll (Files): Remove lib/poll.in.h.
2044         (Depends-on): Add poll-h.
2045         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
2046         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
2047         * m4/poll_h.m4: New file.
2048         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
2049         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
2050         and invoke gl_REPLACE_POLL_H.
2051         * lib/poll.c: Use common idiom.
2052         * tests/test-poll.c: Likewise.
2053         * doc/posix-headers/poll.texi: Mention the poll-h module.
2054         Suggested by Eric Blake.
2055
2056 2010-09-26  Bruno Haible  <bruno@clisp.org>
2057
2058         sys_wait: Implement WSTOPSIG.
2059         * lib/sys_wait.in.h (WSTOPSIG): New macro.
2060         Reported by Simon Josefsson.
2061
2062 2010-09-26  Simon Josefsson  <simon@josefsson.org>
2063
2064         stdlib, sys_wait: Avoid compilation error on mingw.
2065         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
2066
2067 2010-09-26  Bruno Haible  <bruno@clisp.org>
2068
2069         stdlib tests: Avoid code duplication.
2070         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
2071         * modules/sys_wait-tests (Files): Likewise.
2072         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
2073         * tests/test-stdlib.c: Include test-sys_wait.h.
2074         (main): Invoke test_sys_wait_macros.
2075         * tests/test-sys_wait.c: Include test-sys_wait.h.
2076         (main): Invoke test_sys_wait_macros.
2077
2078 2010-09-25  Simon Josefsson  <simon@josefsson.org>
2079
2080         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
2081         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
2082         sure Windows sockets are working before calling getaddrinfo.
2083         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
2084         * doc/gnulib.texi (Windows sockets): Fix typo.
2085
2086 2010-09-25  Bruno Haible  <bruno@clisp.org>
2087
2088         Tests for module 'regex-quote'.
2089         * modules/regex-quote-tests: New file.
2090         * tests/test-regex-quote.c: New file.
2091
2092         New module 'regex-quote'.
2093         * lib/regex-quote.h: New file.
2094         * lib/regex-quote.c: New file.
2095         * modules/regex-quote: New file.
2096         Suggested by Reuben Thomas <rrt@sc3d.org>.
2097
2098 2010-09-24  Bruno Haible  <bruno@clisp.org>
2099
2100         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
2101         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
2102
2103 2010-09-23  Bruno Haible  <bruno@clisp.org>
2104
2105         setenv: Relax license.
2106         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
2107         Blake.
2108         Requested by Eric Blake.
2109
2110 2010-09-22  Bruno Haible  <bruno@clisp.org>
2111
2112         termios: Relax license.
2113         * modules/termios (License): Change to LGPLv2+.
2114         Requested by Eric Blake.
2115
2116 2010-09-22  Bruno Haible  <bruno@clisp.org>
2117
2118         threadlib: Allow the package to change the default to 'no'.
2119         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
2120         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
2121         Reported by Paul Eggert.
2122
2123 2010-09-22  Pádraig Brady  <P@draigbrady.com>
2124             Bruno Haible  <bruno@clisp.org>
2125
2126         Fix endless loop in mbmemcasecoll.
2127         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
2128         byte.
2129         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
2130
2131 2010-09-22  Bruno Haible  <bruno@clisp.org>
2132
2133         Tests for module 'memcoll'.
2134         * modules/memcoll-tests: New file.
2135         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
2136
2137         memcoll, xmemcoll: Clarify size vs. length.
2138         * modules/memcoll.c (memcoll0): Clarify specification.
2139         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
2140         passed to collate_error.
2141
2142 2010-09-22  Bruno Haible  <bruno@clisp.org>
2143
2144         Tests for module 'memcasecmp'.
2145         * modules/memcasecmp-tests: New file.
2146         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
2147
2148 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
2149
2150         * lib/pthread.in.h: Add split double-inclusion guard, and include
2151         system <pthread.h> if there is one.  Use @@-style as in other
2152         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
2153         pthread.h doesn't.
2154         (pthread_mutexattr_destroy, pthread_mutexattr_init):
2155         (pthread_mutexattr_settype, pthread_mutex_trylock):
2156         New static inline functions, if there's no system <pthread.h>.
2157         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
2158         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
2159         Approximate with mutexes if the system lacks spinlocks, as in
2160         MacOS.
2161         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
2162         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
2163         @@-style.  Check for spinlocks separately.
2164         (gl_PTHREAD_DEFAULTS): New macro.
2165         * modules/pthread: Redo to use a more typical style for in.h files.
2166
2167 2010-09-21  Eric Blake  <eblake@redhat.com>
2168
2169         net_if: enhance tests
2170         * tests/test-net_if.c (main): Move signature checks earlier.
2171         Print failures to stderr.
2172         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
2173         Document the bug that we do not yet fix.
2174
2175 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
2176
2177         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
2178         about gnulib, not GSS.
2179
2180 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
2181
2182         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
2183         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
2184         for Emacs.
2185         * build-aux/pmccabe2html: Make Makefile.am example code more
2186         cut-and-paste friendly.
2187
2188 2010-09-21  Simon Josefsson  <simon@josefsson.org>
2189
2190         * tests/test-net_if.c: New file.
2191         * modules/net_if-tests: New file.
2192
2193 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
2194
2195         pthread: add pthread_spin_destroy
2196         * lib/pthread.in.h (pthread_spin_destroy): New function.
2197
2198 2010-09-19  Bruno Haible  <bruno@clisp.org>
2199
2200         gnulib-tool: Fix --help output.
2201         * gnulib-tool (func_usage): Fix help message.
2202         Reported by Reuben Thomas <rrt@sc3d.org>.
2203
2204 2010-09-18  Jim Meyering  <meyering@redhat.com>
2205
2206         maint.mk: avoid unexpanded \n in two diagnostics
2207         * top/maint.mk (sc_prohibit_always_true_header_tests):
2208         Don't use a literal \n in a halt=... assignment.  It would not be
2209         expanded, and the two \n bytes would appear in the diagnostic output
2210         rather than the desired newline.  Use halt=$$(printf ... instead.
2211         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
2212
2213 2010-09-18  Bruno Haible  <bruno@clisp.org>
2214
2215         netinet_in: Doc tweak.
2216         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
2217         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
2218
2219 2010-09-18  Jim Meyering  <meyering@redhat.com>
2220
2221         init.sh: correct an outdated comment
2222         * tests/init.sh (create_exe_shims_):  s/function/alias/
2223
2224         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
2225         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
2226         a file named "*.exe" is removed between the glob expansion and the
2227         processing of that oddly named file.
2228
2229 2010-09-17  Eric Blake  <eblake@redhat.com>
2230
2231         mirbsd: add some more support
2232         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
2233         in BSD family.
2234         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
2235         devices as OpenBSD.
2236         * m4/host-os.m4 (mirbsd): Add MirBSD.
2237
2238         tests: fix unportable assumption on sys/wait.h
2239         * tests/test-sys_wait.c (main): Relax test.
2240         * tests/test-stdlib.c (main): Likewise.
2241
2242         init.sh: accomodate directory with no .exes
2243         * tests/init.sh: Accomodate directory containing only scripts.
2244
2245         tests: avoid compiler warning
2246         * tests/test-stdlib.c (main): Use the variable.
2247
2248         fdutimens, fdutimensat: update signature, again
2249         * lib/utimens.h (gl_futimens): Delete, and move signature...
2250         (fdutimens): ...here.
2251         (fdutimensat): Rearrange signature.
2252         (lutimensat): Rename variable for clarity.
2253         * lib/fdutimensat.c (fdutimensat): Update signature.
2254         * lib/utimens.c (fdutimens): Likewise.
2255         (gl_futimens): Delete.
2256         (utimens, lutimens): Update callers.
2257         * lib/futimens.c (futimens): Likewise.
2258         * tests/test-fdutimensat.c: Likewise.
2259         * tests/test-utimens.c: Likewise.
2260         * tests/test-futimens.h: Update comment.
2261         * NEWS: Mention this.
2262         Suggested by Paul Eggert.
2263
2264 2010-09-17  Bruno Haible  <bruno@clisp.org>
2265
2266         Take over the maintenance of some older macros from Autoconf.
2267         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
2268         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
2269         GNU Autoconf.
2270         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
2271         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
2272
2273 2010-09-17  Eric Blake  <eblake@redhat.com>
2274
2275         fdutimensat: drop atflag validation
2276         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
2277         with valid fd, to close a race scenario where futimens is
2278         unsupported and FILE was replaced by a symlink.
2279         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
2280         accordingly.
2281         Suggested by Paul Eggert.
2282
2283 2010-09-16  Bruno Haible  <bruno@clisp.org>
2284
2285         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
2286         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
2287
2288 2010-09-16  Bruno Haible  <bruno@clisp.org>
2289
2290         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
2291         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
2292         login_tty exists.
2293         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
2294
2295 2010-09-16  Bruno Haible  <bruno@clisp.org>
2296
2297         login_tty: Make the replacement code work on BSD systems.
2298         * lib/login_tty.c: Include <sys/ioctl.h>.
2299         (login_tty): Use ioctl TIOCSCTTY when available.
2300         * modules/login_tty (Depends-on): Add sys_ioctl.
2301         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
2302
2303 2010-09-16  Bruno Haible  <bruno@clisp.org>
2304
2305         login_tty: Stricter unit test.
2306         * modules/login_tty-tests (Depends-on): Add tcgetsid.
2307         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
2308         and tcgetsid() after login_tty.
2309         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
2310
2311 2010-09-16  Bruno Haible  <bruno@clisp.org>
2312
2313         New module 'tcgetsid'.
2314         * lib/tcgetsid.c: New file.
2315         * m4/tcgetsid.m4: New file.
2316         * modules/tcgetsid: New file.
2317         * modules/termios (Depends-on): Add c++defs, warn-on-use.
2318         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
2319         GNULIB_TCGETSID, HAVE_TCGETSID.
2320         * lib/termios.in.h: Include <sys/types.h>.
2321         (tcgetsid): New declaration.
2322         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
2323         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
2324         * doc/posix-functions/tcgetsid.texi: Mention the new module.
2325         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
2326
2327 2010-09-16  Bruno Haible  <bruno@clisp.org>
2328
2329         Tests for module 'termios'.
2330         * modules/termios-c++-tests: New file.
2331         * modules/termios-tests: New file.
2332         * tests/test-termios-c++.cc: New file.
2333         * tests/test-termios.c: New file.
2334
2335         New module 'termios'.
2336         * modules/termios: New file.
2337         * lib/termios.in.h: New file.
2338         * m4/termios_h.m4: New file.
2339         * doc/posix-headers/termios.texi: Mention the new module.
2340
2341 2010-09-16  Eric Blake  <eblake@redhat.com>
2342
2343         fdutimensat: add an atflag parameter
2344         * lib/fdutimensat.c (fdutimensat): Add new parameter.
2345         * lib/utimens.h (fdutimensat): Update prototype.
2346         * tests/test-fdutimensat.c: Adjust test to match.
2347         * NEWS: Document the change.
2348         Suggested by Paul Eggert.
2349
2350 2010-09-16  Bruno Haible  <bruno@clisp.org>
2351
2352         Fix typos in comments.
2353         * lib/striconveh.h: Fix typo in comment.
2354         * lib/login_tty.c (login_tty): Likewise.
2355
2356 2010-09-15  Bruno Haible  <bruno@clisp.org>
2357
2358         stdlib: clarify MirBSD WEXITSTATUS bug
2359         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
2360         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
2361
2362 2010-09-15  Eric Blake  <eblake@redhat.com>
2363
2364         stdlib: work around MirBSD WEXITSTATUS bug
2365         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
2366         * modules/stdlib (Depends-on): Add sys_wait.
2367         * tests/test-sys_wait.c (main): Enhance test.
2368         * tests/test-stdlib.c (main): Likewise.
2369         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
2370
2371         docs: mention MacOS issue with WEXITSTATUS(constant)
2372         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
2373         issue.
2374         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
2375
2376         strnlen: add tests
2377         * modules/strnlen-tests: New file.
2378         * tests/test-strnlen.c: Likewise.
2379
2380 2010-09-14  Bruno Haible  <bruno@clisp.org>
2381
2382         unistr/base: Avoid link errors when module 'libunistring' is also used.
2383         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
2384         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
2385         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
2386         Declare also when HAVE_LIBUNISTRING is set.
2387         Reported by Pádraig Brady <P@draigbrady.com>.
2388
2389 2010-09-14  Eric Blake  <eblake@redhat.com>
2390
2391         test-rawmemchr: make more robust
2392         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
2393         (Depends-on, configure.ac): Add needed prerequisites to use it.
2394         * modules/memchr-tests (Files, Depends-on, configure.ac):
2395         Likewise, to avoid implicit reliance on memchr module prereqs.
2396         * tests/test-memchr.c (main): Ensure proper masking.
2397         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
2398         reads.
2399
2400         memchr: detect glibc Alpha bug
2401         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
2402         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
2403         Alpha.
2404         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
2405         * tests/test-memchr.c (main): Enhance test.
2406         Reported by Nelson H. F. Beebe.
2407
2408 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
2409
2410         fts, getcwd, glob: audit for dirfd returning -1
2411         * lib/fts.c (opendir): Remove #define; no longer used.
2412         (opendirat): New arg PDIR_FD.  All callers changed.
2413         (fts_build, _opendir2): Use new opendirat to avoid the need for
2414         dirfd, or for checking whether dirfd returns a negative value.
2415         Don't use opendir; always use openat followed by fdopendir.
2416         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
2417         it.
2418         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
2419         returns -1 here.
2420         * modules/fts (Depends-on): Remove dirfd.
2421         * modules/getcwd (Depends-on): Likewise.
2422
2423 2010-09-13  Eric Blake  <eblake@redhat.com>
2424
2425         float: fix broken MirBSD header
2426         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
2427         * doc/posix-headers/float.texi (float.h): Document it.
2428
2429 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
2430
2431         fts: use O_NOFOLLOW to avoid race condition when opening a directory
2432         * lib/fts.c (opendirat): New arg extra_flags.
2433         (__opendir2): Use it to avoid following symlinks when opening
2434         a directory, if symlinks are not supposed to be followed.  See
2435         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
2436
2437         fdopendir: preserve argument fd before returning
2438         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
2439         (fdopendir_with_dup, fd_clone_opendir): New static functions.
2440         (fdopendir): Use them, arranging for FD to be open to the same
2441         directory that it was when it started.  (It might be temporarily
2442         closed while fdopendir is running, so this not thread- or
2443         signal-safe.)  Be careful to do the right thing even when file
2444         descriptors are scarce and dup fails with errno == EMFILE.  See
2445         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
2446
2447 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
2448
2449         regex: Pass the system regex if its only problem is 32-bit regoff_t.
2450         * NEWS: Document change.
2451         * m4/regex.m4: Disable test for regoff_t size.
2452
2453 2010-09-13  Jim Meyering  <meyering@redhat.com>
2454
2455         fts: don't operate on an invalid file descriptor after failed dup
2456         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
2457         negative file descriptor.
2458
2459 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
2460
2461         savedir: add streamsavedir, deprecate fdsavedir
2462         * NEWS: Mention deprecation of fdsavedir.
2463         * lib/savedir.c (streamsavedir): New extern function, whose name
2464         ends in "savedir" to be consistent with the others.  This differs
2465         from savedirstream in that it doesn't close its argument.  The
2466         next version of GNU tar will use this instead of fdsavedir, to
2467         avoid some race conditions and conserve file descriptors.
2468         (savedirstream): Reimplement as a wrapper around streamsavedir.
2469         (fdsavedir): Add a comment deprecating this function.  As far as
2470         I know, only GNU tar used it, and GNU tar doesn't need it any more.
2471         * lib/savedir.h (streamsavedir): New decl.
2472         (fdsavedir): Add a comment deprecating this.
2473
2474 2010-09-10  Bruno Haible  <bruno@clisp.org>
2475
2476         langinfo: Fix last commit.
2477         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
2478         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
2479         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2480
2481 2010-09-10  Bruno Haible  <bruno@clisp.org>
2482
2483         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
2484         * lib/progreloc.c (O_EXEC): Define fallback.
2485
2486 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
2487
2488         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
2489         * NEWS: Document recent changes to fcntl-h.
2490         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
2491         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
2492         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
2493         Similarly for O_SEARCH; this last was already true, but not documented.
2494         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
2495         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
2496         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
2497         Likewise.
2498         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
2499         is zero, not whether it is defined.
2500         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
2501         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
2502         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
2503
2504 2010-09-10  Bruno Haible  <bruno@clisp.org>
2505
2506         langinfo, nl_langinfo: Fix for IRIX 5.3.
2507         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
2508         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
2509         HAVE_LANGINFO_YESEXPR.
2510         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
2511         HAVE_LANGINFO_YESEXPR.
2512         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
2513         HAVE_LANGINFO_T_FMT_AMPM is 0.
2514         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
2515         HAVE_LANGINFO_YESEXPR is 0.
2516         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
2517         NOEXPR.
2518         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
2519         * doc/posix-functions/nl_langinfo.texi: Likewise.
2520         Reported by Eric Blake.
2521
2522 2010-09-10  Bruno Haible  <bruno@clisp.org>
2523
2524         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
2525         * doc/glibc-functions/login_tty.texi: Mention the include file problem
2526         on FreeBSD 8.0 and OpenBSD 4.6.
2527         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
2528         * m4/pty_h.m4 (gl_PTY_H): Likewise.
2529         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
2530         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
2531         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
2532         ac_includes_default.
2533         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
2534
2535 2010-09-09  Eric Blake  <eblake@redhat.com>
2536
2537         strsignal: work around NetBSD bug
2538         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
2539         * lib/string.in.h (includes): Likewise.
2540         * doc/posix-functions/strsignal.texi (strsignal): Document the
2541         bug.
2542         Reported by Nelson H. F. Beebe.
2543
2544         gnulib-tool: work with NetBSD /bin/sh
2545         * gnulib-tool (func_cache_var, func_cache_lookup_module)
2546         (func_get_description, func_get_comment, func_get_status)
2547         (func_get_notice, func_get_applicability, func_get_filelist)
2548         (func_get_dependencies, func_get_autoconf_early_snippet)
2549         (func_get_autoconf_snippet, func_get_automake_snippet)
2550         (func_get_include_directive, func_get_link_directive)
2551         (func_get_license, func_get_maintainer, func_import): Avoid
2552         shell syntax errors from parsing syntax extensions.
2553
2554 2010-09-09  Bruno Haible  <bruno@clisp.org>
2555
2556         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
2557         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
2558         a reliable way to determine whether the 'alias' command works.
2559
2560 2010-09-08  Jim Meyering  <meyering@redhat.com>
2561
2562         init.sh: penalize a set-x-impaired shell; don't disqualify it
2563         * tests/init.sh: Too many shells corrupt application stderr when
2564         you set -x, so we can't afford to disqualify them, since at least
2565         on Irix-6.5, that would disqualify all bourne shells.
2566         Instead, use a two-pass approach.
2567         On the first pass, try to find a shell that meets the stricter
2568         condition that set -x does not corrupt stderr.
2569         If no shell meets the stricter condition, retest each candidate
2570         shell, but without that extra condition.  Finally, when
2571         VERBOSE=yes is requested and set -x might cause trouble, simply
2572         issue a warning and refrain from enabling debug output.
2573
2574 2010-09-08  Eric Blake  <eblake@redhat.com>
2575
2576         unsetenv: fix OpenBSD bug
2577         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
2578         * doc/posix-functions/unsetenv.texi (unsetenv): Update
2579         documentation.
2580         Reported by Jim Meyering.
2581
2582         strtod: work around IRIX 6.5 bug
2583         * lib/strtod.c (strtod): Reparse number on shorter string if
2584         exponent parse was invalid.
2585         * tests/test-strtod.c (main): Add check for "0x1p 2".
2586         Reported by Tom G. Christensen.
2587
2588         getopt: optimize previous patch
2589         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
2590         empty variable.  Speed up awk script.
2591         Reported by Paolo Bonzini.
2592
2593 2010-09-08  Jim Meyering  <meyering@redhat.com>
2594
2595         test.sh: disqualify shells for which set -x corrupts stderr
2596         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
2597         and OpenBSD 4.7.  They make it so with "set -x", environment settings
2598         appear in stderr output.  For example, this command:
2599             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
2600         prints "P=1" on those two systems:
2601
2602 2010-09-08  Bruno Haible  <bruno@clisp.org>
2603
2604         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
2605         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
2606         commands, because some shells ignore redirections when there is an
2607         error in the command lookup.
2608         Reported by Eric Blake.
2609
2610 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
2611
2612         * lib/regex.h: Fix a mention of `regex_compile' (should be
2613         `re_compile_pattern').
2614         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
2615         (re_set_registers): Correct name of parameter in comment.
2616
2617         * doc/regex.texi: Add documentation for missing syntax flags.
2618         Remove commented-out documentation of defunct syntax option
2619         RE_NO_EMPTY_ALTS.
2620         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
2621         Add documentation of re_set_registers.
2622         Document trick to re-use a pattern buffer by setting fastmap manually.
2623         Update documentation of struct re_pattern_buffer per public members.
2624         Uncomment documentation of equivalence class operators and
2625         collating symbol operators, since they are now implemented,
2626         Explain leftmost-longest matching in relation to alternatives.
2627         Tidy documentation of substring matching.
2628         Remove POSIX documentation, which is done better in
2629         glibc, and refer the reader there. Keep BSD API documentation, as
2630         that is not readily available elsewhere.
2631
2632 2010-09-07  Eric Blake  <eblake@redhat.com>
2633
2634         getopt: handle POSIXLY_CORRECT set but not exported
2635         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
2636         export state of POSIXLY_CORRECT, due to bash set -o posix.
2637         Reported by Dustin J. Mitchell.
2638
2639 2010-09-05  Bruno Haible  <bruno@clisp.org>
2640
2641         gnulib-tool: Highlight the changed options.
2642         * gnulib-tool (func_usage): Display the --import, --add-import,
2643         --remove-import explanations in bold font.
2644
2645 2010-09-06  Karl Berry  <karl@gnu.org>
2646
2647         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
2648
2649 2010-09-05  Bruno Haible  <bruno@clisp.org>
2650
2651         uniwidth/width: Update comment.
2652         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
2653         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
2654
2655 2010-09-05  Bruno Haible  <bruno@clisp.org>
2656
2657         isinf, isnan: Relax license.
2658         * modules/isinf (License): Change from GPL to LGPL, with consent from
2659         Ben Pfaff.
2660         * modules/isnan (License): Likewise.
2661         Requested by Ludovic Courtès.
2662
2663 2010-09-04  Bruno Haible  <bruno@clisp.org>
2664
2665         gnulib-tool: Help migration from --import to --add-import or --update.
2666         * gnulib-tool: Emit a verbose error message when --import is used
2667         without any module name.
2668
2669 2010-09-04  Bruno Haible  <bruno@clisp.org>
2670
2671         Update doc about gnulib-tool.
2672         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
2673         'gnulib-tool --update' in more detail.
2674         Reported by Eric Blake.
2675
2676 2010-09-04  Bruno Haible  <bruno@clisp.org>
2677
2678         gnulib-tool: Change --import. New options --add/remove-import.
2679         * gnulib-tool: New options --add-import, --remove-import.
2680         (func_usage): Document them.
2681         (have_associative): Define always.
2682         (func_import): In import mode, don't merge the specified settings with
2683         the cached settings. Implement remove-import mode.
2684         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
2685         Explain when to use them versus --import.
2686         (Simple update): Use --add-import instead of --import.
2687         * NEWS: Mention the change.
2688
2689 2010-09-04  Bruno Haible  <bruno@clisp.org>
2690
2691         * doc/gnulib-tool.texi (Initial import): Update paragraph about
2692         separate gnulib.mk.
2693
2694 2010-09-04  Bruno Haible  <bruno@clisp.org>
2695
2696         gnulib-tool: Don't talk about CVS any more.
2697         * gnulib-tool (func_usage, func_import): Write "version control"
2698         instead of CVS.
2699
2700 2010-09-04  Jim Meyering  <meyering@redhat.com>
2701
2702         maint.mk: avoid obscure sc_copyright_check failure in coreutils
2703         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
2704         false positives (whose names may be ill-chosen) when searching
2705         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
2706         would cause a false-positive.
2707
2708         avoid coreutils "make distcheck" failure
2709         Coreutils tests with an absolute build directory name that contains
2710         a space.  Not quoting this directory name caused a failure.
2711         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
2712         * tests/test-vc-list-files-cvs.sh: Likewise.
2713
2714 2010-09-04  Bruno Haible  <bruno@clisp.org>
2715
2716         gnulib-tool: Avoid error when run in a package without Makefile.am.
2717         * gnulib-tool: When collecting the m4dirs in a package that does not
2718         have a Makefile.am, eliminate those directories that contain no
2719         gnulib-cache.m4. Fix expression that counts these directories.
2720
2721 2010-09-04  Bruno Haible  <bruno@clisp.org>
2722
2723         update-copyright test: Improve output when perl is missing or too old.
2724         * tests/test-update-copyright.sh: Move test of Perl version down after
2725         the test whether Perl exists. Provide an explanation relating Perl's
2726         error message to Automake's SKIP: message.
2727
2728 2010-09-04  Bruno Haible  <bruno@clisp.org>
2729
2730         Don't augment PATH in TESTS_ENVIRONMENT.
2731         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
2732         set abs_aux_dir instead of augmenting PATH.
2733         * modules/vc-list-files-tests (Makefile.am): Likewise.
2734         * tests/test-update-copyright.sh: Augment PATH here.
2735         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
2736         path_prepend_.
2737         * tests/test-vc-list-files-git.sh: Likewise.
2738
2739 2010-09-04  Jim Meyering  <meyering@redhat.com>
2740
2741         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
2742         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
2743
2744 2010-09-04  Bruno Haible  <bruno@clisp.org>
2745
2746         strdup: Fix compilation error in C++ mode.
2747         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
2748         the macro.
2749
2750 2010-09-04  Bruno Haible  <bruno@clisp.org>
2751
2752         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
2753         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
2754         macro into a function.
2755         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
2756
2757 2010-09-04  Bruno Haible  <bruno@clisp.org>
2758
2759         Set PATH_SEPARATOR the same way autoconf does.
2760         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
2761         the value of PATH_SEPARATOR the same way autoconf-generated configure
2762         scripts do.
2763         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
2764         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
2765
2766 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
2767
2768         Set PATH_SEPARATOR the same way autoconf does.
2769         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
2770         the same way autoconf-generated configure scripts do.
2771         * posix-modules: Likewise.
2772
2773 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
2774
2775         hash: fix safe_hasher const typo
2776         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
2777         const; otherwise, there is a type error later.
2778
2779 2010-09-02  Jim Meyering  <meyering@redhat.com>
2780
2781         test-update-copyright.sh: require perl 5.8.0
2782         * tests/test-update-copyright.sh: Require 5.8.0,
2783         which Tom G. Christensen has confirmed is adequate,
2784         while 5.6.1 is not.
2785
2786 2010-09-02  Eric Blake  <eblake@redhat.com>
2787
2788         tests: init.sh improvements for re-exec'ing with zsh
2789         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
2790         -vx through shell re-exec.
2791         Reported by Tom G. Christensen.
2792
2793         wctype: fix typo in previous commit
2794         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
2795         Reported by Ludovic Courtès.
2796
2797 2010-09-02  Jim Meyering  <meyering@redhat.com>
2798
2799         test-update-copyright.sh: skip test if Perl is too old
2800         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
2801         Reported by Tom G. Christensen.
2802
2803 2010-09-02  Bruno Haible  <bruno@clisp.org>
2804
2805         wctype: Avoid compilation error on IRIX 6.5.30.
2806         * lib/wctype.in.h (iswblank): Declare with a replacement if
2807         REPLACE_ISWBLANK is set.
2808         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
2809         declared. Set REPLACE_ISWBLANK.
2810         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
2811         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
2812         * doc/posix-headers/wctype.texi: Likewise.
2813         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2814
2815 2010-09-01  Bruno Haible  <bruno@clisp.org>
2816
2817         New module 'socketlib'.
2818         * modules/socketlib: New file.
2819         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
2820         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
2821         * modules/sockets (Depends-on): Add socketlib.
2822         Suggested by Sam Steingold <sds@gnu.org>.
2823
2824 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
2825
2826         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
2827
2828         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
2829         when one needs search access to a directory but not read access.
2830         On systems where it is available, it works in some cases where
2831         O_RDONLY does not, namely on directories that are searchable but
2832         not readable, and which need only to be searchable.  If O_SEARCH
2833         is not available, fall back to the traditional method of using
2834         O_RDONLY.
2835
2836         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
2837         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
2838         when opening a directory that needs only to be searchable.
2839         * lib/chdir-safer.c (chdir_no_follow): Likewise.
2840         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
2841         * lib/openat-proc.c (openat_proc_name): Likewise.
2842         * lib/openat.c (openat_needs_fchdir): Likewise.
2843         * lib/save-cwd.c (save_cwd): Likewise.
2844         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
2845
2846 2010-08-28  Bruno Haible  <bruno@clisp.org>
2847
2848         New module 'host-cpu-c-abi'.
2849         * modules/host-cpu-c-abi: New file.
2850         * m4/host-cpu-c-abi.m4: New file, based on part of
2851         clisp/src/m4/general.m4.
2852         Requested by Sam Steingold <sds@gnu.org>.
2853
2854 2010-08-31  Eric Blake  <eblake@redhat.com>
2855         and Jim Meyering  <meyering@redhat.com>
2856
2857         hash: factor, and guard against misbehaving hasher function
2858         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
2859         of table->hasher's return value.  Also protect against a hash value
2860         so large that adding it to table->bucket results in a NULL pointer.
2861         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
2862         Use it in place of open-coded check-and-abort.
2863
2864 2010-08-30  Bruno Haible  <bruno@clisp.org>
2865
2866         hash: silence spurious clang warning
2867         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
2868         Reported by Eric Blake.
2869
2870 2010-08-30  Eric Blake  <eblake@redhat.com>
2871
2872         strstr, memmem, strcasestr: avoid leaked shell message
2873         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
2874         FreeBSD.
2875         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
2876         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
2877
2878         tests: silence clang warning
2879         * tests/test-malloca.c (do_allocation): Avoid dead store.
2880
2881 2010-08-29  Bruno Haible  <bruno@clisp.org>
2882
2883         gettext: Fix recent mistake.
2884         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
2885
2886 2010-08-29  Bruno Haible  <bruno@clisp.org>
2887
2888         selinux-h: Offer a --without-selinux option.
2889         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
2890         --without-selinux was specified, skip all tests and define
2891         HAVE_SELINUX_SELINUX_H to 0.
2892         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
2893         set LIB_SELINUX to empty.
2894         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
2895         gl_LIBSELINUX. If --without-selinux was specified, replace
2896         selinux/context.h.
2897         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
2898
2899 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2900             Bruno Haible  <bruno@clisp.org>
2901
2902         Make the module 'realloc-gnu' work again on AIX and OSF/1.
2903         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
2904         of HAVE_REALLOC.
2905         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
2906         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
2907         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
2908         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
2909
2910 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2911             Bruno Haible  <bruno@clisp.org>
2912
2913         Make the module 'calloc-gnu' work again on AIX and OSF/1.
2914         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
2915         HAVE_CALLOC.
2916         * lib/xmalloc.c: Update accordingly.
2917         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
2918         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
2919         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
2920
2921 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2922             Bruno Haible  <bruno@clisp.org>
2923
2924         Make the module 'malloc-gnu' work again on AIX and OSF/1.
2925         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
2926         HAVE_MALLOC.
2927         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
2928         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
2929         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
2930
2931 2010-08-29  Bruno Haible  <bruno@clisp.org>
2932
2933         Update modules list.
2934         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
2935         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
2936         (String handling <string.h>): Add astrxfrm.
2937         (File system functions): Add readlinkat.
2938
2939 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2940
2941         Tests for module 'realloc-gnu'.
2942         * modules/realloc-gnu-tests: New file.
2943         * tests/test-realloc-gnu.c: New file.
2944
2945         Tests for module 'calloc-gnu'.
2946         * modules/calloc-gnu-tests: New file.
2947         * tests/test-calloc-gnu.c: New file.
2948
2949         Tests for module 'malloc-gnu'.
2950         * modules/malloc-gnu-tests: New file.
2951         * tests/test-malloc-gnu.c: New file.
2952
2953 2010-08-28  Bruno Haible  <bruno@clisp.org>
2954
2955         Rename module 'realloc' -> 'realloc-gnu'.
2956         * modules/realloc-gnu: New file, copied from modules/realloc.
2957         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
2958         obsolete.
2959         * modules/mgetgroups (Depends-on): Update.
2960         * doc/posix-functions/realloc.texi: Update.
2961         * NEWS: Mention the change.
2962
2963         Rename module 'calloc' -> 'calloc-gnu'.
2964         * modules/calloc-gnu: New file, copied from modules/calloc.
2965         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
2966         obsolete.
2967         * doc/posix-functions/calloc.texi: Update.
2968         * NEWS: Mention the change.
2969
2970         Rename module 'malloc' -> 'malloc-gnu'.
2971         * modules/malloc-gnu: New file, copied from modules/malloc.
2972         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
2973         obsolete.
2974         * modules/argp (Depends-on): Update.
2975         * modules/regex (Depends-on): Update.
2976         * doc/posix-functions/malloc.texi: Update.
2977         * NEWS: Mention the change.
2978
2979 2010-08-28  Eric Blake  <eblake@redhat.com>
2980
2981         pread, pwrite: add missing dependency
2982         * modules/pread (Depends-on): Add extensions.
2983         * modules/pwrite (Depends-on): Likewise.
2984
2985 2010-08-28  Bruno Haible  <bruno@clisp.org>
2986
2987         unistr/u*-strchr: Fix tests dependencies.
2988         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
2989         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
2990         Reported by Ian Beckwith <ianb@erislabs.net>.
2991
2992 2010-08-28  Bruno Haible  <bruno@clisp.org>
2993
2994         read-file: Don't occupy too much unused memory.
2995         * lib/read-file.c (fread_file): Shrink the buffer at the end.
2996
2997 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
2998             Eric Blake  <eblake@redhat.com>
2999             Bruno Haible  <bruno@clisp.org>
3000
3001         read-file: Avoid memory reallocations with regular files.
3002         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
3003         (fread_file): With regular files, use the remaining length as the
3004         initial buffer size.  Check against overflow.
3005         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
3006         sys_stat.
3007
3008 2010-08-28  Bruno Haible  <bruno@clisp.org>
3009
3010         ftello: Relax license.
3011         * modules/ftello (License): Relax to LGPLv2+.
3012         Reported by Eric Blake.
3013
3014 2010-08-28  Bruno Haible  <bruno@clisp.org>
3015
3016         Avoid relocwrapper link errors due to gnulib replacement functions.
3017         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
3018         function.
3019         Reported by Ben Pfaff <blp@cs.stanford.edu>.
3020
3021 2010-08-28  Bruno Haible  <bruno@clisp.org>
3022
3023         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
3024         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
3025         defined.
3026         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
3027         Suggested by Eric Blake.
3028
3029 2010-08-28  Bruno Haible  <bruno@clisp.org>
3030
3031         sys_socket, netdb: Ensure socklen_t gets defined.
3032         * modules/sys_socket (Depends-on): Add socklen.
3033         * modules/netdb (Depends-on): Likewise.
3034         * modules/getaddrinfo (Depends-on): Remove socklen.
3035         * modules/getsockopt (Depends-on): Likewise.
3036         * modules/setsockopt (Depends-on): Likewise.
3037         * tests/test-sys_socket.c: Check that socklen_t is defined.
3038         * tests/test-netdb.c: Likewise.
3039         * m4/socklen.m4: Update comments.
3040         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3041
3042 2010-08-27  Eric Blake  <eblake@redhat.com>
3043
3044         login_tty: add missing dependency
3045         * modules/login_tty (Depends-on): Add pty.
3046
3047 2010-08-26  Eric Blake  <eblake@redhat.com>
3048
3049         lib-symbol-versions: fix m4 quoting
3050         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
3051         format for AC_LINK_IFELSE.
3052
3053         glob: fix compile test
3054         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
3055
3056         btowc: fix missing file
3057         * modules/btowc (Files): Also ship locale-fr.m4.
3058
3059         lseek: fix link test
3060         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
3061         AC_LINK_IFELSE.
3062
3063         include_next: silence autoconf 2.68 warning
3064         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
3065         AC_COMPILE_IFELSE as special.
3066         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
3067         autoconf < 2.68.
3068
3069         acl: fix compilation test
3070         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
3071         AC_COMPILE_IFELSE.
3072
3073 2010-08-26  Bruno Haible  <bruno@clisp.org>
3074
3075         Modernize AC_TRY_RUN invocations.
3076         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
3077         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
3078         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
3079         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
3080         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
3081         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
3082         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
3083         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
3084         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
3085         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
3086         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
3087         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
3088         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
3089         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
3090         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
3091         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
3092         gl_MBRLEN_NUL_RETVAL): Likewise.
3093         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
3094         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
3095         Likewise.
3096         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
3097         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
3098         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
3099         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
3100         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
3101         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
3102         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
3103         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
3104         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
3105         Likewise.
3106         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
3107         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
3108         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
3109         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
3110         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
3111         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
3112         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
3113         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
3114         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
3115         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
3116
3117 2010-08-26  Bruno Haible  <bruno@clisp.org>
3118
3119         Modernize AC_TRY_LINK invocations.
3120         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
3121         AC_TRY_LINK.
3122         * m4/argp.m4 (gl_ARGP): Likewise.
3123         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
3124         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
3125         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
3126         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
3127         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
3128         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
3129         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
3130         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
3131         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
3132         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
3133         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
3134         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
3135         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
3136         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
3137         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
3138         * m4/hostent.m4 (gl_HOSTENT): Likewise.
3139         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
3140         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
3141         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
3142         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
3143         Likewise.
3144         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
3145         Likewise.
3146         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
3147         Likewise.
3148         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
3149         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
3150         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
3151         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
3152         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
3153         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
3154         * m4/servent.m4 (gl_SERVENT): Likewise.
3155         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
3156         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
3157         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
3158         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
3159         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
3160         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
3161         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
3162         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
3163         * modules/tsearch-tests (configure.ac): Likewise.
3164
3165 2010-08-26  Bruno Haible  <bruno@clisp.org>
3166
3167         Modernize AC_TRY_COMPILE invocations.
3168         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
3169         AC_TRY_COMPILE.
3170         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
3171         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
3172         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
3173         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
3174         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
3175         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
3176         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
3177         * m4/lock.m4 (gl_LOCK): Likewise.
3178         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
3179         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
3180         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
3181         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
3182         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
3183         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
3184         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
3185         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
3186         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
3187         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
3188         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
3189         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
3190         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
3191         extraneous semicolon.
3192
3193 2010-08-26  Jim Meyering  <meyering@redhat.com>
3194
3195         stat-time: relax license LGPL
3196         * modules/stat-time (License): Change from GPL to LGPL,
3197         with consent from all contributors, for use in libguile.
3198         Requested by Ludovic Courtès.
3199
3200 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
3201
3202         poll: return immediately on POLLHUP.
3203         * lib/poll.c (poll): Always set timeout before wait_timeout is
3204         computed.
3205
3206 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3207
3208         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
3209         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
3210         rmdir ("dir/.//"), unlinkat.
3211
3212 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
3213
3214         stdbool: avoid spurious failure with modern xlc
3215         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
3216
3217 2010-08-24  Bruno Haible  <bruno@clisp.org>
3218
3219         getloadavg: simplify code
3220         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
3221         gl_have_func. Update comments.
3222
3223 2010-08-24  Eric Blake  <eblake@redhat.com>
3224
3225         getloadavg: don't define SVR4 on cygwin
3226         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
3227         only define SVR4 when -lkvm is required.
3228         Reported by Yaakov Selkowitz.
3229
3230 2010-08-24  Bruno Haible  <bruno@clisp.org>
3231
3232         priv-set: fix comment
3233         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
3234
3235 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
3236
3237         priv-set: fix comments
3238         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
3239         to match code, as suggested by David Bartley in:
3240         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
3241
3242 2010-08-23  Eric Blake  <eblake@redhat.com>
3243
3244         stdbool: avoid rejecting clang
3245         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
3246         * tests/test-stdbool.c: Enable more tests if using the system
3247         <stdbool.h> instead of the gnulib replacement.
3248         (main): Move xlc bug test to a runtime test for all compilers.
3249         Reported by Anders Kaseorg.
3250
3251         argz: fix shell quoting issue
3252         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
3253         Reported by Charles Wilson.
3254
3255 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
3256             Erik Faye-Lund <kusmabite@gmail.com>
3257
3258         poll, select: handle ERROR_BROKEN_PIPE.
3259         * lib/poll.c (win32_compute_revents): Return POLLHUP when
3260         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
3261         * lib/select.c (win32_compute_revents): Do not mark a pipe
3262         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
3263
3264 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
3265
3266         fts: allow compilation with C++
3267         * lib/fts_.h: Specify extern "C" linkage with C++.
3268
3269 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3270
3271         Fix gnulib-tool sed script de-commentation for AIX sed.
3272         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
3273         sed.
3274
3275 2010-08-17  Eric Blake  <eblake@redhat.com>
3276
3277         test-stddef: test for (some) offsetof bugs
3278         * tests/test-stddef.c: Enhance test to ensure correct type of
3279         offsetof.
3280         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
3281         that we are not fixing at this time.
3282
3283 2010-08-15  Bruno Haible  <bruno@clisp.org>
3284
3285         stpncpy: Allow stpncpy to be defined as a macro.
3286         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
3287         if it's already correctly declared.
3288         * lib/string.in.h (stpncpy): Undefine before redefining.
3289         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
3290
3291 2010-08-14  Bruno Haible  <bruno@clisp.org>
3292
3293         Rename module 'memxfrm' to 'amemxfrm'.
3294         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
3295         (amemxfrm): Renamed from memxfrm.
3296         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
3297         (amemxfrm): Renamed from memxfrm.
3298         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
3299         * NEWS: Mention the change.
3300         * MODULES.html.sh (String handling <string.h>): Update.
3301         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
3302         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
3303         * lib/unicase/u16-casexfrm.c: Likewise.
3304         * lib/unicase/u32-casexfrm.c: Likewise.
3305         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
3306         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
3307         * lib/uninorm/u16-normxfrm.c: Likewise.
3308         * lib/uninorm/u32-normxfrm.c: Likewise.
3309         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
3310         memxfrm.
3311         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
3312         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
3313         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
3314         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
3315         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
3316         Suggested by Paul Eggert.
3317
3318 2010-08-14  Bruno Haible  <bruno@clisp.org>
3319
3320         Tests for module 'astrxfrm'.
3321         * modules/astrxfrm-tests: New file.
3322         * tests/test-astrxfrm.c: New file.
3323
3324         New module 'astrxfrm'.
3325         * lib/astrxfrm.h: New file.
3326         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
3327         * modules/astrxfrm: New file.
3328
3329 2010-08-14  Reuben Thomas <rrt@sc3d.org>
3330
3331         regex: Tweak doc.
3332         * doc/regex.texi (Overview): Don't mention regex.c.
3333         (GNU Regular Expression Compiling): Likewise.
3334         (Match-end-of-line Operator): Mention 'not_eol'.
3335
3336 2010-08-14  Brian Gough  <bjg@gnu.org>
3337             Bruno Haible  <bruno@clisp.org>
3338
3339         git-merge-changelog: add doc relating to use with bzr and hg.
3340         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
3341
3342 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
3343
3344         pthread: fix pthread.h creation for srcdir != builddir
3345         * modules/pthread (Makefile.am): Fix the rule to work also in a
3346         non-srcdir build.
3347
3348 2010-08-13  Karl Berry  <karl@gnu.org>
3349
3350         * doc/regex.texi (Predefined Syntaxes): @smallexample.
3351         * doc/posix-*/*: force line break before @url of POSIX
3352         specifications.
3353         Suggested by Werner Lemberg.
3354
3355 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
3356
3357         strtod: fix const diagnostic
3358         * lib/strtod.c (strtod): Don't assign const char * to char *,
3359         as this elicits a warning from GCC when warnings are enabled.
3360
3361 2010-08-10  Pádraig Brady <P@draigbrady.com>
3362         and Eric Blake  <eblake@redhat.com>
3363
3364         copy-acl: ignore ENOTSUP on HP-UX
3365         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
3366         so that it is available for HP-UX.
3367         * lib/copy-acl.c (qcopy_acl): Use it.
3368         Reported by Patrick M. Callahan.
3369
3370 2010-08-10  Eric Blake  <eblake@redhat.com>
3371
3372         open, chown: relax license
3373         * modules/open (License): Change to LGPLv2+, with consent by all
3374         authors, for use in augeas.
3375         * modules/chown (License): Likewise.
3376         * modules/lchown (Likewise): Likewise.
3377         Requested by Adam Stokes.
3378
3379 2010-08-09  Karl Berry  <karl@gnu.org>
3380
3381         * build-aux/ar-lib: new file, import from Automake.
3382         * config/srclist.txt: autocheck for updates.
3383
3384 2010-08-09  Eric Blake  <eblake@redhat.com>
3385
3386         readlinkat: adjust client modules
3387         * modules/areadlinkat (Depends-on): Use readlinkat, not
3388         symlinkat.
3389         * modules/areadlinkat-with-size (Depends-on): Likewise.
3390
3391         mknod: be more vocal about danger of running tests as root
3392         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
3393         root, since that is just asking for problems.
3394         Suggested by Bruno Haible, based on a report by Rainer Tammer.
3395
3396         readlinkat: split into its own module
3397         * modules/symlinkat: Split readlinkat...
3398         * modules/readlinkat: ...into separate module.
3399         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
3400         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
3401         * lib/symlinkat.c (readlinkat): Move...
3402         * lib/readlinkat.c: ...into new file.
3403         * modules/symlinkat-tests: Split readlinkat test...
3404         * modules/readlinkat-tests: ...into separate module.
3405         * tests/test-symlinkat.c: Split...
3406         * tests/test-readlinkat.c: ...into new file.
3407         * NEWS: Document the split.
3408         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
3409         * lib/unistd.in.h (readlinkat): Likewise.
3410         Suggested by Bruno Haible.
3411
3412 2010-08-08  Bruno Haible  <bruno@clisp.org>
3413
3414         memxfrm: Speed up.
3415         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
3416         that usually only one call to strxfrm is necessary for each string
3417         part.
3418         Reported by Paul Eggert <eggert@cs.ucla.edu>.
3419
3420 2010-08-07  Karl Berry  <karl@gnu.org>
3421
3422         * doc/posix-headers/limits.texi,
3423         * doc/posix-functions/malloc.texi,
3424         * doc/posix-functions/strsignal.texi: missing @item.
3425         * doc/ld-version-script.texi: spurious leading i.
3426         * doc/regex.texi (Interval Operators): no commas inside @var.
3427
3428 2010-08-01  Bruno Haible  <bruno@clisp.org>
3429
3430         Integrate the regex documentation.
3431         * doc/gnulib.texi: Define 'cn' index.
3432         (Regular expressions): New a chapter that includes regex.texi and
3433         regexprops-generic.texi.
3434         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
3435         syntax.
3436
3437         Whitespace cleanup.
3438         * doc/regex.texi: Remove trailing spaces.
3439
3440         Add regex documentation.
3441         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
3442         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
3443         Written by Kathy A. Hargreaves and Karl Berry.
3444
3445 2010-08-01  Bruno Haible  <bruno@clisp.org>
3446
3447         link: Update documentation.
3448         * doc/posix-functions/link.texi: Update regarding Solaris.
3449
3450 2010-07-31  Bruno Haible  <bruno@clisp.org>
3451
3452         Update modules list.
3453         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
3454         (String handling <string.h>): Add memcmp2, memxfrm.
3455         (Container data structures): Add xlist, xsublist, xoset.
3456         (Core language properties): Add alignof, unused-parameter.
3457         (Process control, Numeric conversion functions <stdlib.h>): Renamed
3458         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
3459         (Unibyte characters <ctype.h>): New section.
3460         (String handling <string.h>): New section.
3461         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
3462         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
3463         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
3464         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
3465         tan, tanh, tanl, y0, y1, yn.
3466         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
3467         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
3468         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
3469         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
3470         unlockpt, vdprintf, vdprintf-posix.
3471         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
3472         (File system functions): Add concat-filename, sys_file, sys_ioctl,
3473         xconcat-filename.
3474         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
3475         getdtablesize, pipe2, pipe2-safer.
3476         (Security): New section.
3477         (Networking functions): Add accept4.
3478         (Signal handling): Add sigpipe.
3479         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
3480         mbmemcasecoll.
3481         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
3482         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
3483         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
3484         pipe-filter-ii.
3485         (Misc): Add argp-version-etc, login_tty, parse-duration.
3486
3487 2010-07-31  Bruno Haible  <bruno@clisp.org>
3488
3489         Improve doc in MODULES.html.
3490         * modules/linkat (Description): Add the word "function".
3491         * modules/mkfifo (Description): Likewise.
3492         * modules/mknod (Description): Likewise.
3493         * modules/remove (Description): Likewise.
3494         * modules/renameat (Description): Likewise.
3495         * modules/stat (Description): Likewise.
3496         * modules/symlink (Description): Likewise.
3497         * modules/unlink (Description): Likewise.
3498
3499 2010-07-31  Bruno Haible  <bruno@clisp.org>
3500
3501         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
3502         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
3503         option --enable/disable-c++ instead of --enable/disable-cxx.
3504         * NEWS: Mention the change.
3505
3506 2010-07-31  Bruno Haible  <bruno@clisp.org>
3507
3508         readlink, areadlink: Relax test a bit.
3509         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
3510         alternative to ENOTDIR.
3511         * tests/test-areadlink.h (test_areadlink): Likewise.
3512         Reported by Rainer Tammer.
3513
3514 2010-07-31  Bruno Haible  <bruno@clisp.org>
3515
3516         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
3517         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
3518         character, perform the search using U_STRCHR.
3519         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
3520         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
3521         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
3522         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
3523         Suggested by Paolo Bonzini.
3524
3525 2010-07-31  Bruno Haible  <bruno@clisp.org>
3526
3527         unistr/u*-strstr: Fix dependencies.
3528         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
3529         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
3530         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
3531
3532 2010-07-31  Bruno Haible  <bruno@clisp.org>
3533
3534         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
3535         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
3536         the beginning of the loop.
3537         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
3538         cases in 'switch' statement.
3539
3540         unistr/u8-strchr: Fix several bugs.
3541         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
3542         the string. When not found, return NULL, not a pointer near the end.
3543
3544         More tests for unistr/u8-strchr.
3545         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
3546         that the function does not read past the first occurrence of the byte
3547         being searched.
3548         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
3549         * tests/unistr/test-u16-strchr.c (main): New function.
3550         * tests/unistr/test-u32-strchr.c (main): New function.
3551
3552 2010-07-31  Bruno Haible  <bruno@clisp.org>
3553
3554         posix-modules: Ignore backup files of documentation files.
3555         * posix-modules: grep only through files named *.texi.
3556
3557 2010-07-31  Bruno Haible  <bruno@clisp.org>
3558
3559         symlinkat: Fix documentation.
3560         * doc/posix-functions/readlinkat.texi: Fix module name.
3561
3562 2010-07-31  Bruno Haible  <bruno@clisp.org>
3563
3564         fchownat: Replace also when chown has the trailing slash bug.
3565         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
3566         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
3567         introduced on 2010-04-10.
3568         Reported by Rainer Tammer.
3569
3570 2010-07-31  Bruno Haible  <bruno@clisp.org>
3571
3572         linkat: Work around AIX 7.1 bug.
3573         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
3574         whether linkat handles trailing slash correctly. If not, replace linkat
3575         and define LINKAT_TRAILING_SLASH_BUG.
3576         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
3577         check whether (fd1,file1) points to a directory if file1 or file2 ends
3578         in a slash. Code taken from lib/link.c.
3579         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
3580         Reported by Rainer Tammer.
3581
3582 2010-07-31  Bruno Haible  <bruno@clisp.org>
3583
3584         Correctly determine whether pow is available in libc on AIX 7 with xlc.
3585         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
3586         This disables an xlc optimization that was causing wrong test results.
3587         Reported by Rainer Tammer.
3588
3589 2010-07-31  Bruno Haible  <bruno@clisp.org>
3590
3591         iconv: Work around AIX 6.1..7.1 bug.
3592         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
3593         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
3594         cross-compiling, guess no on all versions of AIX.
3595         Reported by Rainer Tammer.
3596
3597 2010-07-31  Bruno Haible  <bruno@clisp.org>
3598
3599         readlink: Relax test a bit.
3600         * tests/test-readlink.h (test_readlink): Allow different errno value
3601         when readlink is called with a file name that ends in / and refers to
3602         a file.
3603         Suggested by Eric Blake.
3604         Reported by Rainer Tammer.
3605
3606 2010-07-31  Bruno Haible  <bruno@clisp.org>
3607
3608         copysign: Does not require -lm on glibc systems.
3609         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
3610         gl_COMMON_DOUBLE_MATHFUNC.
3611         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
3612
3613 2010-07-31  Bruno Haible  <bruno@clisp.org>
3614
3615         duplocale: Work around AIX 7.1 bug.
3616         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
3617         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
3618         * lib/duplocale.c (rpl_duplocale): Update comment.
3619         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
3620         Reported by Rainer Tammer.
3621
3622 2010-07-30  Bruno Haible  <bruno@clisp.org>
3623
3624         dirfd: Avoid link error on AIX 7.1.
3625         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
3626         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
3627         exist, set REPLACE_DIRFD.
3628         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
3629         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
3630         * doc/posix-functions/dirfd.texi: Update.
3631         Reported by Rainer Tammer.
3632
3633 2010-07-30  Eric Blake  <eblake@redhat.com>
3634
3635         strtod: next round of AIX fixes
3636         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
3637         exponent.
3638         * tests/test-strtod.c (main): Enhance tests.
3639         * doc/posix-functions/strtod.texi (strtod): Document next bug.
3640         Reported by Rainer Tammer.
3641
3642         futimens: fix configure check
3643         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
3644         Reported by Bruno Haible.
3645
3646 2010-07-30  Bruno Haible  <bruno@clisp.org>
3647
3648         getline: Update regarding AIX.
3649         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
3650         Reported by Rainer Tammer.
3651
3652 2010-07-30  Bruno Haible  <bruno@clisp.org>
3653
3654         wcwidth: Drop replacement on AIX 7.
3655         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
3656         AIX 7.
3657         Reported by Rainer Tammer.
3658
3659 2010-07-30  Bruno Haible  <bruno@clisp.org>
3660
3661         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
3662         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
3663         a 'char *'.
3664         Reported by Rainer Tammer.
3665
3666 2010-07-30  Bruno Haible  <bruno@clisp.org>
3667
3668         unlink: Update regarding AIX.
3669         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
3670         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
3671         Reported by Rainer Tammer.
3672
3673 2010-07-30  Bruno Haible  <bruno@clisp.org>
3674
3675         symlink: Update regarding AIX.
3676         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
3677         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
3678         Reported by Rainer Tammer.
3679
3680 2010-07-30  Bruno Haible  <bruno@clisp.org>
3681
3682         strndup: Update regarding AIX.
3683         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
3684         AIX 7.
3685         Reported by Rainer Tammer.
3686
3687 2010-07-30  Bruno Haible  <bruno@clisp.org>
3688
3689         stat: Update regarding AIX.
3690         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
3691         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
3692         Reported by Rainer Tammer.
3693
3694 2010-07-30  Bruno Haible  <bruno@clisp.org>
3695
3696         truncl: Fix autoconf test.
3697         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
3698         whether truncl works.
3699         Reported by Rainer Tammer.
3700
3701 2010-07-30  Bruno Haible  <bruno@clisp.org>
3702
3703         round: Update regarding AIX.
3704         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
3705         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
3706         Reported by Rainer Tammer.
3707
3708 2010-07-30  Bruno Haible  <bruno@clisp.org>
3709
3710         rename: Update regarding AIX.
3711         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
3712         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
3713         Reported by Rainer Tammer.
3714
3715 2010-07-30  Bruno Haible  <bruno@clisp.org>
3716
3717         printf.m4: Update regarding AIX.
3718         * m4/printf.m4: Update comments regarding AIX.
3719         Reported by Rainer Tammer.
3720
3721 2010-07-30  Bruno Haible  <bruno@clisp.org>
3722
3723         iconv: Update regarding AIX.
3724         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
3725         AIX 7.
3726         Reported by Rainer Tammer.
3727
3728 2010-07-30  Bruno Haible  <bruno@clisp.org>
3729
3730         getopt: Update regarding AIX.
3731         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
3732         no on AIX.
3733         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
3734         Reported by Rainer Tammer.
3735
3736 2010-07-30  Bruno Haible  <bruno@clisp.org>
3737
3738         ldexpl; Update regarding AIX.
3739         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
3740         on AIX 7.
3741         Reported by Rainer Tammer.
3742
3743 2010-07-30  Bruno Haible  <bruno@clisp.org>
3744
3745         frexpl: Update regarding AIX.
3746         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
3747         on AIX 7.
3748         Reported by Rainer Tammer.
3749
3750 2010-07-30  Bruno Haible  <bruno@clisp.org>
3751
3752         open, fopen: Update regarding AIX.
3753         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
3754         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
3755         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
3756         * doc/posix-functions/fopen.texi: Likewise.
3757         Reported by Rainer Tammer.
3758
3759 2010-07-30  Bruno Haible  <bruno@clisp.org>
3760
3761         chown: Update doc regarding AIX.
3762         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
3763         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
3764         Reported by Rainer Tammer.
3765
3766 2010-07-30  Eric Blake  <eblake@redhat.com>
3767
3768         strtod: fix bug in replacement function on AIX
3769         * lib/strtod.c (strtod): Special case broken "0x" parse in
3770         underlying strtod.
3771         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
3772         * doc/posix-functions/strtod.texi (strtod): Likewise.
3773         Reported by Rainer Tammer.
3774
3775 2010-07-30  Bruno Haible  <bruno@clisp.org>
3776
3777         mbrlen: Fix cross-compilation guess for AIX.
3778         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
3779         guess. Leftover from 2008-12-22.
3780
3781 2010-07-30  Bruno Haible  <bruno@clisp.org>
3782
3783         mbrtowc: Fix cross-compilation guess for AIX.
3784         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
3785         guess. Leftover from 2008-12-21.
3786
3787 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
3788
3789         init.sh: work around trap limitation of some shells
3790         * tests/init.sh (setup_): Move exit trap outside of shell function.
3791
3792 2010-07-29  Eric Blake  <eblake@redhat.com>
3793
3794         strtod: aid debugging
3795         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
3796         understanding why strtod is rejected.
3797
3798 2010-07-28  Bruno Haible  <bruno@clisp.org>
3799
3800         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
3801         * lib/unistr/u8-chr.c: Include <string.h>.
3802         * tests/unistr/test-u8-chr.c: Likewise.
3803         * tests/unistr/test-u16-chr.c: Likewise.
3804         * tests/unistr/test-u32-chr.c: Likewise.
3805         * tests/unistr/test-u8-strchr.c: Likewise.
3806         * tests/unistr/test-u16-strchr.c: Likewise.
3807         * tests/unistr/test-u32-strchr.c: Likewise.
3808         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
3809         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
3810         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
3811         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
3812
3813 2010-07-28  Bruno Haible  <bruno@clisp.org>
3814
3815         Use spaces for indentation, not tabs.
3816         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
3817
3818 2010-07-27  Bruno Haible  <bruno@clisp.org>
3819
3820         mbspcasecmp: Fix function specification.
3821         * lib/string.in.h (mbspcasecmp): Fix specification comment.
3822         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
3823         Reported by Eric Blake <eblake@redhat.com>.
3824
3825 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
3826
3827         timespec: use cast and not conditional, as truncation isn't possible
3828         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
3829         instead of a conditional.  Comment about the situation in more detail.
3830         This undoes most of the 2009-10-29 patch.
3831
3832 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
3833
3834         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
3835         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
3836         * lib/unistr/u8-strchr.c: Likewise.
3837         * modules/unistr/u8-chr: Depend on memchr.
3838
3839         unistr/u*-strchr: add tests
3840         * modules/unistr/u8-strchr-tests: New file.
3841         * modules/unistr/u16-strchr-tests: New file.
3842         * modules/unistr/u32-strchr-tests: New file.
3843         * tests/unistr/test-strchr.h: New file.
3844         * tests/unistr/test-u8-strchr.c: New file.
3845         * tests/unistr/test-u16-strchr.c: New file.
3846         * tests/unistr/test-u32-strchr.c: New file.
3847
3848         unistr/u*-chr: test multibyte sequences more
3849         * tests/unistr/test-chr.h: Do complete testing of the characters in the
3850         test vector.
3851         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
3852         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
3853         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
3854
3855         unistr/u*-chr: test multibyte sequences
3856         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
3857
3858         unistr/u*-chr: prepare for multibyte tests
3859         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
3860         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
3861         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
3862         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
3863         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
3864         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
3865
3866 2010-07-18  Bruno Haible  <bruno@clisp.org>
3867
3868         unistr/u8-strchr: Optimize non-ASCII argument case.
3869         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
3870         because the first byte often matches anyway.
3871         Reported by Pádraig Brady <P@draigbrady.com>.
3872
3873 2010-07-15  Karl Berry  <karl@gnu.org>
3874
3875         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
3876
3877 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
3878
3879         getcwd: on Solaris, work better if ancestors are inaccessible
3880         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
3881         buffer and size, try again with a large buffer.  This works better
3882         on Solaris, since its getcwd succeeds even if the path to the root
3883         is inaccessible, and this is helpful in common cases such as .zfs
3884         hidden directories.  Problem reported by J Chapman Flack in
3885         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
3886         Use system getcwd if it's declared, not merely if it's partly
3887         working; use the partly-working test only to avoid needless effort
3888         if the system getcwd fails.
3889         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
3890         comment that was already obsolete and is now even more obsolete.
3891         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
3892         now might call strdup.
3893
3894 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
3895
3896         pthread: Add enough so that coreutils/src/sort.c compiles.
3897         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
3898         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
3899         gnulib. Include <sched.h> and <time.h>, as per POSIX.
3900         Include <sys/types.h>, in case it defines pthread_t.
3901         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
3902         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
3903         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
3904         (pthread_rwlockattr_t, pthread_spinlock_t):
3905         New typedefs, if HAVE_PTHREAD_T is not defined.
3906         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
3907         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
3908         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
3909         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
3910         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
3911         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
3912         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
3913         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
3914         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
3915         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
3916         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
3917         New macros.
3918         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
3919         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
3920         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
3921         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
3922         (pthread_spin_unlock): New dummy functions.
3923         (pthread_create): Return EAGAIN; don't set errno.
3924         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
3925         require AC_C_INLINE.
3926         * modules/pthread (Depends-on): Add sched, time.
3927         (pthread.h): Use AM_V_GEN.
3928
3929 2010-07-13  Bruno Haible  <bruno@clisp.org>
3930
3931         striconveh: Don't malloc memory if the result buffer is sufficient.
3932         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
3933         buffer if its size is sufficient.
3934         Reported by Ludovic Courtès <ludo@gnu.org>.
3935
3936 2010-07-13  Bruno Haible  <bruno@clisp.org>
3937
3938         strtod: Add safety check.
3939         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
3940
3941 2010-07-12  Bruno Haible  <bruno@clisp.org>
3942
3943         Unify tests that set gl_cv_func_ldexpl_no_libm.
3944         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
3945         gl_FUNC_LDEXPL.
3946         (gl_FUNC_LDEXPL): Invoke it.
3947         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
3948
3949 2010-07-12  Bruno Haible  <bruno@clisp.org>
3950
3951         Unify tests that set gl_cv_func_ldexp_no_libm.
3952         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
3953         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
3954         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
3955         (configure.ac): Simply invoke gl_FUNC_LDEXP.
3956         * modules/strtod (Files): Add m4/ldexp.m4.
3957
3958 2010-07-12  Bruno Haible  <bruno@clisp.org>
3959
3960         Unify tests that set gl_cv_func_frexpl_no_libm.
3961         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
3962         gl_FUNC_FREXPL_NO_LIBM.
3963         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
3964         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
3965
3966 2010-07-12  Bruno Haible  <bruno@clisp.org>
3967
3968         Unify tests that set gl_cv_func_frexp_no_libm.
3969         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
3970         gl_FUNC_FREXP_NO_LIBM.
3971         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
3972         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
3973
3974 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
3975
3976         memcoll: clarify sizes versus lengths, document better, and tweak perf
3977         * lib/memcoll.c (strcoll_loop, memcoll0):
3978         Improve quality of descriptive comments.  Name variables
3979         consistently as to whether they are lengths (which do not include
3980         terminating null) versus sizes (which do).
3981         * lib/xmemcoll.c (xmemcoll0): Likewise.
3982         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
3983         returned when s1size == 0; this is easier to compile and saves
3984         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
3985
3986 2010-07-12  Bruno Haible  <bruno@clisp.org>
3987
3988         Tests for module '_Exit'.
3989         * modules/_Exit-tests: New file.
3990         * tests/test-_Exit.sh: New file.
3991         * tests/test-_Exit.c: New file.
3992
3993         New module '_Exit'.
3994         * lib/stdlib.in.h (__attribute__): New macro.
3995         (_Exit): New declaration.
3996         * lib/_Exit.c: New file.
3997         * m4/_Exit.m4: New file.
3998         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
3999         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
4000         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
4001         * modules/_Exit: New file.
4002         * tests/test-stdlib-c++.cc (_Exit): Check signature.
4003         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
4004
4005 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
4006
4007         strtod: make it more-accurate typically, and don't require libm
4008         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
4009         Include limits.h.  Don't include string.h.
4010         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
4011         (locale_isspace): New function, so that no casts are needed to
4012         check whether *s is a space.
4013         (ldexp): Provide an unused dummy if not available.
4014         (scale_radix_exp, parse_number, underlying_strtod): New functions.
4015         (strtod): Use them.  This implementation prefers to use the
4016         underlying strtod if available, falling back on our own code
4017         only to fix known bugs.  This is more likely to produce an
4018         accurate result.  Also, it avoids the use of libm functions.
4019         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
4020         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
4021         was absent, but it caused a test failure with coreutils.
4022         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
4023         with libm.
4024         * modules/strtod (Makefile.am, Link): libm is no longer needed.
4025         * modules/strtod-tests (Makefile.am): Likewise.
4026
4027 2010-07-11  Pádraig Brady  <P@draigBrady.com>
4028             Bruno Haible  <bruno@clisp.org>
4029
4030         unistr/u8-strchr: Optimize ASCII argument case.
4031         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
4032
4033 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
4034
4035         (x)memcoll: minor tweaks
4036         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
4037         is after the type that it qualifies.
4038         (memcoll0): Likewise.
4039         * lib/memcoll.h (memcoll0): Likewise.
4040         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
4041         * lib/xmemcoll.h (xmemcoll0): Likewise.
4042         * lib/memcoll.c (memcoll0): Correct the comment.  This function
4043         differs from memcoll in that the NUL byte is part of the argument.
4044         Omit the abort-checks, as performance is a real issue here.  Plus,
4045         the checks were wrong anyway (an off-by-one error).  Omit local
4046         variable 'diff', as it's a bit clearer that way.
4047         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
4048         no longer needed.
4049
4050 2010-07-08  Chen Guo <chenguo4@yahoo.com>
4051
4052         (x)memcoll: speedup when input is known to be NUL delimited
4053         * lib/memcoll.c: Include stdlib.
4054         (memcoll0) New function.
4055         (strcoll_loop) New function, refactored for use in both memcoll
4056         and memcoll0.
4057         * lib/memcoll.h: Add prototype for memcoll0.
4058         * lib/xmemcoll.c: (xmemcoll0) New function.
4059         (collate_error) New function, refactored for use in both xmemcoll
4060         and xmemcoll0.
4061         * lib/xmemcoll.h: Add prototype for xmemcoll0.
4062         * m4/memcoll.m4: add inline invocation.
4063
4064 2010-07-06  Pádraig Brady  <P@draigBrady.com>
4065
4066         * build-aux/bootstrap: Remove any local translations
4067         from the translation project synchronization directory,
4068         so that local only translations are not distributed.
4069
4070 2010-07-04  Bruno Haible  <bruno@clisp.org>
4071
4072         fsusage: Clarify which code applies to which platforms.
4073         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
4074         platform.
4075         * lib/fsusage.c (get_fs_usage): Likewise.
4076
4077 2010-07-04  Bruno Haible  <bruno@clisp.org>
4078
4079         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
4080         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
4081         Reported by Martin Lambers <marlam@marlam.de>.
4082
4083 2010-07-04  Jim Meyering  <meyering@redhat.com>
4084
4085         hash: once again explicitly disallow insertion of NULL
4086         * lib/hash.c (hash_insert0): Reinstate just-removed test:
4087         inserting a NULL pointer cannot work with these functions.
4088         Add a comment with details.
4089         This reverts part of the 2010-07-01 commit, 5bef1a35
4090         "hash: extend module to deal with non-pointer keys".
4091
4092 2010-07-01  Bruno Haible  <bruno@clisp.org>
4093
4094         stdbool: Update doc.
4095         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
4096         Info from Christian Weisgerber <naddy@mips.inka.de>.
4097
4098 2010-07-01  Jim Meyering  <meyering@redhat.com>
4099
4100         hash: extend module to deal with non-pointer keys
4101         * lib/hash.c (hash_insert0): New interface, much like hash_insert
4102         but that allows insertion of non-pointer entries.
4103         Do not disallow an ENTRY value of NULL.
4104         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
4105         * lib/hash.h (hash_insert0): Declare.
4106
4107 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
4108
4109         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
4110         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
4111         not present (i.e. with autoconf 2.59 and when using gettextize, not
4112         gnulib), require AC_GNU_SOURCE instead.
4113
4114 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
4115
4116         idpriv-drop: Fix tests.
4117         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
4118         not to the test-idpriv-droptemp program.
4119
4120 2010-06-29  Bruno Haible  <bruno@clisp.org>
4121
4122         string: Fix syntax error with g++ 2.96.
4123         * lib/string.in.h (__pure__): Remove definition.
4124         (_GL_ATTRIBUTE_PURE): New macro.
4125         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
4126         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
4127         Reported by Christian Weisgerber <naddy@mips.inka.de>.
4128
4129 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
4130
4131         unitypes: Fix bug introduced on 2010-05-18.
4132         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
4133
4134 2010-06-22  Eric Blake  <eblake@redhat.com>
4135
4136         memmem: slight optimization
4137         * lib/str-two-way.h (critical_factorization): Update comments.
4138         Reduce work during factorization phase.
4139         Reported by Carlos Bueno <carlos@bueno.org>.
4140
4141 2010-06-21  Bruno Haible  <bruno@clisp.org>
4142
4143         Fix HAVE_CALLOC_POSIX misnomer.
4144         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
4145         !HAVE_CALLOC_POSIX.
4146         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
4147         HAVE_CALLOC_POSIX.
4148         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
4149         instead of HAVE_CALLOC_POSIX.
4150         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
4151         HAVE_CALLOC_POSIX.
4152
4153         Use modern idiom for calloc() replacement.
4154         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
4155         AC_FUNC_CALLOC.
4156         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
4157         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
4158         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
4159         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
4160         (gl_REPLACE_CALLOC): New macro.
4161
4162 2010-06-21  Bruno Haible  <bruno@clisp.org>
4163
4164         Fix HAVE_REALLOC_POSIX misnomer.
4165         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
4166         !HAVE_REALLOC_POSIX.
4167         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
4168         HAVE_REALLOC_POSIX.
4169         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
4170         instead of HAVE_REALLOC_POSIX.
4171         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
4172         HAVE_REALLOC_POSIX.
4173
4174         Use modern idiom for realloc() replacement.
4175         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
4176         AC_FUNC_REALLOC.
4177         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
4178         Autoconf's AC_FUNC_REALLOC.
4179         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
4180         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
4181         (gl_REPLACE_REALLOC): New macro.
4182         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
4183
4184 2010-06-21  Bruno Haible  <bruno@clisp.org>
4185
4186         Fix HAVE_MALLOC_POSIX misnomer.
4187         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
4188         !HAVE_MALLOC_POSIX.
4189         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
4190         HAVE_MALLOC_POSIX.
4191         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
4192         instead of HAVE_MALLOC_POSIX.
4193         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
4194         HAVE_MALLOC_POSIX.
4195
4196         Use modern idiom for malloc() replacement.
4197         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
4198         AC_FUNC_MALLOC.
4199         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
4200         Autoconf's AC_FUNC_MALLOC.
4201         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
4202         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
4203         (gl_REPLACE_MALLOC): New macro.
4204         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
4205
4206 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
4207
4208         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
4209         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
4210         This macro takes 3 arguments, not 4.
4211
4212 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
4213
4214         ipv6: fix detection under mingw
4215         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
4216         in6_addr.
4217
4218 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
4219
4220         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
4221         that strtod() works when cross-compiling to a glibc version known
4222         to work.
4223
4224 2010-06-15  Bruno Haible  <bruno@clisp.org>
4225
4226         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
4227
4228 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
4229
4230         select: Correct timeout.
4231         * lib/select.c (rpl_select): Compute wait_timeout correctly.
4232
4233 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
4234
4235         git-version-gen: init shell var to avoid env var influence
4236         * build-aux/git-version-gen (v): Init shell var to empty.
4237
4238 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
4239
4240         priv-set: Don't assume that priv.h exists merely because getppriv does.
4241         See Jan Andersen's bug report about AIX 5L in
4242         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
4243         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
4244         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
4245         * lib/priv-set.h: Likewise.
4246         * tests/test-priv-set.c: Likewise.
4247
4248 2010-06-13  Bruno Haible  <bruno@clisp.org>
4249
4250         relocatable: Make it easier to test whether to install wrappers.
4251         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
4252         RELOCATABLE_VIA_WRAPPER.
4253
4254 2010-06-13  Bruno Haible  <bruno@clisp.org>
4255
4256         gnulib-tool: Display specified modules and dependencies differently.
4257         * gnulib-tool (func_show_module_list): New function.
4258         (func_import, func_create_testdir): Invoke it.
4259         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
4260
4261 2010-06-13  Bruno Haible  <bruno@clisp.org>
4262
4263         gnulib-tool: Align code of func_import and func_create_testdir.
4264         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
4265         specified_modules.
4266
4267 2010-06-12  Jim Meyering  <meyering@redhat.com>
4268
4269         test-inttostr: avoid spurious failure on Solaris 9
4270         * tests/test-inttostr.c (main): Skip the test when snprintf fails
4271         to accept "%ju".  Reported by Bruno Haible.
4272
4273 2010-06-11  Jim Meyering  <meyering@redhat.com>
4274
4275         test-sys_socket: mark variables as used more readably
4276         * tests/test-sys_socket.c (main): Mark otherwise unused variables
4277         as "used" explicitly via (void) statement casts.  This is more
4278         readable than using them in an artificial return expression.
4279         Suggestion from Bruno Haible.
4280
4281 2010-06-11  Bruno Haible  <bruno@clisp.org>
4282
4283         Avoid some more warnings from "gcc -Wwrite-strings".
4284         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
4285         to 'const char *'.
4286         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
4287         * tests/test-c-strcasestr.c (main): Likewise.
4288         * tests/test-mbscasestr1.c (main): Likewise.
4289         * tests/test-mbscasestr2.c (main): Likewise.
4290         * tests/test-memmem.c (main): Likewise.
4291         * tests/test-strstr.c (main): Likewise.
4292         * tests/test-strcasestr.c (main): Likewise.
4293
4294 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4295
4296         init.sh: change framework_failure_ to fail with status 99, not 1
4297         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
4298         automake's parallel-tests rule that this is an unexpected failure,
4299         even if the test is listed in XFAIL_TESTS.
4300
4301 2010-06-11  Jim Meyering  <meyering@redhat.com>
4302
4303         test-inttostr: avoid warnings about 4-6KB literal strings
4304         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
4305         Include "macros.h", for its definition of ASSERT.
4306         (CK): s/assert/ASSERT/
4307         * modules/inttostr-tests (Files): Add macros.h.
4308
4309         init.sh: don't use $ME_ or skip_ before they are defined
4310         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
4311         their first uses.  Also hoist their companions: warn_, fail_,
4312         framework_failure_, $stderr_fileno.  Prompted by a patch from
4313         Stefano Lattarini.
4314
4315         test-sys_socket: avoid set-but-not-used warnings from gcc
4316         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
4317         avoid warning about set-but-not-used variables.
4318
4319         test-xvasprintf: avoid 'const' discard warnings
4320         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
4321         "const" when assigning from literal strings.
4322         (test_xasprintf): Add "void" in function argument list to placate
4323         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
4324
4325         tests: avoid compilation warnings in argmatch and exclude tests...
4326         in packages that define ARGMATCH_DIE_DECL, like coreutils.
4327         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
4328         Since it always exits, declare with the "noreturn" attribute.
4329         * tests/test-argmatch.c: Likewise.
4330
4331         tests: avoid 'const' discard warnings in mbsstr tests
4332         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
4333         * tests/test-mbsstr2.c (main): Likewise.
4334
4335         test-verify: avoid warning from gcc's -Wmissing-declarations
4336         * tests/test-verify.c (function): Declare to be static.
4337
4338         test-inttostr.c: include <string.h> for use of strcmp
4339         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
4340
4341         test-linkat: avoid failed assertion on "other" architectures
4342         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
4343         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
4344         sparc: https://bugs.launchpad.net/bugs/591968
4345
4346 2010-06-11  Jim Meyering  <meyering@redhat.com>
4347
4348         printf.m4: avoid autoconf's "Expanded Before Required" warning
4349         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
4350         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
4351         autoconf warning.
4352
4353 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
4354
4355         Replacement header templates are now named with ".in", not "_".
4356         * doc/gnulib-intro.texi: Correct.
4357
4358 2010-06-10  Jim Meyering  <meyering@redhat.com>
4359
4360         inttostr-tests: depend on snprintf, not snprintf-posix
4361         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
4362         snprintf-posix, to avoid this aclocal failure:
4363           missing file gnulib-tests/vasnprintf.c
4364           configure.ac:45: error: expected source file, required through \
4365           AC_LIBSOURCES, not found
4366
4367 2010-06-10  Jim Meyering  <meyering@redhat.com>
4368
4369         inttostr: add a new function, inttostr, and tests
4370         The namesake function was not available.  The existence of the
4371         template file, inttostr.c makes its addition nontrivial.
4372         * lib/anytostr.c: Rename from inttostr.c.
4373         (anytostr): Rename from inttostr.
4374         * lib/inttostr.c: New file.
4375         * modules/inttostr (Files): Add anytostr.c.
4376         (Makefile.am): Set lib_SOURCES instead of ...
4377         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
4378         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
4379         * lib/offtostr.c: Likewise.
4380         * lib/uinttostr.c: Likewise.
4381         * lib/umaxtostr.c: Likewise.
4382         * modules/inttostr-tests: New file.
4383         * tests/test-inttostr.c: New file.  Test these functions.
4384
4385 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
4386             Bruno Haible  <bruno@clisp.org>
4387
4388         Add "Extending Gnulib" chapter to manual.
4389         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
4390         chapter.
4391         (Extending Gnulib): New chapter.
4392         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
4393         chapter.
4394
4395 2010-06-09  Bruno Haible  <bruno@clisp.org>
4396
4397         Avoid relocwrapper link errors due to gnulib replacement functions.
4398         * lib/areadlink.c: Use the system's malloc, realloc functions.
4399         (areadlink): Set errno to ENOMEM explicitly.
4400         * modules/areadlink (Depends-on): Remove malloc-posix.
4401         Reported by Ben Pfaff <blp@cs.stanford.edu>.
4402
4403 2010-06-09  Bruno Haible  <bruno@clisp.org>
4404
4405         Avoid relocwrapper link errors due to gnulib replacement functions.
4406         * lib/canonicalize-lgpl.c: Use the system's malloc function.
4407         * lib/malloca.c: Likewise.
4408         * lib/relocatable.c: Likewise.
4409         * lib/progreloc.c: Use the system's malloc, sprintf functions.
4410         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
4411         * lib/setenv.c: Use the system's malloc, realloc functions.
4412         * lib/strerror.c: Use the system's sprintf function.
4413         Reported by Ben Pfaff <blp@cs.stanford.edu>.
4414
4415 2010-06-04  Bruno Haible  <bruno@clisp.org>
4416
4417         Prefer documented low-level autoconf macro names.
4418         * m4/lib-link.m4: Use m4_translit instead of translit.
4419         * m4/environ.m4: Likewise.
4420         * m4/mathfunc.m4: Likewise.
4421         * m4/onceonly.m4: Likewise.
4422         * m4/stdint.m4: Likewise.
4423         Suggested by Eric Blake.
4424
4425 2010-06-04  Martin Lambers  <marlam@marlam.de>
4426             Bruno Haible  <bruno@clisp.org>
4427
4428         havelib: Allow library names with '+' characters.
4429         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
4430         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
4431
4432 2010-06-09  Bruno Haible  <bruno@clisp.org>
4433
4434         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
4435         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
4436         realloc failed.
4437
4438 2010-06-08  Peter Simons  <simons@cryp.to>
4439
4440         maint.mk: make the news-check rule more configurable
4441         * top/maint.mk (news-check-lines-spec) New variable.
4442         (news-check): Use "sed -n 1,10p" in place of "head".
4443
4444 2010-06-07  Jim Meyering  <meyering@redhat.com>
4445
4446         do-release-commit-and-tag: fix typo in --help
4447         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
4448
4449         regex: avoid new dead-code warning with gcc-4.6.0
4450         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
4451         if-block containing a while-loop.  It's been unused for at least
4452         5 years.
4453
4454 2010-06-05  Bruno Haible  <bruno@clisp.org>
4455
4456         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
4457         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
4458
4459 2010-06-04  Bruno Haible  <bruno@clisp.org>
4460
4461         Update to GNU gettext 0.18.1.
4462         * modules/gettext (configure.ac): Require gettext infrastructure from
4463         version 0.18.1.
4464
4465 2010-06-03  Bruno Haible  <bruno@clisp.org>
4466
4467         Don't use AC_LIBOBJ with file names in subdirectories.
4468         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
4469         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
4470         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
4471         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
4472         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
4473         gl_LIBUNISTRING_LIBSOURCE.
4474         (Makefile.am): Augment lib_SOURCES here, conditionally.
4475         * NEWS: Drop requirement for Automake option 'subdir-objects'.
4476
4477 2010-06-03  Bruno Haible  <bruno@clisp.org>
4478
4479         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
4480         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
4481         expansion does not end with a newline.
4482         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
4483         unnecessary newline.
4484
4485 2010-06-03  Bruno Haible  <bruno@clisp.org>
4486
4487         Reduce dependencies.
4488         * tests/test-quotearg.h: New file, extracted from
4489         tests/test-quotearg.c.
4490         * tests/test-quotearg-simple.c: New file, extracted from
4491         tests/test-quotearg.c.
4492         * tests/test-quotearg.c: Don't include <ctype.h>.
4493         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
4494         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
4495         use_quote_double_quotes, use_quotearg_colon): Moved to
4496         tests/test-quotearg.h.
4497         (results_g, flag_results, custom_quotes, custom_results): Moved
4498         to tests/test-quotearg-simple.c.
4499         (main): Moved the part that does not depend on gettext to
4500         tests/test-quotearg-simple.c. Return 77 if the test cannot be
4501         performed.
4502         * modules/quotearg-simple: New file.
4503         * modules/quotearg-simple-tests: New file.
4504         * modules/quotearg (Depends-on): Add quotearg-simple.
4505         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
4506         (Files): Add tests/test-quotearg.h.
4507         Reported by Paolo Bonzini.
4508
4509 2010-06-03  Bruno Haible  <bruno@clisp.org>
4510
4511         Reduce dependencies.
4512         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
4513
4514 2010-06-03  Bruno Haible  <bruno@clisp.org>
4515
4516         time: Undefine more broken macros.
4517         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
4518         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
4519         Reported by Eric Blake.
4520
4521 2010-06-03  Bruno Haible  <bruno@clisp.org>
4522
4523         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
4524         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
4525         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
4526         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
4527         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
4528         Reported by Ludovic Courtès <ludo@gnu.org>.
4529
4530 2010-06-02  Eric Blake  <eblake@redhat.com>
4531
4532         time: work with mingw + pthreads-win32 library
4533         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
4534         if timespec is defined only in pthread.h.
4535         * modules/time (Makefile.am): Substitute it.
4536         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
4537         <pthread.h>, when needed.
4538         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
4539         from the library.
4540
4541 2010-05-31  Bruno Haible  <bruno@clisp.org>
4542
4543         Avoid expanding two macros in the wrong order.
4544         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
4545         gl_LIBUNISTRING if it is defined.
4546         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
4547         autoconf >= 2.64.
4548         Reported by Ludovic Courtès <ludo@gnu.org>.
4549
4550 2010-05-27  Jim Meyering  <meyering@redhat.com>
4551
4552         maint.mk: also prohibit "#undef" of always-defined symbols
4553         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
4554         Allow more than one space before the symbol name.
4555         (sc_prohibit_always-defined_macros): Use grep's -E, now that
4556         the regexp uses alternation.
4557
4558 2010-05-26  Eric Blake  <eblake@redhat.com>
4559
4560         maint.mk: avoid echo -e
4561         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
4562         Convert all uses of echo -* to printf.
4563         Reported by Matthias Bolte.
4564
4565 2010-05-25  Bruno Haible  <bruno@clisp.org>
4566
4567         Update to GNU gettext 0.18, part 2.
4568         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
4569         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
4570
4571 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4572
4573         Add missing include in test-pwrite.c.
4574         * tests/test-pwrite.c: Include string.h, for strcmp.
4575
4576 2010-05-24  Bruno Haible  <bruno@clisp.org>
4577
4578         * NEWS: Mention requirement for Automake option 'subdir-objects'.
4579
4580 2010-05-24  Bruno Haible  <bruno@clisp.org>
4581
4582         Don't use conversion with transliteration in u{8,16,32}_strcoll.
4583         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
4584         iconveh_error argument.
4585         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
4586         U_STRCONV_TO_LOCALE.
4587         * lib/unistr/u16-strcoll.c: Likewise.
4588         * lib/unistr/u32-strcoll.c: Likewise.
4589         * modules/unistr/u8-strcoll (Depends-on): Add
4590         uniconv/u8-strconv-to-enc, localcharset. Remove
4591         uniconv/u8-strconv-to-locale.
4592         (configure.ac): Bump version number.
4593         * modules/unistr/u16-strcoll (Depends-on): Add
4594         uniconv/u16-strconv-to-enc, localcharset. Remove
4595         uniconv/u16-strconv-to-locale.
4596         (configure.ac): Bump version number.
4597         * modules/unistr/u32-strcoll (Depends-on): Add
4598         uniconv/u32-strconv-to-enc, localcharset. Remove
4599         uniconv/u32-strconv-to-locale.
4600         (configure.ac): Bump version number.
4601
4602 2010-05-24  Bruno Haible  <bruno@clisp.org>
4603
4604         Avoid a test failure on NetBSD 5.0.
4605         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
4606         an iconv() bug.
4607
4608 2010-05-24  Bruno Haible  <bruno@clisp.org>
4609
4610         Adjust #include directive style.
4611         * modules/regex (Includes): Recommend to write <regex.h>.
4612
4613 2010-05-24  Bruno Haible  <bruno@clisp.org>
4614
4615         regex: Don't require alloca.
4616         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
4617         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
4618         only inside if (0).
4619
4620 2010-05-23  Jim Meyering  <meyering@redhat.com>
4621
4622         test-renameat.c: include <sys/stat.h>
4623         * tests/test-renameat.c: Include <sys/stat.h>; required for
4624         definition of S_IS* macros.
4625
4626 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
4627
4628         Update maintainer documentation for 'relocatable-prog' module.
4629         * doc/relocatable-maint.texi: Update.
4630         Comments by Bruno Haible.
4631
4632 2010-05-23  Bruno Haible  <bruno@clisp.org>
4633
4634         git-merge-changelog: Enable --split-merged-entry by default.
4635         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
4636         (usage): Don't mention this option any more.
4637         Reported by Ralf Wildenhues.
4638
4639 2010-05-23  Jim Meyering  <meyering@redhat.com>
4640
4641         test-pwrite: do not leave behind a test file named "out"
4642         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
4643         The trivial-looking use of init.sh is really necessary.
4644         It ensures that the temporary file, "out", is created in
4645         a temporary directory, and removed upon termination.
4646         * tests/test-pwrite.sh: Re-add file.
4647         * modules/pwrite-tests: Reference it.
4648
4649 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4650
4651         Fix output redirection buglet in init.sh.
4652         * tests/init.sh: Fix redirection of stderr.
4653
4654 2010-05-20  Simon Josefsson  <simon@josefsson.org>
4655
4656         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
4657
4658 2010-05-17  Simon Josefsson  <simon@josefsson.org>
4659
4660         * modules/valgrind-tests: New file.
4661         * m4/valgrind-tests.m4: New file.
4662         * doc/valgrind-tests.texi: New file.
4663         * doc/gnulib.texi (Running self-tests under valgrind): New
4664         section.
4665
4666 2010-05-19  Bruno Haible  <bruno@clisp.org>
4667
4668         Clean up dead code in recent commit.
4669         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
4670         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
4671         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
4672         Suggested by Paolo Bonzini.
4673
4674 2010-05-19  Bruno Haible  <bruno@clisp.org>
4675
4676         Avoid valgrind error reports from libunistring.
4677         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
4678         * modules/libunistring (Files): Add it.
4679         * modules/libunistring-optional (Files): Likewise.
4680
4681 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
4682             Bruno Haible  <bruno@clisp.org>
4683
4684         New module 'libunistring-optional'.
4685         * modules/libunistring-optional: New file.
4686         * m4/libunistring-base.m4: New file.
4687         * m4/libunistring-optional.m4: New file.
4688         * lib/unicase.in.h: Renamed from lib/unicase.h.
4689         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
4690         * lib/unictype.in.h: Renamed from lib/unictype.h.
4691         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
4692         * lib/uniname.in.h: Renamed from lib/uniname.h.
4693         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
4694         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
4695         * lib/unistr.in.h: Renamed from lib/unistr.h.
4696         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
4697         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
4698         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
4699         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
4700         gl_LIBUNISTRING. If the library was found, determine the installed
4701         version and set LIBUNISTRING_VERSION.
4702         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
4703         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
4704         handle a configuration option --with-included-libunistring.
4705         * modules/libunistring (Files): Add m4/absolute-header.m4.
4706         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
4707         Add m4/libunistring-base.m4.
4708         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
4709         (Makefile.am): Build unicase.h from unicase.in.h.
4710         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
4711         Add m4/libunistring-base.m4.
4712         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
4713         (Makefile.am): Build uniconv.h from uniconv.in.h.
4714         * modules/unictype/base (Files): Use unictype.in.h instead of
4715         unictype.h. Add m4/libunistring-base.m4.
4716         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
4717         (Makefile.am): Build unictype.h from unictype.in.h.
4718         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
4719         Add m4/libunistring-base.m4.
4720         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
4721         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
4722         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
4723         Add m4/libunistring-base.m4.
4724         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
4725         (Makefile.am): Build uniname.h from uniname.in.h.
4726         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
4727         Add m4/libunistring-base.m4.
4728         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
4729         (Makefile.am): Build uninorm.h from uninorm.in.h.
4730         * modules/unistdio/base (Files): Use unistdio.in.h instead of
4731         unistdio.h. Add m4/libunistring-base.m4.
4732         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
4733         (Makefile.am): Build unistdio.h from unistdio.in.h.
4734         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
4735         Add m4/libunistring-base.m4.
4736         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
4737         (Makefile.am): Build unistr.h from unistr.in.h.
4738         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
4739         Add m4/libunistring-base.m4.
4740         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
4741         (Makefile.am): Build unitypes.h from unitypes.in.h.
4742         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
4743         Add m4/libunistring-base.m4.
4744         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
4745         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
4746         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
4747         uniwidth.h. Add m4/libunistring-base.m4.
4748         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
4749         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
4750         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
4751         instead of augmenting lib_SOURCES.
4752         * modules/unicase/empty-suffix-context: Likewise.
4753         * modules/unicase/locale-language: Likewise.
4754         * modules/unicase/tolower: Likewise.
4755         * modules/unicase/totitle: Likewise.
4756         * modules/unicase/toupper: Likewise.
4757         * modules/unicase/u8-casecmp: Likewise.
4758         * modules/unicase/u8-casecoll: Likewise.
4759         * modules/unicase/u8-casefold: Likewise.
4760         * modules/unicase/u8-casexfrm: Likewise.
4761         * modules/unicase/u8-ct-casefold: Likewise.
4762         * modules/unicase/u8-ct-tolower: Likewise.
4763         * modules/unicase/u8-ct-totitle: Likewise.
4764         * modules/unicase/u8-ct-toupper: Likewise.
4765         * modules/unicase/u8-is-cased: Likewise.
4766         * modules/unicase/u8-is-casefolded: Likewise.
4767         * modules/unicase/u8-is-lowercase: Likewise.
4768         * modules/unicase/u8-is-titlecase: Likewise.
4769         * modules/unicase/u8-is-uppercase: Likewise.
4770         * modules/unicase/u8-prefix-context: Likewise.
4771         * modules/unicase/u8-suffix-context: Likewise.
4772         * modules/unicase/u8-tolower: Likewise.
4773         * modules/unicase/u8-totitle: Likewise.
4774         * modules/unicase/u8-toupper: Likewise.
4775         * modules/unicase/u16-casecmp: Likewise.
4776         * modules/unicase/u16-casecoll: Likewise.
4777         * modules/unicase/u16-casefold: Likewise.
4778         * modules/unicase/u16-casexfrm: Likewise.
4779         * modules/unicase/u16-ct-casefold: Likewise.
4780         * modules/unicase/u16-ct-tolower: Likewise.
4781         * modules/unicase/u16-ct-totitle: Likewise.
4782         * modules/unicase/u16-ct-toupper: Likewise.
4783         * modules/unicase/u16-is-cased: Likewise.
4784         * modules/unicase/u16-is-casefolded: Likewise.
4785         * modules/unicase/u16-is-lowercase: Likewise.
4786         * modules/unicase/u16-is-titlecase: Likewise.
4787         * modules/unicase/u16-is-uppercase: Likewise.
4788         * modules/unicase/u16-prefix-context: Likewise.
4789         * modules/unicase/u16-suffix-context: Likewise.
4790         * modules/unicase/u16-tolower: Likewise.
4791         * modules/unicase/u16-totitle: Likewise.
4792         * modules/unicase/u16-toupper: Likewise.
4793         * modules/unicase/u32-casecmp: Likewise.
4794         * modules/unicase/u32-casecoll: Likewise.
4795         * modules/unicase/u32-casefold: Likewise.
4796         * modules/unicase/u32-casexfrm: Likewise.
4797         * modules/unicase/u32-ct-casefold: Likewise.
4798         * modules/unicase/u32-ct-tolower: Likewise.
4799         * modules/unicase/u32-ct-totitle: Likewise.
4800         * modules/unicase/u32-ct-toupper: Likewise.
4801         * modules/unicase/u32-is-cased: Likewise.
4802         * modules/unicase/u32-is-casefolded: Likewise.
4803         * modules/unicase/u32-is-lowercase: Likewise.
4804         * modules/unicase/u32-is-titlecase: Likewise.
4805         * modules/unicase/u32-is-uppercase: Likewise.
4806         * modules/unicase/u32-prefix-context: Likewise.
4807         * modules/unicase/u32-suffix-context: Likewise.
4808         * modules/unicase/u32-tolower: Likewise.
4809         * modules/unicase/u32-totitle: Likewise.
4810         * modules/unicase/u32-toupper: Likewise.
4811         * modules/unicase/ulc-casecmp: Likewise.
4812         * modules/unicase/ulc-casecoll: Likewise.
4813         * modules/unicase/ulc-casexfrm: Likewise.
4814         * modules/uniconv/u8-conv-from-enc: Likewise.
4815         * modules/uniconv/u8-conv-to-enc: Likewise.
4816         * modules/uniconv/u8-strconv-from-enc: Likewise.
4817         * modules/uniconv/u8-strconv-from-locale: Likewise.
4818         * modules/uniconv/u8-strconv-to-enc: Likewise.
4819         * modules/uniconv/u8-strconv-to-locale: Likewise.
4820         * modules/uniconv/u16-conv-from-enc: Likewise.
4821         * modules/uniconv/u16-conv-to-enc: Likewise.
4822         * modules/uniconv/u16-strconv-from-enc: Likewise.
4823         * modules/uniconv/u16-strconv-from-locale: Likewise.
4824         * modules/uniconv/u16-strconv-to-enc: Likewise.
4825         * modules/uniconv/u16-strconv-to-locale: Likewise.
4826         * modules/uniconv/u32-conv-from-enc: Likewise.
4827         * modules/uniconv/u32-conv-to-enc: Likewise.
4828         * modules/uniconv/u32-strconv-from-enc: Likewise.
4829         * modules/uniconv/u32-strconv-from-locale: Likewise.
4830         * modules/uniconv/u32-strconv-to-enc: Likewise.
4831         * modules/uniconv/u32-strconv-to-locale: Likewise.
4832         * modules/unictype/bidicategory-byname: Likewise.
4833         * modules/unictype/bidicategory-name: Likewise.
4834         * modules/unictype/bidicategory-of: Likewise.
4835         * modules/unictype/bidicategory-test: Likewise.
4836         * modules/unictype/block-list: Likewise.
4837         * modules/unictype/block-test: Likewise.
4838         * modules/unictype/category-C: Likewise.
4839         * modules/unictype/category-Cc: Likewise.
4840         * modules/unictype/category-Cf: Likewise.
4841         * modules/unictype/category-Cn: Likewise.
4842         * modules/unictype/category-Co: Likewise.
4843         * modules/unictype/category-Cs: Likewise.
4844         * modules/unictype/category-L: Likewise.
4845         * modules/unictype/category-Ll: Likewise.
4846         * modules/unictype/category-Lm: Likewise.
4847         * modules/unictype/category-Lo: Likewise.
4848         * modules/unictype/category-Lt: Likewise.
4849         * modules/unictype/category-Lu: Likewise.
4850         * modules/unictype/category-M: Likewise.
4851         * modules/unictype/category-Mc: Likewise.
4852         * modules/unictype/category-Me: Likewise.
4853         * modules/unictype/category-Mn: Likewise.
4854         * modules/unictype/category-N: Likewise.
4855         * modules/unictype/category-Nd: Likewise.
4856         * modules/unictype/category-Nl: Likewise.
4857         * modules/unictype/category-No: Likewise.
4858         * modules/unictype/category-P: Likewise.
4859         * modules/unictype/category-Pc: Likewise.
4860         * modules/unictype/category-Pd: Likewise.
4861         * modules/unictype/category-Pe: Likewise.
4862         * modules/unictype/category-Pf: Likewise.
4863         * modules/unictype/category-Pi: Likewise.
4864         * modules/unictype/category-Po: Likewise.
4865         * modules/unictype/category-Ps: Likewise.
4866         * modules/unictype/category-S: Likewise.
4867         * modules/unictype/category-Sc: Likewise.
4868         * modules/unictype/category-Sk: Likewise.
4869         * modules/unictype/category-Sm: Likewise.
4870         * modules/unictype/category-So: Likewise.
4871         * modules/unictype/category-Z: Likewise.
4872         * modules/unictype/category-Zl: Likewise.
4873         * modules/unictype/category-Zp: Likewise.
4874         * modules/unictype/category-Zs: Likewise.
4875         * modules/unictype/category-and: Likewise.
4876         * modules/unictype/category-and-not: Likewise.
4877         * modules/unictype/category-byname: Likewise.
4878         * modules/unictype/category-name: Likewise.
4879         * modules/unictype/category-none: Likewise.
4880         * modules/unictype/category-of: Likewise.
4881         * modules/unictype/category-or: Likewise.
4882         * modules/unictype/category-test: Likewise.
4883         * modules/unictype/combining-class: Likewise.
4884         * modules/unictype/ctype-alnum: Likewise.
4885         * modules/unictype/ctype-alpha: Likewise.
4886         * modules/unictype/ctype-blank: Likewise.
4887         * modules/unictype/ctype-cntrl: Likewise.
4888         * modules/unictype/ctype-digit: Likewise.
4889         * modules/unictype/ctype-graph: Likewise.
4890         * modules/unictype/ctype-lower: Likewise.
4891         * modules/unictype/ctype-print: Likewise.
4892         * modules/unictype/ctype-punct: Likewise.
4893         * modules/unictype/ctype-space: Likewise.
4894         * modules/unictype/ctype-upper: Likewise.
4895         * modules/unictype/ctype-xdigit: Likewise.
4896         * modules/unictype/decimal-digit: Likewise.
4897         * modules/unictype/digit: Likewise.
4898         * modules/unictype/mirror: Likewise.
4899         * modules/unictype/numeric: Likewise.
4900         * modules/unictype/property-alphabetic: Likewise.
4901         * modules/unictype/property-ascii-hex-digit: Likewise.
4902         * modules/unictype/property-bidi-arabic-digit: Likewise.
4903         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
4904         * modules/unictype/property-bidi-block-separator: Likewise.
4905         * modules/unictype/property-bidi-boundary-neutral: Likewise.
4906         * modules/unictype/property-bidi-common-separator: Likewise.
4907         * modules/unictype/property-bidi-control: Likewise.
4908         * modules/unictype/property-bidi-embedding-or-override: Likewise.
4909         * modules/unictype/property-bidi-eur-num-separator: Likewise.
4910         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
4911         * modules/unictype/property-bidi-european-digit: Likewise.
4912         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
4913         * modules/unictype/property-bidi-left-to-right: Likewise.
4914         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
4915         * modules/unictype/property-bidi-other-neutral: Likewise.
4916         * modules/unictype/property-bidi-pdf: Likewise.
4917         * modules/unictype/property-bidi-segment-separator: Likewise.
4918         * modules/unictype/property-bidi-whitespace: Likewise.
4919         * modules/unictype/property-byname: Likewise.
4920         * modules/unictype/property-combining: Likewise.
4921         * modules/unictype/property-composite: Likewise.
4922         * modules/unictype/property-currency-symbol: Likewise.
4923         * modules/unictype/property-dash: Likewise.
4924         * modules/unictype/property-decimal-digit: Likewise.
4925         * modules/unictype/property-default-ignorable-code-point: Likewise.
4926         * modules/unictype/property-deprecated: Likewise.
4927         * modules/unictype/property-diacritic: Likewise.
4928         * modules/unictype/property-extender: Likewise.
4929         * modules/unictype/property-format-control: Likewise.
4930         * modules/unictype/property-grapheme-base: Likewise.
4931         * modules/unictype/property-grapheme-extend: Likewise.
4932         * modules/unictype/property-grapheme-link: Likewise.
4933         * modules/unictype/property-hex-digit: Likewise.
4934         * modules/unictype/property-hyphen: Likewise.
4935         * modules/unictype/property-id-continue: Likewise.
4936         * modules/unictype/property-id-start: Likewise.
4937         * modules/unictype/property-ideographic: Likewise.
4938         * modules/unictype/property-ids-binary-operator: Likewise.
4939         * modules/unictype/property-ids-trinary-operator: Likewise.
4940         * modules/unictype/property-ignorable-control: Likewise.
4941         * modules/unictype/property-iso-control: Likewise.
4942         * modules/unictype/property-join-control: Likewise.
4943         * modules/unictype/property-left-of-pair: Likewise.
4944         * modules/unictype/property-line-separator: Likewise.
4945         * modules/unictype/property-logical-order-exception: Likewise.
4946         * modules/unictype/property-lowercase: Likewise.
4947         * modules/unictype/property-math: Likewise.
4948         * modules/unictype/property-non-break: Likewise.
4949         * modules/unictype/property-not-a-character: Likewise.
4950         * modules/unictype/property-numeric: Likewise.
4951         * modules/unictype/property-other-alphabetic: Likewise.
4952         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
4953         * modules/unictype/property-other-grapheme-extend: Likewise.
4954         * modules/unictype/property-other-id-continue: Likewise.
4955         * modules/unictype/property-other-id-start: Likewise.
4956         * modules/unictype/property-other-lowercase: Likewise.
4957         * modules/unictype/property-other-math: Likewise.
4958         * modules/unictype/property-other-uppercase: Likewise.
4959         * modules/unictype/property-paired-punctuation: Likewise.
4960         * modules/unictype/property-paragraph-separator: Likewise.
4961         * modules/unictype/property-pattern-syntax: Likewise.
4962         * modules/unictype/property-pattern-white-space: Likewise.
4963         * modules/unictype/property-private-use: Likewise.
4964         * modules/unictype/property-punctuation: Likewise.
4965         * modules/unictype/property-quotation-mark: Likewise.
4966         * modules/unictype/property-radical: Likewise.
4967         * modules/unictype/property-sentence-terminal: Likewise.
4968         * modules/unictype/property-soft-dotted: Likewise.
4969         * modules/unictype/property-space: Likewise.
4970         * modules/unictype/property-terminal-punctuation: Likewise.
4971         * modules/unictype/property-test: Likewise.
4972         * modules/unictype/property-titlecase: Likewise.
4973         * modules/unictype/property-unassigned-code-value: Likewise.
4974         * modules/unictype/property-unified-ideograph: Likewise.
4975         * modules/unictype/property-uppercase: Likewise.
4976         * modules/unictype/property-variation-selector: Likewise.
4977         * modules/unictype/property-white-space: Likewise.
4978         * modules/unictype/property-xid-continue: Likewise.
4979         * modules/unictype/property-xid-start: Likewise.
4980         * modules/unictype/property-zero-width: Likewise.
4981         * modules/unictype/scripts: Likewise.
4982         * modules/unictype/syntax-c-ident: Likewise.
4983         * modules/unictype/syntax-c-whitespace: Likewise.
4984         * modules/unictype/syntax-java-ident: Likewise.
4985         * modules/unictype/syntax-java-whitespace: Likewise.
4986         * modules/unilbrk/u8-possible-linebreaks: Likewise.
4987         * modules/unilbrk/u8-width-linebreaks: Likewise.
4988         * modules/unilbrk/u16-possible-linebreaks: Likewise.
4989         * modules/unilbrk/u16-width-linebreaks: Likewise.
4990         * modules/unilbrk/u32-possible-linebreaks: Likewise.
4991         * modules/unilbrk/u32-width-linebreaks: Likewise.
4992         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
4993         * modules/unilbrk/ulc-width-linebreaks: Likewise.
4994         * modules/uniname/uniname: Likewise.
4995         * modules/uninorm/canonical-decomposition: Likewise.
4996         * modules/uninorm/composition: Likewise.
4997         * modules/uninorm/decomposing-form: Likewise.
4998         * modules/uninorm/decomposition: Likewise.
4999         * modules/uninorm/filter: Likewise.
5000         * modules/uninorm/nfc: Likewise.
5001         * modules/uninorm/nfd: Likewise.
5002         * modules/uninorm/nfkc: Likewise.
5003         * modules/uninorm/nfkd: Likewise.
5004         * modules/uninorm/u8-normalize: Likewise.
5005         * modules/uninorm/u8-normcmp: Likewise.
5006         * modules/uninorm/u8-normcoll: Likewise.
5007         * modules/uninorm/u8-normxfrm: Likewise.
5008         * modules/uninorm/u16-normalize: Likewise.
5009         * modules/uninorm/u16-normcmp: Likewise.
5010         * modules/uninorm/u16-normcoll: Likewise.
5011         * modules/uninorm/u16-normxfrm: Likewise.
5012         * modules/uninorm/u32-normalize: Likewise.
5013         * modules/uninorm/u32-normcmp: Likewise.
5014         * modules/uninorm/u32-normcoll: Likewise.
5015         * modules/uninorm/u32-normxfrm: Likewise.
5016         * modules/unistdio/u8-asnprintf: Likewise.
5017         * modules/unistdio/u8-asprintf: Likewise.
5018         * modules/unistdio/u8-snprintf: Likewise.
5019         * modules/unistdio/u8-sprintf: Likewise.
5020         * modules/unistdio/u8-u8-asnprintf: Likewise.
5021         * modules/unistdio/u8-u8-asprintf: Likewise.
5022         * modules/unistdio/u8-u8-snprintf: Likewise.
5023         * modules/unistdio/u8-u8-sprintf: Likewise.
5024         * modules/unistdio/u8-u8-vasnprintf: Likewise.
5025         * modules/unistdio/u8-u8-vasprintf: Likewise.
5026         * modules/unistdio/u8-u8-vsnprintf: Likewise.
5027         * modules/unistdio/u8-u8-vsprintf: Likewise.
5028         * modules/unistdio/u8-vasnprintf: Likewise.
5029         * modules/unistdio/u8-vasprintf: Likewise.
5030         * modules/unistdio/u8-vsnprintf: Likewise.
5031         * modules/unistdio/u8-vsprintf: Likewise.
5032         * modules/unistdio/u16-asnprintf: Likewise.
5033         * modules/unistdio/u16-asprintf: Likewise.
5034         * modules/unistdio/u16-snprintf: Likewise.
5035         * modules/unistdio/u16-sprintf: Likewise.
5036         * modules/unistdio/u16-u16-asnprintf: Likewise.
5037         * modules/unistdio/u16-u16-asprintf: Likewise.
5038         * modules/unistdio/u16-u16-snprintf: Likewise.
5039         * modules/unistdio/u16-u16-sprintf: Likewise.
5040         * modules/unistdio/u16-u16-vasnprintf: Likewise.
5041         * modules/unistdio/u16-u16-vasprintf: Likewise.
5042         * modules/unistdio/u16-u16-vsnprintf: Likewise.
5043         * modules/unistdio/u16-u16-vsprintf: Likewise.
5044         * modules/unistdio/u16-vasnprintf: Likewise.
5045         * modules/unistdio/u16-vasprintf: Likewise.
5046         * modules/unistdio/u16-vsnprintf: Likewise.
5047         * modules/unistdio/u16-vsprintf: Likewise.
5048         * modules/unistdio/u32-asnprintf: Likewise.
5049         * modules/unistdio/u32-asprintf: Likewise.
5050         * modules/unistdio/u32-snprintf: Likewise.
5051         * modules/unistdio/u32-sprintf: Likewise.
5052         * modules/unistdio/u32-u32-asnprintf: Likewise.
5053         * modules/unistdio/u32-u32-asprintf: Likewise.
5054         * modules/unistdio/u32-u32-snprintf: Likewise.
5055         * modules/unistdio/u32-u32-sprintf: Likewise.
5056         * modules/unistdio/u32-u32-vasnprintf: Likewise.
5057         * modules/unistdio/u32-u32-vasprintf: Likewise.
5058         * modules/unistdio/u32-u32-vsnprintf: Likewise.
5059         * modules/unistdio/u32-u32-vsprintf: Likewise.
5060         * modules/unistdio/u32-vasnprintf: Likewise.
5061         * modules/unistdio/u32-vasprintf: Likewise.
5062         * modules/unistdio/u32-vsnprintf: Likewise.
5063         * modules/unistdio/u32-vsprintf: Likewise.
5064         * modules/unistdio/ulc-asnprintf: Likewise.
5065         * modules/unistdio/ulc-asprintf: Likewise.
5066         * modules/unistdio/ulc-fprintf: Likewise.
5067         * modules/unistdio/ulc-snprintf: Likewise.
5068         * modules/unistdio/ulc-sprintf: Likewise.
5069         * modules/unistdio/ulc-vasnprintf: Likewise.
5070         * modules/unistdio/ulc-vasprintf: Likewise.
5071         * modules/unistdio/ulc-vfprintf: Likewise.
5072         * modules/unistdio/ulc-vsnprintf: Likewise.
5073         * modules/unistdio/ulc-vsprintf: Likewise.
5074         * modules/unistr/u8-check: Likewise.
5075         * modules/unistr/u8-chr: Likewise.
5076         * modules/unistr/u8-cmp: Likewise.
5077         * modules/unistr/u8-cmp2: Likewise.
5078         * modules/unistr/u8-cpy: Likewise.
5079         * modules/unistr/u8-cpy-alloc: Likewise.
5080         * modules/unistr/u8-endswith: Likewise.
5081         * modules/unistr/u8-mblen: Likewise.
5082         * modules/unistr/u8-mbsnlen: Likewise.
5083         * modules/unistr/u8-mbtouc: Likewise.
5084         * modules/unistr/u8-mbtouc-unsafe: Likewise.
5085         * modules/unistr/u8-mbtoucr: Likewise.
5086         * modules/unistr/u8-move: Likewise.
5087         * modules/unistr/u8-next: Likewise.
5088         * modules/unistr/u8-prev: Likewise.
5089         * modules/unistr/u8-set: Likewise.
5090         * modules/unistr/u8-startswith: Likewise.
5091         * modules/unistr/u8-stpcpy: Likewise.
5092         * modules/unistr/u8-stpncpy: Likewise.
5093         * modules/unistr/u8-strcat: Likewise.
5094         * modules/unistr/u8-strchr: Likewise.
5095         * modules/unistr/u8-strcmp: Likewise.
5096         * modules/unistr/u8-strcoll: Likewise.
5097         * modules/unistr/u8-strcpy: Likewise.
5098         * modules/unistr/u8-strcspn: Likewise.
5099         * modules/unistr/u8-strdup: Likewise.
5100         * modules/unistr/u8-strlen: Likewise.
5101         * modules/unistr/u8-strmblen: Likewise.
5102         * modules/unistr/u8-strmbtouc: Likewise.
5103         * modules/unistr/u8-strncat: Likewise.
5104         * modules/unistr/u8-strncmp: Likewise.
5105         * modules/unistr/u8-strncpy: Likewise.
5106         * modules/unistr/u8-strnlen: Likewise.
5107         * modules/unistr/u8-strpbrk: Likewise.
5108         * modules/unistr/u8-strrchr: Likewise.
5109         * modules/unistr/u8-strspn: Likewise.
5110         * modules/unistr/u8-strstr: Likewise.
5111         * modules/unistr/u8-strtok: Likewise.
5112         * modules/unistr/u8-to-u16: Likewise.
5113         * modules/unistr/u8-to-u32: Likewise.
5114         * modules/unistr/u8-uctomb: Likewise.
5115         * modules/unistr/u16-check: Likewise.
5116         * modules/unistr/u16-chr: Likewise.
5117         * modules/unistr/u16-cmp: Likewise.
5118         * modules/unistr/u16-cmp2: Likewise.
5119         * modules/unistr/u16-cpy: Likewise.
5120         * modules/unistr/u16-cpy-alloc: Likewise.
5121         * modules/unistr/u16-endswith: Likewise.
5122         * modules/unistr/u16-mblen: Likewise.
5123         * modules/unistr/u16-mbsnlen: Likewise.
5124         * modules/unistr/u16-mbtouc: Likewise.
5125         * modules/unistr/u16-mbtouc-unsafe: Likewise.
5126         * modules/unistr/u16-mbtoucr: Likewise.
5127         * modules/unistr/u16-move: Likewise.
5128         * modules/unistr/u16-next: Likewise.
5129         * modules/unistr/u16-prev: Likewise.
5130         * modules/unistr/u16-set: Likewise.
5131         * modules/unistr/u16-startswith: Likewise.
5132         * modules/unistr/u16-stpcpy: Likewise.
5133         * modules/unistr/u16-stpncpy: Likewise.
5134         * modules/unistr/u16-strcat: Likewise.
5135         * modules/unistr/u16-strchr: Likewise.
5136         * modules/unistr/u16-strcmp: Likewise.
5137         * modules/unistr/u16-strcoll: Likewise.
5138         * modules/unistr/u16-strcpy: Likewise.
5139         * modules/unistr/u16-strcspn: Likewise.
5140         * modules/unistr/u16-strdup: Likewise.
5141         * modules/unistr/u16-strlen: Likewise.
5142         * modules/unistr/u16-strmblen: Likewise.
5143         * modules/unistr/u16-strmbtouc: Likewise.
5144         * modules/unistr/u16-strncat: Likewise.
5145         * modules/unistr/u16-strncmp: Likewise.
5146         * modules/unistr/u16-strncpy: Likewise.
5147         * modules/unistr/u16-strnlen: Likewise.
5148         * modules/unistr/u16-strpbrk: Likewise.
5149         * modules/unistr/u16-strrchr: Likewise.
5150         * modules/unistr/u16-strspn: Likewise.
5151         * modules/unistr/u16-strstr: Likewise.
5152         * modules/unistr/u16-strtok: Likewise.
5153         * modules/unistr/u16-to-u32: Likewise.
5154         * modules/unistr/u16-to-u8: Likewise.
5155         * modules/unistr/u16-uctomb: Likewise.
5156         * modules/unistr/u32-check: Likewise.
5157         * modules/unistr/u32-chr: Likewise.
5158         * modules/unistr/u32-cmp: Likewise.
5159         * modules/unistr/u32-cmp2: Likewise.
5160         * modules/unistr/u32-cpy: Likewise.
5161         * modules/unistr/u32-cpy-alloc: Likewise.
5162         * modules/unistr/u32-endswith: Likewise.
5163         * modules/unistr/u32-mblen: Likewise.
5164         * modules/unistr/u32-mbsnlen: Likewise.
5165         * modules/unistr/u32-mbtouc: Likewise.
5166         * modules/unistr/u32-mbtouc-unsafe: Likewise.
5167         * modules/unistr/u32-mbtoucr: Likewise.
5168         * modules/unistr/u32-move: Likewise.
5169         * modules/unistr/u32-next: Likewise.
5170         * modules/unistr/u32-prev: Likewise.
5171         * modules/unistr/u32-set: Likewise.
5172         * modules/unistr/u32-startswith: Likewise.
5173         * modules/unistr/u32-stpcpy: Likewise.
5174         * modules/unistr/u32-stpncpy: Likewise.
5175         * modules/unistr/u32-strcat: Likewise.
5176         * modules/unistr/u32-strchr: Likewise.
5177         * modules/unistr/u32-strcmp: Likewise.
5178         * modules/unistr/u32-strcoll: Likewise.
5179         * modules/unistr/u32-strcpy: Likewise.
5180         * modules/unistr/u32-strcspn: Likewise.
5181         * modules/unistr/u32-strdup: Likewise.
5182         * modules/unistr/u32-strlen: Likewise.
5183         * modules/unistr/u32-strmblen: Likewise.
5184         * modules/unistr/u32-strmbtouc: Likewise.
5185         * modules/unistr/u32-strncat: Likewise.
5186         * modules/unistr/u32-strncmp: Likewise.
5187         * modules/unistr/u32-strncpy: Likewise.
5188         * modules/unistr/u32-strnlen: Likewise.
5189         * modules/unistr/u32-strpbrk: Likewise.
5190         * modules/unistr/u32-strrchr: Likewise.
5191         * modules/unistr/u32-strspn: Likewise.
5192         * modules/unistr/u32-strstr: Likewise.
5193         * modules/unistr/u32-strtok: Likewise.
5194         * modules/unistr/u32-to-u16: Likewise.
5195         * modules/unistr/u32-to-u8: Likewise.
5196         * modules/unistr/u32-uctomb: Likewise.
5197         * modules/uniwbrk/u8-wordbreaks: Likewise.
5198         * modules/uniwbrk/u16-wordbreaks: Likewise.
5199         * modules/uniwbrk/u32-wordbreaks: Likewise.
5200         * modules/uniwbrk/ulc-wordbreaks: Likewise.
5201         * modules/uniwbrk/wordbreak-property: Likewise.
5202         * modules/uniwidth/u8-strwidth: Likewise.
5203         * modules/uniwidth/u8-width: Likewise.
5204         * modules/uniwidth/u16-strwidth: Likewise.
5205         * modules/uniwidth/u16-width: Likewise.
5206         * modules/uniwidth/u32-strwidth: Likewise.
5207         * modules/uniwidth/u32-width: Likewise.
5208         * modules/uniwidth/width: Likewise.
5209         * modules/unicase/cased-tests (Makefile.am): Link all test programs
5210         with $(LIBUNISTRING).
5211         * modules/unicase/ignorable-tests: Likewise.
5212         * modules/unicase/locale-language-tests: Likewise.
5213         * modules/unicase/tolower-tests: Likewise.
5214         * modules/unicase/totitle-tests: Likewise.
5215         * modules/unicase/toupper-tests: Likewise.
5216         * modules/unicase/u8-casecmp-tests: Likewise.
5217         * modules/unicase/u8-casecoll-tests: Likewise.
5218         * modules/unicase/u8-casefold-tests: Likewise.
5219         * modules/unicase/u8-is-cased-tests: Likewise.
5220         * modules/unicase/u8-is-casefolded-tests: Likewise.
5221         * modules/unicase/u8-is-lowercase-tests: Likewise.
5222         * modules/unicase/u8-is-titlecase-tests: Likewise.
5223         * modules/unicase/u8-is-uppercase-tests: Likewise.
5224         * modules/unicase/u8-tolower-tests: Likewise.
5225         * modules/unicase/u8-totitle-tests: Likewise.
5226         * modules/unicase/u8-toupper-tests: Likewise.
5227         * modules/unicase/u16-casecmp-tests: Likewise.
5228         * modules/unicase/u16-casecoll-tests: Likewise.
5229         * modules/unicase/u16-casefold-tests: Likewise.
5230         * modules/unicase/u16-is-cased-tests: Likewise.
5231         * modules/unicase/u16-is-casefolded-tests: Likewise.
5232         * modules/unicase/u16-is-lowercase-tests: Likewise.
5233         * modules/unicase/u16-is-titlecase-tests: Likewise.
5234         * modules/unicase/u16-is-uppercase-tests: Likewise.
5235         * modules/unicase/u16-tolower-tests: Likewise.
5236         * modules/unicase/u16-totitle-tests: Likewise.
5237         * modules/unicase/u16-toupper-tests: Likewise.
5238         * modules/unicase/u32-casecmp-tests: Likewise.
5239         * modules/unicase/u32-casecoll-tests: Likewise.
5240         * modules/unicase/u32-casefold-tests: Likewise.
5241         * modules/unicase/u32-is-cased-tests: Likewise.
5242         * modules/unicase/u32-is-casefolded-tests: Likewise.
5243         * modules/unicase/u32-is-lowercase-tests: Likewise.
5244         * modules/unicase/u32-is-titlecase-tests: Likewise.
5245         * modules/unicase/u32-is-uppercase-tests: Likewise.
5246         * modules/unicase/u32-tolower-tests: Likewise.
5247         * modules/unicase/u32-totitle-tests: Likewise.
5248         * modules/unicase/u32-toupper-tests: Likewise.
5249         * modules/unicase/ulc-casecmp-tests: Likewise.
5250         * modules/unicase/ulc-casecoll-tests: Likewise.
5251         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
5252         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
5253         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
5254         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
5255         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
5256         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
5257         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
5258         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
5259         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
5260         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
5261         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
5262         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
5263         * modules/unictype/bidicategory-byname-tests: Likewise.
5264         * modules/unictype/bidicategory-name-tests: Likewise.
5265         * modules/unictype/bidicategory-of-tests: Likewise.
5266         * modules/unictype/bidicategory-test-tests: Likewise.
5267         * modules/unictype/block-list-tests: Likewise.
5268         * modules/unictype/block-of-tests: Likewise.
5269         * modules/unictype/block-test-tests: Likewise.
5270         * modules/unictype/category-C-tests: Likewise.
5271         * modules/unictype/category-Cc-tests: Likewise.
5272         * modules/unictype/category-Cf-tests: Likewise.
5273         * modules/unictype/category-Cn-tests: Likewise.
5274         * modules/unictype/category-Co-tests: Likewise.
5275         * modules/unictype/category-Cs-tests: Likewise.
5276         * modules/unictype/category-L-tests: Likewise.
5277         * modules/unictype/category-Ll-tests: Likewise.
5278         * modules/unictype/category-Lm-tests: Likewise.
5279         * modules/unictype/category-Lo-tests: Likewise.
5280         * modules/unictype/category-Lt-tests: Likewise.
5281         * modules/unictype/category-Lu-tests: Likewise.
5282         * modules/unictype/category-M-tests: Likewise.
5283         * modules/unictype/category-Mc-tests: Likewise.
5284         * modules/unictype/category-Me-tests: Likewise.
5285         * modules/unictype/category-Mn-tests: Likewise.
5286         * modules/unictype/category-N-tests: Likewise.
5287         * modules/unictype/category-Nd-tests: Likewise.
5288         * modules/unictype/category-Nl-tests: Likewise.
5289         * modules/unictype/category-No-tests: Likewise.
5290         * modules/unictype/category-P-tests: Likewise.
5291         * modules/unictype/category-Pc-tests: Likewise.
5292         * modules/unictype/category-Pd-tests: Likewise.
5293         * modules/unictype/category-Pe-tests: Likewise.
5294         * modules/unictype/category-Pf-tests: Likewise.
5295         * modules/unictype/category-Pi-tests: Likewise.
5296         * modules/unictype/category-Po-tests: Likewise.
5297         * modules/unictype/category-Ps-tests: Likewise.
5298         * modules/unictype/category-S-tests: Likewise.
5299         * modules/unictype/category-Sc-tests: Likewise.
5300         * modules/unictype/category-Sk-tests: Likewise.
5301         * modules/unictype/category-Sm-tests: Likewise.
5302         * modules/unictype/category-So-tests: Likewise.
5303         * modules/unictype/category-Z-tests: Likewise.
5304         * modules/unictype/category-Zl-tests: Likewise.
5305         * modules/unictype/category-Zp-tests: Likewise.
5306         * modules/unictype/category-Zs-tests: Likewise.
5307         * modules/unictype/category-and-not-tests: Likewise.
5308         * modules/unictype/category-and-tests: Likewise.
5309         * modules/unictype/category-byname-tests: Likewise.
5310         * modules/unictype/category-name-tests: Likewise.
5311         * modules/unictype/category-none-tests: Likewise.
5312         * modules/unictype/category-of-tests: Likewise.
5313         * modules/unictype/category-or-tests: Likewise.
5314         * modules/unictype/category-test-withtable-tests: Likewise.
5315         * modules/unictype/combining-class-tests: Likewise.
5316         * modules/unictype/ctype-alnum-tests: Likewise.
5317         * modules/unictype/ctype-alpha-tests: Likewise.
5318         * modules/unictype/ctype-blank-tests: Likewise.
5319         * modules/unictype/ctype-cntrl-tests: Likewise.
5320         * modules/unictype/ctype-digit-tests: Likewise.
5321         * modules/unictype/ctype-graph-tests: Likewise.
5322         * modules/unictype/ctype-lower-tests: Likewise.
5323         * modules/unictype/ctype-print-tests: Likewise.
5324         * modules/unictype/ctype-punct-tests: Likewise.
5325         * modules/unictype/ctype-space-tests: Likewise.
5326         * modules/unictype/ctype-upper-tests: Likewise.
5327         * modules/unictype/ctype-xdigit-tests: Likewise.
5328         * modules/unictype/decimal-digit-tests: Likewise.
5329         * modules/unictype/digit-tests: Likewise.
5330         * modules/unictype/mirror-tests: Likewise.
5331         * modules/unictype/numeric-tests: Likewise.
5332         * modules/unictype/property-alphabetic-tests: Likewise.
5333         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
5334         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
5335         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
5336         * modules/unictype/property-bidi-block-separator-tests: Likewise.
5337         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
5338         * modules/unictype/property-bidi-common-separator-tests: Likewise.
5339         * modules/unictype/property-bidi-control-tests: Likewise.
5340         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
5341         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
5342         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
5343         * modules/unictype/property-bidi-european-digit-tests: Likewise.
5344         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
5345         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
5346         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
5347         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
5348         * modules/unictype/property-bidi-pdf-tests: Likewise.
5349         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
5350         * modules/unictype/property-bidi-whitespace-tests: Likewise.
5351         * modules/unictype/property-byname-tests: Likewise.
5352         * modules/unictype/property-combining-tests: Likewise.
5353         * modules/unictype/property-composite-tests: Likewise.
5354         * modules/unictype/property-currency-symbol-tests: Likewise.
5355         * modules/unictype/property-dash-tests: Likewise.
5356         * modules/unictype/property-decimal-digit-tests: Likewise.
5357         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
5358         * modules/unictype/property-deprecated-tests: Likewise.
5359         * modules/unictype/property-diacritic-tests: Likewise.
5360         * modules/unictype/property-extender-tests: Likewise.
5361         * modules/unictype/property-format-control-tests: Likewise.
5362         * modules/unictype/property-grapheme-base-tests: Likewise.
5363         * modules/unictype/property-grapheme-extend-tests: Likewise.
5364         * modules/unictype/property-grapheme-link-tests: Likewise.
5365         * modules/unictype/property-hex-digit-tests: Likewise.
5366         * modules/unictype/property-hyphen-tests: Likewise.
5367         * modules/unictype/property-id-continue-tests: Likewise.
5368         * modules/unictype/property-id-start-tests: Likewise.
5369         * modules/unictype/property-ideographic-tests: Likewise.
5370         * modules/unictype/property-ids-binary-operator-tests: Likewise.
5371         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
5372         * modules/unictype/property-ignorable-control-tests: Likewise.
5373         * modules/unictype/property-iso-control-tests: Likewise.
5374         * modules/unictype/property-join-control-tests: Likewise.
5375         * modules/unictype/property-left-of-pair-tests: Likewise.
5376         * modules/unictype/property-line-separator-tests: Likewise.
5377         * modules/unictype/property-logical-order-exception-tests: Likewise.
5378         * modules/unictype/property-lowercase-tests: Likewise.
5379         * modules/unictype/property-math-tests: Likewise.
5380         * modules/unictype/property-non-break-tests: Likewise.
5381         * modules/unictype/property-not-a-character-tests: Likewise.
5382         * modules/unictype/property-numeric-tests: Likewise.
5383         * modules/unictype/property-other-alphabetic-tests: Likewise.
5384         * modules/unictype/property-other-default-ignorable-code-point-tests:
5385         Likewise.
5386         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
5387         * modules/unictype/property-other-id-continue-tests: Likewise.
5388         * modules/unictype/property-other-id-start-tests: Likewise.
5389         * modules/unictype/property-other-lowercase-tests: Likewise.
5390         * modules/unictype/property-other-math-tests: Likewise.
5391         * modules/unictype/property-other-uppercase-tests: Likewise.
5392         * modules/unictype/property-paired-punctuation-tests: Likewise.
5393         * modules/unictype/property-paragraph-separator-tests: Likewise.
5394         * modules/unictype/property-pattern-syntax-tests: Likewise.
5395         * modules/unictype/property-pattern-white-space-tests: Likewise.
5396         * modules/unictype/property-private-use-tests: Likewise.
5397         * modules/unictype/property-punctuation-tests: Likewise.
5398         * modules/unictype/property-quotation-mark-tests: Likewise.
5399         * modules/unictype/property-radical-tests: Likewise.
5400         * modules/unictype/property-sentence-terminal-tests: Likewise.
5401         * modules/unictype/property-soft-dotted-tests: Likewise.
5402         * modules/unictype/property-space-tests: Likewise.
5403         * modules/unictype/property-terminal-punctuation-tests: Likewise.
5404         * modules/unictype/property-test-tests: Likewise.
5405         * modules/unictype/property-titlecase-tests: Likewise.
5406         * modules/unictype/property-unassigned-code-value-tests: Likewise.
5407         * modules/unictype/property-unified-ideograph-tests: Likewise.
5408         * modules/unictype/property-uppercase-tests: Likewise.
5409         * modules/unictype/property-variation-selector-tests: Likewise.
5410         * modules/unictype/property-white-space-tests: Likewise.
5411         * modules/unictype/property-xid-continue-tests: Likewise.
5412         * modules/unictype/property-xid-start-tests: Likewise.
5413         * modules/unictype/property-zero-width-tests: Likewise.
5414         * modules/unictype/scripts-tests: Likewise.
5415         * modules/unictype/syntax-c-ident-tests: Likewise.
5416         * modules/unictype/syntax-c-whitespace-tests: Likewise.
5417         * modules/unictype/syntax-java-ident-tests: Likewise.
5418         * modules/unictype/syntax-java-whitespace-tests: Likewise.
5419         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
5420         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
5421         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
5422         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
5423         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
5424         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
5425         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
5426         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
5427         * modules/uniname/uniname-tests: Likewise.
5428         * modules/uninorm/canonical-decomposition-tests: Likewise.
5429         * modules/uninorm/compat-decomposition-tests: Likewise.
5430         * modules/uninorm/composition-tests: Likewise.
5431         * modules/uninorm/decomposing-form-tests: Likewise.
5432         * modules/uninorm/decomposition-tests: Likewise.
5433         * modules/uninorm/filter-tests: Likewise.
5434         * modules/uninorm/nfc-tests: Likewise.
5435         * modules/uninorm/nfd-tests: Likewise.
5436         * modules/uninorm/nfkc-tests: Likewise.
5437         * modules/uninorm/nfkd-tests: Likewise.
5438         * modules/uninorm/u8-normcmp-tests: Likewise.
5439         * modules/uninorm/u8-normcoll-tests: Likewise.
5440         * modules/uninorm/u16-normcmp-tests: Likewise.
5441         * modules/uninorm/u16-normcoll-tests: Likewise.
5442         * modules/uninorm/u32-normcmp-tests: Likewise.
5443         * modules/uninorm/u32-normcoll-tests: Likewise.
5444         * modules/unistdio/u8-asnprintf-tests: Likewise.
5445         * modules/unistdio/u8-vasnprintf-tests: Likewise.
5446         * modules/unistdio/u8-vasprintf-tests: Likewise.
5447         * modules/unistdio/u8-vsnprintf-tests: Likewise.
5448         * modules/unistdio/u8-vsprintf-tests: Likewise.
5449         * modules/unistdio/u16-asnprintf-tests: Likewise.
5450         * modules/unistdio/u16-vasnprintf-tests: Likewise.
5451         * modules/unistdio/u16-vasprintf-tests: Likewise.
5452         * modules/unistdio/u16-vsnprintf-tests: Likewise.
5453         * modules/unistdio/u16-vsprintf-tests: Likewise.
5454         * modules/unistdio/u32-asnprintf-tests: Likewise.
5455         * modules/unistdio/u32-vasnprintf-tests: Likewise.
5456         * modules/unistdio/u32-vasprintf-tests: Likewise.
5457         * modules/unistdio/u32-vsnprintf-tests: Likewise.
5458         * modules/unistdio/u32-vsprintf-tests: Likewise.
5459         * modules/unistdio/ulc-asnprintf-tests: Likewise.
5460         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
5461         * modules/unistdio/ulc-vasprintf-tests: Likewise.
5462         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
5463         * modules/unistdio/ulc-vsprintf-tests: Likewise.
5464         * modules/unistr/u8-check-tests: Likewise.
5465         * modules/unistr/u8-chr-tests: Likewise.
5466         * modules/unistr/u8-cmp-tests: Likewise.
5467         * modules/unistr/u8-cmp2-tests: Likewise.
5468         * modules/unistr/u8-cpy-alloc-tests: Likewise.
5469         * modules/unistr/u8-cpy-tests: Likewise.
5470         * modules/unistr/u8-mblen-tests: Likewise.
5471         * modules/unistr/u8-mbsnlen-tests: Likewise.
5472         * modules/unistr/u8-mbtouc-tests: Likewise.
5473         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
5474         * modules/unistr/u8-mbtoucr-tests: Likewise.
5475         * modules/unistr/u8-move-tests: Likewise.
5476         * modules/unistr/u8-next-tests: Likewise.
5477         * modules/unistr/u8-prev-tests: Likewise.
5478         * modules/unistr/u8-set-tests: Likewise.
5479         * modules/unistr/u8-stpcpy-tests: Likewise.
5480         * modules/unistr/u8-stpncpy-tests: Likewise.
5481         * modules/unistr/u8-strcat-tests: Likewise.
5482         * modules/unistr/u8-strcmp-tests: Likewise.
5483         * modules/unistr/u8-strcoll-tests: Likewise.
5484         * modules/unistr/u8-strcpy-tests: Likewise.
5485         * modules/unistr/u8-strdup-tests: Likewise.
5486         * modules/unistr/u8-strlen-tests: Likewise.
5487         * modules/unistr/u8-strmblen-tests: Likewise.
5488         * modules/unistr/u8-strmbtouc-tests: Likewise.
5489         * modules/unistr/u8-strncat-tests: Likewise.
5490         * modules/unistr/u8-strncmp-tests: Likewise.
5491         * modules/unistr/u8-strncpy-tests: Likewise.
5492         * modules/unistr/u8-strnlen-tests: Likewise.
5493         * modules/unistr/u8-to-u16-tests: Likewise.
5494         * modules/unistr/u8-to-u32-tests: Likewise.
5495         * modules/unistr/u8-uctomb-tests: Likewise.
5496         * modules/unistr/u16-check-tests: Likewise.
5497         * modules/unistr/u16-chr-tests: Likewise.
5498         * modules/unistr/u16-cmp-tests: Likewise.
5499         * modules/unistr/u16-cmp2-tests: Likewise.
5500         * modules/unistr/u16-cpy-alloc-tests: Likewise.
5501         * modules/unistr/u16-cpy-tests: Likewise.
5502         * modules/unistr/u16-mblen-tests: Likewise.
5503         * modules/unistr/u16-mbsnlen-tests: Likewise.
5504         * modules/unistr/u16-mbtouc-tests: Likewise.
5505         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
5506         * modules/unistr/u16-mbtoucr-tests: Likewise.
5507         * modules/unistr/u16-move-tests: Likewise.
5508         * modules/unistr/u16-next-tests: Likewise.
5509         * modules/unistr/u16-prev-tests: Likewise.
5510         * modules/unistr/u16-set-tests: Likewise.
5511         * modules/unistr/u16-stpcpy-tests: Likewise.
5512         * modules/unistr/u16-stpncpy-tests: Likewise.
5513         * modules/unistr/u16-strcat-tests: Likewise.
5514         * modules/unistr/u16-strcmp-tests: Likewise.
5515         * modules/unistr/u16-strcoll-tests: Likewise.
5516         * modules/unistr/u16-strcpy-tests: Likewise.
5517         * modules/unistr/u16-strdup-tests: Likewise.
5518         * modules/unistr/u16-strlen-tests: Likewise.
5519         * modules/unistr/u16-strmblen-tests: Likewise.
5520         * modules/unistr/u16-strmbtouc-tests: Likewise.
5521         * modules/unistr/u16-strncat-tests: Likewise.
5522         * modules/unistr/u16-strncmp-tests: Likewise.
5523         * modules/unistr/u16-strncpy-tests: Likewise.
5524         * modules/unistr/u16-strnlen-tests: Likewise.
5525         * modules/unistr/u16-to-u32-tests: Likewise.
5526         * modules/unistr/u16-to-u8-tests: Likewise.
5527         * modules/unistr/u16-uctomb-tests: Likewise.
5528         * modules/unistr/u32-check-tests: Likewise.
5529         * modules/unistr/u32-chr-tests: Likewise.
5530         * modules/unistr/u32-cmp-tests: Likewise.
5531         * modules/unistr/u32-cmp2-tests: Likewise.
5532         * modules/unistr/u32-cpy-alloc-tests: Likewise.
5533         * modules/unistr/u32-cpy-tests: Likewise.
5534         * modules/unistr/u32-mblen-tests: Likewise.
5535         * modules/unistr/u32-mbsnlen-tests: Likewise.
5536         * modules/unistr/u32-mbtouc-tests: Likewise.
5537         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
5538         * modules/unistr/u32-mbtoucr-tests: Likewise.
5539         * modules/unistr/u32-move-tests: Likewise.
5540         * modules/unistr/u32-next-tests: Likewise.
5541         * modules/unistr/u32-prev-tests: Likewise.
5542         * modules/unistr/u32-set-tests: Likewise.
5543         * modules/unistr/u32-stpcpy-tests: Likewise.
5544         * modules/unistr/u32-stpncpy-tests: Likewise.
5545         * modules/unistr/u32-strcat-tests: Likewise.
5546         * modules/unistr/u32-strcmp-tests: Likewise.
5547         * modules/unistr/u32-strcoll-tests: Likewise.
5548         * modules/unistr/u32-strcpy-tests: Likewise.
5549         * modules/unistr/u32-strdup-tests: Likewise.
5550         * modules/unistr/u32-strlen-tests: Likewise.
5551         * modules/unistr/u32-strmblen-tests: Likewise.
5552         * modules/unistr/u32-strmbtouc-tests: Likewise.
5553         * modules/unistr/u32-strncat-tests: Likewise.
5554         * modules/unistr/u32-strncmp-tests: Likewise.
5555         * modules/unistr/u32-strncpy-tests: Likewise.
5556         * modules/unistr/u32-strnlen-tests: Likewise.
5557         * modules/unistr/u32-to-u16-tests: Likewise.
5558         * modules/unistr/u32-to-u8-tests: Likewise.
5559         * modules/unistr/u32-uctomb-tests: Likewise.
5560         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
5561         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
5562         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
5563         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
5564         * modules/uniwidth/u8-strwidth-tests: Likewise.
5565         * modules/uniwidth/u8-width-tests: Likewise.
5566         * modules/uniwidth/u16-strwidth-tests: Likewise.
5567         * modules/uniwidth/u16-width-tests: Likewise.
5568         * modules/uniwidth/u32-strwidth-tests: Likewise.
5569         * modules/uniwidth/u32-width-tests: Likewise.
5570         * modules/uniwidth/width-tests: Likewise.
5571
5572 2010-05-18  Richard Jones  <rjones@redhat.com>
5573
5574         doc: users.txt: list hivex
5575         * users.txt: Add hivex.
5576
5577 2010-05-18  Richard Jones  <rjones@redhat.com>
5578
5579         doc: users.txt: list febootstrap
5580         * users.txt: Add febootstrap.
5581
5582 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
5583
5584         bootstrap: fix an error when gnulib is not used as a git submodule
5585         * build-aux/bootstrap (gnulib_path): If its length is zero then
5586         assign "gnulib" to it.
5587         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
5588
5589 2010-05-16  Bruno Haible  <bruno@clisp.org>
5590
5591         Avoid autoconf warnings about AM_ICONV.
5592         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
5593         2.64.
5594
5595 2010-05-16  Bruno Haible  <bruno@clisp.org>
5596
5597         absolute-header: Make the macro usable in more situations.
5598         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
5599         from gl_ABSOLUTE_HEADER.
5600         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
5601
5602 2010-05-16  James Youngman  <jay@gnu.org>
5603
5604         doc: update users.txt
5605         * users.txt: Add CSSC.
5606
5607 2010-05-16  Jim Meyering  <meyering@redhat.com>
5608
5609         init.sh: fix an error in the previous change; add more comments
5610         * tests/init.sh: Compare exit code in loop against 9, not 2.
5611         Patch by Bruno Haible.
5612         Make the two tests more similar by adding an empty "then" clause.
5613         Add comments.
5614
5615         init.sh: avoid unnecessary shell re-exec
5616         * tests/init.sh: Improve the re-exec-required check to first test the
5617         current shell.  If it passes the test, do not search for a shell that
5618         does pass, and do not re-exec.  This test is particularly contorted to
5619         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
5620         of $(...) evokes a syntax error and causes immediate shell exit with
5621         status 2.  Bruno Haible reported that the re-exec made it impossible
5622         to single-step through any init.sh-using script.
5623
5624 2010-05-16  Bruno Haible  <bruno@clisp.org>
5625
5626         Fix collision between gnulib's and libintl's printf replacements.
5627         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
5628         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
5629         (printf): When using GNU C, map the __printf__ function to rpl_printf
5630         via __asm__. When not using GNU C, define rpl_printf instead of
5631         __printf__.
5632         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
5633         commit.
5634         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
5635         commit.
5636         * m4/asm-underscore.m4: New file.
5637         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
5638         * modules/stdio (Files): Add m4/asm-underscore.m4.
5639         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
5640         Reported by Ben Pfaff.
5641
5642 2010-05-16  Bruno Haible  <bruno@clisp.org>
5643
5644         verify: Avoid skipping the test on openSUSE 11.0.
5645         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
5646
5647 2010-05-13  Bruno Haible  <bruno@clisp.org>
5648
5649         Avoid useless warnings from G++.
5650         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
5651         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
5652         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
5653
5654 2010-05-11  Jim Meyering  <meyering@redhat.com>
5655
5656         maint.mk: tweak preceding change
5657         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
5658         regexps tighter by anchoring at EOL, and make the new group "shy"
5659         for slightly decreased overhead.
5660
5661 2010-05-11  Eric Blake  <eblake@redhat.com>
5662
5663         maint.mk: gnulib doesn't guarantee NSIG
5664         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
5665
5666 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
5667
5668         test-pwrite.c: Remove unused variable declaration.
5669         * tests/test-pwrite.c (main): Remove read_buf declaration.
5670
5671         Remove useless test-pwrite.sh file.
5672         * tests/test-pwrite.sh: Delete file.
5673         * modules/pwrite-tests: Remove references.
5674         Reported by Bruno Haible.
5675
5676 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
5677
5678         init.sh: fix a typo
5679         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
5680
5681 2010-05-10  Jim Meyering  <meyering@redhat.com>
5682
5683         maint.mk: avoid using a temporary file in the always-defined-macros check
5684         * top/maint.mk (.re-defmac): Remove rule.
5685         (gl_trap_): Remove definition.
5686         (sc_prohibit_always-defined_macros): Rewrite not to create and
5687         depend on a temporary file.  Instead, depend on GNU grep's ability
5688         to read a list of regular expressions from stdin when given "-f -".
5689
5690 2010-05-09  Bruno Haible  <bruno@clisp.org>
5691
5692         Update to GNU gettext 0.18, part 1.
5693         * m4/gettext.m4: Update to GNU gettext 0.18.
5694         * m4/intl.m4: Likewise.
5695         * m4/po.m4: Likewise.
5696         * modules/gettext (Files): Add m4/fcntl-o.m4.
5697         (configure.ac): Require gettext infrastructure from version 0.18.
5698
5699 2010-05-09  Jim Meyering  <meyering@redhat.com>
5700
5701         init.sh: enable MALLOC_PERTURB_
5702         * tests/init.sh: Enable glibc's malloc-perturbing option.
5703
5704         maint.mk: improve sc_cross_check_PATH_usage_in_tests
5705         With my recent change in init.sh from the two-line form:
5706             -#   : ${srcdir=.}
5707             -#   . "$srcdir/init.sh"; path_prepend_ .
5708             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
5709         I noticed that using the one-line form would cause this test
5710         to fail with a false-positive, or to stop working altogether,
5711         depending on whether help-version changed or all the tests did.
5712         * top/maint.mk (_hv_regex): Remove this definition.
5713         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
5714         (_hv_regex_strong): Use a stronger regex to check for conformance.
5715         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
5716         Give a separate diagnostic for lack of conforming use.
5717
5718         maint.mk: prohibit definition of symbols defined by gnulib
5719         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
5720         definition of symbols defined by gnulib.
5721
5722 2010-05-09  Bruno Haible  <bruno@clisp.org>
5723
5724         acl: Avoid test failure on Cygwin-hosted mingw.
5725         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
5726
5727 2010-05-09  Bruno Haible  <bruno@clisp.org>
5728
5729         error: Use system's fcntl function.
5730         * lib/error.c (fcntl): Undefine.
5731
5732 2010-05-09  Jim Meyering  <meyering@redhat.com>
5733
5734         verify: adjust formatting to be more consistent
5735         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
5736         argument-list '('s, and after one comma.
5737
5738 2010-05-09  Bruno Haible  <bruno@clisp.org>
5739
5740         error: More reliable output on mingw.
5741         * lib/error.c: Include <windows.h>.
5742         (is_open): New function.
5743         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
5744         defined.
5745
5746 2010-05-09  Bruno Haible  <bruno@clisp.org>
5747
5748         vasnprintf: Fix syntax errors in libintl build on mingw.
5749         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
5750         pad_ourselves and prec_ourselves after use.
5751
5752 2010-05-08  Bruno Haible  <bruno@clisp.org>
5753
5754         * lib/config.charset: Update comments for Cygwin 1.7.
5755         * lib/localcharset.c: Likewise.
5756
5757 2010-05-07  Jim Meyering  <meyering@redhat.com>
5758
5759         init.sh: improve comments
5760         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
5761         . "${srcdir=.}/init.sh"; path_prepend_ .
5762         Add a note about path_prepend_ and the alternative of using
5763         TESTS_ENVIRONMENT.
5764
5765 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
5766
5767         exclude: Unescape hashed patterns in wildcard mode.
5768         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
5769         to the hash list.
5770         * tests/test-exclude8.sh: New test case.
5771         * modules/exclude-tests: Add new test.
5772
5773 2010-05-05  Eric Blake  <eblake@redhat.com>
5774
5775         verify: automate tests
5776         * modules/verify-tests: New module.
5777         * tests/test-verify.sh: New file.
5778         * tests/test-verify.c: Guard each negative test with a unique id.
5779         Also avoid warning about unused left hand of comma expressions.
5780
5781 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
5782
5783         Further improvements to verify.h, suggested by Eric Blake.
5784         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
5785         the GL_* versions, to avoid collision with OpenGL.
5786         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
5787         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
5788         than testing merely whether it's defined.
5789
5790         Modify verify.h to pacify gcc -Wredundant_decls.
5791         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
5792         These use the prefix "GL_" since they're likely to be useful elsewhere.
5793         We may need to break them out into a different .h file.
5794         (__COUNTER__): Define to 0 if the compiler doesn't support it.
5795         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
5796         of verify_function__.
5797
5798 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
5799
5800         Tests for module pwrite.
5801         * modules/pwrite-tests: New file.
5802         * tests/test-pwrite.sh: New file.
5803         * tests/test-pwrite.c: New file.
5804
5805         New module pwrite.
5806         * lib/unistd.in.h (pwrite): New declaration.
5807         * lib/pwrite.c: New file, from glibc with modifications.
5808         * m4/pwrite.m4: New file.
5809         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
5810         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
5811         REPLACE_PWRITE.
5812         * modules/pwrite: New file.
5813         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
5814         REPLACE_PWRITE.
5815         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
5816         * doc/posix-functions/pwrite.texi: Mention the new module.
5817
5818 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
5819
5820         pread: Update documentation.
5821         * doc/posix-functions/pread.texi: Mention the 'pread' module.
5822
5823 2010-05-04  Eric Blake  <eblake@redhat.com>
5824
5825         docs: update cygwin progress
5826         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
5827         this bug.
5828         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
5829         Added in cygwin 1.7.2.
5830         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
5831         Likewise.
5832         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
5833         Likewise.
5834         * doc/glibc-functions/dup3.texi (dup3): Likewise.
5835         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
5836         * doc/glibc-functions/accept4.texi (accept4): Likewise.
5837         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
5838         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
5839         Mention nproc module.
5840         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
5841         bug in cygwin 1.7.5 addition.
5842         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
5843         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
5844         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
5845         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
5846         1.7.5.
5847         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
5848         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
5849         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
5850         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
5851         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
5852         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
5853         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
5854         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
5855         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
5856         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
5857         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
5858         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
5859         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
5860         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
5861         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
5862         Likewise.
5863         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
5864         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
5865         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
5866         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
5867         Likewise.
5868         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
5869         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
5870         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
5871         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
5872         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
5873         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
5874         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
5875         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
5876         Likewise.
5877         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
5878         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
5879         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
5880         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
5881         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
5882         Likewise.
5883         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
5884         Likewise.
5885         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
5886         Likewise.
5887         * doc/glibc-functions/xdrrec_endofrecord.texi
5888         (xdrrec_endofrecord): Likewise.
5889         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
5890         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
5891         Likewise.
5892         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
5893         Likewise.
5894
5895 2010-05-04  Jim Meyering  <meyering@redhat.com>
5896
5897         gendocs.sh: make its "-s FILE" option more useful
5898         * build-aux/gendocs.sh: When honoring the -s FILE option, update
5899         $PACKAGE to reflect the probably-different basename of "FILE".
5900
5901 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
5902
5903         bootstrap: don't ignore download_po_files failure
5904         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
5905         failure.
5906
5907 2010-05-03  Jim Meyering  <meyering@redhat.com>
5908
5909         maint.mk: allow to pass options to gendocs.sh
5910         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
5911         (gendocs_options_): New overridable variable.
5912
5913         gnu-web-doc-update: don't ignore configure or build failure
5914         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
5915
5916         announce-gen: backslash-escape '@'s in --help output
5917         * build-aux/announce-gen: Fix syntax errors.
5918
5919         maint.mk, announce-gen: allow project-specific announcement mail headers
5920         * top/maint.mk (translation_project_): Define default.
5921         (announcement_Cc_, announcement_mail_headers_): Likewise.
5922         (announcement): Invoke announce-gen with new --mail-headers option.
5923         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
5924
5925         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
5926         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
5927         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
5928         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
5929         line in the "err2" output file when running "make check" in verbose
5930         mode (i.e., with set -x enabled).
5931
5932 2010-05-03  Bruno Haible  <bruno@clisp.org>
5933
5934         wctob: Fix for weird platforms.
5935         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
5936         argument value.
5937
5938 2010-05-03  Jim Meyering  <meyering@redhat.com>
5939
5940         maint.mk: prohibit unwarranted use of <strings.h>
5941         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
5942         strings.h in a file that does not also use strcasecmp, strncasecmp,
5943         ffs or ffsll.
5944
5945         maint.mk: remove obsolete comments
5946         * top/maint.mk: Remove stale, commented-out rules.
5947
5948 2010-05-02  Bruno Haible  <bruno@clisp.org>
5949
5950         wcwidth: Declare also when it's aliased.
5951         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
5952         macro.
5953
5954 2010-05-02  Bruno Haible  <bruno@clisp.org>
5955
5956         Fix regression from 2010-04-25.
5957         * gnulib-tool (func_modules_transitive_closure): Check the status of
5958         all modules, not only of the tests that are of the form foo-tests where
5959         foo is a module.
5960
5961 2010-05-02  Bruno Haible  <bruno@clisp.org>
5962
5963         wctob: Work around nasty Cygwin 1.7.2 bug.
5964         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
5965         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
5966
5967 2010-05-01  Bruno Haible  <bruno@clisp.org>
5968
5969         fpurge: Sharper test.
5970         * tests/test-fpurge.c (main): Add one more ftell check.
5971         * modules/fpurge-tests (Depends-on): Add ftell.
5972         Suggested by Eric Blake.
5973
5974 2010-05-01  Bruno Haible  <bruno@clisp.org>
5975
5976         ftello: Another test.
5977         * tests/test-ftello3.c: New file.
5978         * modules/ftello-tests (Files): Add it.
5979         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
5980         MOSTLYCLEANFILES.
5981
5982         ftell: Another test.
5983         * tests/test-ftell3.c: New file.
5984         * modules/ftell-tests (Files): Add it.
5985         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
5986         MOSTLYCLEANFILES.
5987
5988 2010-05-01  Bruno Haible  <bruno@clisp.org>
5989
5990         ftell, ftello: Work around Solaris bug.
5991         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
5992         * lib/ftello.c: Include stdio-impl.h.
5993         (ftello): On Solaris, when _IOWRT is set, compute the result without
5994         looking at _IOREAD.
5995         * modules/ftello (Files): Add lib/stdio-impl.h.
5996         * doc/posix-functions/ftell.texi: Mention Solaris bug.
5997         * doc/posix-functions/ftello.texi: Likewise.
5998         Reported by Eric Blake.
5999
6000 2010-05-01  Bruno Haible  <bruno@clisp.org>
6001
6002         freading: Adapt to special meaning of _IOREAD flag on Solaris.
6003         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
6004         the _IOWRT flag is also set.
6005
6006 2010-05-01  Bruno Haible  <bruno@clisp.org>
6007
6008         Fix doc about a HP-UX stdio bug.
6009         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
6010         * doc/posix-functions/ftello.texi: Likewise.
6011
6012 2010-05-01  Bruno Haible  <bruno@clisp.org>
6013
6014         lseek test: Fix failure on Solaris.
6015         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
6016         output.
6017
6018 2010-04-30  Jim Meyering  <meyering@redhat.com>
6019
6020         bootstrap: don't ignore failure to generate po*/Makevars
6021         * build-aux/bootstrap (with_gettext): Don't ignore failure
6022         to create po/Makevars or runtime-po/Makevars.
6023
6024 2010-04-29  Eric Blake  <eblake@redhat.com>
6025
6026         headers: relax license to LGPLv2+
6027         * modules/fcntl-h (License): Relax license.
6028         * modules/getopt-posix (License): Likewise.
6029         * modules/locale (License): Likewise.
6030         * modules/math (License): Likewise.
6031         * modules/pty (License): Likewise.
6032         * modules/sched (License): Likewise.
6033         * modules/search (License): Likewise.
6034         * modules/spawn (License): Likewise.
6035         * modules/stdarg (License): Likewise.
6036         * modules/sysexits (License): Likewise.
6037
6038 2010-04-29  Jim Meyering  <meyering@redhat.com>
6039
6040         inttypes: relax license to LGPLv2+
6041         * modules/inttypes (License): Relax license.
6042
6043 2010-04-29  Simon Josefsson  <simon@josefsson.org>
6044
6045         * top/maint.mk (indent): Run twice to produce idempotent results.
6046
6047 2010-04-28  Bruno Haible  <bruno@clisp.org>
6048
6049         getdate: Generate getdate.c in the source directory.
6050         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
6051         MOSTLYCLEANFILES.
6052         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
6053
6054 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
6055
6056         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
6057         is not declared as a const *; avoid warnings in that case.
6058
6059 2010-04-28  Eric Blake  <eblake@redhat.com>
6060
6061         canonicalize-lgpl: avoid compiler warning
6062         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
6063         declaration' / 'extraneous semicolon' warning with some compilers.
6064         Reported by Andreas Gruenbacher.
6065
6066 2010-04-28  Jim Meyering  <meyering@redhat.com>
6067
6068         init.sh: ensure a more reliable exit status when exiting via trap
6069         * tests/init.sh (setup_): Don't rely on $? in signal handler.
6070         Inspired by patches from Dmitry V. Levin.
6071         Also trap on signal 3 (SIGQUIT).
6072
6073 2010-04-27  Bruno Haible  <bruno@clisp.org>
6074
6075         Update doc about utimes().
6076         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
6077         'utimens' module.
6078         Reported by Andreas Gruenbacher <agruen@suse.de>.
6079
6080 2010-04-27  Eric Blake  <eblake@redhat.com>
6081
6082         full-read, full-write: relax license
6083         * modules/full-read (License): Drop to LGPLv2+.
6084         * modules/full-write (License): Likewise.
6085         * modules/safe-read (License): Likewise.
6086         * modules/safe-write (License): Likewise.
6087
6088         pthread: mention library for linking
6089         * modules/pthread (Link): Mention $(LIB_PTHREAD).
6090
6091 2010-04-27  Jim Meyering  <meyering@redhat.com>
6092
6093         maint.mk: fix a bug introduced in last change
6094         * top/maint.mk (gl_assured_headers_): Now that all names are on
6095         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
6096         is not anchored to end of word, it should be adequate.
6097
6098         maint.mk: avoid side-effect in latest syntax-check
6099         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
6100         to run commands via $(shell...), and hence to incur cost only when
6101         the new rule is actually run.
6102
6103         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
6104         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
6105         and use that to create a regexp used to detect all #if HAVE_..._H uses.
6106         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
6107         (gl_assured_headers_, az_, AZ_): Define.
6108         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
6109
6110 2010-04-26  Jim Meyering  <jim@meyering.net>
6111             Bruno Haible  <bruno@clisp.org>
6112
6113         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
6114         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
6115         Prompted by an exchange with Gilles Espinasse.
6116
6117 2010-04-26  Jim Meyering  <meyering@redhat.com>
6118
6119         git-version-gen: aesthetic tweak
6120         * build-aux/git-version-gen: Use "$nl" rather than a literal,
6121         so that the command remains on a single line.
6122
6123 2010-04-26  Eric Blake  <eblake@redhat.com>
6124
6125         git-version-gen: allow use on EBCDIC hosts
6126         * build-aux/git-version-gen (dirty): Use literal rather than tying
6127         ourselves to ascii.
6128         Reported by Steve Goetze.
6129
6130 2010-04-25  Bruno Haible  <bruno@clisp.org>
6131
6132         netdb: Add support for GNULIB_POSIXCHECK.
6133         * lib/netdb.in.h: Include warn-on-use.h.
6134         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
6135         functions are used when GNULIB_POSIXCHECK is defined and the
6136         getaddrinfo module is not in use.
6137         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
6138         freeaddrinfo, gai_strerror, getnameinfo are declared.
6139         * modules/netdb (Depends-on): Add warn-on-use.
6140         (Makefile.am): Include warn-on-use.h in netdb.h.
6141
6142 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
6143
6144         build: avoid "make check" failure without .git/ directory
6145         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
6146         there is no .git/ directory.
6147
6148 2010-04-25  Bruno Haible  <bruno@clisp.org>
6149
6150         ptsname: Fix misuse of ttyname_r.
6151         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
6152         of errno.
6153
6154 2010-04-25  Bruno Haible  <bruno@clisp.org>
6155
6156         ttyname_r: Make it work on Solaris 10.
6157         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
6158         if the system function has the POSIX declaration. Test whether the
6159         function fails if the buffer is less than 128 bytes large.
6160         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
6161         system's ttyname_r function. Provide a reasonably large buffer.
6162         * modules/ttyname_r (Depends-on): Add extensions.
6163         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
6164
6165 2010-04-25  Bruno Haible  <bruno@clisp.org>
6166
6167         Use the 'extensions' module for some more functions on Solaris.
6168         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
6169         module.
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/getpwnam_r.texi: Likewise.
6174         * doc/posix-functions/getpwuid_r.texi: Likewise.
6175         * doc/posix-functions/readdir_r.texi: Likewise.
6176         * doc/posix-functions/sigwait.texi: Likewise.
6177         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
6178         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
6179
6180 2010-04-25  Bruno Haible  <bruno@clisp.org>
6181
6182         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
6183         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
6184         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
6185         * lib/ttyname_r.c: Include <limits.h>.
6186         (ttyname_r): Define using the system's ttyname_r function, if it exists
6187         and not on Solaris.
6188         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
6189         set.
6190         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
6191         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
6192         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
6193         Reported by Simon Josefsson.
6194
6195 2010-04-25  Bruno Haible  <bruno@clisp.org>
6196
6197         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
6198         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
6199         * doc/posix-functions/ctime_r.texi: Likewise.
6200         * doc/posix-functions/getgrgid_r.texi: Likewise.
6201         * doc/posix-functions/getgrnam_r.texi: Likewise.
6202         * doc/posix-functions/getlogin_r.texi: Likewise.
6203         * doc/posix-functions/getpwnam_r.texi: Likewise.
6204         * doc/posix-functions/getpwuid_r.texi: Likewise.
6205         * doc/posix-functions/readdir_r.texi: Likewise.
6206         * doc/posix-functions/sigwait.texi: Likewise.
6207         * doc/posix-functions/ttyname_r.texi: Likewise.
6208         Reported by Simon Josefsson.
6209
6210 2010-04-25  Bruno Haible  <bruno@clisp.org>
6211
6212         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
6213         * gnulib-tool (func_usage): Document that --with-*-tests options apply
6214         also to --create-testdir.
6215         (func_acceptable): Don't consider the status of *-tests modules here.
6216         (func_modules_transitive_closure): Consider it here, before including a
6217         test module.
6218         (func_import, func_create_testdir): Set inc_all_direct_tests,
6219         inc_all_indirect_tests.
6220         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
6221         --create-testdir and --create-megatestdir.
6222
6223 2010-04-25  Bruno Haible  <bruno@clisp.org>
6224
6225         gnulib-tool: Add --without-*-tests options.
6226         * gnulib-tool (func_usage): Document the --without-*-tests options.
6227         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
6228         excl_unportable_tests): New variables.
6229         Fail if they are specified with --import or --update.
6230         (func_acceptable): Respect the excl_*_tests variables.
6231         (func_import): Set the excl_*_tests variables to empty.
6232
6233 2010-04-25  Simon Josefsson  <simon@josefsson.org>
6234             Bruno Haible  <bruno@clisp.org>
6235
6236         Work around a MacOS X 10.4 bug with openpty.
6237         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
6238         * tests/test-openpty.c (main): Close the master side explicitly.
6239
6240 2010-04-25  Bruno Haible  <bruno@clisp.org>
6241
6242         strnlen: Fix a C++ test error on MacOS X and Solaris.
6243         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
6244         the function is not declared.
6245         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
6246         Simon Josefsson.
6247
6248 2010-04-24  Bruno Haible  <bruno@clisp.org>
6249
6250         Avoid a gcc warning.
6251         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
6252         of correct type for %08lx directive.
6253         Reported by Eric Blake.
6254
6255 2010-04-24  Bruno Haible  <bruno@clisp.org>
6256
6257         vasnprintf: Correct errno value in case of out-of-memory.
6258         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
6259         or sprintf. Use the errno value from SNPRINTF or sprintf.
6260         Reported by Ian Beckwith <ianb@erislabs.net>.
6261
6262 2010-04-24  Bruno Haible  <bruno@clisp.org>
6263
6264         ansi-c++-opt: Find correct compiler when cross-compiling.
6265         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
6266         AC_CHECK_PROGS.
6267         Reported by Simon Josefsson.
6268
6269 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
6270
6271         vc-list-files: Add support for subversion
6272         * build-aux/vc-list-files: Use "svn list" to generate the list of
6273         files controlled by subversion.
6274
6275 2010-04-23  Jim Meyering  <meyering@redhat.com>
6276
6277         vc-list-files tests: convert to use init.sh
6278         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
6279         path_prepend_.
6280         Use Exit, not exit.
6281         Use skip_ rather than open coding it.
6282         Remove trap set-up and compare definitions.
6283         * tests/test-vc-list-files-git.sh: Likewise.
6284         * modules/vc-list-files-tests (Files): Add tests/init.sh.
6285
6286 2010-04-22  Simon Josefsson  <simon@josefsson.org>
6287
6288         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
6289         backup files.
6290
6291 2010-04-21  Simon Josefsson  <simon@josefsson.org>
6292
6293         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
6294
6295 2010-04-20  Eric Blake  <eblake@redhat.com>
6296
6297         tests: be robust to ignored SIGPIPE
6298         * tests/test-select-in.sh: Consume all output.
6299         * tests/test-lseek.sh: Check correct exit status, while avoiding
6300         EPIPE.
6301
6302 2010-04-20  Simon Josefsson  <simon@josefsson.org>
6303             Bruno Haible  <bruno@clisp.org>
6304
6305         visibility: Don't use -fvisibility if it leads to a warning.
6306         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
6307         yes, don't pretend that visibility works if it leads to a warning.
6308         Reported by Mike Gran <spk121@yahoo.com>.
6309
6310 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
6311
6312         * build-aux/bootstrap: Use "git -h" for testing for supported options
6313         instead of "git --help".  The short-form option only shows a summary,
6314         and doesn't layout the full man page.  Grep for the full option name
6315         in the summary, too.
6316
6317 2010-04-19  Bruno Haible  <bruno@clisp.org>
6318
6319         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
6320         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
6321         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
6322         mention of RELOCATABLE_STRIP.
6323         Reported by Sylvain Beucler <beuc@beuc.net>.
6324
6325 2010-04-19  Bruno Haible  <bruno@clisp.org>
6326
6327         * lib/diffseq.h: Fix typo in comment.
6328         Reported by Eric Blake.
6329
6330 2010-04-19  Bruno Haible  <bruno@clisp.org>
6331
6332         ioctl: Move autoconf macro to a .m4 file.
6333         * m4/ioctl.m4: New file, extracted from modules/ioctl.
6334         * modules/ioctl (Files): Add it.
6335         (configure.ac): Simply invoke gl_FUNC_IOCTL.
6336         Reported by Ian Beckwith <ianb@erislabs.net>.
6337
6338 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
6339             Bruno Haible  <bruno@clisp.org>
6340
6341         diffseq: Accommodate use-case with abstract arrays.
6342         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
6343         is not defined.
6344         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
6345         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
6346
6347 2010-04-18  Bruno Haible  <bruno@clisp.org>
6348
6349         * doc/posix-headers/stdbool.texi: More precise wording.
6350
6351 2010-04-17  Jim Meyering  <meyering@redhat.com>
6352
6353         maint.mk: use gnu-style indentation in an embedded perl script
6354         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
6355         Rename variable: s/two/last_two_bytes/
6356
6357 2010-04-16  Eric Blake  <eblake@redhat.com>
6358
6359         test-stdbool: skip test that fails with Solaris CC
6360         * tests/test-stdbool.c (f): Skip test that causes compilation
6361         error under buggy C++ compiler.
6362         * lib/stdbool.in.h: Document the limitation.
6363         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
6364
6365         setenv: allow compilation with C++
6366         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
6367         register keyword.
6368
6369         stdint: allow test to pass with C++
6370         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
6371
6372         getopt: allow compilation with C++
6373         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
6374         struct.
6375         * lib/getopt.c (_getopt_internal_r): Use correct type.
6376         Reported by Dagobert Michelson, via Joel E. Denny.
6377
6378 2010-04-16  Bruno Haible  <bruno@clisp.org>
6379
6380         Override netdb.h always.
6381         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
6382         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
6383         Reported by Ludovic Courtès <ludo@gnu.org>.
6384
6385 2010-04-15  Bruno Haible  <bruno@clisp.org>
6386
6387         openpty: Fix mistake from 2010-03-21.
6388         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
6389         Reported by Simon Josefsson.
6390
6391 2010-04-15  Eric Blake  <eblake@redhat.com>
6392
6393         test-forkpty: fix expected signature
6394         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
6395         Reported by Simon Josefsson.
6396
6397 2010-04-15  Jim Meyering  <meyering@redhat.com>
6398
6399         maint.mk: texinfo_suffix_re_: correct the default regexp
6400         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
6401
6402         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
6403         make it configurable via texinfo_suffix_re_.
6404
6405 2010-04-14  Eric Blake  <eblake@redhat.com>
6406
6407         strtok_r: relax license to LGPLv2+
6408         * modules/strtok_r (License): Relax license.
6409         Reported by Matthias Bolte.
6410
6411 2010-04-14  Simon Josefsson  <simon@josefsson.org>
6412
6413         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
6414         version 1.4.4 by default instead of requiring the libgcrypt
6415         version used during build.  This makes it possible to use the
6416         application with older but still binary compatible libgcrypt
6417         versions.
6418
6419 2010-04-13  Eric Blake  <eblake@redhat.com>
6420
6421         getopt-gnu: match recent glibc fixes and posix ruling
6422         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
6423         '+' handling, when requesting extensions.
6424         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
6425         'W;' handling.
6426         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
6427         * doc/posix-functions/getopt.texi (getopt): Document this.
6428         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
6429         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
6430         Likewise.
6431
6432         getopt: merge bug fixes from glibc
6433         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
6434         diagnostics.  Honor '+:' correctly.  Reject ';'.
6435
6436         getopt-posix: detect MacOS bug
6437         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
6438         optind when missing a required argument.
6439         * doc/posix-functions/getopt.texi (getopt): Document the bug.
6440         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
6441         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
6442         Likewise.
6443
6444         getopt-posix: avoid spurious failure on Solaris
6445         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
6446         an indicator that setting optind=1 is sufficient for reset.
6447
6448         getopt-posix: avoid spurious failure on FreeBSD
6449         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
6450         in POSIX mode, since the m4 test uses it.
6451
6452         gnulib-tool: silence warning on BSD sh
6453         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
6454
6455 2010-04-13  Jim Meyering  <meyering@redhat.com>
6456
6457         doc: users.txt: GNU patch now uses gnulib
6458         * users.txt: Add patch.
6459
6460 2010-04-12  Jim Meyering  <meyering@redhat.com>
6461
6462         maint.mk: generate more concise timing data for syntax-check rules
6463         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
6464         " done" from each line that reports a syntax-check test duration.
6465
6466 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
6467
6468         git-version-gen: use "git update-index..." rather than "git status"
6469         * build-aux/git-version-gen: Use git update-index --refresh, not
6470         "git status".  With some versions of git, "git status" would fail
6471         to update the index and result in an unwarranted "-dirty" suffix.
6472
6473 2010-04-11  Jim Meyering  <meyering@redhat.com>
6474
6475         openat: correct formatting (no semantic change)
6476         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
6477         Suggested by Bruno Haible.
6478
6479 2010-04-11  Bruno Haible  <bruno@clisp.org>
6480
6481         Stricter declaration checking in testdirs.
6482         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
6483         If for_tests is true, augment AM_CPPFLAGS to define
6484         GNULIB_STRICT_CHECKING.
6485         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
6486         GNULIB_STRICT_CHECKING is defined, verify that the function is
6487         declared.
6488
6489 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
6490             Bruno Haible  <bruno@clisp.org>
6491
6492         libunistring: Improve configure output.
6493         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
6494         Don't say "consider installing GNU libunistring" when checking again
6495         with libiconv.
6496
6497 2010-04-11  Bruno Haible  <bruno@clisp.org>
6498
6499         libunistring: Correct value of $LTLIBUNISTRING.
6500         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
6501         correct the value of $LTLIBUNISTRING.
6502
6503 2010-04-11  Bruno Haible  <bruno@clisp.org>
6504
6505         havelib: Add static libraries to LIBS in the right order.
6506         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
6507         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
6508
6509 2010-04-11  Bruno Haible  <bruno@clisp.org>
6510
6511         libunistring: Detect libunistring also when it depends on libiconv.
6512         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
6513         the second AC_LIB_HAVE_LINKFLAGS invocation.
6514
6515 2010-04-11  James Youngman  <jay@gnu.org>
6516
6517         close-stream: declare local scalars to be "const"
6518         * lib/close-stream.c (close_stream): Make boolean variables const
6519         to document the fact that we set but do not change them.
6520
6521 2010-04-11  Bruno Haible  <bruno@clisp.org>
6522
6523         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
6524
6525 2010-04-11  Jim Meyering  <meyering@redhat.com>
6526
6527         maint.mk: don't include dist-check.mk
6528         * top/maint.mk: Remove bogus include directive.
6529
6530         maint.mk: improve empty-line-at-EOF check
6531         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
6532         solution, rather than tail+Perl-based one.  The latter would read
6533         a few kilobytes from the end of each file, and did not handle empty
6534         files properly.
6535
6536         maint.mk: print the elapsed time for each syntax-check rule
6537         * top/maint.mk (sc_m_rules_): Save start time in a file.
6538         (sc_z_rules_): New rules: remove temp file and print elapsed time.
6539         (local-check): Interpose the .z rules
6540
6541 2010-04-11  Jim Meyering  <meyering@redhat.com>
6542
6543         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
6544         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
6545         empty file with one that ends in an empty line.
6546
6547 2010-04-10  Bruno Haible  <bruno@clisp.org>
6548
6549         mkdir: Make it work on mingw64.
6550         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
6551         * lib/mkdir.c: Update comment.
6552         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
6553
6554 2010-04-10  Bruno Haible  <bruno@clisp.org>
6555
6556         Don't override improved macro from newer autoconf.
6557         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
6558         autoconf >= 2.62.
6559         Reported by Joel E. Denny <jdenny@clemson.edu>.
6560
6561 2010-04-10  Jim Meyering  <meyering@redhat.com>
6562
6563         maint.mk: new syntax-check rule: prohibit empty lines at end of file
6564         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
6565
6566         maint.mk: correct a diagnostic
6567         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
6568         in diagnostic; now use $prohibit.
6569
6570 2010-04-10  Bruno Haible  <address@hidden>
6571
6572         fchownat: Fix a C++ test error on Solaris 8.
6573         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
6574         the function does not exist.
6575
6576 2010-04-10  Bruno Haible  <bruno@clisp.org>
6577
6578         vasnprintf: Add more tests.
6579         * tests/test-vasnprintf-posix.c: Include <errno.h>.
6580         (test_function): Test converting an invalid wide string.
6581
6582         vasnprintf: Correct handling of unconvertible wide string arguments.
6583         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
6584         VASNPRINTF.
6585         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
6586         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
6587         smaller than the expected maximum need for the directive. Set errno to
6588         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
6589         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
6590         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
6591         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
6592         * modules/vasnprintf (Files): Add m4/printf.m4.
6593         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
6594
6595 2010-04-10  Bruno Haible  <bruno@clisp.org>
6596
6597         vasnprintf: Fix crash in %ls directive.
6598         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
6599         string is passed as argument to %ls, with no precision and no width.
6600         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
6601
6602 2010-04-10  Bruno Haible  <bruno@clisp.org>
6603
6604         vasnprintf: Fix multiple test failures on mingw.
6605         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
6606         _snprintf, or snwprintf, not _snwprintf.
6607
6608 2010-04-10  Bruno Haible  <bruno@clisp.org>
6609
6610         write: Fix a C++ test error on mingw.
6611         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
6612
6613 2010-04-10  Bruno Haible  <bruno@clisp.org>
6614
6615         vasnprintf test: Reduce code duplication.
6616         * tests/test-vasnprintf.c (test_function): New function, extracted from
6617         test_vasnprintf.
6618         (test_vasnprintf, test_asnprintf): Invoke it.
6619
6620 2010-04-10  Bruno Haible  <bruno@clisp.org>
6621
6622         strnlen: Fix warning in C++ mode on MacOS X.
6623         * lib/string.in.h (strnlen): Use the modern idiom.
6624         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
6625         defining strnlen as a macro already in <config.h>.
6626         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
6627         REPLACE_STRNLEN.
6628         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
6629         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
6630
6631 2010-04-08  James Youngman  <jay@gnu.org>
6632
6633         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
6634         the example.
6635
6636 2010-04-09  Jim Meyering  <meyering@redhat.com>
6637
6638         maint.mk: print better diagnostic when there is no $(_hv_file)
6639         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
6640         announce that when $(_hv_file) (aka help-version) does not exist.
6641
6642         init.sh: run tr in the "C" locale to avoid multibyte interpretation
6643         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
6644         not try to interpret its random input bytes.  Jarno Rajahalme reported
6645         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
6646         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
6647         (mktempd_): Likewise, just in case.
6648
6649         ftruncate: add two years to projected module removal date: 2012
6650         * m4/ftruncate.m4: Adjust comments.
6651
6652         ftruncate: mark module as obsolete; even MinGW provides it, now
6653         * modules/ftruncate (Status): Obsolete.
6654         (Notice): Say that.
6655         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
6656         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
6657
6658 2010-04-08  Bruno Haible  <bruno@clisp.org>
6659
6660         Fix side effects from tests-related modules.
6661         * modules/dprintf-posix (Comment): New section.
6662         * modules/fprintf-posix (Comment): Likewise.
6663         * modules/obstack-printf-posix (Comment): Likewise.
6664         * modules/printf-posix (Comment): Likewise.
6665         * modules/snprintf-posix (Comment): Likewise.
6666         * modules/sprintf-posix (Comment): Likewise.
6667         * modules/vasnprintf-posix (Comment): Likewise.
6668         * modules/vasprintf-posix (Comment): Likewise.
6669         * modules/vdprintf-posix (Comment): Likewise.
6670         * modules/vfprintf-posix (Comment): Likewise.
6671         * modules/vprintf-posix (Comment): Likewise.
6672         * modules/vsnprintf-posix (Comment): Likewise.
6673         * modules/vsprintf-posix (Comment): Likewise.
6674         * modules/xprintf-posix (Comment): Likewise.
6675         * modules/xvasprintf-posix (Comment): Likewise.
6676         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
6677         * modules/floorf-tests (Depends-on): Likewise.
6678         * modules/round-tests (Depends-on): Likewise.
6679         * modules/roundf-tests (Depends-on): Likewise.
6680         * modules/trunc-tests (Depends-on): Likewise.
6681         * modules/truncf-tests (Depends-on): Likewise.
6682         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
6683         'fprintf-posix' module is not present.
6684         * tests/test-floorf2.c (check): Likewise.
6685         * tests/test-trunc2.c (check): Likewise.
6686         * tests/test-truncf2.c (check): Likewise.
6687         * tests/test-round2.c (equal): Likewise.
6688         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
6689
6690 2010-04-07  Karl Berry  <karl@gnu.org>
6691
6692         * config/srclist.txt,
6693         * config/srclistvars.sh,
6694         * config/srclist-update: doc fixes.
6695
6696 2010-04-07  Jim Meyering  <meyering@redhat.com>
6697
6698         maint.mk: add a PATH crosschecking syntax-check rule
6699         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
6700         Useful if you use a test like the one in help-version (coreutils,
6701         diffutils, grep, gzip) that ensures $(VERSION) matches what is
6702         printed by prog --version.
6703
6704 2010-04-06  Bruno Haible  <bruno@clisp.org>
6705
6706         Fix link error on mingw.
6707         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
6708         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
6709
6710 2010-04-06  Bruno Haible  <bruno@clisp.org>
6711
6712         Assume rmdir exists.
6713         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
6714
6715 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
6716
6717         doc: update users.txt
6718         * users.txt: Add gcal.
6719
6720 2010-04-06  Jim Meyering  <meyering@redhat.com>
6721
6722         init.sh: simply unset TMPDIR rather than risking env -i
6723         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
6724         although it probably works fine on all Unix-based systems, some
6725         systems (Cygwin?) cannot tolerate a totally cleared environment.
6726         Suggestion from Eric Blake.
6727
6728 2010-04-06  Jim Meyering  <meyering@redhat.com>
6729
6730         init.sh: portability fix: use env's POSIX-specified -i option not -u
6731         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
6732         than unportable env -u.  Solaris 5.11's env lacks support for -u.
6733
6734 2010-04-05  Bruno Haible  <bruno@clisp.org>
6735
6736         btowc: Work around Cygwin 1.7.2 bug.
6737         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
6738         does not map NUL to 0.
6739         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
6740
6741 2010-04-05  Bruno Haible  <bruno@clisp.org>
6742
6743         Make the multithread modules work on Cygwin 1.7.2.
6744         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
6745         imported symbols can be declared weak, so that it returns "no" on
6746         Cygwin 1.7.2.
6747
6748 2010-04-05  Bruno Haible  <bruno@clisp.org>
6749
6750         Use the module 'strncat'.
6751         * modules/unistr/u8-strncat (Depends-on): Add strncat.
6752
6753         Tests for module 'strncat'.
6754         * modules/strncat-tests: New file.
6755         * tests/test-strncat.c: New file.
6756
6757         New module 'strncat'.
6758         * lib/string.in.h (strncat): New declaration.
6759         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
6760         * m4/strncat.m4: New file, based on m4/memchr.m4.
6761         * modules/strncat: New file.
6762         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
6763         is declared.
6764         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
6765         REPLACE_STRNCAT.
6766         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
6767         REPLACE_STRNCAT.
6768         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
6769         module.
6770         * tests/test-string-c++.cc: Check signature of strncat.
6771
6772 2010-04-05  Jim Meyering  <meyering@redhat.com>
6773
6774         xstrtoumax-tests: convert to use init.sh
6775         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
6776         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
6777         Use Exit, not exit.
6778         Remove uses of $EXEEXT and "./" to run a program in the current dir.
6779
6780         xstrtoimax-tests: convert to use init.sh
6781         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
6782         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
6783         Use Exit, not exit.
6784         Remove uses of $EXEEXT and "./" to run a program in the current dir.
6785
6786 2010-04-05  Bruno Haible  <bruno@clisp.org>
6787
6788         sys_socket: Avoid #define replacements in C++ mode.
6789         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
6790         warning to the function if possible, rather than #defining the symbol
6791         to a dysfunctional alias.
6792
6793 2010-04-05  Bruno Haible  <bruno@clisp.org>
6794
6795         fseeko: Fix C++ test error on mingw.
6796         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
6797         gl_FUNC_FSEEKO.
6798         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
6799         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
6800         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
6801         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
6802
6803 2010-04-05  Bruno Haible  <bruno@clisp.org>
6804
6805         duplocale: Improve test output.
6806         * tests/test-duplocale.c (main): Print reason for skipped test.
6807
6808 2010-04-05  Bruno Haible  <bruno@clisp.org>
6809
6810         Assume rmdir exists.
6811         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
6812         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
6813
6814 2010-04-05  Bruno Haible  <bruno@clisp.org>
6815
6816         Fix link error on Solaris 8 with cc.
6817         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
6818
6819 2010-04-05  Bruno Haible  <bruno@clisp.org>
6820
6821         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
6822         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
6823
6824 2010-04-05  Bruno Haible  <bruno@clisp.org>
6825
6826         vasprintf: Update documentation.
6827         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
6828
6829 2010-04-05  Bruno Haible  <bruno@clisp.org>
6830
6831         ptsname: Improve test.
6832         * tests/test-ptsname.c (main): Also try the various master names of BSD
6833         systems.
6834
6835 2010-04-05  Bruno Haible  <bruno@clisp.org>
6836
6837         memchr: Avoid a possible C++ test error.
6838         * lib/string.in.h (memchr): Provide declaration if function is missing.
6839         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
6840         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
6841         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
6842         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
6843
6844 2010-04-05  Bruno Haible  <bruno@clisp.org>
6845
6846         strtok_r: Improve idiom.
6847         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
6848         AC_LIBOBJ is used.
6849
6850 2010-04-05  Bruno Haible  <bruno@clisp.org>
6851
6852         strdup: Improve idiom.
6853         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
6854         AC_LIBOBJ is used.
6855         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
6856         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
6857         when AC_LIBOBJ is used.
6858
6859 2010-04-05  Bruno Haible  <bruno@clisp.org>
6860
6861         mbsinit, mbrtowc, wcrtomb: Improve idioms.
6862         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
6863         don't set REPLACE_MBSINIT to 1.
6864         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
6865         don't set REPLACE_MBRTOWC to 1.
6866         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
6867         exist, don't set REPLACE_MBSRTOWCS to 1.
6868         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
6869         exist, don't set REPLACE_MBSNRTOWCS to 1.
6870         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
6871         don't set REPLACE_WCRTOMB to 1.
6872         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
6873         exist, don't set REPLACE_WCSRTOMBS to 1.
6874         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
6875         exist, don't set REPLACE_WCSNRTOMBS to 1.
6876
6877 2010-04-05  Bruno Haible  <bruno@clisp.org>
6878
6879         ldexpl: Improve idiom.
6880         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
6881         make sure to set HAVE_DECL_LDEXPL to 0.
6882
6883 2010-04-05  Jim Meyering  <meyering@redhat.com>
6884
6885         xstrtol-tests: convert to use init.sh
6886         * modules/xstrtol-tests (Files): Add tests/init.sh.
6887         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
6888         Use Exit, not exit.
6889         Remove uses of $EXEEXT and "./" to run a program in the current dir.
6890
6891         atexit-tests: convert to use init.sh
6892         * modules/atexit-tests (Files): Add tests/init.sh.
6893         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
6894         Use Exit, not exit.
6895         Remove uses of $EXEEXT and "./" to run a program in the current dir.
6896
6897         init.sh: fix typo
6898         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
6899
6900         init.sh: make it easier for a test script to write to the tty, ...
6901         when using automake's parallel-tests mode.
6902         * tests/init.sh (stderr_fileno_): Define overridable variable.
6903         (warn_): New function, to use it.
6904         (fail_, skip_, framework_failure_): Use warn_.
6905
6906 2010-04-04  Bruno Haible  <bruno@clisp.org>
6907
6908         btowc: Avoid warning.
6909         * lib/btowc.c: Include <stdlib.h>.
6910         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
6911
6912 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
6913             Bruno Haible  <bruno@clisp.org>
6914
6915         wchar: Port to NetBSD 1.5.
6916         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
6917         * lib/wctype.in.h (WEOF): Likewise.
6918
6919 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
6920             Bruno Haible  <bruno@clisp.org>
6921
6922         Port extended stdio to NetBSD 1.5.
6923         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
6924         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
6925         older.
6926
6927 2010-04-04  Bruno Haible  <bruno@clisp.org>
6928
6929         string: Remove unused substitution.
6930         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
6931         HAVE_DECL_STRERROR.
6932         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
6933
6934 2010-04-04  Bruno Haible  <bruno@clisp.org>
6935
6936         strtod: Avoid a possible C++ test error.
6937         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
6938         set REPLACE_STRTOD.
6939
6940 2010-04-04  Bruno Haible  <bruno@clisp.org>
6941
6942         strerror: Update documentation.
6943         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
6944
6945 2010-04-04  Bruno Haible  <bruno@clisp.org>
6946
6947         stdio: Fix some C++ test errors on Solaris 8 with GCC.
6948         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
6949         _GL_CXXALIAS_SYS_CAST.
6950
6951 2010-04-04  Bruno Haible  <bruno@clisp.org>
6952
6953         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
6954         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
6955         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
6956         REPLACE_FREXPL to 1.
6957         * doc/posix-functions/frexpl.texi: Update documentation.
6958
6959 2010-04-04  Bruno Haible  <bruno@clisp.org>
6960
6961         math: Fix some C++ test errors on Solaris 8 and Cygwin.
6962         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
6963
6964 2010-04-04  Bruno Haible  <bruno@clisp.org>
6965
6966         Implement nanosleep for native Windows.
6967         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
6968
6969 2010-04-04  Bruno Haible  <bruno@clisp.org>
6970
6971         math: Fix some C++ test errors on Solaris 8.
6972         * lib/math.in.h (truncf, trunc): Use simpler idiom.
6973
6974 2010-04-04  Bruno Haible  <bruno@clisp.org>
6975
6976         math: Fix some C++ test errors on Cygwin.
6977         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
6978         truncl): Provide declaration if the system does not have it.
6979         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
6980         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
6981         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
6982         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
6983         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
6984         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
6985         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
6986         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
6987         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
6988         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
6989         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
6990         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
6991         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
6992         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
6993         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
6994         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
6995         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
6996         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
6997         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
6998         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
6999         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
7000         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
7001
7002 2010-04-04  Bruno Haible  <bruno@clisp.org>
7003
7004         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
7005         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
7006         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
7007         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
7008         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
7009         * m4/isinf.m4 (gl_ISINF): Likewise.
7010         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
7011
7012 2010-04-04  Bruno Haible  <bruno@clisp.org>
7013
7014         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
7015         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
7016
7017 2010-04-04  Bruno Haible  <bruno@clisp.org>
7018
7019         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
7020         * modules/tmpfile (configure.ac): Update.
7021
7022         tmpfile: Fix C++ test error on mingw.
7023         * lib/stdio.in.h (tmpfile): New declaration.
7024         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
7025         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
7026         * modules/tmpfile (Depends-on): Add stdio.
7027         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
7028         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
7029         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
7030         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
7031         REPLACE_TMPFILE.
7032         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
7033
7034 2010-04-04  Bruno Haible  <bruno@clisp.org>
7035
7036         ioctl: Fix C++ test error on mingw.
7037         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
7038         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
7039         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
7040
7041 2010-04-03  Bruno Haible  <bruno@clisp.org>
7042
7043         wcwidth: Fix C++ test error on mingw.
7044         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
7045         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
7046         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
7047
7048 2010-04-03  Bruno Haible  <bruno@clisp.org>
7049
7050         nanosleep: Fix C++ test error on mingw.
7051         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
7052         * lib/time.in.h (nanosleep): Use modern idiom.
7053         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
7054         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
7055         REPLACE_NANOSLEEP to 1.
7056         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
7057         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
7058
7059 2010-04-03  Bruno Haible  <bruno@clisp.org>
7060
7061         strptime: Fix C++ test error on mingw.
7062         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
7063         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
7064         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
7065         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
7066         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
7067         not REPLACE_STRPTIME.
7068         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
7069         REPLACE_STRPTIME.
7070
7071 2010-04-03  Bruno Haible  <bruno@clisp.org>
7072
7073         timegm: Fix C++ test error on mingw.
7074         * lib/time.in.h (timegm): Use modern idiom.
7075         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
7076         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
7077         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
7078         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
7079
7080 2010-04-03  Bruno Haible  <bruno@clisp.org>
7081
7082         timegm: Assume declaration if function exists.
7083         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
7084         if it exists. Don't clobber ac_cv_func_timegm.
7085
7086 2010-04-03  Bruno Haible  <bruno@clisp.org>
7087
7088         time_r: Fix C++ test error on mingw.
7089         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
7090         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
7091         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
7092         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
7093         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
7094
7095 2010-04-03  Bruno Haible  <bruno@clisp.org>
7096
7097         time_r: Minor updates.
7098         * modules/time_r (Description): Mention the provided functions.
7099         * lib/time_r.c: Don't include <string.h>.
7100         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
7101         * doc/posix-functions/localtime_r.texi: Likewise.
7102
7103 2010-04-03  Bruno Haible  <bruno@clisp.org>
7104
7105         time: Fix regression introduced on 2010-03-08.
7106         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
7107         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
7108
7109 2010-04-03  Jim Meyering  <meyering@redhat.com>
7110
7111         maint.mk: don't silently disable project-specific syntax-check rules
7112         * top/maint.mk (_prohibit_regexp): Define, to help people realize
7113         that they need to convert their project-specific syntax-check rules
7114         to use the new _sc_search_regexp.
7115
7116 2010-04-03  Bruno Haible  <bruno@clisp.org>
7117
7118         fchdir: Fix regression introduced on 2010-03-08.
7119         * lib/unistd.in.h (fchdir): Fix declaration.
7120         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
7121         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
7122         REPLACE_FCHDIR.
7123         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
7124         REPLACE_FCHDIR.
7125
7126 2010-04-03  Bruno Haible  <bruno@clisp.org>
7127
7128         getpagesize: Fix C++ test error on mingw.
7129         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
7130         system does not declare the function.
7131         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
7132         declared.
7133         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
7134         HAVE_DECL_GETPAGESIZE.
7135         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
7136
7137 2010-04-03  Bruno Haible  <bruno@clisp.org>
7138
7139         stdio: Make C++ tests work on mingw.
7140         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
7141         does not declare the function.
7142
7143 2010-04-03  Bruno Haible  <bruno@clisp.org>
7144
7145         ftello: Fix C++ test error on mingw.
7146         * lib/stdio.in.h (ftello): Use modern idiom.
7147         * lib/ftello.c (ftello): Renamed from rpl_ftello.
7148         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
7149         is missing and that it needs to be replaced.
7150         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
7151         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
7152         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
7153
7154 2010-04-03  Bruno Haible  <bruno@clisp.org>
7155
7156         fseeko: Fix C++ test error on mingw.
7157         * lib/stdio.in.h (fseeko): Use modern idiom.
7158         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
7159         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
7160         is missing and that it needs to be replaced.
7161         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
7162         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
7163         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
7164
7165 2010-04-03  Bruno Haible  <bruno@clisp.org>
7166
7167         mkstemp: Fix C++ test error on mingw.
7168         * lib/stdlib.in.h (mkstemp): Use modern idiom.
7169         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
7170         function is missing and that it needs to be replaced.
7171         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
7172         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
7173
7174 2010-04-03  Bruno Haible  <bruno@clisp.org>
7175
7176         stpncpy: Fix C++ test error on mingw.
7177         * lib/string.in.h (stpncpy): Use modern idiom.
7178         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
7179         function is missing and that it needs to be replaced.
7180         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
7181         REPLACE_STPNCPY.
7182         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
7183
7184 2010-04-03  Bruno Haible  <bruno@clisp.org>
7185
7186         sys_stat: Fix C++ test error on mingw.
7187         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
7188         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
7189
7190 2010-04-03  Bruno Haible  <bruno@clisp.org>
7191
7192         pty: Update doc.
7193         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
7194
7195 2010-04-03  Bruno Haible  <bruno@clisp.org>
7196
7197         unistd: Fix C++ test error on mingw.
7198         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
7199
7200 2010-04-03  Bruno Haible  <bruno@clisp.org>
7201
7202         Update doc regarding mingw.
7203         * doc/glibc-functions/openpty.texi: Update regarding mingw.
7204         * doc/glibc-functions/login_tty.texi: Likewise.
7205         * doc/glibc-functions/forkpty.texi: Likewise.
7206
7207 2010-04-03  Bruno Haible  <bruno@clisp.org>
7208
7209         stdlib: Avoid compilation failure of c-strtold on mingw.
7210         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
7211
7212 2010-04-03  Bruno Haible  <bruno@clisp.org>
7213
7214         locale: Make C++ tests work on Cygwin and mingw.
7215         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
7216         cannot provide the function.
7217         Reported by Simon Josefsson.
7218
7219 2010-04-03  Bruno Haible  <bruno@clisp.org>
7220
7221         localename: Port to MacOS X 10.6.
7222         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
7223         memory layout of the locales in MacOS X 10.6 as well.
7224         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
7225
7226 2010-04-02  Bruno Haible  <bruno@clisp.org>
7227
7228         gnulib-tool: Ensure that long-running tests are executed last.
7229         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
7230         running tests after the one for the other tests.
7231
7232 2010-04-02  Bruno Haible  <bruno@clisp.org>
7233
7234         gnulib-tool: Ensure the tests in the main directory are executed first.
7235         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
7236         start with the current directory.
7237
7238 2010-04-02  Bruno Haible  <bruno@clisp.org>
7239
7240         Tests for module 'havelib', moved here from GNU gettext.
7241         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
7242         modifications.
7243         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
7244         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
7245         with modifications.
7246         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
7247         modifications.
7248         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
7249         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
7250         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
7251         with modifications.
7252         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
7253         with modifications.
7254         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
7255         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
7256         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
7257         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
7258         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
7259         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
7260         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
7261         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
7262         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
7263         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
7264         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
7265         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
7266         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
7267         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
7268         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
7269         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
7270         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
7271         with modifications.
7272         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
7273         with modifications.
7274         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
7275         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
7276         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
7277         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
7278         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
7279         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
7280         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
7281         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
7282         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
7283         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
7284         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
7285         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
7286         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
7287         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
7288         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
7289         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
7290         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
7291         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
7292         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
7293         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
7294         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
7295         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
7296         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
7297         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
7298         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
7299         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
7300         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
7301         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
7302         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
7303         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
7304         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
7305         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
7306         * tests/havelib/rpathx/rpathx.c: New file, from
7307         gettext/autoconf-lib-link.
7308         * tests/havelib/rpathx/Makefile.am: New file, from
7309         gettext/autoconf-lib-link.
7310         * tests/havelib/rpathx/configure.ac: New file, from
7311         gettext/autoconf-lib-link with modifications.
7312         * tests/havelib/rpathy/rpathy.c: New file, from
7313         gettext/autoconf-lib-link.
7314         * tests/havelib/rpathy/Makefile.am: New file, from
7315         gettext/autoconf-lib-link.
7316         * tests/havelib/rpathy/configure.ac: New file, from
7317         gettext/autoconf-lib-link with modifications.
7318         * tests/havelib/rpathz/rpathz.c: New file, from
7319         gettext/autoconf-lib-link.
7320         * tests/havelib/rpathz/Makefile.am: New file, from
7321         gettext/autoconf-lib-link.
7322         * tests/havelib/rpathz/configure.ac: New file, from
7323         gettext/autoconf-lib-link with modifications.
7324         * tests/havelib/rpathlx/usex.c: New file, from
7325         gettext/autoconf-lib-link.
7326         * tests/havelib/rpathlx/Makefile.am: New file, from
7327         gettext/autoconf-lib-link.
7328         * tests/havelib/rpathlx/configure.ac: New file, from
7329         gettext/autoconf-lib-link with modifications.
7330         * tests/havelib/rpathly/usey.c: New file, from
7331         gettext/autoconf-lib-link.
7332         * tests/havelib/rpathly/Makefile.am: New file, from
7333         gettext/autoconf-lib-link.
7334         * tests/havelib/rpathly/configure.ac: New file, from
7335         gettext/autoconf-lib-link with modifications.
7336         * tests/havelib/rpathlz/usez.c: New file, from
7337         gettext/autoconf-lib-link.
7338         * tests/havelib/rpathlz/Makefile.am: New file, from
7339         gettext/autoconf-lib-link.
7340         * tests/havelib/rpathlz/configure.ac: New file, from
7341         gettext/autoconf-lib-link with modifications.
7342         * tests/havelib/rpathlyx/usey.c: New file, from
7343         gettext/autoconf-lib-link.
7344         * tests/havelib/rpathlyx/Makefile.am: New file, from
7345         gettext/autoconf-lib-link.
7346         * tests/havelib/rpathlyx/configure.ac: New file, from
7347         gettext/autoconf-lib-link with modifications.
7348         * tests/havelib/rpathlzyx/usez.c: New file, from
7349         gettext/autoconf-lib-link.
7350         * tests/havelib/rpathlzyx/Makefile.am: New file, from
7351         gettext/autoconf-lib-link.
7352         * tests/havelib/rpathlzyx/configure.ac: New file, from
7353         gettext/autoconf-lib-link with modifications.
7354         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
7355         with modifications.
7356
7357 2010-04-02  Bruno Haible  <bruno@clisp.org>
7358
7359         gnulib-tool: Create distributed built sources also for the tests.
7360         * gnulib-tool (func_create_testdir): Also generate distributed built
7361         sources in the tests directory.
7362
7363 2010-04-02  Bruno Haible  <bruno@clisp.org>
7364
7365         gnulib-tool: Obey user's environment variables.
7366         * gnulib-tool (func_create_testdir): When creating built sources,
7367         respect the environment variables for autoconf, automake, etc. given by
7368         the user.
7369
7370 2010-04-02  Bruno Haible  <bruno@clisp.org>
7371
7372         gnulib-tool: Provide the value of --m4-base to modules.
7373         * gnulib-tool (func_import, func_create_testdir): Emit a definition
7374         of gl_m4_base.
7375
7376 2010-04-02  Eric Blake  <eblake@redhat.com>
7377
7378         maint.mk: fix some fallout
7379         * NEWS: Document the incompatible change, and its effect on cfg.mk.
7380         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
7381
7382 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
7383
7384         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
7385         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
7386         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
7387         (sc_cast_of_x_alloc_return_value): Likewise.
7388         (sc_cast_of_alloca_return_value): Likewise.
7389         (sc_space_tab): Likewise.
7390         (sc_prohibit_atoi_atof): Likewise.
7391         (sc_prohibit_magic_number_exit): Likewise.
7392         (sc_error_exit_success): Likewise.
7393         (sc_file_system): Likewise.
7394         (sc_prohibit_have_config_h): Likewise.
7395         (sc_require_config_h): Likewise.
7396         (sc_prohibit_HAVE_MBRTOWC): Likewise.
7397         (sc_obsolete_symbols): Likewise.
7398         (sc_changelog): Likewise.
7399         (sc_program_name): Likewise.
7400         (sc_the_the): Likewise.
7401         (sc_trailing_blank): Likewise.
7402         (sc_two_space_separator_in_usage): Likewise.
7403         (sc_useless_cpp_parens): Likewise.
7404         (sc_GPL_version): Likewise.
7405         (sc_GFDL_version): Likewise.
7406         (sc_texinfo_acronym): Likewise.
7407         (sc_prohibit_cvs_keyword): Likewise.
7408         (sc_prohibit_stat_st_blocks): Likewise.
7409         (sc_prohibit_S_IS_definition): Likewise.
7410         (sc_redundant_const): Likewise.
7411         (sc_makefile_TAB_only_indentation): Likewise.
7412         (sc_m4_quote_check): Likewise.
7413         (sc_makefile_path_separator_check): Likewise.
7414         (sc_copyright_check): Likewise.
7415         (sc_Wundef_boolean): Likewise.
7416         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
7417
7418         maint.mk: match 0 or more whitespace-before-function-call '('
7419         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
7420         that have zero or two-and-more spaces between the function name
7421         and the open parenthesis.
7422         (sc_error_message_warn_fatal): Likewise.
7423         (sc_error_message_uppercase): Likewise.
7424         (sc_error_message_period): Likewise.
7425
7426 2010-03-31  Eric Blake  <eblake@redhat.com>
7427
7428         maint.mk: check for [ as well as test
7429         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
7430         Based on a libvirt report by Matthias Bolte.
7431
7432         gnumakefile: don't squelch _version output
7433         * top/GNUmakefile (_version): Create one-shot dependency rather
7434         than using $(shell) when version must be regenerated.
7435         (_autoreconf): Run verbosely, by default.
7436
7437         sys_time: avoid compiler warnings
7438         * lib/sys_time.in.h (includes): Ensure gcc pragma is
7439         unconditional, fixing regression from 2010-03-29.
7440         Reported by Simon Josefsson.
7441
7442 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
7443
7444         maint.mk: s/_header_without_use/_sc_header_without_use/
7445         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
7446         (sc_prohibit_assert_without_use): Use the new name.
7447         (sc_prohibit_close_stream_without_use): Likewise.
7448         (sc_prohibit_getopt_without_use): Likewise.
7449         (sc_prohibit_quotearg_without_use): Likewise.
7450         (sc_prohibit_quote_without_use): Likewise.
7451         (sc_prohibit_long_options_without_use): Likewise.
7452         (sc_prohibit_inttostr_without_use): Likewise.
7453         (sc_prohibit_ignore_value_without_use): Likewise.
7454         (sc_prohibit_error_without_use): Likewise.
7455         (sc_prohibit_xalloc_without_use): Likewise.
7456         (sc_prohibit_hash_without_use): Likewise.
7457         (sc_prohibit_hash_pjw_without_use): Likewise.
7458         (sc_prohibit_safe_read_without_use): Likewise.
7459         (sc_prohibit_argmatch_without_use): Likewise.
7460         (sc_prohibit_canonicalize_without_use): Likewise.
7461         (sc_prohibit_root_dev_ino_without_use): Likewise.
7462         (sc_prohibit_openat_without_use): Likewise.
7463         (sc_prohibit_c_ctype_without_use): Likewise.
7464         (sc_prohibit_signal_without_use): Likewise.
7465         (sc_prohibit_intprops_without_use): Likewise.
7466
7467 2010-03-30  Eric Blake  <eblake@redhat.com>
7468
7469         maint: improve module indicators
7470         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
7471         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
7472         columns, and avoid extra macro expansion.
7473
7474         fdopendir: work around FreeBSD bug
7475         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
7476         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
7477         * modules/dirent (Makefile.am): Substitute it.
7478         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
7479         declaration.
7480         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
7481         fix.
7482         Reported by Christian Weisgerber <naddy@mips.inka.de>.
7483
7484 2010-03-29  Bruno Haible  <bruno@clisp.org>
7485
7486         Emit #pragma system_header after the inclusion guard, not before.
7487         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
7488         guard that spans the entire file, not before. This enables an
7489         optimization in GCC's preprocessor.
7490         * lib/ctype.in.h: Likewise.
7491         * lib/dirent.in.h: Likewise.
7492         * lib/errno.in.h: Likewise.
7493         * lib/float.in.h: Likewise.
7494         * lib/getopt.in.h: Likewise.
7495         * lib/iconv.in.h: Likewise.
7496         * lib/langinfo.in.h: Likewise.
7497         * lib/locale.in.h: Likewise.
7498         * lib/math.in.h: Likewise.
7499         * lib/netdb.in.h: Likewise.
7500         * lib/netinet_in.in.h: Likewise.
7501         * lib/pty.in.h: Likewise.
7502         * lib/sched.in.h: Likewise.
7503         * lib/se-selinux.in.h: Likewise.
7504         * lib/search.in.h: Likewise.
7505         * lib/spawn.in.h: Likewise.
7506         * lib/stdarg.in.h: Likewise.
7507         * lib/stdint.in.h: Likewise.
7508         * lib/string.in.h: Likewise.
7509         * lib/strings.in.h: Likewise.
7510         * lib/sys_file.in.h: Likewise.
7511         * lib/sys_ioctl.in.h: Likewise.
7512         * lib/sys_time.in.h: Likewise.
7513         * lib/sys_times.in.h: Likewise.
7514         * lib/sys_utsname.in.h: Likewise.
7515         * lib/sys_wait.in.h: Likewise.
7516         * lib/sysexits.in.h: Likewise.
7517         * lib/wctype.in.h: Likewise.
7518
7519 2010-03-28  James Youngman  <jay@gnu.org>
7520
7521         save-cwd: don't leak a file descriptor when the caller execs.
7522         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
7523         saved file descriptor.
7524         * modules/save-cwd (Depends-on): Depend on cloexec.
7525
7526 2010-03-29  Bruno Haible  <bruno@clisp.org>
7527
7528         Remove vestiges of fts-lgpl module.
7529         * lib/fts_.h: Assume GNULIB_FTS is 1.
7530         * lib/fts.c: Likewise.
7531         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
7532
7533 2010-03-28  Bruno Haible  <bruno@clisp.org>
7534
7535         Fix definition of tests witness macro.
7536         * gnulib-tool (func_import): Fix definition of witness macro.
7537
7538 2010-03-28  Bruno Haible  <bruno@clisp.org>
7539
7540         Fix ioctl's protoype on glibc systems.
7541         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
7542         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
7543         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
7544         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
7545         signature. If not, arrange to replace the ioctl function.
7546         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
7547         REPLACE_IOCTL.
7548         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
7549         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
7550         Reported by Ludovic Courtès <ludo@gnu.org>.
7551
7552 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
7553
7554         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
7555         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
7556         made it so grep -r --include=GLOB* ... did not work.
7557
7558 2010-03-26  Jim Meyering  <meyering@redhat.com>
7559             Eric Blake  <eblake@redhat.com>
7560
7561         maint.mk: prohibit use of test's -o and -a operators
7562         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
7563
7564 2010-03-28  Bruno Haible  <bruno@clisp.org>
7565
7566         Remove unused GNULIB_XYZ macro definitions.
7567         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
7568         invocation.
7569
7570 2010-03-28  Bruno Haible  <bruno@clisp.org>
7571
7572         Mark privileged tests modules.
7573         * modules/idpriv-drop-tests (Status): New section.
7574         * modules/idpriv-droptemp-tests (Status): New section.
7575
7576 2010-03-28  Bruno Haible  <bruno@clisp.org>
7577
7578         Split C++ tests into separate tests modules.
7579         * modules/dirent-c++-tests: New file, extracted from
7580         modules/dirent-tests.
7581         * modules/dirent-tests: Depend on it.
7582         * modules/fcntl-h-c++-tests: New file, extracted from
7583         modules/fcntl-h-tests.
7584         * modules/fcntl-h-tests: Depend on it.
7585         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
7586         * modules/glob-tests: Depend on it.
7587         * modules/iconv-h-c++-tests: New file, extracted from
7588         modules/iconv-h-tests.
7589         * modules/iconv-h-tests: Depend on it.
7590         * modules/langinfo-c++-tests: New file, extracted from
7591         modules/langinfo-tests.
7592         * modules/langinfo-tests: Depend on it.
7593         * modules/locale-c++-tests: New file, extracted from
7594         modules/locale-tests.
7595         * modules/locale-tests: Depend on it.
7596         * modules/math-c++-tests: New file, extracted from modules/math-tests.
7597         * modules/math-tests: Depend on it.
7598         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
7599         * modules/pty-tests: Depend on it.
7600         * modules/search-c++-tests: New file, extracted from
7601         modules/search-tests.
7602         * modules/search-tests: Depend on it.
7603         * modules/signal-c++-tests: New file, extracted from
7604         modules/signal-tests.
7605         * modules/signal-tests: Depend on it.
7606         * modules/spawn-c++-tests: New file, extracted from
7607         modules/spawn-tests.
7608         * modules/spawn-tests: Depend on it.
7609         * modules/stdio-c++-tests: New file, extracted from
7610         modules/stdio-tests.
7611         * modules/stdio-tests: Depend on it.
7612         * modules/stdlib-c++-tests: New file, extracted from
7613         modules/stdlib-tests.
7614         * modules/stdlib-tests: Depend on it.
7615         * modules/string-c++-tests: New file, extracted from
7616         modules/string-tests.
7617         * modules/string-tests: Depend on it.
7618         * modules/sys_ioctl-c++-tests: New file, extracted from
7619         modules/sys_ioctl-tests.
7620         * modules/sys_ioctl-tests: Depend on it.
7621         * modules/sys_select-c++-tests: New file, extracted from
7622         modules/sys_select-tests.
7623         * modules/sys_select-tests: Depend on it.
7624         * modules/sys_socket-c++-tests: New file, extracted from
7625         modules/sys_socket-tests.
7626         * modules/sys_socket-tests: Depend on it.
7627         * modules/sys_stat-c++-tests: New file, extracted from
7628         modules/sys_stat-tests.
7629         * modules/sys_stat-tests: Depend on it.
7630         * modules/sys_time-c++-tests: New file, extracted from
7631         modules/sys_time-tests.
7632         * modules/sys_time-tests: Depend on it.
7633         * modules/time-c++-tests: New file, extracted from modules/time-tests.
7634         * modules/time-tests: Depend on it.
7635         * modules/unistd-c++-tests: New file, extracted from
7636         modules/unistd-tests.
7637         * modules/unistd-tests: Depend on it.
7638         * modules/wchar-c++-tests: New file, extracted from
7639         modules/wchar-tests.
7640         * modules/wchar-tests: Depend on it.
7641         * modules/wctype-c++-tests: New file, extracted from
7642         modules/wctype-tests.
7643         * modules/wctype-tests: Depend on it.
7644         Reported by Simon Josefsson.
7645
7646 2010-03-28  Bruno Haible  <bruno@clisp.org>
7647
7648         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
7649         * gnulib-tool (func_exists_module): New function, extracted from
7650         func_verify_module.
7651         (func_verify_module): Use it.
7652         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
7653         'foo' only if 'foo' exists.
7654         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
7655         module.
7656
7657 2010-03-28  Bruno Haible  <bruno@clisp.org>
7658
7659         gnulib-tool: Add support for special categories of tests.
7660         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
7661         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
7662         (func_usage): Document them.
7663         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
7664         inc_unportable_tests, inc_all_tests): New variables.
7665         (func_acceptable): Consider these variables.
7666         (func_modules_transitive_closure): Make it work when the 'Status' field
7667         consists of multiple words.
7668         (func_import): Store and restore the values of inc_cxx_tests,
7669         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
7670         inc_all_tests in gnulib-comp.m4.
7671         (func_create_testdir): Set inc_all_tests to true.
7672         * doc/gnulib.texi (Extra tests modules): New section.
7673         Suggested by Jim Meyering.
7674
7675 2010-03-28  Bruno Haible  <bruno@clisp.org>
7676
7677         ansi-c++-opt: Allow turning off the C++ build by default.
7678         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
7679         gl_CXX_CHOICE_DEFAULT_NO is defined.
7680         Requested by Eric Blake.
7681
7682 2010-03-28  Bruno Haible  <bruno@clisp.org>
7683
7684         unistd: Avoid #define replacements in C++ mode.
7685         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
7686         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
7687         setsockopt, shutdown, select): In C++, attach a warning to the function
7688         if possible, rather than #defining the symbol to a dysfunctional alias.
7689         Reported by John W. Eaton <jwe@gnu.org>.
7690
7691 2010-03-28  Bruno Haible  <bruno@clisp.org>
7692
7693         Fix link errors on mingw.
7694         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
7695         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
7696         $(LIBSOCKET).
7697         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
7698         $(LIBSOCKET).
7699
7700 2010-03-28  Bruno Haible  <bruno@clisp.org>
7701             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7702
7703         lib-ignore: Determine different options for different compilers.
7704         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
7705         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
7706         Add comments.
7707         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
7708         * NEWS: Mention the change.
7709
7710 2010-03-27  Bruno Haible  <bruno@clisp.org>
7711
7712         Remove unused GNULIB_XYZ macro definitions.
7713         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
7714         * modules/fseek (configure.ac): Likewise.
7715         * modules/ioctl (configure.ac): Likewise.
7716         * modules/open (configure.ac): Likewise.
7717         * modules/stdlib-safer (configure.ac): Likewise.
7718
7719 2010-03-27  Bruno Haible  <bruno@clisp.org>
7720
7721         Add a remark about certain modules.
7722         * modules/malloc (Comment): New section.
7723         * modules/realloc (Comment): Likewise.
7724         * modules/sigpipe (Comment): Likewise.
7725
7726 2010-03-27  Bruno Haible  <bruno@clisp.org>
7727
7728         Resolve conflict between the two kinds of module indicators.
7729         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
7730         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
7731         * modules/canonicalize (configure.ac): Invoke
7732         gl_MODULE_INDICATOR_FOR_TESTS.
7733         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
7734         GNULIB_XYZ.
7735         * tests/test-dirent-c++.cc: Likewise.
7736         * tests/test-dirent-safer.c: Likewise.
7737         * tests/test-dup2.c: Likewise.
7738         * tests/test-fchdir.c: Likewise.
7739         * tests/test-fcntl-h-c++.cc: Likewise.
7740         * tests/test-getopt.c: Likewise.
7741         * tests/test-getopt.h: Likewise.
7742         * tests/test-langinfo-c++.cc: Likewise.
7743         * tests/test-locale-c++.cc: Likewise.
7744         * tests/test-math-c++.cc: Likewise.
7745         * tests/test-pty-c++.cc: Likewise.
7746         * tests/test-search-c++.cc: Likewise.
7747         * tests/test-signal-c++.cc: Likewise.
7748         * tests/test-spawn-c++.cc: Likewise.
7749         * tests/test-stdio-c++.cc: Likewise.
7750         * tests/test-stdlib-c++.cc: Likewise.
7751         * tests/test-string-c++.cc: Likewise.
7752         * tests/test-sys_ioctl-c++.cc: Likewise.
7753         * tests/test-sys_select-c++.cc: Likewise.
7754         * tests/test-sys_socket-c++.cc: Likewise.
7755         * tests/test-sys_stat-c++.cc: Likewise.
7756         * tests/test-sys_time-c++.cc: Likewise.
7757         * tests/test-time-c++.cc: Likewise.
7758         * tests/test-unistd-c++.cc: Likewise.
7759         * tests/test-wchar-c++.cc: Likewise.
7760         * tests/uninorm/test-u8-nfc.c: Likewise.
7761         * tests/uninorm/test-u8-nfd.c: Likewise.
7762         * tests/uninorm/test-u8-nfkc.c: Likewise.
7763         * tests/uninorm/test-u8-nfkd.c: Likewise.
7764         * tests/uninorm/test-u16-nfc.c: Likewise.
7765         * tests/uninorm/test-u16-nfd.c: Likewise.
7766         * tests/uninorm/test-u16-nfkc.c: Likewise.
7767         * tests/uninorm/test-u16-nfkd.c: Likewise.
7768         * tests/uninorm/test-u32-nfc.c: Likewise.
7769         * tests/uninorm/test-u32-nfc-big.c: Likewise.
7770         * tests/uninorm/test-u32-nfd.c: Likewise.
7771         * tests/uninorm/test-u32-nfd-big.c: Likewise.
7772         * tests/uninorm/test-u32-nfkc.c: Likewise.
7773         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
7774         * tests/uninorm/test-u32-nfkd.c: Likewise.
7775         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
7776         * tests/uninorm/test-u32-normalize-big.c: Likewise.
7777
7778 2010-03-27  Bruno Haible  <bruno@clisp.org>
7779
7780         Distinguish two kinds of module indicators.
7781         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
7782         gl_MODULE_INDICATOR.
7783         (gl_MODULE_INDICATOR): New macro.
7784         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
7785         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
7786         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
7787         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
7788         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
7789         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
7790         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
7791         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
7792         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
7793         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
7794         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
7795         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
7796         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
7797         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
7798         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
7799         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
7800         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
7801         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
7802         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
7803         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
7804         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
7805         * modules/cloexec (configure.ac): Likewise.
7806         * modules/getopt-gnu (configure.ac): Likewise.
7807         * modules/uninorm/u8-normalize (configure.ac): Likewise.
7808         * modules/uninorm/u16-normalize (configure.ac): Likewise.
7809         * modules/uninorm/u32-normalize (configure.ac): Likewise.
7810         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
7811
7812 2010-03-27  Bruno Haible  <bruno@clisp.org>
7813
7814         New module description field 'Comment'.
7815         * gnulib-tool: New option --extract-comment.
7816         (func_usage): Document it.
7817         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
7818         (func_get_comment): New function.
7819         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
7820
7821 2010-03-27  Bruno Haible  <bruno@clisp.org>
7822
7823         Addendum to 2010-02-07 commit.
7824         * gnulib-tool (func_usage): Document --extract-applicability option.
7825
7826 2010-03-27  Bruno Haible  <bruno@clisp.org>
7827
7828         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
7829         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
7830         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
7831         rather than link errors.
7832
7833 2010-03-27  Bruno Haible  <bruno@clisp.org>
7834
7835         Avoid side effects from tests-related modules on the compilation of lib.
7836         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
7837         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
7838         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
7839         parameter. Emit into AM_CPPFLAGS a definition of the designated C
7840         macro.
7841         (func_import): Define a witness macro. Assign it a value that depends
7842         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
7843         tests-related modules.
7844         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
7845         Reported by Jim Meyering.
7846
7847 2010-03-27  Bruno Haible  <bruno@clisp.org>
7848
7849         Factorize common .m4 code.
7850         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
7851         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
7852         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
7853         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
7854         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
7855         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
7856         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
7857         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
7858         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
7859         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
7860         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
7861         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
7862         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
7863         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
7864         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
7865         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
7866         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
7867         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
7868         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
7869         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
7870         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
7871         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
7872         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
7873         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
7874         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
7875         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
7876         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
7877         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
7878         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
7879         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
7880         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
7881         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
7882
7883 2010-03-27  Bruno Haible  <bruno@clisp.org>
7884
7885         Fix a compilation error on Cygwin with g++ >= 4.3.
7886         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
7887         if it is undefined or if we alias it to chmod.
7888         (lstat): Don't warn about the use of this function if it is undefined
7889         or if we alias it to stat.
7890         Reported by Simon Josefsson.
7891
7892 2010-03-27  Bruno Haible  <bruno@clisp.org>
7893
7894         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
7895         * modules/getlogin (configure.ac): Update.
7896
7897         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
7898         * modules/getlogin_r (configure.ac): Update.
7899
7900         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
7901         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
7902         * modules/inet_ntop (configure.ac): Update.
7903
7904         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
7905         * modules/inet_pton (configure.ac): Update.
7906
7907         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
7908         * modules/mbslen (configure.ac): Update.
7909
7910         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
7911         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
7912         * modules/forkpty (configure.ac): Update.
7913         * modules/openpty (configure.ac): Update.
7914
7915 2010-03-26  Simon Josefsson  <simon@josefsson.org>
7916
7917         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
7918         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
7919
7920 2010-03-25  Eric Blake  <eblake@redhat.com>
7921
7922         maint: use pragma consistently across replacement headers
7923         * lib/ctype.in.h (system_header): Hoist for consistent placement.
7924         * lib/dirent.in.h (system_header): Likewise.
7925         * lib/errno.in.h (system_header): Likewise.
7926         * lib/float.in.h (system_header): Likewise.
7927         * lib/getopt.in.h (system_header): Likewise.
7928         * lib/iconv.in.h (system_header): Likewise.
7929         * lib/inttypes.in.h (system_header): Likewise.
7930         * lib/langinfo.in.h (system_header): Likewise.
7931         * lib/locale.in.h (system_header): Likewise.
7932         * lib/math.in.h (system_header): Likewise.
7933         * lib/netdb.in.h (system_header): Likewise.
7934         * lib/netinet_in.in.h (system_header): Likewise.
7935         * lib/pty.in.h (system_header): Likewise.
7936         * lib/sched.in.h (system_header): Likewise.
7937         * lib/se-selinux.in.h (system_header): Likewise.
7938         * lib/search.in.h (system_header): Likewise.
7939         * lib/spawn.in.h (system_header): Likewise.
7940         * lib/stdarg.in.h (system_header): Likewise.
7941         * lib/stdint.in.h (system_header): Likewise.
7942         * lib/string.in.h (system_header): Likewise.
7943         * lib/strings.in.h (system_header): Likewise.
7944         * lib/sys_file.in.h (system_header): Likewise.
7945         * lib/sys_ioctl.in.h (system_header): Likewise.
7946         * lib/sys_socket.in.h (system_header): Likewise.
7947         * lib/sys_times.in.h (system_header): Likewise.
7948         * lib/sys_utsname.in.h (system_header): Likewise.
7949         * lib/sys_wait.in.h (system_header): Likewise.
7950         * lib/sysexits.in.h (system_header): Likewise.
7951         * lib/unistd.in.h (system_header): Likewise.
7952         * lib/wctype.in.h (system_header): Likewise.
7953
7954         arpa/inet: fix mingw compilation warning
7955         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
7956         Reported by Matthew Bolte.
7957
7958 2010-03-25  Bruno Haible  <bruno@clisp.org>
7959
7960         Avoid collision between gnulib wrapper and libintl wrapper.
7961         * lib/printf.c (printf): Don't define if a printf wrapper is already
7962         defined in intl/printf.c.
7963         Reported by Michel Boaventura <michel@michelboaventura.com>.
7964
7965 2010-03-25  Bruno Haible  <bruno@clisp.org>
7966
7967         Use ANSI C.
7968         * lib/readutmp.h (getutent): Provide ANSI C prototype.
7969
7970 2010-03-25  Bruno Haible  <bruno@clisp.org>
7971
7972         Minor formatting changes.
7973         * lib/acosl.c: Insert space before function argument list.
7974         * lib/argz.c: Likewise.
7975         * lib/asinl.c: Likewise.
7976         * lib/expl.c: Likewise.
7977         * lib/gen-uni-tables.c: Likewise.
7978         * lib/gettext.h: Likewise.
7979         * lib/glthread/lock.h: Likewise.
7980         * lib/tanl.c: Likewise.
7981         * lib/uniname/uniname.c: Likewise.
7982         * tests/test-idpriv-drop.c: Likewise.
7983         * tests/test-idpriv-droptemp.c: Likewise.
7984         * tests/test-lock.c: Likewise.
7985         * tests/test-tls.c: Likewise.
7986         * lib/argp-help.c: Insert space before function-like macro argument
7987         list.
7988         * lib/memcmp.c: Likewise.
7989         * tests/test-base64.c: Likewise.
7990         * lib/localename.c: Insert space before sizeof's argument list.
7991         * lib/safe-alloc.h: Likewise.
7992         * lib/file-set.h: Insert space before macro argument list.
7993         * tests/test-argp.c: Likewise.
7994         * lib/argp-namefrob.h: Insert space before function parameter list.
7995         * lib/getaddrinfo.c: Likewise.
7996         * lib/netdb.in.h: Likewise.
7997         * lib/parse-duration.h: Likewise.
7998         * lib/parse-duration.c: Likewise.
7999         * lib/poll.c: Likewise.
8000         * lib/select.c: Likewise.
8001         * lib/trim.h: Likewise.
8002         * tests/test-usleep.c: Likewise.
8003         * lib/ldexpl.c: Insert space before function parameter list and before
8004         function argument list.
8005         * lib/logl.c: Likewise.
8006         * lib/sqrtl.c: Likewise.
8007         * lib/trim.c: Likewise.
8008         * lib/cosl.c: Use GNU style indentation. Insert space before function
8009         argument list.
8010         * lib/sinl.c: Likewise.
8011         * lib/tsearch.c: Insert space after 'for'.
8012         Reported by Jim Meyering.
8013
8014 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
8015
8016         * maint.mk (sc_Wundef_boolean): Check for the presence of the
8017         config header before grepping, as it's not present before
8018         autoreconf/configure are run.  Reported by Simon Josefsson.
8019
8020 2010-03-23  Bruno Haible  <bruno@clisp.org>
8021
8022         pt_chown: Make it work with automake < 1.11.
8023         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
8024         Reported by Simon Josefsson.
8025
8026 2010-03-23  Bruno Haible  <bruno@clisp.org>
8027
8028         pt_chown: Don't depend on GPLed modules.
8029         * lib/pt_chown.c: Don't include idpriv.h.
8030         (main): Don't drop privileges.
8031         * modules/pt_chown (Depends-on): Remove idpriv-drop.
8032         Reported by Simon Josefsson.
8033
8034 2010-03-24  Simon Josefsson  <simon@josefsson.org>
8035
8036         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
8037         suggestions from karl@freefriends.org (Karl Berry).
8038
8039 2010-03-22  Eric Blake  <eblake@redhat.com>
8040
8041         gethostname: further tweaks
8042         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
8043         are overriding gethostname.
8044         Suggested by Bruno Haible.
8045
8046 2010-03-21  Bruno Haible  <bruno@clisp.org>
8047
8048         Fix comments.
8049         * lib/forkpty.c (rpl_forkpty): Fix comment.
8050         * lib/openpty.c (rpl_openpty): Likewise.
8051         Reported by Eric Blake.
8052
8053 2010-03-22  Eric Blake  <eblake@redhat.com>
8054
8055         gethostname: fix build on mingw
8056         * lib/unistd.in.h (includes): Work around fact that mingw
8057         <winsock2.h> re-includes <unistd.h>, by avoiding any
8058         redeclarations if we are being included by <winsock2.h>.
8059         Reported by Matthias Bolte.
8060
8061 2010-03-21  Bruno Haible  <bruno@clisp.org>
8062
8063         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
8064         * lib/forkpty.c (forkpty): New replacement function, from glibc with
8065         modifications.
8066         * lib/pty.in.h (forkpty): Update declaration. Add comments.
8067         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
8068         provide the replacement.
8069         * modules/forkpty (Depends-on): Add openpty, login_tty.
8070         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
8071         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
8072         * doc/glibc-functions/forkpty.texi: More supported platforms.
8073         * config/srclist.txt: Add forkpty.c (commented).
8074
8075 2010-03-21  Bruno Haible  <bruno@clisp.org>
8076
8077         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
8078         (Makefile.am): Verify that PTY_LIB is defined.
8079
8080         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
8081
8082 2010-03-21  Bruno Haible  <bruno@clisp.org>
8083
8084         Tests for module 'login_tty'.
8085         * modules/login_tty-tests: New file.
8086         * tests/test-login_tty.c: New file.
8087
8088         New module 'login_tty'.
8089         * lib/login_tty.c: New file.
8090         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
8091         * modules/login_tty: New file.
8092         * doc/glibc-functions/login_tty.texi: Mention the new module.
8093
8094 2010-03-21  Bruno Haible  <bruno@clisp.org>
8095
8096         login_tty: Documentation.
8097         * doc/glibc-functions/login_tty.texi: New file.
8098         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
8099
8100 2010-03-21  Bruno Haible  <bruno@clisp.org>
8101
8102         pty: Consistent macro naming.
8103         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
8104         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
8105         * modules/pty (configure.ac): Update.
8106
8107 2010-03-21  Bruno Haible  <bruno@clisp.org>
8108
8109         Tests for openpty: Make stricter.
8110         * tests/test-openpty.c (main): Add test of canonical processing and
8111         erase.
8112         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
8113
8114         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
8115         * lib/openpty.c (openpty): New replacement function.
8116         * lib/pty.in.h: Include <termios.h>.
8117         (openpty): Update declaration. Add comments.
8118         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
8119         is not declared, arrange to provide the replacement. Check for _getpty
8120         and posix_openpt.
8121         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
8122         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
8123         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
8124         * modules/pty-tests (test_pty_c___LDADD): New variable.
8125         * doc/glibc-functions/openpty.texi: More supported platforms.
8126
8127 2010-03-21  Bruno Haible  <bruno@clisp.org>
8128
8129         setenv: Tweaks.
8130         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
8131         the test program.
8132         * doc/posix-functions/setenv.texi: Update platforms list.
8133
8134 2010-03-21  Bruno Haible  <bruno@clisp.org>
8135
8136         New module 'unlockpt'.
8137         * lib/unlockpt.c: New file, from glibc with modifications.
8138         * m4/unlockpt.m4: New file.
8139         * modules/unlockpt: New file.
8140         * lib/stdlib.in.h (unlockpt): New declaration.
8141         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
8142         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
8143         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
8144         HAVE_UNLOCKPT.
8145         * doc/posix-functions/unlockpt.texi: Mention the new module.
8146         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
8147         * config/srclist.txt: Add unlockpt.c (commented).
8148
8149 2010-03-21  Jim Meyering  <meyering@redhat.com>
8150
8151         maint.mk: prohibit inclusion of "intprops.h" without use
8152         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
8153
8154 2010-03-21  Bruno Haible  <bruno@clisp.org>
8155
8156         New module 'grantpt'.
8157         * lib/grantpt.c: New file, from glibc with modifications.
8158         * m4/grantpt.m4: New file.
8159         * modules/grantpt: New file.
8160         * lib/stdlib.in.h (grantpt): New declaration.
8161         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
8162         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
8163         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
8164         HAVE_GRANTPT.
8165         * doc/posix-functions/grantpt.texi: Mention the new module.
8166         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
8167         * config/srclist.txt: Add grantpt.c (commented).
8168
8169 2010-03-21  Bruno Haible  <bruno@clisp.org>
8170
8171         New module 'pt_chown'.
8172         * lib/pt_chown.c: New file, from glibc with modifications.
8173         * lib/pty-private.h: New file, from glibc with modifications.
8174         * modules/pt_chown: New file.
8175         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
8176
8177 2010-03-21  Bruno Haible  <bruno@clisp.org>
8178
8179         Tests for module 'ptsname'.
8180         * modules/ptsname-tests: New file.
8181         * tests/test-ptsname.c: New file.
8182
8183         New module 'ptsname'.
8184         * lib/ptsname.c: New file, from glibc with modifications.
8185         * m4/ptsname.m4: New file.
8186         * modules/ptsname: New file.
8187         * lib/stdlib.in.h (ptsname): New declaration.
8188         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
8189         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
8190         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
8191         HAVE_PTSNAME.
8192         * doc/posix-functions/ptsname.texi: Mention the new module.
8193         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
8194         * config/srclist.txt: Add ptsname.c (commented).
8195
8196 2010-03-21  Bruno Haible  <bruno@clisp.org>
8197
8198         Tests for module 'ttyname_r'.
8199         * modules/ttyname_r-tests: New file.
8200         * tests/test-ttyname_r.c: New file.
8201
8202         New module 'ttyname_r'.
8203         * lib/ttyname_r.c: New file.
8204         * m4/ttyname_r.m4: New file.
8205         * modules/ttyname_r: New file.
8206         * lib/unistd.in.h (ttyname_r): New declaration.
8207         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
8208         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
8209         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
8210         HAVE_TTYNAME_R.
8211         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
8212         * doc/posix-functions/ttyname_r.texi: Mention the new module.
8213
8214 2010-03-20  Bruno Haible  <bruno@clisp.org>
8215
8216         signal: Undefine macro definitions in C++ mode.
8217         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
8218         sigfillset): Undefine macro definitions from the system header in C++
8219         mode.
8220         Reported by John W. Eaton <jwe@gnu.org>.
8221
8222 2010-03-20  Bruno Haible  <bruno@clisp.org>
8223
8224         Ensure no #include statements inside extern "C" { ... }.
8225         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
8226         contain #include statements.
8227         * lib/time.in.h: Likewise.
8228
8229 2010-03-20  Bruno Haible  <bruno@clisp.org>
8230
8231         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
8232         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
8233         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
8234         Reported by John W. Eaton <jwe@gnu.org>.
8235
8236 2010-03-20  Bruno Haible  <bruno@clisp.org>
8237
8238         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
8239         Reported by Jim Meyering.
8240
8241 2010-03-20  Bruno Haible  <bruno@clisp.org>
8242
8243         pipe: Set errno upon failure.
8244         * lib/pipe.h: Specify that when -1 is returned, errno is set.
8245         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
8246         errno value in error message.
8247
8248 2010-03-20  Bruno Haible  <bruno@clisp.org>
8249             Jim Meyering  <meyering@redhat.com>
8250
8251         lchown: Avoid "unused variable" warning.
8252         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
8253
8254 2010-03-20  Bruno Haible  <bruno@clisp.org>
8255
8256         Work around unlink() bug on MacOS X 10.5.6.
8257         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
8258         attempting to unlink a parent directory.
8259         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
8260         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
8261         activate for the replacement function.
8262         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
8263
8264 2010-03-20  Bruno Haible  <bruno@clisp.org>
8265
8266         Fix link errors on Solaris 8.
8267         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
8268         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
8269
8270 2010-03-19  Jim Meyering  <meyering@redhat.com>
8271
8272         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
8273         The _LIBC implementation of build_range_exp correctly honors the
8274         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
8275         However, the non-_LIBC implementation would ignore that syntax-bit
8276         flag and return REG_ERANGE unconditionally.
8277         This change makes it honor that flag.
8278         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
8279         Make two pointer parameters "const".
8280         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
8281         (parse_bracket_exp): Update caller.
8282
8283         regex.m4: correct the reversed range endpoint ([b-a]) test
8284         * m4/regex.m4: When requiring that [b-a] evoke failure,
8285         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
8286         test pass once again for x86-based systems.
8287
8288 2010-03-19  Bruno Haible  <bruno@clisp.org>
8289
8290         scandir: Fix link error on Solaris 8.
8291         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
8292         macros.
8293
8294 2010-03-19  Bruno Haible  <bruno@clisp.org>
8295
8296         getusershell: Fix documentation.
8297         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
8298         module.
8299         * doc/glibc-functions/setusershell.texi: Likewise.
8300
8301         getusershell: Provide declaration, missing on Solaris 9.
8302         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
8303         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
8304         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
8305         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
8306         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
8307         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
8308         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
8309         HAVE_GETUSERSHELL.
8310         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
8311
8312 2010-03-19  Bruno Haible  <bruno@clisp.org>
8313
8314         wctype: Provide iswblank function.
8315         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
8316         exists and is fine.
8317         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
8318         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
8319         * tests/test-wctype.c (main): Re-enable the iswblank tests.
8320         * doc/posix-functions/iswblank.texi: Update.
8321
8322 2010-03-19  Bruno Haible  <bruno@clisp.org>
8323
8324         Tests of module 'pty' in C++ mode.
8325         * modules/pty-tests: New file.
8326         * tests/test-pty-c++.cc: New file.
8327         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
8328
8329 2010-03-19  Eric Blake  <eblake@redhat.com>
8330
8331         logb: fix documentation
8332         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
8333         1.5 declaration bug.
8334
8335         forkpty, openpty: prefer glibc's const-safe prototype
8336         * lib/forkpty.c (rpl_forkpty): New file.
8337         * lib/openpty.c (rpl_openpty): Likewise.
8338         * modules/forkpty (Files): Distribute it.
8339         * modules/openpty (Files): Likewise.
8340         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
8341         check...
8342         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
8343         replacement for for non-const BSD signature.
8344         * modules/pty (Makefile.am): Substitute witnesses.
8345         * lib/pty.in.h (forkpty, openpty): Declare replacements.
8346         * tests/test-forkpty.c: Update signature check.
8347         * tests/test-openpty.c: Likewise.
8348         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
8349         * doc/glibc-functions/openpty.texi (openpty): Likewise.
8350
8351         forkpty, openpty: split functions into new modules
8352         * modules/pty (Makefile.am): Substitute new witnesses.
8353         (Libraries): Move library detection...
8354         * modules/forkpty: ...into new module.
8355         * modules/openpty: Another new module.
8356         * modules/pty-tests: Rename and split...
8357         * modules/forkpty-tests: ...to this...
8358         * modules/openpty-tests: ...and this.
8359         * tests/test-pty.c: Rename and split...
8360         * tests/test-forkpty.c: ...to this...
8361         * tests/test-openpty.c: ...and this.
8362         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
8363         (gl_PTY): Split library searching...
8364         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
8365         (gl_FORKPTY, gl_OPENPTY): New macros.
8366         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
8367         * NEWS: Mention the split.
8368         * MODULES.html.sh (Misc): Document the modules.
8369         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
8370         * doc/glibc-functions/openpty.texi (openpty): Likewise.
8371
8372         pty: improve replacement header
8373         * lib/pty.in.h: New file.
8374         * modules/pty (Files): Ship it.
8375         (Makefile.am): Always build replacement.
8376         * m4/pty.m4: Rename...
8377         * m4/pty_h.m4: ...to this.
8378         (gl_PTY): Modernize setting of witness macros; update check of
8379         forkpty to take proper advantage of cache.
8380         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
8381
8382         getopt: avoid compiler warning
8383         * lib/getopt.c (attribute_hidden): Remove unused macro.
8384
8385 2010-03-18  Bruno Haible  <bruno@clisp.org>
8386
8387         Fix link errors on Solaris 8.
8388         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
8389         * modules/search-tests (test_search_c___LDADD): Likewise.
8390         * modules/signal-tests (test_signal_c___LDADD): Likewise.
8391         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
8392         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
8393         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
8394         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
8395         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
8396         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
8397
8398 2010-03-18  Bruno Haible  <bruno@clisp.org>
8399
8400         Fix bug introduced on 2010-03-14.
8401         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
8402         (gl_SPAWN_H): Require it.
8403         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
8404         Reported by Simon Josefsson.
8405
8406 2010-03-18  Bruno Haible  <bruno@clisp.org>
8407
8408         Fix typo introduced on 2009-12-31.
8409         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
8410         posix_spawn_file_actions_adddup2.
8411
8412 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
8413         and Eric Blake  <eblake@redhat.com>
8414
8415         test-vc-list-files-git: make more robust
8416         * tests/test-vc-list-files-git.sh: Unset problematic environment
8417         variables.  Chain commands together.
8418
8419 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
8420
8421         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
8422         `AC_CHECK_DECL' invocation.
8423
8424 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
8425
8426         * lib/inttostr.c (inttostr): Make sure the invocation of verify
8427         appears before executable statements. Suggested by Petr Sumbera
8428         <Petr.Sumbera@Sun.COM>.
8429
8430 2010-03-14  Bruno Haible  <bruno@clisp.org>
8431
8432         * tests/test-flock.c (test_exclusive): Comment out a test that causes
8433         portability problems. Instead use a simpler test.
8434         (main): Check that invalid arguments are rejected only on Linux.
8435
8436 2010-03-14  Bruno Haible  <bruno@clisp.org>
8437
8438         Fix bug introduced on 2009-12-31.
8439         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
8440         gl_PREREQ_SYS_H_WINSOCK2 always.
8441         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
8442         SYS_SOCKET_H variable.
8443         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
8444         Update comments.
8445         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
8446         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
8447         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
8448         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
8449         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
8450
8451 2010-03-14  Bruno Haible  <bruno@clisp.org>
8452
8453         Fix values returned by sinl, cosl.
8454         * lib/trigl.h: Add specification comments.
8455         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
8456         that combines the values from the precomputed table with the values of
8457         the Chebyshev polynomials.
8458
8459 2010-03-14  Bruno Haible  <bruno@clisp.org>
8460
8461         Fix compilation error when modules 'posix_spawn[p]' are not used.
8462         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
8463         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
8464
8465 2010-03-14  Bruno Haible  <bruno@clisp.org>
8466
8467         Fix compilation error on mingw when module 'time_r' is not used.
8468         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
8469         is 1.
8470         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
8471         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
8472         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
8473         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
8474
8475 2010-03-14  Bruno Haible  <bruno@clisp.org>
8476
8477         Fix compilation error with Sun C.
8478         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
8479         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
8480         instead of GCC specific ULONG_LONG_MAX.
8481         * lib/xstrtoll.c: Likewise.
8482         * lib/xstrtoull.c: Likewise.
8483
8484 2010-03-13  Bruno Haible  <bruno@clisp.org>
8485
8486         Allow the user to disable C++ code and tests.
8487         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
8488         (gl_PROG_ANSI_CXX): Require it.
8489
8490 2010-03-13  Bruno Haible  <bruno@clisp.org>
8491
8492         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
8493         cases.
8494
8495 2010-03-13  Bruno Haible  <bruno@clisp.org>
8496
8497         Test that gnulib does not break the standard C++ headers.
8498         * tests/test-locale-c++2.cc: New file.
8499         * modules/locale-tests (Files): Add it.
8500         (Makefile.am): Compile it for test-locale-c++.
8501         * tests/test-math-c++2.cc: New file.
8502         * modules/math-tests (Files): Add it.
8503         (Makefile.am): Compile it for test-math-c++.
8504         * tests/test-signal-c++2.cc: New file.
8505         * modules/signal-tests (Files): Add it.
8506         (Makefile.am): Compile it for test-signal-c++.
8507         * tests/test-stdio-c++2.cc: New file.
8508         * modules/stdio-tests (Files): Add it.
8509         (Makefile.am): Compile it for test-stdio-c++.
8510         * tests/test-stdlib-c++2.cc: New file.
8511         * modules/stdlib-tests (Files): Add it.
8512         (Makefile.am): Compile it for test-stdlib-c++.
8513         * tests/test-string-c++2.cc: New file.
8514         * modules/string-tests (Files): Add it.
8515         (Makefile.am): Compile it for test-string-c++.
8516         * tests/test-time-c++2.cc: New file.
8517         * modules/time-tests (Files): Add it.
8518         (Makefile.am): Compile it for test-time-c++.
8519         Reported by John W. Eaton <jwe@gnu.org>.
8520
8521 2010-03-13  Bruno Haible  <bruno@clisp.org>
8522
8523         * gnulib-tool (func_usage): Clarify which options are available for
8524         --create-testdir and --create-megatestdir.
8525
8526 2010-03-13  Bruno Haible  <bruno@clisp.org>
8527
8528         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
8529         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
8530         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
8531         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
8532         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
8533         when appropriate.
8534         Reported by Jim Meyering.
8535
8536 2010-03-12  Simon Josefsson  <simon@josefsson.org>
8537
8538         * gnulib-tool (func_import): Explain origin of code.
8539
8540 2010-03-12  Bruno Haible  <bruno@clisp.org>
8541
8542         Fix problem with automake's definition of CXXLINK.
8543         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
8544         Reported by Simon Josefsson and Ludovic Courtès.
8545
8546 2010-03-12  Bruno Haible  <bruno@clisp.org>
8547
8548         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
8549         stable releases.
8550
8551 2010-03-11  Bruno Haible  <bruno@clisp.org>
8552
8553         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
8554         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
8555         whether the system provides one variant or multiple variants of the
8556         function.
8557         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
8558         C++ compilers.
8559         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
8560         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
8561         Reported by Jim Meyering.
8562
8563 2010-03-09  Simon Josefsson  <simon@josefsson.org>
8564
8565         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
8566
8567 2010-03-08  Bruno Haible  <bruno@clisp.org>
8568
8569         gnulib-tool: Add support for --libtool in --create-testdir.
8570         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
8571         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
8572
8573 2010-03-08  Eric Blake  <eblake@redhat.com>
8574
8575         gnulib-tool.texi: mention possibility of git submodule
8576         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
8577         submodules.
8578         * doc/.gitignore: Ignore another generated file.
8579
8580 2010-03-08  Karl Berry  <karl@gnu.org>
8581
8582         * doc/gnulib-tool.texi (VCS Issues): Mention third option
8583         of committing gnulib files while skipping others.
8584
8585 2010-03-07  Bruno Haible  <bruno@clisp.org>
8586
8587         Tests of module 'wctype' in C++ mode.
8588         * tests/test-wctype-c++.cc: New file.
8589         * modules/wctype-tests (Files): Add it and tests/signature.h.
8590         (Depends-on): Add ansi-c++-opt.
8591         (Makefile.am): Arrange to compile and run test-wctype-c++.
8592
8593         Tests of module 'wchar' in C++ mode.
8594         * tests/test-wchar-c++.cc: New file.
8595         * modules/wchar-tests (Files): Add it and tests/signature.h.
8596         (Depends-on): Add ansi-c++-opt.
8597         (Makefile.am): Arrange to compile and run test-wchar-c++.
8598         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
8599         gl_MODULE_INDICATOR.
8600
8601         Tests of module 'unistd' in C++ mode.
8602         * tests/test-unistd-c++.cc: New file.
8603         * modules/unistd-tests (Files): Add it and tests/signature.h.
8604         (Depends-on): Add ansi-c++-opt.
8605         (Makefile.am): Arrange to compile and run test-unistd-c++.
8606         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
8607         gl_MODULE_INDICATOR.
8608
8609         Tests of module 'time' in C++ mode.
8610         * tests/test-time-c++.cc: New file.
8611         * modules/time-tests (Files): Add it and tests/signature.h.
8612         (Depends-on): Add ansi-c++-opt.
8613         (Makefile.am): Arrange to compile and run test-time-c++.
8614         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
8615
8616         Tests of module 'sys_time' in C++ mode.
8617         * tests/test-sys_time-c++.cc: New file.
8618         * modules/sys_time-tests (Files): Add it and tests/signature.h.
8619         (Depends-on): Add ansi-c++-opt.
8620         (Makefile.am): Arrange to compile and run test-sys_time-c++.
8621         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
8622         gl_MODULE_INDICATOR.
8623
8624         Tests of module 'sys_stat' in C++ mode.
8625         * tests/test-sys_stat-c++.cc: New file.
8626         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
8627         (Depends-on): Add ansi-c++-opt.
8628         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
8629         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
8630         gl_MODULE_INDICATOR.
8631
8632         Tests of module 'sys_socket' in C++ mode.
8633         * tests/test-sys_socket-c++.cc: New file.
8634         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
8635         (Depends-on): Add ansi-c++-opt.
8636         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
8637         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
8638         gl_MODULE_INDICATOR.
8639
8640         Tests of module 'sys_select' in C++ mode.
8641         * tests/test-sys_select-c++.cc: New file.
8642         * modules/sys_select-tests (Files): Add it and tests/signature.h.
8643         (Depends-on): Add ansi-c++-opt.
8644         (Makefile.am): Arrange to compile and run test-sys_select-c++.
8645         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
8646         gl_MODULE_INDICATOR.
8647
8648         Tests of module 'sys_ioctl' in C++ mode.
8649         * tests/test-sys_ioctl-c++.cc: New file.
8650         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
8651         (Depends-on): Add ansi-c++-opt.
8652         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
8653         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
8654         gl_MODULE_INDICATOR.
8655
8656         Tests of module 'string' in C++ mode.
8657         * tests/test-string-c++.cc: New file.
8658         * modules/string-tests (Files): Add it and tests/signature.h.
8659         (Depends-on): Add ansi-c++-opt.
8660         (Makefile.am): Arrange to compile and run test-string-c++.
8661         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
8662         gl_MODULE_INDICATOR.
8663
8664         Tests of module 'stdlib' in C++ mode.
8665         * tests/test-stdlib-c++.cc: New file.
8666         * modules/stdlib-tests (Files): Add it and tests/signature.h.
8667         (Depends-on): Add ansi-c++-opt.
8668         (Makefile.am): Arrange to compile and run test-stdlib-c++.
8669         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
8670         gl_MODULE_INDICATOR.
8671
8672         Tests of module 'stdio' in C++ mode.
8673         * tests/test-stdio-c++.cc: New file.
8674         * modules/stdio-tests (Files): Add it and tests/signature.h.
8675         (Depends-on): Add ansi-c++-opt.
8676         (Makefile.am): Arrange to compile and run test-stdio-c++.
8677         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
8678         gl_MODULE_INDICATOR.
8679
8680         Tests of module 'spawn' in C++ mode.
8681         * tests/test-spawn-c++.cc: New file.
8682         * modules/spawn-tests (Files): Add it and tests/signature.h.
8683         (Depends-on): Add ansi-c++-opt.
8684         (Makefile.am): Arrange to compile and run test-spawn-c++.
8685         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
8686         gl_MODULE_INDICATOR.
8687
8688         Tests of module 'signal' in C++ mode.
8689         * tests/test-signal-c++.cc: New file.
8690         * modules/signal-tests (Files): Add it and tests/signature.h.
8691         (Depends-on): Add ansi-c++-opt.
8692         (Makefile.am): Arrange to compile and run test-signal-c++.
8693         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
8694         gl_MODULE_INDICATOR.
8695
8696         Tests of module 'search' in C++ mode.
8697         * tests/test-search-c++.cc: New file.
8698         * modules/search-tests (Files): Add it and tests/signature.h.
8699         (Depends-on): Add ansi-c++-opt.
8700         (Makefile.am): Arrange to compile and run test-search-c++.
8701         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
8702         gl_MODULE_INDICATOR.
8703
8704         Tests of module 'math' in C++ mode.
8705         * tests/test-math-c++.cc: New file.
8706         * modules/math-tests (Files): Add it and tests/signature.h.
8707         (Depends-on): Add ansi-c++-opt.
8708         (Makefile.am): Arrange to compile and run test-math-c++.
8709         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
8710
8711         Tests of module 'locale' in C++ mode.
8712         * tests/test-locale-c++.cc: New file.
8713         * modules/locale-tests (Files): Add it and tests/signature.h.
8714         (Depends-on): Add ansi-c++-opt.
8715         (Makefile.am): Arrange to compile and run test-locale-c++.
8716         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
8717         gl_MODULE_INDICATOR.
8718
8719         Tests of module 'langinfo' in C++ mode.
8720         * tests/test-langinfo-c++.cc: New file.
8721         * modules/langinfo-tests (Files): Add it and tests/signature.h.
8722         (Depends-on): Add ansi-c++-opt.
8723         (Makefile.am): Arrange to compile and run test-langinfo-c++.
8724         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
8725         gl_MODULE_INDICATOR.
8726
8727         Tests of module 'iconv-h' in C++ mode.
8728         * tests/test-iconv-h-c++.cc: New file.
8729         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
8730         (Depends-on): Add ansi-c++-opt.
8731         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
8732
8733         Tests of module 'glob' in C++ mode.
8734         * tests/test-glob-c++.cc: New file.
8735         * modules/glob-tests (Files): Add it.
8736         (Depends-on): Add ansi-c++-opt.
8737         (Makefile.am): Arrange to compile and run test-glob-c++.
8738
8739         Tests of module 'fcntl-h' in C++ mode.
8740         * tests/test-fcntl-h-c++.cc: New file.
8741         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
8742         (Depends-on): Add ansi-c++-opt.
8743         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
8744         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
8745         gl_MODULE_INDICATOR.
8746
8747         Tests of module 'dirent' in C++ mode.
8748         * tests/test-dirent-c++.cc: New file.
8749         * modules/dirent-tests (Files): Add it and tests/signature.h.
8750         (Depends-on): Add ansi-c++-opt.
8751         (Makefile.am): Arrange to compile and run test-dirent-c++.
8752         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
8753         gl_MODULE_INDICATOR.
8754
8755         New module 'ansi-c++-opt'.
8756         * modules/ansi-c++-opt: New file.
8757         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
8758
8759         Document C++ namespace mode.
8760         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
8761
8762         wctype: Avoid #define replacements in C++ mode.
8763         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
8764         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
8765         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
8766         In C++, define a namespaced alias symbol.
8767         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
8768         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
8769         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
8770         rule.
8771
8772         wchar: Avoid #define replacements in C++ mode.
8773         * lib/wchar.in.h: Include c++defs.h.
8774         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
8775         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
8776         symbol.
8777         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
8778         * modules/wchar (Depends-on): Add c++defs.
8779         (Makefile.am): Update wchar.h rule.
8780
8781         unistd: Avoid #define replacements in C++ mode.
8782         * lib/unistd.in.h: Include c++defs.h.
8783         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
8784         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
8785         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
8786         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
8787         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
8788         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
8789         symbol.
8790         (environ): Update.
8791         * modules/unistd (Depends-on): Add c++defs.
8792         (Makefile.am): Update unistd.h rule.
8793
8794         time: Avoid #define replacements in C++ mode.
8795         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
8796         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
8797         define a namespaced alias symbol.
8798         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
8799         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
8800         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
8801         * modules/time (Depends-on): Add c++defs, warn-on-use.
8802         (Makefile.am): Update time.h rule.
8803         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
8804         * modules/nanosleep (configure.ac): Likewise.
8805         * modules/strptime (configure.ac): Likewise.
8806         * modules/timegm (configure.ac): Likewise.
8807
8808         sys_time: Avoid #define replacements in C++ mode.
8809         * lib/sys_time.in.h: Include c++defs.h.
8810         (gettimeofday): In C++, define a namespaced alias symbol.
8811         * modules/sys_time (Depends-on): Add c++defs.
8812         (Makefile.am): Update sys/time.h rule.
8813
8814         sys_stat: Avoid #define replacements in C++ mode.
8815         * lib/sys_stat.in.h: Include c++defs.h.
8816         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
8817         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
8818         namespaced alias symbol.
8819         In C++, define a namespaced alias symbol.
8820         * modules/sys_stat (Depends-on): Add c++defs.
8821         (Makefile.am): Update sys/stat.h rule.
8822
8823         sys_socket: Avoid #define replacements in C++ mode.
8824         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
8825         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
8826         definitions also when the system has a <sys/socket.h>.
8827         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
8828         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
8829         In C++, define a namespaced alias symbol.
8830         * modules/sys_socket (Depends-on): Add c++defs.
8831         (Makefile.am): Update sys/socket.h rule.
8832
8833         sys_select: Avoid #define replacements in C++ mode.
8834         * lib/sys_select.in.h: Include c++defs.h. Enable the function
8835         definitions also when the system has a <sys/select.h>.
8836         (select): In C++, define a namespaced alias symbol.
8837         * modules/sys_select (Depends-on): Add c++defs.
8838         (Makefile.am): Update sys/select.h rule.
8839
8840         sys_ioctl: Avoid #define replacements in C++ mode.
8841         * lib/sys_ioctl.in.h: Include c++defs.h.
8842         (ioctl): In C++, define a namespaced alias symbol.
8843         * modules/sys_ioctl (Depends-on): Add c++defs.
8844         (Makefile.am): Update sys/ioctl.h rule.
8845
8846         string: Avoid #define replacements in C++ mode.
8847         * lib/string.in.h: Include c++defs.h.
8848         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
8849         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
8850         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
8851         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
8852         strsignal, strverscmp): In C++, define a namespaced alias symbol.
8853         * modules/string (Depends-on): Add c++defs.
8854         (Makefile.am): Update string.h rule.
8855
8856         stdlib: Avoid #define replacements in C++ mode.
8857         * lib/stdlib.in.h: Include c++defs.h.
8858         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
8859         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
8860         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
8861         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
8862         symbol.
8863         * modules/stdlib (Depends-on): Add c++defs.
8864         (Makefile.am): Update stdlib.h rule.
8865
8866         stdio: Avoid #define replacements in C++ mode.
8867         * lib/stdio.in.h: Include c++defs.h.
8868         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
8869         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
8870         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
8871         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
8872         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
8873         namespaced alias symbol.
8874         * modules/stdio (Depends-on): Add c++defs.
8875         (Makefile.am): Update stdio.h rule.
8876
8877         spawn: Avoid #define replacements in C++ mode.
8878         * lib/spawn.in.h: Include c++defs.h.
8879         (posix_spawn, posix_spawnp, posix_spawnattr_init,
8880         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
8881         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
8882         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
8883         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
8884         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
8885         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
8886         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
8887         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
8888         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
8889         In C++, define a namespaced alias symbol.
8890         * modules/spawn (Depends-on): Add c++defs.
8891         (Makefile.am): Update spawn.h rule.
8892
8893         signal: Avoid #define replacements in C++ mode.
8894         * lib/signal.in.h: Include c++defs.h.
8895         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
8896         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
8897         namespaced alias symbol.
8898         * modules/signal (Depends-on): Add c++defs.
8899         (Makefile.am): Update signal.h rule.
8900
8901         search: Avoid #define replacements in C++ mode.
8902         * lib/search.in.h: Include c++defs.h.
8903         (_gl_search_compar_fn, _gl_search_action_fn): New types.
8904         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
8905         symbol.
8906         * modules/search (Depends-on): Add c++defs.
8907         (Makefile.am): Update search.h rule.
8908
8909         math: Avoid #define replacements in C++ mode.
8910         * lib/math.in.h: Include c++defs.h.
8911         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
8912         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
8913         trunc, truncl): In C++, define a namespaced alias symbol.
8914         * modules/math (Depends-on): Add c++defs.
8915         (Makefile.am): Update math.h rule.
8916
8917         locale: Avoid #define replacements in C++ mode.
8918         * lib/locale.in.h: Include c++defs.h.
8919         (duplocale): In C++, define a namespaced alias symbol.
8920         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
8921         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
8922         * modules/locale (Depends-on): Add c++defs.
8923         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
8924
8925         langinfo: Avoid #define replacements in C++ mode.
8926         * lib/langinfo.in.h: Include c++defs.h.
8927         (nl_langinfo): In C++, define a namespaced alias symbol.
8928         * modules/langinfo (Depends-on): Add c++defs.
8929         (Makefile.am): Update langinfo.h rule.
8930
8931         iconv-h: Avoid #define replacements in C++ mode.
8932         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
8933         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
8934         symbol.
8935         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
8936         whenever iconv is present.
8937         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
8938         (Makefile.am): Update iconv.h rule.
8939
8940         glob: Avoid #define replacements in C++ mode.
8941         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
8942         (_gl_glob_errfunc_fn): New type.
8943         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
8944         symbol.
8945         * modules/glob (Depends-on): Add c++defs, warn-on-use.
8946         (Makefile.am): Update glob.h rule.
8947
8948         fcntl-h: Avoid #define replacements in C++ mode.
8949         * lib/fcntl.in.h: Include c++defs.h.
8950         (fcntl, open, openat): In C++, define a namespaced alias symbol.
8951         * modules/fcntl-h (Depends-on): Add c++defs.
8952         (Makefile.am): Update fcntl.h rule.
8953
8954         dirent: Avoid #define replacements in C++ mode.
8955         * lib/dirent.in.h: Include c++defs.h.
8956         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
8957         namespaced alias symbol.
8958         (dirfd): Update declaration.
8959         * modules/dirent (Depends-on): Add c++defs.
8960         (Makefile.am): Update dirent.h rule.
8961
8962         ctype: Make it usable in C++ code.
8963         * lib/ctype.in.h: Include c++defs.h.
8964         (isblank): Declare as extern "C".
8965         * modules/ctype (Depends-on): Add c++defs.
8966         (Makefile.am): Update ctype.h rule.
8967
8968         New module 'c++defs'.
8969         * modules/c++defs: New file.
8970         * build-aux/c++defs.h: New file.
8971         Reported by John W. Eaton <jwe@gnu.org>.
8972
8973 2010-03-07  Bruno Haible  <bruno@clisp.org>
8974
8975         logb: Provide missing declaration for Cygwin.
8976         * lib/math.in.h (logb): New declaration.
8977         * m4/logb.m4: New file.
8978         * modules/logb (Files): Add m4/logb.m4.
8979         (Depends-on): Add math.
8980         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
8981         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
8982         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
8983         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
8984         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
8985
8986 2010-03-07  Bruno Haible  <bruno@clisp.org>
8987
8988         Fix test-cond link error.
8989         * tests/test-cond.c: Include <stdio.h>.
8990
8991 2010-03-07  Bruno Haible  <bruno@clisp.org>
8992
8993         Fix test-dirent-safer link error.
8994         * modules/dirent-safer-tests (Makefile.am): Define
8995         test_dirent_safer_LDADD.
8996
8997 2010-03-07  Bruno Haible  <bruno@clisp.org>
8998
8999         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
9000         among default module list.
9001
9002 2010-03-07  Bruno Haible  <bruno@clisp.org>
9003
9004         Fix link error on platforms with GNU libiconv.
9005         * modules/unistr/u8-strcoll-tests (Makefile): Define
9006         test_u8_strcoll_LDADD.
9007         * modules/unistr/u16-strcoll-tests (Makefile): Define
9008         test_u16_strcoll_LDADD.
9009         * modules/unistr/u32-strcoll-tests (Makefile): Define
9010         test_u32_strcoll_LDADD.
9011
9012 2010-03-07  Bruno Haible  <bruno@clisp.org>
9013
9014         Use POSIX declarations for socket functions.
9015         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
9016         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
9017         rpl_sendto): Change declaration to match POSIX.
9018         * lib/connect.c (rpl_connect): Likewise.
9019         * lib/accept.c (rpl_accept): Likewise.
9020         * lib/bind.c (rpl_bind): Likewise.
9021         * lib/getpeername.c (rpl_getpeername): Likewise.
9022         * lib/getsockname.c (rpl_getsockname): Likewise.
9023         * lib/recv.c (rpl_recv): Likewise.
9024         * lib/send.c (rpl_send): Likewise.
9025         * lib/recvfrom.c (rpl_recvfrom): Likewise.
9026         * lib/sendto.c (rpl_sendto): Likewise.
9027
9028 2010-03-06  Bruno Haible  <bruno@clisp.org>
9029
9030         Clarify access, euidaccess, faccessat.
9031         * doc/posix-functions/faccessat.texi: Mention security problem under
9032         "Other problems", not "Portability problems".
9033         * doc/posix-functions/access.texi: Likewise. Mention a related security
9034         problem.
9035         * doc/glibc-functions/euidaccess.texi: Mention security problems.
9036         * lib/euidaccess.c: Add comments about platforms.
9037         * lib/unistd.in.h (access, euidaccess): Add warnings.
9038
9039 2010-03-07  Bruno Haible  <bruno@clisp.org>
9040
9041         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
9042         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
9043         (POSIX_SPAWN_SETSCHEDULER): Likewise.
9044         (POSIX_SPAWN_USEVFORK): Define in a way that works when
9045         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
9046         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
9047         declare when POSIX_SPAWN_SETSCHEDULER is zero.
9048         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
9049         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
9050         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
9051         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
9052         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
9053         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
9054         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
9055         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
9056         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
9057         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
9058         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
9059         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
9060         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
9061         Likewise.
9062         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
9063         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
9064         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
9065         Likewise.
9066         * tests/test-spawn.c (main): Make it work when
9067         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
9068
9069 2010-03-07  Bruno Haible  <bruno@clisp.org>
9070
9071         Fix incorrect Makefile.am generation in German locale.
9072         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
9073         Execute sed command with character range in C locale.
9074
9075 2010-03-06  Bruno Haible  <bruno@clisp.org>
9076
9077         Tests for module 'iconv-h'.
9078         * modules/iconv-h-tests: New file.
9079         * tests/test-iconv-h.c: New file.
9080
9081         New module 'iconv-h'.
9082         * modules/iconv-h: New file.
9083         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
9084         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
9085         (configure.ac): Remove gl_ICONV_H.
9086         (Makefile.am): Remove rule for iconv.h.
9087
9088 2010-03-06  Bruno Haible  <bruno@clisp.org>
9089
9090         More consistent naming of *.m4 files.
9091         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
9092         * modules/wctype (Files): Update.
9093
9094         More consistent naming of *.m4 files.
9095         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
9096         * modules/wchar (Files): Update.
9097
9098 2010-03-06  Jim Meyering  <meyering@redhat.com>
9099
9100         euidaccess: relax license to LGPLv2+
9101         * modules/euidaccess (License): Relax to LGPLv2+.
9102
9103 2010-03-06  Bruno Haible  <bruno@clisp.org>
9104
9105         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
9106         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
9107         (Makefile.am): Augment lib_SOURCES instead.
9108
9109 2010-03-04  Jim Meyering  <meyering@redhat.com>
9110
9111         utime: remove obsolete module
9112         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
9113         unnecessary for years, and has been marked as obsolete for 10 months.
9114         * modules/utime: Remove file.
9115         * lib/utime.c: Remove file.
9116         * m4/utime.m4: Remove file.
9117         * m4/utimes-null.m4: Remove file.
9118         * doc/posix-functions/utime.texi (utime): Remove reference to
9119         the module.  Move the sole "fixed by gnulib" item into the
9120         "problems not fixed by Gnulib" list.
9121         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
9122
9123 2010-03-05  Simon Josefsson  <simon@josefsson.org>
9124
9125         * modules/exit (License): Relax license to LGPLv2+.
9126         (Status): Mark as obsolete.
9127         * NEWS: Mention deprecated 'exit' module.
9128         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
9129         of now obsolete 'exit'.
9130
9131 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9132
9133         fts-lgpl: remove unused module
9134         * modules/fts-lgpl: Remove.
9135         * MODULES.html.sh (func_all_modules): Adjust.
9136         * check-module (find_included_lib_files): Adjust.
9137         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
9138
9139 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
9140
9141         copy-acl: enhance Solaris ACL error handling
9142         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
9143         * lib/set-mode-acl.c (qset_acl): Likewise.
9144
9145 2010-03-02  Bruno Haible  <bruno@clisp.org>
9146
9147         spawn: Don't override the system defined values on FreeBSD 8.
9148         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
9149         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
9150         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
9151         if HAVE_POSIX_SPAWN is 1.
9152         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
9153
9154 2010-03-01  Bruno Haible  <bruno@clisp.org>
9155
9156         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
9157         regarding Automake.
9158
9159 2010-02-25  Bruno Haible  <bruno@clisp.org>
9160
9161         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
9162         * gnulib-tool: Define 'echo' as a function only before the ksh alias
9163         setting, not afterwards.
9164         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
9165
9166 2010-02-24  Eric Blake  <eblake@redhat.com>
9167
9168         bootstrap, git-version-gen: use timestamp
9169         * build-aux/git-version-gen (scriptversion): Force UTC.
9170         * build-aux/bootstrap (scriptversion): New variable.
9171
9172         bootstrap: allow older git
9173         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
9174         older than 1.6.4.  Requested by the libvirt project.
9175
9176 2010-02-23  Eric Blake  <eblake@redhat.com>
9177
9178         warn-on-use: work with old autoconf
9179         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
9180         AS_VAR semantics of autoconf 2.60.
9181         Reported by Bruno Haible.
9182
9183         bootstrap: improve some comments
9184         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
9185         clarification comments.
9186
9187         gettimeofday: provide correct function
9188         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
9189         when replacement is declared, otherwise provide gettimeofday.
9190         Reported by Michael Goffioul.
9191
9192 2010-02-23  Jim Meyering  <meyering@redhat.com>
9193
9194         lib-ignore: relax license to "unlimited", not LGPLv2+
9195         * modules/lib-ignore (License): Relax to "unlimited".
9196
9197 2010-02-23  Jim Meyering  <meyering@redhat.com>
9198
9199         lib-ignore: relax license to LGPLv2+
9200         * modules/lib-ignore (License): Relax to LGPLv2+.
9201
9202 2010-02-22  Eric Blake  <eblake@redhat.com>
9203
9204         lseek: avoid bash 3.2 broken pipe bug
9205         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
9206         warning from bash 3.2.
9207         Reported by Ben Pfaff, with analysis from Bruno Haible.
9208
9209         bootstrap: support non-FSF copyright holder
9210         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
9211         bootstrap.conf override of COPYRIGHT_HOLDER.
9212         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
9213
9214         bootstrap: interoperate with gettext 0.14.1
9215         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
9216
9217         bootstrap: allow for alternate submodule location
9218         * build-aux/bootstrap (gnulib_path): New variable; use instead of
9219         hardcoding submodule location.
9220         (gnulib_mk): Allow direct use of Makefile.am.
9221
9222         bootstrap: use GNULIB_SRCDIR to reduce disk usage
9223         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
9224         rather than reconfiguring where the submodule points.
9225
9226         gettimeofday: restore support for platforms that lack function
9227         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
9228         replacement if function is missing.
9229         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
9230         * modules/sys_time (Makefile.am): Substitute it.
9231         * lib/sys_time.in.h (gettimeofday): Check it.
9232         Reported by Michael Goffioul.
9233
9234 2010-02-21  Bruno Haible  <bruno@clisp.org>
9235
9236         * lib/stdio.in.h (obstack_printf): Fix typo.
9237
9238 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
9239
9240         vc-list-files: use bzr ls's -R option
9241         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
9242         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
9243
9244 2010-02-21  Jim Meyering  <meyering@redhat.com>
9245
9246         init.sh: fix EXEEXT shims to work also for names like test-prog
9247         * tests/init.sh: Re-exec a better shell, when needed.
9248         If the current shell lacks support for posix $(...), an init.sh-using
9249         test will now try to find a shell that supports that.  If EXEEXT is
9250         nonempty, we also require support for hyphen-in-alias-name and shell
9251         substitutions like ${var#glob}.  Failure to find such a shell results
9252         in a skipped test.
9253
9254 2010-02-21  Bruno Haible  <bruno@clisp.org>
9255
9256         Really work around around "broken pipe" error message from bash 3.2.
9257         * gnulib-tool (func_reset_sigpipe): Remove function.
9258         (echo): In bash 3.2, define to a function that uses printf.
9259         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
9260
9261 2010-02-20  Bruno Haible  <bruno@clisp.org>
9262
9263         Restore support for automake 1.9.6 with autoconf 2.61.
9264         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
9265         Reported by James Youngman <jay@gnu.org>.
9266
9267 2010-02-20  Bruno Haible  <bruno@clisp.org>
9268
9269         Improve *printf warning condition.
9270         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
9271         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
9272         and the function is overridden due to SIGPIPE emulation.
9273
9274 2010-02-20  Bruno Haible  <bruno@clisp.org>
9275
9276         * lib/stdio.in.h: Tweak comments.
9277
9278 2010-02-19  Bruno Haible  <bruno@clisp.org>
9279
9280         Make it easier to find modules. New gnulib-tool option '--find'.
9281         * gnulib-tool: New option --find.
9282         (func_usage): Document it.
9283         (func_sanitize_modulelist): New function, extracted from
9284         func_all_modules.
9285         (func_all_modules): Invoke it.
9286         * doc/gnulib-tool.texi (Which modules?): New node.
9287
9288 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
9289
9290         * lib/sys_select.in.h: Provide select replacement even if
9291         sys/select.h exists on a system, for Interix.
9292
9293 2010-02-18  Jim Meyering  <meyering@redhat.com>
9294
9295         init.sh: don't use $(...) just yet
9296         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
9297         to accommodate e.g., Solaris' /bin/sh.
9298
9299 2010-02-17  Bruno Haible  <bruno@clisp.org>
9300
9301         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
9302         Reported by Ludovic Courtès <ludo@gnu.org>.
9303
9304 2010-02-16  Simon Josefsson  <simon@josefsson.org>
9305
9306         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
9307         linking with -lintl.
9308
9309 2010-02-17  Simon Josefsson  <simon@josefsson.org>
9310
9311         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
9312         if not provided by the system's netdb.h.  Reported by
9313         ludo@gnu.org (Ludovic Courtès).
9314
9315 2010-02-15  Jim Meyering  <meyering@redhat.com>
9316
9317         init.sh: improve portability and efficiency
9318         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
9319         "dummy" in a for loop.
9320         Use '!', not '^' to select the complement of a character set used
9321         in a "case" statement.
9322         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
9323         Suggestions from Eric Blake.
9324
9325         init.sh: automatically accommodate programs with the .exe suffix
9326         Automatically arrange for an invocation of "prog" to execute the
9327         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
9328         may use the simpler "prog", yet still work when built on a system
9329         that requires specifying the added suffix.
9330         Do this by constructing a function named "prog" that invokes
9331         "prog.exe" for each .exe file in selected directories.
9332         * tests/init.sh (find_exe_basenames_): New function.
9333         (create_exe_shim_functions_): New function.
9334         (path_prepend_): Use it.
9335
9336         maint.mk: mark syntax-check sc_*.m rules as .PHONY
9337         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
9338         "make -t syntax-check" doesn't create a ton of sc_*.m files.
9339
9340 2010-02-14  Jim Meyering  <meyering@redhat.com>
9341
9342         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
9343         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
9344         (sc_prohibit_hash_pjw_without_use): New rule.
9345
9346         maint.mk: allow the default upload destination dir to be overridden
9347         * top/maint.mk (upload_dest_dir_): Define with a default that
9348         preserves the status quo.
9349         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
9350         Reported by Peter Simons.
9351
9352         maint.mk: prohibit inclusion of "hash.h" without_use
9353         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
9354
9355 2010-02-10  Jim Meyering  <meyering@redhat.com>
9356
9357         maint.mk: prohibit inclusion of "ignore-value.h" without_use
9358         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
9359
9360 2010-02-09  Eric Blake  <ebb9@byu.net>
9361         and Bruno Haible  <bruno@clisp.org>
9362
9363         obstack-printf-posix: ensure declaration
9364         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
9365         extracted from gl_FUNC_OBSTACK_PRINTF.
9366         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
9367         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
9368         Likewise.
9369         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
9370         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
9371         0.
9372
9373 2010-02-08  Bruno Haible  <bruno@clisp.org>
9374
9375         gnulib-tool: Fix typo in 2010-02-07 commit.
9376         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
9377         Reported by Eric Blake.
9378
9379 2010-02-07  Bruno Haible  <bruno@clisp.org>
9380
9381         gnulib-tool: Fix up caching patches.
9382         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
9383         option --no-cache. Use associative arrays when supported by the shell.
9384         (sed_comments): New variable.
9385         (modcache): Renamed from do_cache.
9386         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
9387         abbreviate unnecessarily.
9388         (have_associative): New variable.
9389         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
9390         way also for ksh and zsh.
9391         (func_init_sed_convert_to_cache_statements): New function, extracted
9392         from func_cache_lookup_module. Add support for associative arrays.
9393         Don't set the c_MODULE_cached variable here. Ignore all lines before
9394         the first field header. Remove only the final newline, not all trailing
9395         newlines. Support empty fields correctly. Limit the use of 'eval' to
9396         assignments.
9397         (func_get_description, func_get_status, func_get_notice,
9398         func_get_applicability, func_get_filelist, func_get_dependencies,
9399         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
9400         func_get_automake_snippet, func_get_include_directive,
9401         func_get_link_directive, func_get_license, func_get_maintainer):
9402         Update documentation. List the unoptimized code first. Add support for
9403         associative arrays. Limit the use of 'eval' to assignments.
9404         (func_get_applicability): Undo stylistic pessimisations.
9405         (func_get_automake_snippet, func_get_include_directive): Reduce code
9406         duplication.
9407         (func_modules_transitive_closure, func_modules_add_dummy,
9408         func_modules_notice, func_modules_to_filelist, func_add_file,
9409         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
9410         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
9411         func_create_testdir, func_create_megatestdir): Update documentation.
9412
9413 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9414
9415         * gnulib-tool (func_cache_lookup_module): Store the module name
9416         belonging to the cache variable; error out if two different
9417         module names map to the same cache variable name.
9418
9419 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9420
9421         gnulib-tool: Make caching optional.
9422         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
9423         Update matching short versions of --no-changelog.
9424         (func_usage): Update.
9425         (sed_extract_cache_prog): Renamed from ...
9426         (sed_extract_prog): ... this; revert to old extraction script.
9427         (func_get_description, func_get_status)
9428         (func_get_notice, func_get_applicability, func_get_filelist)
9429         (func_get_dependencies, func_get_autoconf_early_snippet)
9430         (func_get_autoconf_snippet, func_get_automake_snippet)
9431         (func_get_include_directive, func_get_link_directive)
9432         (func_get_license, func_get_maintainer): If $do_cache is false,
9433         use old, non-caching extraction scripts.
9434         Suggestion by Bruno Haible.
9435
9436 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9437
9438         gnulib-tool: cache module metainformation.
9439         * gnulib-tool (sed_extract_prog): Match newline before each
9440         header, and rewrite header to a shell variable suffix.
9441         (func_cache_var, func_cache_lookup_module): New functions,
9442         to turn a module name into a cache variable prefix, and to
9443         look up and cache module metainformation.
9444         (func_get_description, func_get_status)
9445         (func_get_notice, func_get_applicability, func_get_filelist)
9446         (func_get_dependencies, func_get_autoconf_early_snippet)
9447         (func_get_autoconf_snippet, func_get_automake_snippet)
9448         (func_get_include_directive, func_get_link_directive)
9449         (func_get_license, func_get_maintainer): Use
9450         func_cache_lookup_module.
9451
9452 2010-02-07  Bruno Haible  <bruno@clisp.org>
9453
9454         fnctl: Fix missing dependency.
9455         * modules/fcntl (Depends-on): Add getdtablesize.
9456         Reported by John W. Eaton <jwe@gnu.org>.
9457
9458 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
9459
9460         Argp: fix recognition of short alias options.
9461
9462         * lib/argp-parse.c (convert_options): Fix improper use of
9463         `|' between character values.
9464         * tests/test-argp.c (group1_option): New alias option
9465         --read (-r).
9466         (group1_parser): Special handling for 'r'.
9467         (test15): New test case.
9468         (test_fun): Add test15.
9469         * tests/test-argp-2.sh: Update expected --help and --usage
9470         outputs.
9471
9472 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
9473
9474         * tests/test-argp.c: Fix indentation.
9475
9476 2010-02-04  Eric Blake  <ebb9@byu.net>
9477
9478         gettimeofday: expose type of second argument
9479         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
9480         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
9481         * tests/test-gettimeofday.c: Use it to silence warning.
9482         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
9483         the issue.
9484
9485 2010-02-03  Jim Meyering  <meyering@redhat.com>
9486
9487         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
9488         * lib/regcomp.c (TYPE_SIGNED): Define.
9489         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
9490
9491         regcomp.c: avoid a new -Wshadow warning
9492         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
9493
9494 2010-02-01  Jim Meyering  <meyering@redhat.com>
9495
9496         removing useless parentheses in cpp #define directives
9497         For motivation, see commit c0221df4, "define STREQ(a,b)
9498         consistently, removing useless parentheses"
9499         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
9500         * lib/mountlist.c (MNT_IGNORE): Likewise.
9501         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
9502
9503 2010-02-01  Eric Blake  <ebb9@byu.net>
9504
9505         sys_time: use link-warning
9506         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
9507         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
9508         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
9509         * modules/sys_time (Depends-on): Add warn-on-use.
9510         (Makefile.am): Always build replacement.
9511         (configure.ac): Update substitutions.
9512         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
9513         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
9514         bother with SYS_TIME_H.
9515         * modules/gettimeofday (configure.ac): Declare indicator.
9516         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
9517         in use.
9518
9519         closein-tests: silence compiler warning
9520         * tests/test-closein.c (main): Ignore fread result.
9521         * modules/closein-tests (Depends-on): Add ignore-value.
9522
9523         tests: silence warning about system return
9524         * tests/test-areadlink-with-size.c (main): Ignore system result.
9525         * tests/test-areadlink.c (main): Likewise.
9526         * tests/test-areadlinkat-with-size.c (main): Likewise.
9527         * tests/test-areadlinkat.c (main): Likewise.
9528         * tests/test-canonicalize-lgpl.c (main): Likewise.
9529         * tests/test-canonicalize.c (main): Likewise.
9530         * tests/test-chown.c (main): Likewise.
9531         * tests/test-fchownat.c (main): Likewise.
9532         * tests/test-fdutimensat.c (main): Likewise.
9533         * tests/test-fstatat.c (main): Likewise.
9534         * tests/test-futimens.c (main): Likewise.
9535         * tests/test-lchown.c (main): Likewise.
9536         * tests/test-link.c (main): Likewise.
9537         * tests/test-linkat.c (main): Likewise.
9538         * tests/test-lstat.c (main): Likewise.
9539         * tests/test-mkdir.c (main): Likewise.
9540         * tests/test-mkdirat.c (main): Likewise.
9541         * tests/test-mkfifo.c (main): Likewise.
9542         * tests/test-mkfifoat.c (main): Likewise.
9543         * tests/test-mknod.c (main): Likewise.
9544         * tests/test-readlink.c (main): Likewise.
9545         * tests/test-remove.c (main): Likewise.
9546         * tests/test-rename.c (main): Likewise.
9547         * tests/test-renameat.c (main): Likewise.
9548         * tests/test-rmdir.c (main): Likewise.
9549         * tests/test-symlink.c (main): Likewise.
9550         * tests/test-symlinkat.c (main): Likewise.
9551         * tests/test-unlink.c (main): Likewise.
9552         * tests/test-unlinkat.c (main): Likewise.
9553         * tests/test-utimens.c (main): Likewise.
9554         * tests/test-utimensat.c (main): Likewise.
9555         * modules/areadlink-tests (Depends-on): Add ignore-value.
9556         * modules/areadlink-with-size-tests (Depends-on): Likewise.
9557         * modules/areadlinkat-tests (Depends-on): Likewise.
9558         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
9559         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
9560         * modules/canonicalize-tests (Depends-on): Likewise.
9561         * modules/chown-tests (Depends-on): Likewise.
9562         * modules/fdutimensat-tests (Depends-on): Likewise.
9563         * modules/futimens-tests (Depends-on): Likewise.
9564         * modules/lchown-tests (Depends-on): Likewise.
9565         * modules/link-tests (Depends-on): Likewise.
9566         * modules/linkat-tests (Depends-on): Likewise.
9567         * modules/lstat-tests (Depends-on): Likewise.
9568         * modules/mkdir-tests (Depends-on): Likewise.
9569         * modules/mkfifo-tests (Depends-on): Likewise.
9570         * modules/mkfifoat-tests (Depends-on): Likewise.
9571         * modules/mknod-tests (Depends-on): Likewise.
9572         * modules/openat-tests (Depends-on): Likewise.
9573         * modules/readlink-tests (Depends-on): Likewise.
9574         * modules/remove-tests (Depends-on): Likewise.
9575         * modules/rename-tests (Depends-on): Likewise.
9576         * modules/renameat-tests (Depends-on): Likewise.
9577         * modules/rmdir-tests (Depends-on): Likewise.
9578         * modules/symlink-tests (Depends-on): Likewise.
9579         * modules/symlinkat-tests (Depends-on): Likewise.
9580         * modules/unlink-tests (Depends-on): Likewise.
9581         * modules/utimens-tests (Depends-on): Likewise.
9582         * modules/utimensat-tests (Depends-on): Likewise.
9583
9584 2010-01-31  Bruno Haible  <bruno@clisp.org>
9585
9586         Perform the same test for many <math.h> functions.
9587         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
9588         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
9589         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
9590         of gl_MATHFUNC.
9591         * modules/acos (configure.ac): Likewise.
9592         * modules/asin (configure.ac): Likewise.
9593         * modules/atan (configure.ac): Likewise.
9594         * modules/atan2 (configure.ac): Likewise.
9595         * modules/cbrt (configure.ac): Likewise.
9596         * modules/copysign (configure.ac): Likewise.
9597         * modules/cos (configure.ac): Likewise.
9598         * modules/cosh (configure.ac): Likewise.
9599         * modules/erf (configure.ac): Likewise.
9600         * modules/erfc (configure.ac): Likewise.
9601         * modules/exp (configure.ac): Likewise.
9602         * modules/fmod (configure.ac): Likewise.
9603         * modules/hypot (configure.ac): Likewise.
9604         * modules/j0 (configure.ac): Likewise.
9605         * modules/j1 (configure.ac): Likewise.
9606         * modules/jn (configure.ac): Likewise.
9607         * modules/lgamma (configure.ac): Likewise.
9608         * modules/log (configure.ac): Likewise.
9609         * modules/log10 (configure.ac): Likewise.
9610         * modules/log1p (configure.ac): Likewise.
9611         * modules/pow (configure.ac): Likewise.
9612         * modules/remainder (configure.ac): Likewise.
9613         * modules/sin (configure.ac): Likewise.
9614         * modules/sinh (configure.ac): Likewise.
9615         * modules/tan (configure.ac): Likewise.
9616         * modules/tanh (configure.ac): Likewise.
9617         * modules/y0 (configure.ac): Likewise.
9618         * modules/y1 (configure.ac): Likewise.
9619         * modules/yn (configure.ac): Likewise.
9620         Suggested by Paolo Bonzini.
9621
9622 2010-01-31  Bruno Haible  <bruno@clisp.org>
9623
9624         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
9625
9626 2010-01-31  Bruno Haible  <bruno@clisp.org>
9627
9628         Work around getdelim() bug on FreeBSD 8.0.
9629         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
9630         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
9631         not work.
9632         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
9633         is 1.
9634         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
9635         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
9636         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
9637         a non-zero size.
9638         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
9639
9640 2010-01-31  Bruno Haible  <bruno@clisp.org>
9641
9642         Work around getline() bug on FreeBSD 8.0.
9643         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
9644         and a non-zero size.
9645         * tests/test-getline.c (main): Likewise.
9646         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
9647         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
9648
9649 2010-01-28  Eric Blake  <ebb9@byu.net>
9650
9651         regex: fix build failure
9652         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
9653         platforms.
9654
9655 2010-01-28  Jim Meyering  <meyering@redhat.com>
9656
9657         regex: do not ignore memory allocation failure
9658         * lib/regex_internal.c (create_cd_newstate): Detect
9659         re_node_set_init_copy failure.   Extracted from glibc commit
9660         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
9661
9662         regex: sync more white-space changes from libc
9663         * lib/regex_internal.c: White-space only changes.
9664         * lib/regexec.c: Likewise.
9665
9666         regex: add many uses of __attribute_warn_unused_result__
9667         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
9668         * lib/regexec.c: Likewise.
9669         Extracted from a messy glibc commit.
9670
9671         regcomp.c: spelling and merge-artifact from glibc
9672         * lib/regcomp.c: Merge remainder of glibc's
9673         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
9674
9675         regcomp.c: sync white-space changes from glibc
9676         * lib/regcomp.c: Merge to accommodate white space
9677         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
9678
9679         regcomp.c: do not ignore internal return values
9680         * lib/regcomp.c: Do not ignore internal return values.
9681         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
9682         but without its white-space changes and spelling fixes.
9683
9684         regex_internal.h: define __attribute_warn_unused_result__
9685         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
9686
9687         maint: add a syntax-check rule to check for vulnerable Makefile.in
9688         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
9689
9690 2010-01-27  Jim Meyering  <meyering@redhat.com>
9691
9692         ncftpput-ftp: clean up spaces
9693         * build-aux/ncftpput-ftp: Make Copyright line consistent.
9694         Remove trailing blanks.
9695
9696 2010-01-27  Simon Josefsson  <simon@josefsson.org>
9697
9698         * build-aux/git-version-gen: Fix copyright statement.
9699         * build-aux/gnupload: Likewise.
9700         * tests/test-arcfour.c: Likewise.
9701         * tests/test-arctwo.c: Likewise.
9702         * tests/test-count-one-bits.c: Likewise.
9703         * tests/test-crc.c: Likewise.
9704         * tests/test-des.c: Likewise.
9705         * tests/test-gc-arcfour.c: Likewise.
9706         * tests/test-gc-arctwo.c: Likewise.
9707         * tests/test-gc-des.c: Likewise.
9708         * tests/test-gc-hmac-md5.c: Likewise.
9709         * tests/test-gc-hmac-sha1.c: Likewise.
9710         * tests/test-gc-md2.c: Likewise.
9711         * tests/test-gc-md4.c: Likewise.
9712         * tests/test-gc-md5.c: Likewise.
9713         * tests/test-gc-pbkdf2-sha1.c: Likewise.
9714         * tests/test-gc-rijndael.c: Likewise.
9715         * tests/test-gc-sha1.c: Likewise.
9716         * tests/test-gc.c: Likewise.
9717         * tests/test-gethostname.c: Likewise.
9718         * tests/test-gettimeofday.c: Likewise.
9719         * tests/test-hash.c: Likewise.
9720         * tests/test-hmac-md5.c: Likewise.
9721         * tests/test-hmac-sha1.c: Likewise.
9722         * tests/test-md2.c: Likewise.
9723         * tests/test-md4.c: Likewise.
9724         * tests/test-md5.c: Likewise.
9725         * tests/test-memchr.c: Likewise.
9726         * tests/test-memchr2.c: Likewise.
9727         * tests/test-memcmp.c: Likewise.
9728         * tests/test-memmem.c: Likewise.
9729         * tests/test-memrchr.c: Likewise.
9730         * tests/test-rawmemchr.c: Likewise.
9731         * tests/test-read-file.c: Likewise.
9732         * tests/test-rijndael.c: Likewise.
9733         * tests/test-sockets.c: Likewise.
9734         * tests/test-strchrnul.c: Likewise.
9735         * tests/test-strstr.c: Likewise.
9736         * tests/test-strtod.c: Likewise.
9737         * build-aux/ncftpput-ftp: Likewise.
9738
9739 2010-01-26  Eric Blake  <ebb9@byu.net>
9740
9741         ignore-value: update recommended header name
9742         * modules/ignore-value (Include): Only use <> for headers that
9743         exist in glibc.
9744
9745 2010-01-26  Jim Meyering  <meyering@redhat.com>
9746
9747         test-userspec.c: avoid compiler warnings
9748         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
9749         and "initialization discards qualifiers..." warnings.
9750         Put the first "uid" in its own scope, and make char* members "const".
9751
9752 2010-01-25  Bruno Haible  <bruno@clisp.org>
9753
9754         gnulib-tool: Make warning diagnostics consistent.
9755         * gnulib-tool (func_warning): New function.
9756         Use it everywhere where gnulib-tool produces output to stderr and it is
9757         not a fatal error.
9758
9759 2010-01-25  Bruno Haible  <bruno@clisp.org>
9760
9761         Fix test dependencies.
9762         * modules/xstrtol-tests (Depends-on): Add inttypes.
9763         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
9764
9765 2010-01-25 Pádraig Brady <P@draigBrady.com>
9766
9767         syntax-check: detect incorrect boolean macro values in config.h
9768         * modules/maintainer-makefile (configure.ac): Parameterize the location
9769         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
9770         The logic is from Eric Blake and the location indicated by Jim Meyering.
9771         Note the more natural CONFIG_HEADER name is prohibited by automake
9772         for backwards compatibility reasons.
9773         * top/maint.mk (sc_Wundef_boolean): New rule.
9774
9775 2010-01-25  Jim Meyering  <meyering@redhat.com>
9776
9777         bootstrap: detect MacOS 10.6's shasum, too
9778         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
9779         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
9780
9781 2010-01-23  Jim Meyering  <meyering@redhat.com>
9782
9783         xstrtoll: new module
9784         * modules/xstrtoll: New file.
9785         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
9786         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
9787         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
9788         ./configure fails if you use this module and lack "long long".
9789         * modules/xstrtoll-tests: New module.
9790         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
9791         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
9792         new init.sh-based test framework.
9793
9794 2010-01-24  Bruno Haible  <bruno@clisp.org>
9795
9796         Tests for module 'yn'.
9797         * modules/yn-tests: New file.
9798         * tests/test-yn.c: New file.
9799
9800         Tests for module 'y1'.
9801         * modules/y1-tests: New file.
9802         * tests/test-y1.c: New file.
9803
9804         Tests for module 'y0'.
9805         * modules/y0-tests: New file.
9806         * tests/test-y0.c: New file.
9807
9808         Tests for module 'tanh'.
9809         * modules/tanh-tests: New file.
9810         * tests/test-tanh.c: New file.
9811
9812         Tests for module 'tan'.
9813         * modules/tan-tests: New file.
9814         * tests/test-tan.c: New file.
9815
9816         Tests for module 'sqrt'.
9817         * modules/sqrt-tests: New file.
9818         * tests/test-sqrt.c: New file.
9819
9820         Tests for module 'sinh'.
9821         * modules/sinh-tests: New file.
9822         * tests/test-sinh.c: New file.
9823
9824         Tests for module 'sin'.
9825         * modules/sin-tests: New file.
9826         * tests/test-sin.c: New file.
9827
9828         Tests for module 'rint'.
9829         * modules/rint-tests: New file.
9830         * tests/test-rint.c: New file.
9831
9832         Tests for module 'remainder'.
9833         * modules/remainder-tests: New file.
9834         * tests/test-remainder.c: New file.
9835
9836         Tests for module 'pow'.
9837         * modules/pow-tests: New file.
9838         * tests/test-pow.c: New file.
9839
9840         Tests for module 'nextafter'.
9841         * modules/nextafter-tests: New file.
9842         * tests/test-nextafter.c: New file.
9843
9844         Tests for module 'modf'.
9845         * modules/modf-tests: New file.
9846         * tests/test-modf.c: New file.
9847
9848         Tests for module 'logb'.
9849         * modules/logb-tests: New file.
9850         * tests/test-logb.c: New file.
9851
9852         Tests for module 'log1p'.
9853         * modules/log1p-tests: New file.
9854         * tests/test-log1p.c: New file.
9855
9856         Tests for module 'log10'.
9857         * modules/log10-tests: New file.
9858         * tests/test-log10.c: New file.
9859
9860         Tests for module 'log'.
9861         * modules/log-tests: New file.
9862         * tests/test-log.c: New file.
9863
9864         Tests for module 'lgamma'.
9865         * modules/lgamma-tests: New file.
9866         * tests/test-lgamma.c: New file.
9867
9868         Tests for module 'ldexp'.
9869         * modules/ldexp-tests: New file.
9870         * tests/test-ldexp.c: New file.
9871
9872         Tests for module 'jn'.
9873         * modules/jn-tests: New file.
9874         * tests/test-jn.c: New file.
9875
9876         Tests for module 'j1'.
9877         * modules/j1-tests: New file.
9878         * tests/test-j1.c: New file.
9879
9880         Tests for module 'j0'.
9881         * modules/j0-tests: New file.
9882         * tests/test-j0.c: New file.
9883
9884         Tests for module 'hypot'.
9885         * modules/hypot-tests: New file.
9886         * tests/test-hypot.c: New file.
9887
9888         Tests for module 'fmod'.
9889         * modules/fmod-tests: New file.
9890         * tests/test-fmod.c: New file.
9891
9892         Tests for module 'fabs'.
9893         * modules/fabs-tests: New file.
9894         * tests/test-fabs.c: New file.
9895
9896         Tests for module 'exp'.
9897         * modules/exp-tests: New file.
9898         * tests/test-exp.c: New file.
9899
9900         Tests for module 'erfc'.
9901         * modules/erfc-tests: New file.
9902         * tests/test-erfc.c: New file.
9903
9904         Tests for module 'erf'.
9905         * modules/erf-tests: New file.
9906         * tests/test-erf.c: New file.
9907
9908         Tests for module 'cosh'.
9909         * modules/cosh-tests: New file.
9910         * tests/test-cosh.c: New file.
9911
9912         Tests for module 'cos'.
9913         * modules/cos-tests: New file.
9914         * tests/test-cos.c: New file.
9915
9916         Tests for module 'copysign'.
9917         * modules/copysign-tests: New file.
9918         * tests/test-copysign.c: New file.
9919
9920         Tests for module 'cbrt'.
9921         * modules/cbrt-tests: New file.
9922         * tests/test-cbrt.c: New file.
9923
9924         Tests for module 'atan2'.
9925         * modules/atan2-tests: New file.
9926         * tests/test-atan2.c: New file.
9927
9928         Tests for module 'atan'.
9929         * modules/atan-tests: New file.
9930         * tests/test-atan.c: New file.
9931
9932         Tests for module 'asin'.
9933         * modules/asin-tests: New file.
9934         * tests/test-asin.c: New file.
9935
9936         Tests for module 'acos'.
9937         * modules/acos-tests: New file.
9938         * tests/test-acos.c: New file.
9939
9940 2010-01-24  Bruno Haible  <bruno@clisp.org>
9941
9942         Fix tests for common <math.h> functions.
9943         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
9944         code snippet that references the function pointer, rather than merely
9945         calling the function. Substitute the FUNC_LIBM variable.
9946         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
9947         * modules/acos (configure.ac): Likewise.
9948         * modules/asin (configure.ac): Likewise.
9949         * modules/atan (configure.ac): Likewise.
9950         * modules/atan2 (configure.ac): Likewise.
9951         * modules/cbrt (configure.ac): Likewise.
9952         * modules/copysign (configure.ac): Likewise.
9953         * modules/cos (configure.ac): Likewise.
9954         * modules/cosh (configure.ac): Likewise.
9955         * modules/erf (configure.ac): Likewise.
9956         * modules/erfc (configure.ac): Likewise.
9957         * modules/exp (configure.ac): Likewise.
9958         * modules/fabs (configure.ac): Likewise.
9959         * modules/fmod (configure.ac): Likewise.
9960         * modules/hypot (configure.ac): Likewise.
9961         * modules/j0 (configure.ac): Likewise.
9962         * modules/j1 (configure.ac): Likewise.
9963         * modules/jn (configure.ac): Likewise.
9964         * modules/ldexp (configure.ac): Likewise.
9965         * modules/lgamma (configure.ac): Likewise.
9966         * modules/log (configure.ac): Likewise.
9967         * modules/log10 (configure.ac): Likewise.
9968         * modules/log1p (configure.ac): Likewise.
9969         * modules/logb (configure.ac): Likewise.
9970         * modules/modf (configure.ac): Likewise.
9971         * modules/nextafter (configure.ac): Likewise.
9972         * modules/pow (configure.ac): Likewise.
9973         * modules/remainder (configure.ac): Likewise.
9974         * modules/rint (configure.ac): Likewise.
9975         * modules/sin (configure.ac): Likewise.
9976         * modules/sinh (configure.ac): Likewise.
9977         * modules/tan (configure.ac): Likewise.
9978         * modules/tanh (configure.ac): Likewise.
9979         * modules/y0 (configure.ac): Likewise.
9980         * modules/y1 (configure.ac): Likewise.
9981         * modules/yn (configure.ac): Likewise.
9982
9983 2010-01-24  Bruno Haible  <bruno@clisp.org>
9984
9985         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
9986         * tests/test-acosl.c (x): New variable.
9987         (main): Store argument in x and fetch it from x.
9988         * tests/test-asinl.c (x): New variable.
9989         (main): Store argument in x and fetch it from x.
9990         * tests/test-atanl.c (x): New variable.
9991         (main): Store argument in x and fetch it from x.
9992         * tests/test-cosl.c (x): New variable.
9993         (main): Store argument in x and fetch it from x.
9994         * tests/test-expl.c (x): New variable.
9995         (main): Store argument in x and fetch it from x.
9996         * tests/test-logl.c (x): New variable.
9997         (main): Store argument in x and fetch it from x.
9998         * tests/test-sinl.c (x): New variable.
9999         (main): Store argument in x and fetch it from x.
10000         * tests/test-sqrtl.c (x): New variable.
10001         (main): Store argument in x and fetch it from x.
10002         * tests/test-tanl.c (x): New variable.
10003         (main): Store argument in x and fetch it from x.
10004
10005 2010-01-24  Bruno Haible  <bruno@clisp.org>
10006
10007         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
10008         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
10009         assignments to the initial TESTS_ENVIRONMENT.
10010         * doc/gnulib.texi (Unit test modules): Document it.
10011         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
10012         TESTS_ENVIRONMENT.
10013         * modules/btowc-tests (Makefile.am): Likewise.
10014         * modules/c-stack-tests (Makefile.am): Likewise.
10015         * modules/c-strcase-tests (Makefile.am): Likewise.
10016         * modules/copy-file-tests (Makefile.am): Likewise.
10017         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
10018         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
10019         * modules/mbrtowc-tests (Makefile.am): Likewise.
10020         * modules/mbscasecmp-tests (Makefile.am): Likewise.
10021         * modules/mbscasestr-tests (Makefile.am): Likewise.
10022         * modules/mbschr-tests (Makefile.am): Likewise.
10023         * modules/mbscspn-tests (Makefile.am): Likewise.
10024         * modules/mbsinit-tests (Makefile.am): Likewise.
10025         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
10026         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
10027         * modules/mbspbrk-tests (Makefile.am): Likewise.
10028         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
10029         * modules/mbsrchr-tests (Makefile.am): Likewise.
10030         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
10031         * modules/mbsspn-tests (Makefile.am): Likewise.
10032         * modules/mbsstr-tests (Makefile.am): Likewise.
10033         * modules/nl_langinfo-tests (Makefile.am): Likewise.
10034         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
10035         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
10036         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
10037         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
10038         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
10039         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
10040         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
10041         * modules/wcrtomb-tests (Makefile.am): Likewise.
10042         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
10043         * modules/wcsrtombs-tests (Makefile.am): Likewise.
10044         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
10045         assignments from TESTS_ENVIRONMENT.
10046         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
10047         augmentation.
10048         * modules/argp-version-etc-tests (Makefile.am): Likewise.
10049         * modules/atexit-tests (Makefile.am): Likewise.
10050         * modules/binary-io-tests (Makefile.am): Likewise.
10051         * modules/closein-tests (Makefile.am): Likewise.
10052         * modules/dprintf-posix-tests (Makefile.am): Likewise.
10053         * modules/exclude-tests (Makefile.am): Likewise.
10054         * modules/fflush-tests (Makefile.am): Likewise.
10055         * modules/fpending-tests (Makefile.am): Likewise.
10056         * modules/fprintf-posix-tests (Makefile.am): Likewise.
10057         * modules/freadahead-tests (Makefile.am): Likewise.
10058         * modules/freadptr-tests (Makefile.am): Likewise.
10059         * modules/freadseek-tests (Makefile.am): Likewise.
10060         * modules/fseek-tests (Makefile.am): Likewise.
10061         * modules/fseeko-tests (Makefile.am): Likewise.
10062         * modules/ftell-tests (Makefile.am): Likewise.
10063         * modules/ftello-tests (Makefile.am): Likewise.
10064         * modules/idpriv-drop-tests (Makefile.am): Likewise.
10065         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
10066         * modules/lseek-tests (Makefile.am): Likewise.
10067         * modules/parse-duration-tests (Makefile.am): Likewise.
10068         * modules/perror-tests (Makefile.am): Likewise.
10069         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
10070         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
10071         * modules/pipe-tests (Makefile.am): Likewise.
10072         * modules/pread-tests (Makefile.am): Likewise.
10073         * modules/printf-posix-tests (Makefile.am): Likewise.
10074         * modules/select-tests (Makefile.am): Likewise.
10075         * modules/sigpipe-tests (Makefile.am): Likewise.
10076         * modules/tsearch-tests (Makefile.am): Likewise.
10077         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
10078         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
10079         * modules/uniname/uniname-tests (Makefile.am): Likewise.
10080         * modules/uniwidth/width-tests (Makefile.am): Likewise.
10081         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
10082         * modules/version-etc-tests (Makefile.am): Likewise.
10083         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
10084         * modules/vprintf-posix-tests (Makefile.am): Likewise.
10085         * modules/xalloc-die-tests (Makefile.am): Likewise.
10086         * modules/xprintf-posix-tests (Makefile.am): Likewise.
10087         * modules/xstrtoimax-tests (Makefile.am): Likewise.
10088         * modules/xstrtol-tests (Makefile.am): Likewise.
10089         * modules/xstrtoumax-tests (Makefile.am): Likewise.
10090         * modules/yesno-tests (Makefile.am): Likewise.
10091         Suggested by Jim Meyering.
10092
10093 2010-01-24  Bruno Haible  <bruno@clisp.org>
10094
10095         More documentation.
10096         * doc/gnulib.texi (Writing modules): New chapter.
10097         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
10098         the new chapter.
10099
10100 2010-01-24  Jim Meyering  <meyering@redhat.com>
10101
10102         maint.mk: do not prepend "./" after filtering
10103         * top/maint.mk (_prepend_srcdir_prefix): New variable
10104         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
10105         "./" when $(srcdir) is ".".
10106
10107         define STREQ(a,b) consistently, removing useless parentheses
10108         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
10109         since the only risk is that "a" or "b" contains an unparenthesized
10110         comma, but if either did that, STREQ would have 3 or more arguments.
10111         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
10112         * lib/fts.c (STREQ): Remove unnecessary parentheses.
10113         * lib/hash-triple.c (STREQ): Likewise.
10114         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
10115         * lib/getugroups.c (STREQ): Likewise.
10116
10117 2010-01-23  Jim Meyering  <meyering@redhat.com>
10118
10119         maint.mk: fix syntax-check in a non-srcdir build directory
10120         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
10121         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
10122
10123 2010-01-22  Jim Meyering  <meyering@redhat.com>
10124
10125         userspec: add unit tests
10126         * tests/test-userspec.c: New file.
10127         * modules/userspec-tests: Likewise.
10128
10129 2010-01-21  Jim Meyering  <meyering@redhat.com>
10130
10131         maint.mk: handle source file names containing "." robustly
10132         * top/maint.mk (_dot_escaped_srcdir): Define.
10133         (VC_LIST): Use it in LHS of sed substitution.
10134
10135 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
10136
10137         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
10138         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
10139         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
10140         from a non-srcdir build.
10141
10142 2010-01-20  Eric Blake  <ebb9@byu.net>
10143
10144         warn-on-use: use instead of link-warning
10145         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
10146         * modules/unistd (Depends-on, Makefile.am): Likewise.
10147         * modules/arpa_inet (Depends-on): Replace link-warning with
10148         warn-on-use.
10149         (Makefile.am): Update rules accordingly.
10150         * modules/ctype (Depends-on, Makefile.am): Likewise.
10151         * modules/dirent (Depends-on, Makefile.am): Likewise.
10152         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
10153         * modules/inttypes (Depends-on, Makefile.am): Likewise.
10154         * modules/langinfo (Depends-on, Makefile.am): Likewise.
10155         * modules/locale (Depends-on, Makefile.am): Likewise.
10156         * modules/math (Depends-on, Makefile.am): Likewise.
10157         * modules/search (Depends-on, Makefile.am): Likewise.
10158         * modules/signal (Depends-on, Makefile.am): Likewise.
10159         * modules/spawn (Depends-on, Makefile.am): Likewise.
10160         * modules/stdlib (Depends-on, Makefile.am): Likewise.
10161         * modules/string (Depends-on, Makefile.am): Likewise.
10162         * modules/strings (Depends-on, Makefile.am): Likewise.
10163         * modules/sys_file (Depends-on, Makefile.am): Likewise.
10164         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
10165         * modules/sys_select (Depends-on, Makefile.am): Likewise.
10166         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
10167         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
10168         * modules/sys_times (Depends-on, Makefile.am): Likewise.
10169         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
10170         * modules/wchar (Depends-on, Makefile.am): Likewise.
10171         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
10172         should be poisoned.
10173         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
10174         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
10175         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
10176         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
10177         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
10178         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
10179         * m4/math_h.m4 (gl_MATH_H): Likewise.
10180         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
10181         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
10182         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
10183         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
10184         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
10185         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
10186         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
10187         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
10188         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
10189         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
10190         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
10191         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
10192         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
10193         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
10194         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
10195         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
10196         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
10197         GL_LINK_WARNING.
10198         * lib/ctype.in.h: Likewise.
10199         * lib/dirent.in.h: Likewise.
10200         * lib/fcntl.in.h: Likewise.
10201         * lib/inttypes.in.h: Likewise.
10202         * lib/langinfo.in.h: Likewise.
10203         * lib/locale.in.h: Likewise.
10204         * lib/math.in.h: Likewise.
10205         * lib/search.in.h: Likewise.
10206         * lib/signal.in.h: Likewise.
10207         * lib/spawn.in.h: Likewise.
10208         * lib/stdio.in.h: Likewise.
10209         * lib/stdlib.in.h: Likewise.
10210         * lib/string.in.h: Likewise.
10211         * lib/strings.in.h: Likewise.
10212         * lib/sys_file.in.h: Likewise.
10213         * lib/sys_ioctl.in.h: Likewise.
10214         * lib/sys_select.in.h: Likewise.
10215         * lib/sys_socket.in.h: Likewise.
10216         * lib/sys_stat.in.h: Likewise.
10217         * lib/sys_times.in.h: Likewise.
10218         * lib/sys_utsname.in.h: Likewise.
10219         * lib/unistd.in.h: Likewise.
10220         * lib/wchar.in.h: Likewise.
10221
10222 2010-01-20  Bruno Haible  <bruno@clisp.org>
10223
10224         Avoid duplicate -lm.
10225         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
10226         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
10227         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
10228         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
10229         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
10230         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
10231         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
10232         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
10233         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
10234         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
10235         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
10236         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
10237         Reported by Paolo Bonzini.
10238
10239 2010-01-19  Bruno Haible  <bruno@clisp.org>
10240
10241         langinfo, nl_langinfo: Relicense under LGPLv2+.
10242         * modules/langinfo (License): Change to LGPLv2+.
10243         * modules/nl_langinfo (License): Likewise.
10244         Patch by David Lutterkort <lutter@redhat.com>.
10245
10246 2010-01-19  Bruno Haible  <bruno@clisp.org>
10247
10248         Avoid compilation error with cc on OSF/1 5.1.
10249         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
10250         statement, not before.
10251         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
10252
10253 2010-01-18  Bruno Haible  <bruno@clisp.org>
10254
10255         Avoid a link error due to the __printf__ symbol.
10256         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
10257         and 2.6.x.
10258         (__format__, __printf__): Remove definitions.
10259         * lib/argp-fmtstream.h: Likewise.
10260         * lib/argp.h: Likewise.
10261         * lib/error.h: Likewise.
10262         * lib/vasnprintf.h: Likewise.
10263         * lib/xprintf.h: Likewise.
10264         * lib/xvasprintf.h: Likewise.
10265         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
10266
10267 2010-01-18  Bruno Haible  <bruno@clisp.org>
10268
10269         Tests for module 'tanl'.
10270         * modules/tanl-tests: New file.
10271         * tests/test-tanl.c: New file.
10272
10273         Tests for module 'sqrtl'.
10274         * modules/sqrtl-tests: New file.
10275         * tests/test-sqrtl.c: New file.
10276
10277         Tests for module 'sinl'.
10278         * modules/sinl-tests: New file.
10279         * tests/test-sinl.c: New file.
10280
10281         Tests for module 'logl'.
10282         * modules/logl-tests: New file.
10283         * tests/test-logl.c: New file.
10284
10285         Tests for module 'expl'.
10286         * modules/expl-tests: New file.
10287         * tests/test-expl.c: New file.
10288
10289         Tests for module 'cosl'.
10290         * modules/cosl-tests: New file.
10291         * tests/test-cosl.c: New file.
10292
10293         Tests for module 'atanl'.
10294         * modules/atanl-tests: New file.
10295         * tests/test-atanl.c: New file.
10296
10297         Tests for module 'asinl'.
10298         * modules/asinl-tests: New file.
10299         * tests/test-asinl.c: New file.
10300
10301         Tests for module 'acosl'.
10302         * modules/acosl-tests: New file.
10303         * tests/test-acosl.c: New file.
10304
10305         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
10306         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
10307         tanl): Use the standard gnulib idiom.
10308         * lib/cosl.c: Don't include trigl.c and sincosl.c.
10309         * lib/sinl.c: Likewise.
10310         * lib/tanl.c: Don't include trigl.c.
10311         (kernel_tanl): Make static.
10312         * lib/sincosl.c: Include trigl.h first.
10313         * lib/trigl.c: Likewise.
10314         * m4/acosl.m4: New file.
10315         * m4/asinl.m4: New file.
10316         * m4/atanl.m4: New file.
10317         * m4/cosl.m4: New file.
10318         * m4/expl.m4: New file.
10319         * m4/logl.m4: New file.
10320         * m4/sinl.m4: New file.
10321         * m4/sqrtl.m4: New file.
10322         * m4/tanl.m4: New file.
10323         * m4/mathl.m4: Remove file.
10324         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
10325         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
10326         Don't initialize GNULIB_MATHL.
10327         * modules/acosl: New file.
10328         * modules/asinl: New file.
10329         * modules/atanl: New file.
10330         * modules/cosl: New file.
10331         * modules/expl: New file.
10332         * modules/logl: New file.
10333         * modules/sinl: New file.
10334         * modules/sqrtl: New file.
10335         * modules/tanl: New file.
10336         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
10337         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
10338         substitute GNULIB_MATHL.
10339         * modules/mathl: Rewritten.
10340         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
10341         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
10342         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
10343         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
10344         * doc/posix-functions/expl.texi: Mention the 'expl' module.
10345         * doc/posix-functions/logl.texi: Mention the 'logl' module.
10346         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
10347         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
10348         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
10349
10350 2010-01-18  Bruno Haible  <bruno@clisp.org>
10351
10352         sqrt: Make gl_FUNC_SQRT requirable.
10353         * m4/sqrt.m4: New file.
10354         * modules/sqrt (Files): Add it.
10355         (configure.ac): Invoke gl_FUNC_SQRT.
10356
10357 2010-01-18  Bruno Haible  <bruno@clisp.org>
10358
10359         New modules for common <math.h> functions.
10360         * m4/mathfunc.m4: New file.
10361         * modules/acos: New file.
10362         * modules/asin: New file.
10363         * modules/atan: New file.
10364         * modules/atan2: New file.
10365         * modules/cbrt: New file.
10366         * modules/copysign: New file.
10367         * modules/cos: New file.
10368         * modules/cosh: New file.
10369         * modules/erf: New file.
10370         * modules/erfc: New file.
10371         * modules/exp: New file.
10372         * modules/fabs: New file.
10373         * modules/fmod: New file.
10374         * modules/hypot: New file.
10375         * modules/j0: New file.
10376         * modules/j1: New file.
10377         * modules/jn: New file.
10378         * modules/ldexp: New file.
10379         * modules/lgamma: New file.
10380         * modules/log: New file.
10381         * modules/log10: New file.
10382         * modules/log1p: New file.
10383         * modules/logb: New file.
10384         * modules/modf: New file.
10385         * modules/nextafter: New file.
10386         * modules/pow: New file.
10387         * modules/remainder: New file.
10388         * modules/rint: New file.
10389         * modules/sin: New file.
10390         * modules/sinh: New file.
10391         * modules/sqrt: New file.
10392         * modules/tan: New file.
10393         * modules/tanh: New file.
10394         * modules/y0: New file.
10395         * modules/y1: New file.
10396         * modules/yn: New file.
10397         * doc/posix-functions/acos.texi: Mention the 'acos' module.
10398         * doc/posix-functions/asin.texi: Mention the 'asin' module.
10399         * doc/posix-functions/atan.texi: Mention the 'atan' module.
10400         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
10401         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
10402         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
10403         * doc/posix-functions/cos.texi: Mention the 'cos' module.
10404         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
10405         * doc/posix-functions/erf.texi: Mention the 'erf' module.
10406         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
10407         * doc/posix-functions/exp.texi: Mention the 'exp' module.
10408         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
10409         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
10410         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
10411         * doc/posix-functions/j0.texi: Mention the 'j0' module.
10412         * doc/posix-functions/j1.texi: Mention the 'j1' module.
10413         * doc/posix-functions/jn.texi: Mention the 'jn' module.
10414         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
10415         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
10416         * doc/posix-functions/log.texi: Mention the 'log' module.
10417         * doc/posix-functions/log10.texi: Mention the 'log10' module.
10418         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
10419         * doc/posix-functions/logb.texi: Mention the 'logb' module.
10420         * doc/posix-functions/modf.texi: Mention the 'modf' module.
10421         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
10422         * doc/posix-functions/pow.texi: Mention the 'pow' module.
10423         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
10424         * doc/posix-functions/rint.texi: Mention the 'rint' module.
10425         * doc/posix-functions/sin.texi: Mention the 'sin' module.
10426         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
10427         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
10428         * doc/posix-functions/tan.texi: Mention the 'tan' module.
10429         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
10430         * doc/posix-functions/y0.texi: Mention the 'y0' module.
10431         * doc/posix-functions/y1.texi: Mention the 'y1' module.
10432         * doc/posix-functions/yn.texi: Mention the 'yn' module.
10433
10434 2010-01-18  Jim Meyering  <meyering@redhat.com>
10435
10436         ignore-value: relax license to LGPLv2+
10437         * modules/ignore-value (License): Relax to LGPLv2+.
10438
10439         getdate: don't leak when TZ contains two or more '"'s
10440         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
10441         double quote in TZ after the first one.
10442
10443         readtokens: do not leak internal token_lengths buffer
10444         * lib/readtokens.c (readtokens): Free the local, lengths,
10445         when the supplied "token_lengths" parameter is NULL.
10446
10447 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10448
10449         Fix a couple of missing LIBTHREAD link failures on AIX.
10450         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
10451         $(LIBTHREAD).
10452         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
10453
10454         Link test-poll against INET_PTON_LIB.
10455         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
10456         for inet_pton on Solaris 10.
10457
10458 2010-01-17  Bruno Haible  <bruno@clisp.org>
10459
10460         unistdio/*-sprintf: Fix typo in module description.
10461         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
10462         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
10463         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
10464         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
10465         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
10466         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
10467         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
10468         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
10469
10470 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10471
10472         gnulib-tool: fix filelist for AIX, HP-UX ksh.
10473         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
10474         variables in shell case patterns, for AIX and HP-UX ksh.
10475
10476         Split large sed scripts, for HP-UX sed.
10477         * modules/stdio: Split sed scripts around 50 sed commands,
10478         to avoid HP-UX limit of 99 commands, in the near future.
10479         * modules/string: Likewise.
10480         * modules/unistd: Likewise.
10481
10482         gnulib-tool: avoid writing in the current directory.
10483         * gnulib-tool (func_emit_lib_Makefile_am)
10484         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
10485         not in the current directory, so concurrent gnulib-tool
10486         instances do not interfere.
10487
10488 2010-01-16  Jim Meyering  <meyering@redhat.com>
10489
10490         doc: update users.txt
10491         * users.txt: Add grep.
10492         (diffutils, gzip): Update URLs.
10493
10494 2010-01-12  Bruno Haible  <bruno@clisp.org>
10495
10496         posix_spawn: Avoid test failure on Cygwin.
10497         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
10498         characters.
10499         Reported by Simon Josefsson.
10500
10501 2010-01-12  Bruno Haible  <bruno@clisp.org>
10502
10503         * tests/test-cond.c (main): When skipping the test, show the reason.
10504
10505 2010-01-12  Simon Josefsson  <simon@josefsson.org>
10506
10507         * lib/striconv.c (str_cd_iconv): Avoid if before free.
10508
10509 2010-01-12  Simon Josefsson  <simon@josefsson.org>
10510
10511         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
10512         VC_LIST_ALWAYS_EXCLUDE_REGEX.
10513
10514 2010-01-12  Eric Blake  <ebb9@byu.net>
10515
10516         build: guarantee AS_VAR_IF
10517         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
10518         (gl_AS_VAR_IF): Move...
10519         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
10520         Reported by Simon Josefsson.
10521
10522 2010-01-12  Simon Josefsson  <simon@josefsson.org>
10523
10524         * lib/stdio.in.h: Fix typo.
10525
10526 2010-01-12  Simon Josefsson  <simon@josefsson.org>
10527
10528         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
10529         libgpg-error.
10530
10531 2010-01-12  Simon Josefsson  <simon@josefsson.org>
10532
10533         * tests/test-xalloc-die.sh: Use $EXEEXT.
10534
10535 2010-01-12  Simon Josefsson  <simon@josefsson.org>
10536             Bruno Haible  <bruno@clisp.org>
10537
10538         getlogin, getlogin_r: Avoid test failure.
10539         * tests/test-getlogin.c: Include <stdio.h>.
10540         (main): Skip the test when the function fails because stdin is not a
10541         tty.
10542         * tests/test-getlogin_r.c: Include <stdio.h>.
10543         (main): Skip the test when the function fails because stdin is not a
10544         tty.
10545
10546 2010-01-11  Eric Blake  <ebb9@byu.net>
10547
10548         tests: avoid more large file warnings
10549         * tests/test-fflush.c: Avoid warning about ftell use.
10550         * tests/test-fseek.c: Avoid warning about fseek use.
10551
10552 2010-01-10  Bruno Haible  <bruno@clisp.org>
10553
10554         nproc: Work better on Linux when /proc and /sys are not mounted.
10555         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
10556         as lower bound when, on glibc/Linux systems,
10557         sysconf (_SC_NPROCESSORS_CONF) returns 1.
10558         Suggested by Pádraig Brady <P@draigbrady.com>.
10559         Reported by Dmitry V. Levin <ldv@altlinux.org>.
10560
10561         nproc: Refactor.
10562         * lib/nproc.c (num_processors_via_affinity_mask): New function,
10563         extracted from num_processors.
10564         (num_processors): Call it.
10565
10566 2010-01-11  Jim Meyering  <meyering@redhat.com>
10567
10568         utimecmp: avoid new warning from upcoming gcc-4.5.0
10569         * lib/utimecmp.c (BILLION): Define using #define rather than an
10570         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
10571
10572 2010-01-11  Eric Blake  <ebb9@byu.net>
10573
10574         math: add portability warnings for classification macros
10575         * modules/math (Depends-on): Add warn-on-use.
10576         (Makefile.am): Provide new substitutions.
10577         * m4/math_h.m4 (gl_MATH_H): Require inline.
10578         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
10579         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
10580         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
10581         implement warnings.
10582
10583         unistd: warn on use of environ without module
10584         * modules/unistd (Depends-on): Add warn-on-use.
10585         (Makefile.am): Provide new substitutions.
10586         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
10587         * lib/unistd.in.h (environ): Wrap with a warning helper function.
10588
10589         stdio: warn on suspicious uses
10590         * modules/stdio (Depends-on): Add warn-on-use.
10591         (Makefile.am): Provide new substitutions.
10592         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
10593         fseeko.
10594         * lib/stdio.in.h (gets): Always warn on use.
10595         (fseek, ftell): Adjust when warnings are issued, and honor
10596         _GL_NO_LARGE_FILES as a way to silence the warning.
10597         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
10598         any warning about large file offsets.
10599         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
10600         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
10601         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
10602         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
10603         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
10604         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
10605         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
10606         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
10607
10608         warn-on-use: new module
10609         * modules/warn-on-use: New file.
10610         * build-aux/warn-on-use.h: Likewise.
10611         * m4/warn-on-use.m4: Likewise.
10612         * MODULES.html.sh (Support for building): Mention it.
10613
10614 2010-01-10  Bruno Haible  <bruno@clisp.org>
10615
10616         Tests for module 'unistr/u32-strdup'.
10617         * modules/unistr/u32-strdup-tests: New file.
10618         * tests/unistr/test-u32-strdup.c: New file.
10619
10620         Tests for module 'unistr/u16-strdup'.
10621         * modules/unistr/u16-strdup-tests: New file.
10622         * tests/unistr/test-u16-strdup.c: New file.
10623
10624         Tests for module 'unistr/u8-strdup'.
10625         * modules/unistr/u8-strdup-tests: New file.
10626         * tests/unistr/test-u8-strdup.c: New file.
10627         * tests/unistr/test-strdup.h: New file.
10628
10629         Tests for module 'unistr/u32-strncmp'.
10630         * modules/unistr/u32-strncmp-tests: New file.
10631         * tests/unistr/test-u32-strncmp.c: New file.
10632
10633         Tests for module 'unistr/u16-strncmp'.
10634         * modules/unistr/u16-strncmp-tests: New file.
10635         * tests/unistr/test-u16-strncmp.c: New file.
10636
10637         Tests for module 'unistr/u8-strncmp'.
10638         * modules/unistr/u8-strncmp-tests: New file.
10639         * tests/unistr/test-u8-strncmp.c: New file.
10640         * tests/unistr/test-strncmp.h: New file.
10641
10642         Tests for module 'unistr/u32-strcoll'.
10643         * modules/unistr/u32-strcoll-tests: New file.
10644         * tests/unistr/test-u32-strcoll.c: New file.
10645
10646         Tests for module 'unistr/u16-strcoll'.
10647         * modules/unistr/u16-strcoll-tests: New file.
10648         * tests/unistr/test-u16-strcoll.c: New file.
10649
10650         Tests for module 'unistr/u8-strcoll'.
10651         * modules/unistr/u8-strcoll-tests: New file.
10652         * tests/unistr/test-u8-strcoll.c: New file.
10653
10654         Tests for module 'unistr/u32-strcmp'.
10655         * modules/unistr/u32-strcmp-tests: New file.
10656         * tests/unistr/test-u32-strcmp.c: New file.
10657         * tests/unistr/test-u32-strcmp.h: New file.
10658
10659         Tests for module 'unistr/u16-strcmp'.
10660         * modules/unistr/u16-strcmp-tests: New file.
10661         * tests/unistr/test-u16-strcmp.c: New file.
10662         * tests/unistr/test-u16-strcmp.h: New file.
10663
10664         Tests for module 'unistr/u8-strcmp'.
10665         * modules/unistr/u8-strcmp-tests: New file.
10666         * tests/unistr/test-u8-strcmp.c: New file.
10667         * tests/unistr/test-u8-strcmp.h: New file.
10668         * tests/unistr/test-strcmp.h: New file.
10669
10670         Tests for module 'unistr/u32-strncat'.
10671         * modules/unistr/u32-strncat-tests: New file.
10672         * tests/unistr/test-u32-strncat.c: New file.
10673
10674         Tests for module 'unistr/u16-strncat'.
10675         * modules/unistr/u16-strncat-tests: New file.
10676         * tests/unistr/test-u16-strncat.c: New file.
10677
10678         Tests for module 'unistr/u8-strncat'.
10679         * modules/unistr/u8-strncat-tests: New file.
10680         * tests/unistr/test-u8-strncat.c: New file.
10681         * tests/unistr/test-strncat.h: New file.
10682
10683         Tests for module 'unistr/u32-strcat'.
10684         * modules/unistr/u32-strcat-tests: New file.
10685         * tests/unistr/test-u32-strcat.c: New file.
10686
10687         Tests for module 'unistr/u16-strcat'.
10688         * modules/unistr/u16-strcat-tests: New file.
10689         * tests/unistr/test-u16-strcat.c: New file.
10690
10691         Tests for module 'unistr/u8-strcat'.
10692         * modules/unistr/u8-strcat-tests: New file.
10693         * tests/unistr/test-u8-strcat.c: New file.
10694         * tests/unistr/test-strcat.h: New file.
10695
10696         Tests for module 'unistr/u32-stpncpy'.
10697         * modules/unistr/u32-stpncpy-tests: New file.
10698         * tests/unistr/test-u32-stpncpy.c: New file.
10699
10700         Tests for module 'unistr/u16-stpncpy'.
10701         * modules/unistr/u16-stpncpy-tests: New file.
10702         * tests/unistr/test-u16-stpncpy.c: New file.
10703
10704         Tests for module 'unistr/u8-stpncpy'.
10705         * modules/unistr/u8-stpncpy-tests: New file.
10706         * tests/unistr/test-u8-stpncpy.c: New file.
10707         * tests/unistr/test-stpncpy.h: New file.
10708
10709         Tests for module 'unistr/u32-strncpy'.
10710         * modules/unistr/u32-strncpy-tests: New file.
10711         * tests/unistr/test-u32-strncpy.c: New file.
10712
10713         Tests for module 'unistr/u16-strncpy'.
10714         * modules/unistr/u16-strncpy-tests: New file.
10715         * tests/unistr/test-u16-strncpy.c: New file.
10716
10717         Tests for module 'unistr/u8-strncpy'.
10718         * modules/unistr/u8-strncpy-tests: New file.
10719         * tests/unistr/test-u8-strncpy.c: New file.
10720         * tests/unistr/test-strncpy.h: New file.
10721
10722         Tests for module 'unistr/u32-stpcpy'.
10723         * modules/unistr/u32-stpcpy-tests: New file.
10724         * tests/unistr/test-u32-stpcpy.c: New file.
10725
10726         Tests for module 'unistr/u16-stpcpy'.
10727         * modules/unistr/u16-stpcpy-tests: New file.
10728         * tests/unistr/test-u16-stpcpy.c: New file.
10729
10730         Tests for module 'unistr/u8-stpcpy'.
10731         * modules/unistr/u8-stpcpy-tests: New file.
10732         * tests/unistr/test-u8-stpcpy.c: New file.
10733         * tests/unistr/test-stpcpy.h: New file.
10734
10735         Tests for module 'unistr/u32-strcpy'.
10736         * modules/unistr/u32-strcpy-tests: New file.
10737         * tests/unistr/test-u32-strcpy.c: New file.
10738
10739         Tests for module 'unistr/u16-strcpy'.
10740         * modules/unistr/u16-strcpy-tests: New file.
10741         * tests/unistr/test-u16-strcpy.c: New file.
10742
10743         Tests for module 'unistr/u8-strcpy'.
10744         * modules/unistr/u8-strcpy-tests: New file.
10745         * tests/unistr/test-u8-strcpy.c: New file.
10746         * tests/unistr/test-strcpy.h: New file.
10747
10748         Tests for module 'unistr/u32-strnlen'.
10749         * modules/unistr/u32-strnlen-tests: New file.
10750         * tests/unistr/test-u32-strnlen.c: New file.
10751
10752         Tests for module 'unistr/u16-strnlen'.
10753         * modules/unistr/u16-strnlen-tests: New file.
10754         * tests/unistr/test-u16-strnlen.c: New file.
10755
10756         Tests for module 'unistr/u8-strnlen'.
10757         * modules/unistr/u8-strnlen-tests: New file.
10758         * tests/unistr/test-u8-strnlen.c: New file.
10759         * tests/unistr/test-strnlen.h: New file.
10760
10761         Tests for module 'unistr/u32-strlen'.
10762         * modules/unistr/u32-strlen-tests: New file.
10763         * tests/unistr/test-u32-strlen.c: New file.
10764
10765         Tests for module 'unistr/u16-strlen'.
10766         * modules/unistr/u16-strlen-tests: New file.
10767         * tests/unistr/test-u16-strlen.c: New file.
10768
10769         Tests for module 'unistr/u8-strlen'.
10770         * modules/unistr/u8-strlen-tests: New file.
10771         * tests/unistr/test-u8-strlen.c: New file.
10772
10773         Tests for module 'unistr/u32-prev'.
10774         * modules/unistr/u32-prev-tests: New file.
10775         * tests/unistr/test-u32-prev.c: New file.
10776
10777         Tests for module 'unistr/u16-prev'.
10778         * modules/unistr/u16-prev-tests: New file.
10779         * tests/unistr/test-u16-prev.c: New file.
10780
10781         Tests for module 'unistr/u8-prev'.
10782         * modules/unistr/u8-prev-tests: New file.
10783         * tests/unistr/test-u8-prev.c: New file.
10784
10785         Tests for module 'unistr/u32-next'.
10786         * modules/unistr/u32-next-tests: New file.
10787         * tests/unistr/test-u32-next.c: New file.
10788
10789         Tests for module 'unistr/u16-next'.
10790         * modules/unistr/u16-next-tests: New file.
10791         * tests/unistr/test-u16-next.c: New file.
10792
10793         Tests for module 'unistr/u8-next'.
10794         * modules/unistr/u8-next-tests: New file.
10795         * tests/unistr/test-u8-next.c: New file.
10796
10797         Tests for module 'unistr/u32-strmbtouc'.
10798         * modules/unistr/u32-strmbtouc-tests: New file.
10799         * tests/unistr/test-u32-strmbtouc.c: New file.
10800
10801         Tests for module 'unistr/u16-strmbtouc'.
10802         * modules/unistr/u16-strmbtouc-tests: New file.
10803         * tests/unistr/test-u16-strmbtouc.c: New file.
10804
10805         Tests for module 'unistr/u8-strmbtouc'.
10806         * modules/unistr/u8-strmbtouc-tests: New file.
10807         * tests/unistr/test-u8-strmbtouc.c: New file.
10808
10809         Tests for module 'unistr/u32-strmblen'.
10810         * modules/unistr/u32-strmblen-tests: New file.
10811         * tests/unistr/test-u32-strmblen.c: New file.
10812
10813         Tests for module 'unistr/u16-strmblen'.
10814         * modules/unistr/u16-strmblen-tests: New file.
10815         * tests/unistr/test-u16-strmblen.c: New file.
10816
10817         Tests for module 'unistr/u8-strmblen'.
10818         * modules/unistr/u8-strmblen-tests: New file.
10819         * tests/unistr/test-u8-strmblen.c: New file.
10820
10821         Tests for module 'unistr/u32-cpy-alloc'.
10822         * modules/unistr/u32-cpy-alloc-tests: New file.
10823         * tests/unistr/test-u32-cpy-alloc.c: New file.
10824
10825         Tests for module 'unistr/u16-cpy-alloc'.
10826         * modules/unistr/u16-cpy-alloc-tests: New file.
10827         * tests/unistr/test-u16-cpy-alloc.c: New file.
10828
10829         Tests for module 'unistr/u8-cpy-alloc'.
10830         * modules/unistr/u8-cpy-alloc-tests: New file.
10831         * tests/unistr/test-u8-cpy-alloc.c: New file.
10832         * tests/unistr/test-cpy-alloc.h: New file.
10833
10834         Tests for module 'unistr/u32-mbsnlen'.
10835         * modules/unistr/u32-mbsnlen-tests: New file.
10836         * tests/unistr/test-u32-mbsnlen.c: New file.
10837
10838         Tests for module 'unistr/u16-mbsnlen'.
10839         * modules/unistr/u16-mbsnlen-tests: New file.
10840         * tests/unistr/test-u16-mbsnlen.c: New file.
10841
10842         Tests for module 'unistr/u8-mbsnlen'.
10843         * modules/unistr/u8-mbsnlen-tests: New file.
10844         * tests/unistr/test-u8-mbsnlen.c: New file.
10845
10846         Tests for module 'unistr/u32-chr'.
10847         * modules/unistr/u32-chr-tests: New file.
10848         * tests/unistr/test-u32-chr.c: New file.
10849
10850         Tests for module 'unistr/u16-chr'.
10851         * modules/unistr/u16-chr-tests: New file.
10852         * tests/unistr/test-u16-chr.c: New file.
10853
10854         Tests for module 'unistr/u8-chr'.
10855         * modules/unistr/u8-chr-tests: New file.
10856         * tests/unistr/test-u8-chr.c: New file.
10857         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
10858
10859         Tests for module 'unistr/u32-cmp2'.
10860         * modules/unistr/u32-cmp2-tests: New file.
10861         * tests/unistr/test-u32-cmp2.c: New file.
10862
10863         Tests for module 'unistr/u16-cmp2'.
10864         * modules/unistr/u16-cmp2-tests: New file.
10865         * tests/unistr/test-u16-cmp2.c: New file.
10866
10867         Tests for module 'unistr/u8-cmp2'.
10868         * modules/unistr/u8-cmp2-tests: New file.
10869         * tests/unistr/test-u8-cmp2.c: New file.
10870         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
10871
10872         Tests for module 'unistr/u32-cmp'.
10873         * modules/unistr/u32-cmp-tests: New file.
10874         * tests/unistr/test-u32-cmp.c: New file.
10875
10876         Tests for module 'unistr/u16-cmp'.
10877         * modules/unistr/u16-cmp-tests: New file.
10878         * tests/unistr/test-u16-cmp.c: New file.
10879
10880         Tests for module 'unistr/u8-cmp'.
10881         * modules/unistr/u8-cmp-tests: New file.
10882         * tests/unistr/test-u8-cmp.c: New file.
10883         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
10884
10885         Tests for module 'unistr/u32-set'.
10886         * modules/unistr/u32-set-tests: New file.
10887         * tests/unistr/test-u32-set.c: New file.
10888
10889         Tests for module 'unistr/u16-set'.
10890         * modules/unistr/u16-set-tests: New file.
10891         * tests/unistr/test-u16-set.c: New file.
10892
10893         Tests for module 'unistr/u8-set'.
10894         * modules/unistr/u8-set-tests: New file.
10895         * tests/unistr/test-u8-set.c: New file.
10896         * tests/unistr/test-set.h: New file.
10897
10898         Tests for module 'unistr/u32-move'.
10899         * modules/unistr/u32-move-tests: New file.
10900         * tests/unistr/test-u32-move.c: New file.
10901
10902         Tests for module 'unistr/u16-move'.
10903         * modules/unistr/u16-move-tests: New file.
10904         * tests/unistr/test-u16-move.c: New file.
10905
10906         Tests for module 'unistr/u8-move'.
10907         * modules/unistr/u8-move-tests: New file.
10908         * tests/unistr/test-u8-move.c: New file.
10909         * tests/unistr/test-move.h: New file.
10910
10911         Tests for module 'unistr/u32-cpy'.
10912         * modules/unistr/u32-cpy-tests: New file.
10913         * tests/unistr/test-u32-cpy.c: New file.
10914
10915         Tests for module 'unistr/u16-cpy'.
10916         * modules/unistr/u16-cpy-tests: New file.
10917         * tests/unistr/test-u16-cpy.c: New file.
10918
10919         Tests for module 'unistr/u8-cpy'.
10920         * modules/unistr/u8-cpy-tests: New file.
10921         * tests/unistr/test-u8-cpy.c: New file.
10922         * tests/unistr/test-cpy.h: New file.
10923
10924 2010-01-09  Bruno Haible  <bruno@clisp.org>
10925
10926         Tests for module 'unistr/u32-uctomb'.
10927         * modules/unistr/u32-uctomb-tests: New file.
10928         * tests/unistr/test-u32-uctomb.c: New file.
10929
10930         Tests for module 'unistr/u16-uctomb'.
10931         * modules/unistr/u16-uctomb-tests: New file.
10932         * tests/unistr/test-u16-uctomb.c: New file.
10933
10934         Tests for module 'unistr/u8-uctomb'.
10935         * modules/unistr/u8-uctomb-tests: New file.
10936         * tests/unistr/test-u8-uctomb.c: New file.
10937
10938         Tests for module 'unistr/u32-mbtoucr'.
10939         * modules/unistr/u32-mbtoucr-tests: New file.
10940         * tests/unistr/test-u32-mbtoucr.c: New file.
10941
10942         Tests for module 'unistr/u16-mbtoucr'.
10943         * modules/unistr/u16-mbtoucr-tests: New file.
10944         * tests/unistr/test-u16-mbtoucr.c: New file.
10945
10946         Tests for module 'unistr/u8-mbtoucr'.
10947         * modules/unistr/u8-mbtoucr-tests: New file.
10948         * tests/unistr/test-u8-mbtoucr.c: New file.
10949
10950         Tests for module 'unistr/u32-mbtouc'.
10951         * modules/unistr/u32-mbtouc-tests: New file.
10952         * tests/unistr/test-u32-mbtouc.c: New file.
10953
10954         Tests for module 'unistr/u16-mbtouc'.
10955         * modules/unistr/u16-mbtouc-tests: New file.
10956         * tests/unistr/test-u16-mbtouc.c: New file.
10957
10958         Tests for module 'unistr/u8-mbtouc'.
10959         * modules/unistr/u8-mbtouc-tests: New file.
10960         * tests/unistr/test-u8-mbtouc.c: New file.
10961
10962         Tests for module 'unistr/u32-mbtouc-unsafe'.
10963         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
10964         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
10965         * tests/unistr/test-u32-mbtouc.h: New file.
10966
10967         Tests for module 'unistr/u16-mbtouc-unsafe'.
10968         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
10969         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
10970         * tests/unistr/test-u16-mbtouc.h: New file.
10971
10972         Tests for module 'unistr/u8-mbtouc-unsafe'.
10973         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
10974         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
10975         * tests/unistr/test-u8-mbtouc.h: New file.
10976
10977         Tests for module 'unistr/u32-mblen'.
10978         * modules/unistr/u32-mblen-tests: New file.
10979         * tests/unistr/test-u32-mblen.c: New file.
10980
10981         Tests for module 'unistr/u16-mblen'.
10982         * modules/unistr/u16-mblen-tests: New file.
10983         * tests/unistr/test-u16-mblen.c: New file.
10984
10985         Tests for module 'unistr/u8-mblen'.
10986         * modules/unistr/u8-mblen-tests: New file.
10987         * tests/unistr/test-u8-mblen.c: New file.
10988
10989         Tests for module 'unistr/u32-to-u16'.
10990         * modules/unistr/u32-to-u16-tests: New file.
10991         * tests/unistr/test-u32-to-u16.c: New file.
10992
10993         Tests for module 'unistr/u32-to-u8'.
10994         * modules/unistr/u32-to-u8-tests: New file.
10995         * tests/unistr/test-u32-to-u8.c: New file.
10996
10997         Tests for module 'unistr/u16-to-u32'.
10998         * modules/unistr/u16-to-u32-tests: New file.
10999         * tests/unistr/test-u16-to-u32.c: New file.
11000
11001         Tests for module 'unistr/u16-to-u8'.
11002         * modules/unistr/u16-to-u8-tests: New file.
11003         * tests/unistr/test-u16-to-u8.c: New file.
11004
11005         Tests for module 'unistr/u8-to-u32'.
11006         * modules/unistr/u8-to-u32-tests: New file.
11007         * tests/unistr/test-u8-to-u32.c: New file.
11008
11009         Tests for module 'unistr/u8-to-u16'.
11010         * modules/unistr/u8-to-u16-tests: New file.
11011         * tests/unistr/test-u8-to-u16.c: New file.
11012
11013         Tests for module 'unistr/u32-check'.
11014         * modules/unistr/u32-check-tests: New file.
11015         * tests/unistr/test-u32-check.c: New file.
11016
11017         Tests for module 'unistr/u16-check'.
11018         * modules/unistr/u16-check-tests: New file.
11019         * tests/unistr/test-u16-check.c: New file.
11020
11021         Tests for module 'unistr/u8-check'.
11022         * modules/unistr/u8-check-tests: New file.
11023         * tests/unistr/test-u8-check.c: New file.
11024
11025         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
11026         (category_equals): New function.
11027         (main): Add more tests.
11028         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
11029
11030         * tests/unictype/test-bidi_byname.c (main): Add more tests.
11031
11032 2010-01-10  Bruno Haible  <bruno@clisp.org>
11033
11034         unistr/u*-strcoll: Try harder to distinguish different strings.
11035         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
11036         compare s1 and s2 to see if they are different.
11037
11038 2010-01-10  Bruno Haible  <bruno@clisp.org>
11039
11040         unistr/u*-stpncpy: Fix the return value.
11041         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
11042         description of the return value consistent with stpncpy in glibc.
11043         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
11044         written non-NUL unit.
11045
11046 2010-01-10  Bruno Haible  <bruno@clisp.org>
11047
11048         unistr/u*-next: Add missing dependencies.
11049         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
11050         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
11051         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
11052
11053 2010-01-10  Bruno Haible  <bruno@clisp.org>
11054
11055         unistr/u8-mbsnlen: Fix return value for incomplete character.
11056         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
11057         u8_mblen.
11058         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
11059         Remove unistr/u8-mblen.
11060         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
11061         u16_mblen.
11062         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
11063         Remove unistr/u16-mblen.
11064
11065 2010-01-10  Bruno Haible  <bruno@clisp.org>
11066
11067         wchar: Fix compilation error when <wchar.h> is used from coreutils.
11068         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
11069         Reported by Brian Gough <bjg@gnu.org> and
11070         Chris Clayton <chris2553@googlemail.com> via
11071         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
11072
11073 2010-01-09  Bruno Haible  <bruno@clisp.org>
11074
11075         unistr/u16-to-u32: Reject invalid input.
11076         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
11077         u16_mbtouc.
11078         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
11079         Remove unistr/u16-mbtouc.
11080
11081         unistr/u16-to-u8: Reject invalid input.
11082         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
11083         u16_mbtouc.
11084         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
11085         Remove unistr/u16-mbtouc.
11086
11087         unistr/u8-to-u32: Reject invalid input.
11088         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
11089         u8_mbtouc.
11090         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
11091         Remove unistr/u8-mbtouc.
11092
11093         unistr/u8-to-u16: Reject invalid input.
11094         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
11095         u8_mbtouc.
11096         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
11097         Remove unistr/u8-mbtouc.
11098
11099 2010-01-09  Bruno Haible  <bruno@clisp.org>
11100
11101         Tests for module 'getlogin'.
11102         * modules/getlogin-tests: New file.
11103         * tests/test-getlogin.c: New file.
11104
11105         New module 'getlogin'.
11106         * lib/unistd.in.h (getlogin): New declaration.
11107         * lib/getlogin.c: New file.
11108         * m4/getlogin.m4: New file.
11109         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
11110         HAVE_GETLOGIN.
11111         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
11112         HAVE_GETLOGIN.
11113         * modules/getlogin: New file.
11114         * doc/posix-functions/getlogin.texi: Mention the new module.
11115         Reported by John W. Eaton <jwe@gnu.org>.
11116
11117 2010-01-09  Bruno Haible  <bruno@clisp.org>
11118
11119         getlogin_r: Support for native Windows.
11120         * lib/getlogin_r.c: Include <windows.h>
11121         (getlogin_r): Implement for native Windows.
11122         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
11123         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
11124         via John W. Eaton <jwe@gnu.org>.
11125
11126 2010-01-09  Bruno Haible  <bruno@clisp.org>
11127
11128         getlogin_r: Small fixes.
11129         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
11130         succeeds.
11131         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
11132         before testing whether getlogin_r is declared. No need to set
11133         HAVE_DECL_GETLOGIN_R to 1.
11134         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
11135
11136 2010-01-09  Bruno Haible  <bruno@clisp.org>
11137
11138         * lib/unistd.in.h (getlogin_r): Add comment.
11139
11140 2010-01-09  Bruno Haible  <bruno@clisp.org>
11141
11142         Tests for module 'getlogin_r'.
11143         * modules/getlogin_r-tests: New file.
11144         * tests/test-getlogin_r.c: New file.
11145
11146 2010-01-09  Jim Meyering  <meyering@redhat.com>
11147
11148         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
11149         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
11150         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
11151
11152 2010-01-08  Simon Josefsson  <simon@josefsson.org>
11153
11154         * lib/dup2.c (rpl_dup2): Improve comment.
11155
11156 2010-01-08  Eric Blake  <ebb9@byu.net>
11157
11158         maint.mk: allow packages to add makefile @@ exceptions
11159         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
11160         (sc_makefile_check): Rename...
11161         (sc_makefile_at_at_check): ...to this, and use hook.
11162
11163         dup2: work around mingw bug
11164         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
11165         Reported by Simon Josefsson.
11166
11167 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
11168
11169         glob: Fix C++ compilation.
11170         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
11171         C++.
11172
11173 2010-01-07  Bruno Haible  <bruno@clisp.org>
11174
11175         Fix indentation of wctype.in.h, broken since 2007-01-06.
11176         * lib/wctype.in.h: Fix indentation of preprocessor directives.
11177
11178 2010-01-07  Bruno Haible  <bruno@clisp.org>
11179
11180         mbslen: Avoid collision with system function.
11181         * lib/string.in.h [MirBSD]: Include <wchar.h>.
11182         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
11183         * m4/mbslen.m4: New file.
11184         * modules/mbslen (Files): Add it.
11185         (configure.ac): Invoke gl_MBSLEN.
11186         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
11187         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
11188         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
11189         via Ian Beckwith <ianb@erislabs.net>.
11190
11191 2010-01-07  Bruno Haible  <bruno@clisp.org>
11192
11193         dirent: Document the last fix.
11194         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
11195
11196 2010-01-07  Bruno Haible  <bruno@clisp.org>
11197
11198         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
11199         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
11200         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
11201         va_list are defined.
11202         * doc/posix-headers/stdio.texi: Document the bug of missing types.
11203         Reported by Eric Blake.
11204
11205 2010-01-07  Bruno Haible  <bruno@clisp.org>
11206
11207         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
11208         * modules/xlist (Depends-on): Add 'list',
11209         * modules/xoset (Depends-on): Add 'oset'.
11210         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
11211
11212 2010-01-07  Bruno Haible  <bruno@clisp.org>
11213
11214         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
11215         * doc/posix-functions/strncasecmp.texi: Likewise.
11216
11217 2010-01-07  Bruno Haible  <bruno@clisp.org>
11218
11219         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
11220
11221 2010-01-07  John W. Eaton  <jwe@octave.org>
11222
11223         wctype: allow C++ use
11224         * lib/wctype.in.h: Add extern "C" block for C++.
11225
11226 2010-01-06  Eric Blake  <ebb9@byu.net>
11227
11228         maint.mk: detect incorrect GFDL usage
11229         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
11230
11231 2010-01-06  Jim Meyering  <meyering@redhat.com>
11232         and Eric Blake  <ebb9@byu.net>
11233
11234         maint.mk: ignore multi-line copyright in NEWS
11235         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
11236
11237 2010-01-06  Eric Blake  <ebb9@byu.net>
11238
11239         select: add missing dependency
11240         * modules/select-tests (Depends-on): Move sockets dependency...
11241         * modules/select (Depends-on): ...here.
11242         Reported by Ian Beckwith.
11243
11244         doc: regenerate INSTALL
11245         * doc/INSTALL: Reflect recent autoconf update.
11246         * doc/INSTALL.ISO: Likewise.
11247         * doc/INSTALL.UTF-8: Likewise.
11248
11249         pread: fix compilation on glibc
11250         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
11251         Reported by Ralf Wildenhues.
11252
11253         dirent: fix test failure
11254         * lib/dirent.in.h (includes): Guarantee ino_t.
11255         Reported by Ralf Wildenhues.
11256
11257 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
11258
11259         linkat, renameat: avoid bad free
11260         * lib/at-func2.c (at_func2): Fix typo.
11261         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
11262
11263 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11264
11265         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
11266         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
11267         to avoid failure of symlink test later.
11268
11269 2010-01-06  Eric Blake  <ebb9@byu.net>
11270
11271         stdio, unistd: guarantee ssize_t
11272         * lib/unistd.in.h (includes): Ensure that types required by POSIX
11273         2008 are exposed when needed.
11274         * lib/stdio.in.h (includes): Likewise.
11275         Reported by Ralf Wildenhues.
11276
11277 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
11278
11279         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
11280         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
11281         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
11282
11283 2010-01-06  Jim Meyering  <meyering@redhat.com>
11284
11285         readtokens: this module *does* require xalloc.h
11286         It uses only functions that were omitted by the old syntax-check rule.
11287         * lib/readtokens.c: Include "xalloc.h" once again.
11288         * modules/readtokens (Depends-on): Add xalloc.
11289         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
11290
11291 2010-01-05  Eric Blake  <ebb9@byu.net>
11292
11293         maint: support 'make announcement' from a VPATH build
11294         * top/maint.mk (announcement): Look for correct NEWS file.
11295
11296 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
11297
11298         utimens (fdutimens): ignore a negative FD, per contract
11299         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
11300         when we have a valid file descriptor.  Otherwise, using a brand
11301         new glibc (with just-patched futimens that now fails with EBADF)
11302         would cause this function to fail with ENOSYS.
11303         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
11304         See also http://bugzilla.redhat.com/552320.
11305
11306 2010-01-05  Eric Blake  <ebb9@byu.net>
11307
11308         strcase: document what it provides
11309         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
11310         gnulib module.
11311         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
11312         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
11313
11314 2010-01-05  Jim Meyering  <meyering@redhat.com>
11315
11316         maint: remove useless inclusions of "xalloc.h"
11317         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
11318         * lib/readtokens.c: Likewise.
11319         * lib/same.c: Likewise.
11320         * modules/getloadavg (Depends-on): Remove xalloc.
11321         * modules/readtokens: Likewise.
11322         * modules/same: Likewise.
11323
11324         maint.mk: include 4 more function names in alloca.h-checking regexp
11325         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
11326         regexp.  Before, we would give a false-positive (saying alloca.h
11327         is included unnecessarily) when the only uses involved omitted symbols.
11328
11329         xalloc.h: use consistent formatting
11330         * lib/xalloc.h: Move declarations to start in the first column.
11331
11332 2010-01-05  Eric Blake  <ebb9@byu.net>
11333
11334         mkdir: avoid xalloc
11335         * lib/mkdir.c (includes): Drop unused header.
11336         Reported by John W. Eaton.
11337
11338 2010-01-04  Jim Meyering  <meyering@redhat.com>
11339
11340         nl_langinfo: avoid configure-time syntax error
11341         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
11342         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
11343         the empty string.  Don't let that provoke a shell syntax error.
11344
11345         regcomp, regexec, fnmatch: avoid array bounds read error
11346         * lib/regcomp.c (build_equiv_class): From glibc:
11347         Use only the low 24 bits of a findidx return value as an index
11348         into the weights array.  Patch by Ulrich Drepper:
11349         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
11350         * lib/regexec.c (check_node_accept_bytes): Likewise.
11351         * lib/fnmatch_loop.c (FCT): Likewise.
11352
11353         regcomp: skip collseq lookup when there are no rules
11354         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
11355         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
11356
11357         regcomp: recognize ill-formed { } expressions
11358         * lib/regcomp.c (parse_dup_op): From glibc:
11359         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
11360
11361         regcomp: fix typo in comment
11362         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
11363         s/satisfy/satisfies/.
11364
11365         regcomp: sync from glibc: remove dead store
11366         * lib/regcomp.c (duplicate_node_closure): Remove useless
11367         search_duplicated_node call and dead store.
11368
11369         regcomp: sync from glibc; always use nl_langinfo
11370         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
11371         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
11372         * modules/regex (Depends-on): Add nl_langinfo.
11373
11374 2010-01-04  Eric Blake  <ebb9@byu.net>
11375
11376         fdopendir: fix configure test
11377         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
11378
11379 2010-01-01  Bruno Haible  <bruno@clisp.org>
11380
11381         wchar: Remove unused configure check.
11382         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
11383
11384 2010-01-01  Eric Blake  <ebb9@byu.net>
11385
11386         headers: make check of system header explicit
11387         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
11388         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
11389         ourselves.
11390         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
11391         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
11392         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
11393         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
11394         internals.
11395         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
11396         missing.
11397         Suggested by Bruno Haible.
11398
11399 2010-01-01  Jim Meyering  <meyering@redhat.com>
11400
11401         ChangeLog: tweak to eliminate unnecessary copyright line
11402         * ChangeLog: Remove a copyright line that was mistakenly updated
11403         by today's update-copyright run.  Reported by Eric Blake.
11404
11405         test-update-copyright: don't let envvar setting cause test failure
11406         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
11407
11408 2010-01-01  Bruno Haible  <bruno@clisp.org>
11409
11410         localename: Avoid gcc warning.
11411         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
11412         function if it is not used.
11413
11414 2010-01-01  Jim Meyering  <meyering@redhat.com>
11415
11416         update nearly all FSF copyright year lists to include 2010
11417         Use the same procedure as for 2009, outlined in
11418         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
11419
11420         version-etc: set COPYRIGHT_YEAR to 2010
11421         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
11422
11423 2009-12-31  Eric Blake  <ebb9@byu.net>
11424
11425         doc: correct availability of cygwin 1.5.x getopt
11426         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
11427         variables.
11428         * doc/posix-functions/opterr.texi (opterr): Likewise.
11429         * doc/posix-functions/optind.texi (optind): Likewise.
11430         * doc/posix-functions/optopt.texi (optopt): Likewise.
11431         * doc/posix-functions/tzname.texi (tzname): Likewise.
11432
11433         openat: update maintainer
11434         * modules/openat (Maintainer): Add myself.
11435
11436         utimens: avoid shadowing warning
11437         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
11438         buffers into one, to avoid shadowing, as well as avoiding a
11439         redundant stat.
11440         Reported by Jim Meyering.
11441
11442         test-dup2: avoid compiler warning
11443         * tests/test-dup2.c (is_inheritable): Only define if used.
11444
11445 2010-01-01  Bruno Haible  <bruno@clisp.org>
11446
11447         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
11448         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
11449         defined, use wctomb instead of wcrtomb.
11450
11451 2010-01-01  Bruno Haible  <bruno@clisp.org>
11452
11453         iconv: Reject native Solaris iconv.
11454         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
11455         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
11456
11457 2009-12-31  Bruno Haible  <bruno@clisp.org>
11458
11459         * tests/test-signal.c (main): Remove test of 'SIG'.
11460
11461 2009-12-31  Bruno Haible  <bruno@clisp.org>
11462
11463         spawn: Fix incomplete fix.
11464         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
11465         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
11466         warnings for GNULIB_POSIXCHECK again.
11467         Reported by Eric Blake.
11468
11469 2009-12-31  Bruno Haible  <bruno@clisp.org>
11470
11471         Avoid namespace pollution on glibc systems.
11472         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
11473         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
11474         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
11475         glibc systems.
11476
11477 2009-12-31  Bruno Haible  <bruno@clisp.org>
11478
11479         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
11480         (gl_REPLACE_WCHAR_H): Turn into a no-op.
11481         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
11482         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
11483         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
11484         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
11485         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
11486
11487 2009-12-31  Bruno Haible  <bruno@clisp.org>
11488
11489         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
11490         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
11491         afterwards.
11492
11493 2009-12-31  Bruno Haible  <bruno@clisp.org>
11494
11495         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
11496         SYS_UTSNAME_H.
11497
11498 2009-12-31  Bruno Haible  <bruno@clisp.org>
11499
11500         spawn: Fix misapplied patch.
11501         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
11502         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
11503         warnings for GNULIB_POSIXCHECK.
11504
11505 2009-12-31  Bruno Haible  <bruno@clisp.org>
11506
11507         times: Update after sys_times changed.
11508         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
11509         * modules/times (Files): Add it.
11510         (configure.ac): Invoke gl_FUNC_TIMES.
11511
11512 2009-12-31  Bruno Haible  <bruno@clisp.org>
11513
11514         Use AC_C_INLINE where necessary.
11515         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
11516         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
11517         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
11518         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
11519         * m4/mbfile.m4 (gl_MBFILE): Likewise.
11520         * m4/mbiter.m4 (gl_MBITER): Likewise.
11521         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
11522         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
11523         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
11524         * modules/u64 (configure.ac): Likewise.
11525
11526 2009-12-31  Bruno Haible  <bruno@clisp.org>
11527
11528         Use AC_C_INLINE instead of module 'inline' where possible.
11529         * modules/inline (Description): Clarify purpose.
11530         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
11531         * modules/count-one-bits (Depends-on): Remove inline.
11532         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
11533         * modules/openat (Depends-on): Remove inline.
11534         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
11535         instead of depending on module 'inline'.
11536         * modules/filevercmp (Depends-on, configure.ac): Likewise.
11537         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
11538         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
11539         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
11540         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
11541         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
11542         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
11543         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
11544         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
11545         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
11546         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
11547         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
11548         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
11549         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
11550         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
11551         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
11552         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
11553         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
11554         Likewise.
11555         * modules/unictype/property-ascii-hex-digit (Depends-on,
11556         configure.ac): Likewise.
11557         * modules/unictype/property-bidi-arabic-digit (Depends-on,
11558         configure.ac): Likewise.
11559         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
11560         configure.ac): Likewise.
11561         * modules/unictype/property-bidi-block-separator (Depends-on,
11562         configure.ac): Likewise.
11563         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
11564         configure.ac): Likewise.
11565         * modules/unictype/property-bidi-common-separator (Depends-on,
11566         configure.ac): Likewise.
11567         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
11568         Likewise.
11569         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
11570         configure.ac): Likewise.
11571         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
11572         configure.ac): Likewise.
11573         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
11574         configure.ac): Likewise.
11575         * modules/unictype/property-bidi-european-digit (Depends-on,
11576         configure.ac): Likewise.
11577         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
11578         configure.ac): Likewise.
11579         * modules/unictype/property-bidi-left-to-right (Depends-on,
11580         configure.ac): Likewise.
11581         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
11582         configure.ac): Likewise.
11583         * modules/unictype/property-bidi-other-neutral (Depends-on,
11584         configure.ac): Likewise.
11585         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
11586         Likewise.
11587         * modules/unictype/property-bidi-segment-separator (Depends-on,
11588         configure.ac): Likewise.
11589         * modules/unictype/property-bidi-whitespace (Depends-on,
11590         configure.ac): Likewise.
11591         * modules/unictype/property-combining (Depends-on, configure.ac):
11592         Likewise.
11593         * modules/unictype/property-composite (Depends-on, configure.ac):
11594         Likewise.
11595         * modules/unictype/property-currency-symbol (Depends-on,
11596         configure.ac): Likewise.
11597         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
11598         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
11599         Likewise.
11600         * modules/unictype/property-default-ignorable-code-point (Depends-on,
11601         configure.ac): Likewise.
11602         * modules/unictype/property-deprecated (Depends-on, configure.ac):
11603         Likewise.
11604         * modules/unictype/property-diacritic (Depends-on, configure.ac):
11605         Likewise.
11606         * modules/unictype/property-extender (Depends-on, configure.ac):
11607         Likewise.
11608         * modules/unictype/property-format-control (Depends-on, configure.ac):
11609         Likewise.
11610         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
11611         Likewise.
11612         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
11613         Likewise.
11614         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
11615         Likewise.
11616         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
11617         Likewise.
11618         * modules/unictype/property-hyphen (Depends-on, configure.ac):
11619         Likewise.
11620         * modules/unictype/property-id-continue (Depends-on, configure.ac):
11621         Likewise.
11622         * modules/unictype/property-id-start (Depends-on, configure.ac):
11623         Likewise.
11624         * modules/unictype/property-ideographic (Depends-on, configure.ac):
11625         Likewise.
11626         * modules/unictype/property-ids-binary-operator (Depends-on,
11627         configure.ac): Likewise.
11628         * modules/unictype/property-ids-trinary-operator (Depends-on,
11629         configure.ac): Likewise.
11630         * modules/unictype/property-ignorable-control (Depends-on,
11631         configure.ac): Likewise.
11632         * modules/unictype/property-iso-control (Depends-on, configure.ac):
11633         Likewise.
11634         * modules/unictype/property-join-control (Depends-on, configure.ac):
11635         Likewise.
11636         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
11637         Likewise.
11638         * modules/unictype/property-line-separator (Depends-on, configure.ac):
11639         Likewise.
11640         * modules/unictype/property-logical-order-exception (Depends-on,
11641         configure.ac): Likewise.
11642         * modules/unictype/property-lowercase (Depends-on, configure.ac):
11643         Likewise.
11644         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
11645         * modules/unictype/property-non-break (Depends-on, configure.ac):
11646         Likewise.
11647         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
11648         Likewise.
11649         * modules/unictype/property-numeric (Depends-on, configure.ac):
11650         Likewise.
11651         * modules/unictype/property-other-alphabetic (Depends-on,
11652         configure.ac): Likewise.
11653         * modules/unictype/property-other-default-ignorable-code-point
11654         (Depends-on, configure.ac): Likewise.
11655         * modules/unictype/property-other-grapheme-extend (Depends-on,
11656         configure.ac): Likewise.
11657         * modules/unictype/property-other-id-continue (Depends-on,
11658         configure.ac): Likewise.
11659         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
11660         Likewise.
11661         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
11662         Likewise.
11663         * modules/unictype/property-other-math (Depends-on, configure.ac):
11664         Likewise.
11665         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
11666         Likewise.
11667         * modules/unictype/property-paired-punctuation (Depends-on,
11668         configure.ac): Likewise.
11669         * modules/unictype/property-paragraph-separator (Depends-on,
11670         configure.ac): Likewise.
11671         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
11672         Likewise.
11673         * modules/unictype/property-pattern-white-space (Depends-on,
11674         configure.ac): Likewise.
11675         * modules/unictype/property-private-use (Depends-on, configure.ac):
11676         Likewise.
11677         * modules/unictype/property-punctuation (Depends-on, configure.ac):
11678         Likewise.
11679         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
11680         Likewise.
11681         * modules/unictype/property-radical (Depends-on, configure.ac):
11682         Likewise.
11683         * modules/unictype/property-sentence-terminal (Depends-on,
11684         configure.ac): Likewise.
11685         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
11686         Likewise.
11687         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
11688         * modules/unictype/property-terminal-punctuation (Depends-on,
11689         configure.ac): Likewise.
11690         * modules/unictype/property-titlecase (Depends-on, configure.ac):
11691         Likewise.
11692         * modules/unictype/property-unassigned-code-value (Depends-on,
11693         configure.ac): Likewise.
11694         * modules/unictype/property-unified-ideograph (Depends-on,
11695         configure.ac): Likewise.
11696         * modules/unictype/property-uppercase (Depends-on, configure.ac):
11697         Likewise.
11698         * modules/unictype/property-variation-selector (Depends-on,
11699         configure.ac): Likewise.
11700         * modules/unictype/property-white-space (Depends-on, configure.ac):
11701         Likewise.
11702         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
11703         Likewise.
11704         * modules/unictype/property-xid-start (Depends-on, configure.ac):
11705         Likewise.
11706         * modules/unictype/property-zero-width (Depends-on, configure.ac):
11707         Likewise.
11708         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
11709         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
11710         Likewise.
11711
11712 2009-12-31  Bruno Haible  <bruno@clisp.org>
11713
11714         Remove unnecessary AC_C_INLINE invocation.
11715         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
11716         since 2009-08-21.
11717
11718 2009-12-31  Jim Meyering  <meyering@redhat.com>
11719
11720         maint.mk: don't require explicit gpg_key_ID in cfg.mk
11721         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
11722         With this change, we can all remove the gpg_key_ID = ... definition
11723         from our respective cfg.mk files.
11724
11725         maint.mk: create announcement template in ~/, not in /tmp
11726         * top/maint.mk (emit_upload_commands): Adjust.
11727         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
11728         Remove temporary file, .ci-msg.
11729
11730 2009-12-31  Eric Blake  <ebb9@byu.net>
11731
11732         link-warning: always build headers with link warnings
11733         * modules/arpa_inet (Makefile.am): Always build replacement
11734         header.
11735         * modules/ctype (Makefile.am): Likewise.
11736         * modules/dirent (Makefile.am): Likewise.
11737         * modules/inttypes (Makefile.am): Likewise.
11738         * modules/langinfo (Makefile.am): Likewise.
11739         * modules/locale (Makefile.am): Likewise.
11740         * modules/spawn (Makefile.am): Likewise.
11741         * modules/sys_file (Makefile.am): Likewise.
11742         * modules/sys_ioctl (Makefile.am): Likewise.
11743         * modules/sys_select (Makefile.am): Likewise.
11744         * modules/sys_socket (Makefile.am): Likewise.
11745         * modules/sys_times (Makefile.am): Likewise.
11746         * modules/sys_utsname (Makefile.am): Likewise.
11747         * modules/sys_wait (Makefile.am): Likewise.
11748         * modules/wchar (Makefile.am): Likewise.
11749         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
11750         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
11751         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
11752         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
11753         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
11754         Likewise.
11755         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
11756         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
11757         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
11758         Likewise.
11759         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
11760         Likewise.
11761         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
11762         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
11763         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
11764         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
11765         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
11766         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
11767         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
11768         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
11769         (gl_WCHAR_H_DEFAULTS): Likewise.
11770
11771 2009-12-31  Eric Blake  <ebb9@byu.net>
11772
11773         signal, spawn: use link warnings
11774         * lib/signal.in.h (sigset_t): Make unconditional.
11775         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
11776         (sigpending, sigprocmask, sigaction): Add link warnings.
11777         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
11778         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
11779         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
11780         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
11781         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
11782         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
11783         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
11784         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
11785         (posix_spawn_file_actions_destroy)
11786         (posix_spawn_file_actions_addopen)
11787         (posix_spawn_file_actions_addclose)
11788         (posix_spawn_file_actions_adddup2): Likewise.
11789         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
11790         * tests/test-signal.c (main): Enhance test.
11791
11792         spawn: improve wrapper support
11793         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
11794         (gl_SPAWN_H_DEFAULTS): New defaults.
11795         * modules/spawn (Makefile.am): Substitute them.
11796         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
11797         Only declare if missing or broken.
11798
11799         sys_times, sys_utsname: use include_next
11800         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
11801         header.
11802         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
11803         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
11804         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
11805         * modules/sys_times (Depends-on): Add include_next.
11806         (Makefile.am): Substitute additional values.
11807         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
11808         * lib/sys_times.in.h (includes): Include native header, if
11809         available.
11810         * lib/sys_utsname.in.h (includes): Likewise.
11811         * tests/test-sys_times.c (main): Enhance test.
11812
11813         fdutimensat: revert prior patch
11814         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
11815         utimens.h.
11816         Reported by Bruno Haible.
11817
11818 2009-12-30  Eric Blake  <ebb9@byu.net>
11819
11820         sys_wait: drop link-warning dependency
11821         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
11822         link-warning efforts.
11823         * lib/sys_wait.in.h: Likewise.
11824
11825         fdutimensat: remove bogus dependency
11826         * modules/fdutimensat (Depends-on): Drop inline.
11827
11828         unistd: fix typo
11829         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
11830
11831 2009-12-30  Bruno Haible  <bruno@clisp.org>
11832
11833         Fix compilation error with Solaris cc.
11834         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
11835         * lib/unicase/u16-is-invariant.c: Likewise.
11836         * lib/unicase/u32-is-invariant.c: Likewise.
11837         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
11838
11839 2009-12-30  Bruno Haible  <bruno@clisp.org>
11840
11841         Fix test crash.
11842         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
11843         locales.
11844         Reported by Simon Josefsson <simon@josefsson.org>.
11845
11846 2009-12-30  Bruno Haible  <bruno@clisp.org>
11847
11848         Fix compilation error on most platforms.
11849         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
11850         Reported by Simon Josefsson <simon@josefsson.org>
11851         and Nelson H. F. Beebe <beebe@math.utah.edu>.
11852
11853 2009-12-30  Eric Blake  <ebb9@byu.net>
11854
11855         futimens, utimensat: work around ntfs-3g bug
11856         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
11857         a ctime bug is present, and expand workaround to cover ntfs-3g.
11858         * lib/utimens.c (fdutimens, lutimens): Likewise.
11859         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
11860         (validate_timespec): Adjust return value.
11861         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
11862         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
11863         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
11864
11865 2009-12-29  Eric Blake  <ebb9@byu.net>
11866
11867         link-warning: make usage consistent
11868         * modules/ctype (Depends-on): Add link-warning.
11869         (Makefile.am): Update rules accordingly.
11870         * modules/langinfo (Depends-on, Makefile.am): Likewise.
11871         * modules/locale (Depends-on, Makefile.am): Likewise.
11872         * modules/sys_file (Makefile.am): Likewise.
11873         * modules/getopt-posix (Makefile.am): Delete unused link warning
11874         efforts.
11875         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
11876         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
11877         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
11878         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
11879
11880         stdio: remove unused variables
11881         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
11882         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
11883         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
11884
11885         tests: test more substitute headers
11886         * modules/ctype-tests: New file.
11887         * modules/dirent-tests: Likewise.
11888         * modules/spawn-tests: Likewise.
11889         * modules/sys_file-tests: Likewise.
11890         * modules/sys_ioctl-tests: Likewise.
11891         * modules/sys_wait-tests: Likewise.
11892         * tests/test-ctype.c: Likewise.
11893         * tests/test-dirent.c: Likewise.
11894         * tests/test-spawn.c: Likewise.
11895         * tests/test-sys_file.c: Likewise.
11896         * tests/test-sys_ioctl.c: Likewise.
11897         * tests/test-sys_wait.c: Likewise.
11898         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
11899         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
11900         whether or not flock is in use.
11901
11902         tests: remove License section from module
11903         * modules/arpa_inet-tests: Remove unneeded section.
11904         * modules/byteswap-tests: Likewise.
11905         * modules/ceilf-tests: Likewise.
11906         * modules/ceill-tests: Likewise.
11907         * modules/crypto/des-tests: Likewise.
11908         * modules/crypto/gc-arcfour-tests: Likewise.
11909         * modules/crypto/gc-arctwo-tests: Likewise.
11910         * modules/crypto/gc-des-tests: Likewise.
11911         * modules/crypto/gc-hmac-md5-tests: Likewise.
11912         * modules/crypto/gc-hmac-sha1-tests: Likewise.
11913         * modules/crypto/gc-md2-tests: Likewise.
11914         * modules/crypto/gc-md4-tests: Likewise.
11915         * modules/crypto/gc-md5-tests: Likewise.
11916         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
11917         * modules/crypto/gc-rijndael-tests: Likewise.
11918         * modules/crypto/gc-sha1-tests: Likewise.
11919         * modules/crypto/gc-tests: Likewise.
11920         * modules/crypto/md2-tests: Likewise.
11921         * modules/crypto/md4-tests: Likewise.
11922         * modules/fcntl-h-tests: Likewise.
11923         * modules/floorf-tests: Likewise.
11924         * modules/floorl-tests: Likewise.
11925         * modules/frexp-nolibm-tests: Likewise.
11926         * modules/frexp-tests: Likewise.
11927         * modules/frexpl-nolibm-tests: Likewise.
11928         * modules/frexpl-tests: Likewise.
11929         * modules/getaddrinfo-tests: Likewise.
11930         * modules/inttypes-tests: Likewise.
11931         * modules/isfinite-tests: Likewise.
11932         * modules/isinf-tests: Likewise.
11933         * modules/ldexpl-tests: Likewise.
11934         * modules/locale-tests: Likewise.
11935         * modules/math-tests: Likewise.
11936         * modules/netdb-tests: Likewise.
11937         * modules/netinet_in-tests: Likewise.
11938         * modules/printf-frexp-tests: Likewise.
11939         * modules/printf-frexpl-tests: Likewise.
11940         * modules/priv-set-tests: Likewise.
11941         * modules/random_r-tests: Likewise.
11942         * modules/round-tests: Likewise.
11943         * modules/roundf-tests: Likewise.
11944         * modules/roundl-tests: Likewise.
11945         * modules/search-tests: Likewise.
11946         * modules/select-tests: Likewise.
11947         * modules/signal-tests: Likewise.
11948         * modules/stdbool-tests: Likewise.
11949         * modules/stddef-tests: Likewise.
11950         * modules/stdint-tests: Likewise.
11951         * modules/stdio-tests: Likewise.
11952         * modules/stdlib-tests: Likewise.
11953         * modules/string-tests: Likewise.
11954         * modules/strings-tests: Likewise.
11955         * modules/sys_select-tests: Likewise.
11956         * modules/sys_socket-tests: Likewise.
11957         * modules/sys_stat-tests: Likewise.
11958         * modules/sys_time-tests: Likewise.
11959         * modules/sys_utsname-tests: Likewise.
11960         * modules/sysexits-tests: Likewise.
11961         * modules/time-tests: Likewise.
11962         * modules/trunc-tests: Likewise.
11963         * modules/truncf-tests: Likewise.
11964         * modules/truncl-tests: Likewise.
11965         * modules/tsearch-tests: Likewise.
11966         * modules/unistd-tests: Likewise.
11967         * modules/wchar-tests: Likewise.
11968         * modules/wctype-tests: Likewise.
11969
11970         tests: fix license on several tests
11971         * tests/test-des.c: Update to GPLv3+.
11972         * tests/test-flock.c: Likewise.
11973         * tests/test-fsync.c: Likewise.
11974         * tests/test-futimens.h: Likewise.
11975         * tests/test-gc-arcfour.c: Likewise.
11976         * tests/test-gc-arctwo.c: Likewise.
11977         * tests/test-gc-des.c: Likewise.
11978         * tests/test-gc-hmac-md5.c: Likewise.
11979         * tests/test-gc-hmac-sha1.c: Likewise.
11980         * tests/test-gc-md2.c: Likewise.
11981         * tests/test-gc-md4.c: Likewise.
11982         * tests/test-gc-md5.c: Likewise.
11983         * tests/test-gc-pbkdf2-sha1.c: Likewise.
11984         * tests/test-gc-rijndael.c: Likewise.
11985         * tests/test-gc-sha1.c: Likewise.
11986         * tests/test-gc.c: Likewise.
11987         * tests/test-getcwd.c: Likewise.
11988         * tests/test-link.c: Likewise.
11989         * tests/test-link.h: Likewise.
11990         * tests/test-lutimens.h: Likewise.
11991         * tests/test-md2.c: Likewise.
11992         * tests/test-md4.c: Likewise.
11993         * tests/test-mkdir.h: Likewise.
11994         * tests/test-rename.c: Likewise.
11995         * tests/test-rename.h: Likewise.
11996         * tests/test-safe-alloc.c: Likewise.
11997         * tests/test-utimens-common.h: Likewise.
11998         * tests/test-utimens.h: Likewise.
11999
12000         maint: sync license texts
12001         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
12002         * doc/gpl-3.0.texi: Revert copyright year update.
12003         * doc/lgpl-3.0.texi: Likewise.
12004
12005 2009-12-29  Jim Meyering  <meyering@redhat.com>
12006
12007         update nearly all FSF copyright year lists to include 2009
12008         The files named by the following are exempted:
12009             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
12010               test -f "$dst" && { echo "$dst"; continue; }
12011               test -d "$dst" || continue
12012               echo "$dst"/$(basename "$src")
12013             done > exempt
12014             git ls-files tests/unictype >> exempt
12015         In the remaining files, convert to all-interval notation if
12016         - there is already at least one year interval like 2000-2003
12017         - the file is maintained by me
12018         - the file is in lib/uni*/, where that style already prevails
12019         Otherwise, use update-copyright's default.
12020
12021 2009-12-29  Simon Josefsson  <simon@josefsson.org>
12022         and Eric Blake  <ebb9@byu.net>
12023
12024         tests: don't require debug system() to pass
12025         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
12026         * tests/test-rmdir.h (test_rmdir_func): Likewise.
12027         * tests/test-unlink.h (test_unlink_func): Likewise.
12028         * tests/test-fstatat.c (main): ...into callers.
12029         * tests/test-lstat.c (main): Likewise.
12030         * tests/test-rmdir.c (main): Likewise.
12031         * tests/test-unlink.c (main): Likewise.
12032         * tests/test-unlinkat.c (main): Likewise.
12033         * tests/test-areadlink-with-size.c (main): Don't require a
12034         debug-only system call to pass, aiding cross-testing to mingw.
12035         * tests/test-areadlink.c (main): Likewise.
12036         * tests/test-areadlinkat-with-size.c (main): Likewise.
12037         * tests/test-areadlinkat.c (main): Likewise.
12038         * tests/test-canonicalize-lgpl.c (main): Likewise.
12039         * tests/test-canonicalize.c (main): Likewise.
12040         * tests/test-chown.c (main): Likewise.
12041         * tests/test-fchownat.c (main): Likewise.
12042         * tests/test-lchown.c (main): Likewise.
12043         * tests/test-fdutimensat.c (main): Likewise.
12044         * tests/test-futimens.c (main): Likewise.
12045         * tests/test-link.c (main): Likewise.
12046         * tests/test-linkat.c (main): Likewise.
12047         * tests/test-mkdir.c (main): Likewise.
12048         * tests/test-mkdirat.c (main): Likewise.
12049         * tests/test-mkfifo.c (main): Likewise.
12050         * tests/test-mkfifoat.c (main): Likewise.
12051         * tests/test-mknod.c (main): Likewise.
12052         * tests/test-readlink.c (main): Likewise.
12053         * tests/test-remove.c (main): Likewise.
12054         * tests/test-rename.c (main): Likewise.
12055         * tests/test-renameat.c (main): Likewise.
12056         * tests/test-symlink.c (main): Likewise.
12057         * tests/test-symlinkat.c (main): Likewise.
12058         * tests/test-utimens.c (main): Likewise.
12059         * tests/test-utimensat.c (main): Likewise.
12060
12061 2009-12-29  Simon Josefsson  <simon@josefsson.org>
12062
12063         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
12064         on $(UNUSED_PARAMETER_H) to avoid build failure.
12065
12066 2009-12-28  Jim Meyering  <meyering@redhat.com>
12067
12068         update-copyright: you may specify a max. line length other than 72
12069         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
12070
12071         maint: use consistent FSF copyright line syntax
12072         * lib/posixtm.c: Add missing comma in FSF copyright line.
12073         * lib/posixtm.h: Likewise.
12074         * lib/getugroups.c: Add missing ", Inc.".
12075
12076         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
12077         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
12078         FSF copyright line.  Remove trailing blanks.
12079
12080 2009-12-28  Eric Blake  <ebb9@byu.net>
12081
12082         test-dup2: reduce dependencies
12083         * modules/cloexec (Configure.ac): Set witness.
12084         * modules/dup2-tests (Depends-on): Drop cloexec.
12085         * tests/test-dup2.c (main): Skip portion of test if cloexec module
12086         not present.
12087         Suggested by Bruno Haible.
12088
12089 2009-12-26  Bruno Haible  <bruno@clisp.org>
12090
12091         Remove an unneeded dependency.
12092         * modules/fseterr (Depends-on): Remove dup2.
12093
12094 2009-12-26  Eric Blake  <ebb9@byu.net>
12095
12096         tests: use macros.h in more places
12097         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
12098         (ASSERT_STREAM): Provide default of stderr.
12099         * tests/test-dirent-safer.c: Include macros.h, using alternate
12100         stream for assertions.
12101         * tests/test-dup-safer.c: Likewise.
12102         * tests/test-freopen-safer.c: Likewise.
12103         * tests/test-getopt.c: Likewise.
12104         * tests/test-openat-safer.c: Likewise.
12105         * tests/test-pipe.c: Likewise.
12106         * tests/test-popen-safer.c: Likewise.
12107         * modules/dirent-safer-tests (Files): Include macros.h.
12108         * modules/unistd-safer-tests (Files): Likewise.
12109         * modules/freopen-safer-tests (Files): Likewise.
12110         * modules/getopt-posix-tests (Files): Likewise.
12111         * modules/openat-safer-tests (Files): Likewise.
12112         * modules/pipe-tests (Files): Likewise.
12113
12114 2009-12-26  Bruno Haible  <bruno@clisp.org>
12115
12116         javacomp: Portability fix.
12117         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
12118         that it also works on Solaris.
12119
12120 2009-12-26  Bruno Haible  <bruno@clisp.org>
12121
12122         localename: Fix storage allocation of gl_locale_name_thread's result.
12123         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
12124         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
12125         all platforms that have 'uselocale'.
12126         (gl_locale_name_thread_unsafe): New function, extracted from
12127         gl_locale_name_thread.
12128         (gl_locale_name_thread): Call struniq on all platforms that have
12129         'uselocale'.
12130         * tests/test-localename.c (test_locale_name_thread): Check that the
12131         resulting strings are permanently allocated.
12132         * modules/localename-tests (Depends-on): Add strdup.
12133
12134 2009-12-26  Bruno Haible  <bruno@clisp.org>
12135
12136         * tests/test-localename.c (categories): Fill in the strings.
12137
12138 2009-12-26  Jim Meyering  <meyering@redhat.com>
12139
12140         isdir: complete the removal of m4/isdir.m4
12141         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
12142
12143         isdir: clean up, since at least grep still uses it
12144         * lib/isdir.c: Include "isdir.h".
12145         (S_ISDIR): Remove now-unneeded definition.
12146         * modules/isdir (Files): Add lib/isdir.h.
12147         * lib/isdir.h: New file, with declaration.
12148         * m4/isdir.m4: Remove file -- unneeded.
12149
12150 2009-12-25  Bruno Haible  <bruno@clisp.org>
12151
12152         selinux-h: Make generated .h files standalone.
12153         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
12154         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
12155         * lib/se-selinux.in.h: Likewise.
12156         * modules/selinux-h (Depends-on): Add unused-parameter.
12157         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
12158         selinux/selinux.h and selinux/context.h.
12159         Suggested by Eric Blake.
12160
12161 2009-12-25  Bruno Haible  <bruno@clisp.org>
12162
12163         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
12164         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
12165         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
12166         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
12167         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
12168
12169 2009-12-24  Bruno Haible  <bruno@clisp.org>
12170
12171         openat: Fix warning.
12172         * lib/openat-proc.c: Include <unistd.h>.
12173
12174 2009-12-24  Bruno Haible  <bruno@clisp.org>
12175
12176         New module 'unused-parameter'.
12177         * build-aux/unused-parameter.h: New file, extracted from earlier
12178         gnulib-common.m4.
12179         * modules/unused-parameter: New file.
12180         * lib/unistr.h: Include unused-parameter.h.
12181         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
12182         _GL_UNUSED.
12183         * modules/unistr/base (Depends-on): Add unused-parameter.
12184
12185 2009-12-24  Bruno Haible  <bruno@clisp.org>
12186
12187         Add missing dependencies to 'extensions' module.
12188         * m4/extensions.m4: Add comment.
12189         * modules/accept4 (Depends-on): Add extensions.
12190         * modules/dup3 (Depends-on): Likewise.
12191         * modules/fcntl (Depends-on): Likewise.
12192         * modules/futimens (Depends-on): Likewise.
12193         * modules/mknod (Depends-on): Likewise.
12194         * modules/pipe2 (Depends-on): Likewise.
12195         * modules/stat-time (Depends-on): Likewise.
12196         * modules/strcasestr-simple (Depends-on): Likewise.
12197         * modules/strsignal (Depends-on): Likewise.
12198         * modules/utimensat (Depends-on): Likewise.
12199         * modules/localcharset (Depends-on): Likewise. Needed because of
12200         gl_FCNTL_O_FLAGS.
12201         * modules/wcrtomb (Depends-on): Likewise. Needed because of
12202         AC_TYPE_MBSTATE_T.
12203         * modules/wcsnrtombs (Depends-on): Likewise.
12204         * modules/wcsrtombs (Depends-on): Likewise.
12205
12206 2009-12-24  Bruno Haible  <bruno@clisp.org>
12207
12208         binary-io: Avoid gcc warning due to SET_BINARY.
12209         * lib/binary-io.h (SET_BINARY): Cast the result to void.
12210         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
12211
12212 2009-12-24  Bruno Haible  <bruno@clisp.org>
12213
12214         Avoid future namespace pollution on glibc systems.
12215         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
12216         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
12217         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
12218         glibc systems.
12219
12220 2009-12-24  Bruno Haible  <bruno@clisp.org>
12221
12222         Refactor common macros used in tests.
12223         * tests/macros.h: New file.
12224         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
12225         and/or <stdlib.h>, if appropriate.
12226         (ASSERT, SIZEOF): Remove macros.
12227         * tests/test-areadlink-with-size.c: Likewise.
12228         * tests/test-areadlinkat.c: Likewise.
12229         * tests/test-areadlinkat-with-size.c: Likewise.
12230         * tests/test-argmatch.c: Likewise.
12231         * tests/test-argv-iter.c: Likewise.
12232         * tests/test-array-mergesort.c: Likewise.
12233         * tests/test-array_list.c: Likewise.
12234         * tests/test-array_oset.c: Likewise.
12235         * tests/test-avltree_list.c: Likewise.
12236         * tests/test-avltree_oset.c: Likewise.
12237         * tests/test-avltreehash_list.c: Likewise.
12238         * tests/test-base64.c: Likewise.
12239         * tests/test-binary-io.c: Likewise.
12240         * tests/test-bitrotate.c: Likewise.
12241         * tests/test-btowc.c: Likewise.
12242         * tests/test-byteswap.c: Likewise.
12243         * tests/test-c-ctype.c: Likewise.
12244         * tests/test-c-stack.c: Likewise.
12245         * tests/test-c-strcasecmp.c: Likewise.
12246         * tests/test-c-strcasestr.c: Likewise.
12247         * tests/test-c-strncasecmp.c: Likewise.
12248         * tests/test-c-strstr.c: Likewise.
12249         * tests/test-canonicalize-lgpl.c: Likewise.
12250         * tests/test-canonicalize.c: Likewise.
12251         * tests/test-carray_list.c: Likewise.
12252         * tests/test-ceilf1.c: Likewise.
12253         * tests/test-ceilf2.c: Likewise.
12254         * tests/test-ceill.c: Likewise.
12255         * tests/test-chown.c: Likewise.
12256         * tests/test-cloexec.c: Likewise.
12257         * tests/test-copy-acl.c: Likewise.
12258         * tests/test-copy-file.c: Likewise.
12259         * tests/test-count-one-bits.c: Likewise.
12260         * tests/test-dprintf-posix.c: Likewise.
12261         * tests/test-dup2.c: Likewise.
12262         * tests/test-dup3.c: Likewise.
12263         * tests/test-duplocale.c: Likewise.
12264         * tests/test-fbufmode.c: Likewise.
12265         * tests/test-fchdir.c: Likewise.
12266         * tests/test-fchownat.c: Likewise.
12267         * tests/test-fcntl-safer.c: Likewise.
12268         * tests/test-fcntl.c: Likewise.
12269         * tests/test-fdopendir.c: Likewise.
12270         * tests/test-fdutimensat.c: Likewise.
12271         * tests/test-fflush2.c: Likewise.
12272         * tests/test-file-has-acl.c: Likewise.
12273         * tests/test-filevercmp.c: Likewise.
12274         * tests/test-flock.c: Likewise.
12275         * tests/test-floorf1.c: Likewise.
12276         * tests/test-floorf2.c: Likewise.
12277         * tests/test-floorl.c: Likewise.
12278         * tests/test-fnmatch.c: Likewise.
12279         * tests/test-fopen.h: Likewise.
12280         * tests/test-fpending.c: Likewise.
12281         * tests/test-fprintf-posix.c: Likewise.
12282         * tests/test-fpurge.c: Likewise.
12283         * tests/test-freadable.c: Likewise.
12284         * tests/test-freadahead.c: Likewise.
12285         * tests/test-freading.c: Likewise.
12286         * tests/test-freadptr.c: Likewise.
12287         * tests/test-freadptr2.c: Likewise.
12288         * tests/test-freadseek.c: Likewise.
12289         * tests/test-freopen.c: Likewise.
12290         * tests/test-frexp.c: Likewise.
12291         * tests/test-frexpl.c: Likewise.
12292         * tests/test-fseek.c: Likewise.
12293         * tests/test-fseeko.c: Likewise.
12294         * tests/test-fstatat.c: Likewise.
12295         * tests/test-fstrcmp.c: Likewise.
12296         * tests/test-fsync.c: Likewise.
12297         * tests/test-ftell.c: Likewise.
12298         * tests/test-ftello.c: Likewise.
12299         * tests/test-func.c: Likewise.
12300         * tests/test-futimens.c: Likewise.
12301         * tests/test-fwritable.c: Likewise.
12302         * tests/test-fwriting.c: Likewise.
12303         * tests/test-getcwd.c: Likewise.
12304         * tests/test-getdate.c: Likewise.
12305         * tests/test-getdelim.c: Likewise.
12306         * tests/test-getdtablesize.c: Likewise.
12307         * tests/test-getgroups.c: Likewise.
12308         * tests/test-getline.c: Likewise.
12309         * tests/test-getndelim2.c: Likewise.
12310         * tests/test-glob.c: Likewise.
12311         * tests/test-hash.c: Likewise.
12312         * tests/test-i-ring.c: Likewise.
12313         * tests/test-iconv-utf.c: Likewise.
12314         * tests/test-iconv.c: Likewise.
12315         * tests/test-idpriv-drop.c: Likewise.
12316         * tests/test-idpriv-droptemp.c: Likewise.
12317         * tests/test-inet_ntop.c: Likewise.
12318         * tests/test-inet_pton.c: Likewise.
12319         * tests/test-isblank.c: Likewise.
12320         * tests/test-isfinite.c: Likewise.
12321         * tests/test-isinf.c: Likewise.
12322         * tests/test-isnan.c: Likewise.
12323         * tests/test-isnand.h: Likewise.
12324         * tests/test-isnanf.h: Likewise.
12325         * tests/test-isnanl.h: Likewise.
12326         * tests/test-lchown.c: Likewise.
12327         * tests/test-ldexpl.c: Likewise.
12328         * tests/test-link.c: Likewise.
12329         * tests/test-linkat.c: Likewise.
12330         * tests/test-linked_list.c: Likewise.
12331         * tests/test-linkedhash_list.c: Likewise.
12332         * tests/test-localename.c: Likewise.
12333         * tests/test-lseek.c: Likewise.
12334         * tests/test-lstat.c: Likewise.
12335         * tests/test-mbmemcasecmp.c: Likewise.
12336         * tests/test-mbmemcasecoll.c: Likewise.
12337         * tests/test-mbrtowc.c: Likewise.
12338         * tests/test-mbscasecmp.c: Likewise.
12339         * tests/test-mbscasestr1.c: Likewise.
12340         * tests/test-mbscasestr2.c: Likewise.
12341         * tests/test-mbscasestr3.c: Likewise.
12342         * tests/test-mbscasestr4.c: Likewise.
12343         * tests/test-mbschr.c: Likewise.
12344         * tests/test-mbscspn.c: Likewise.
12345         * tests/test-mbsinit.c: Likewise.
12346         * tests/test-mbsncasecmp.c: Likewise.
12347         * tests/test-mbsnrtowcs.c: Likewise.
12348         * tests/test-mbspbrk.c: Likewise.
12349         * tests/test-mbspcasecmp.c: Likewise.
12350         * tests/test-mbsrchr.c: Likewise.
12351         * tests/test-mbsrtowcs.c: Likewise.
12352         * tests/test-mbsspn.c: Likewise.
12353         * tests/test-mbsstr1.c: Likewise.
12354         * tests/test-mbsstr2.c: Likewise.
12355         * tests/test-mbsstr3.c: Likewise.
12356         * tests/test-memchr.c: Likewise.
12357         * tests/test-memchr2.c: Likewise.
12358         * tests/test-memcmp.c: Likewise.
12359         * tests/test-memmem.c: Likewise.
12360         * tests/test-memrchr.c: Likewise.
12361         * tests/test-mkdir.c: Likewise.
12362         * tests/test-mkdirat.c: Likewise.
12363         * tests/test-mkfifo.c: Likewise.
12364         * tests/test-mkfifoat.c: Likewise.
12365         * tests/test-mknod.c: Likewise.
12366         * tests/test-nanosleep.c: Likewise.
12367         * tests/test-nl_langinfo.c: Likewise.
12368         * tests/test-obstack-printf.c: Likewise.
12369         * tests/test-open.c: Likewise.
12370         * tests/test-openat.c: Likewise.
12371         * tests/test-pipe-filter-gi1.c: Likewise.
12372         * tests/test-pipe-filter-gi2-main.c: Likewise.
12373         * tests/test-pipe-filter-ii1.c: Likewise.
12374         * tests/test-pipe-filter-ii2-main.c: Likewise.
12375         * tests/test-pipe2.c: Likewise.
12376         * tests/test-popen.h: Likewise.
12377         * tests/test-posixtm.c: Likewise.
12378         * tests/test-pread.c: Likewise.
12379         * tests/test-printf-frexp.c: Likewise.
12380         * tests/test-printf-frexpl.c: Likewise.
12381         * tests/test-printf-posix.c: Likewise.
12382         * tests/test-priv-set.c: Likewise.
12383         * tests/test-quotearg.c: Likewise.
12384         * tests/test-random_r.c: Likewise.
12385         * tests/test-rawmemchr.c: Likewise.
12386         * tests/test-rbtree_list.c: Likewise.
12387         * tests/test-rbtree_oset.c: Likewise.
12388         * tests/test-rbtreehash_list.c: Likewise.
12389         * tests/test-readlink.c: Likewise.
12390         * tests/test-remove.c: Likewise.
12391         * tests/test-rename.c: Likewise.
12392         * tests/test-renameat.c: Likewise.
12393         * tests/test-rmdir.c: Likewise.
12394         * tests/test-round1.c: Likewise.
12395         * tests/test-roundf1.c: Likewise.
12396         * tests/test-roundl.c: Likewise.
12397         * tests/test-safe-alloc.c: Likewise.
12398         * tests/test-sameacls.c: Likewise.
12399         * tests/test-set-mode-acl.c: Likewise.
12400         * tests/test-setenv.c: Likewise.
12401         * tests/test-sigaction.c: Likewise.
12402         * tests/test-signbit.c: Likewise.
12403         * tests/test-sleep.c: Likewise.
12404         * tests/test-snprintf-posix.c: Likewise.
12405         * tests/test-snprintf.c: Likewise.
12406         * tests/test-sprintf-posix.c: Likewise.
12407         * tests/test-stat-time.c: Likewise.
12408         * tests/test-stat.c: Likewise.
12409         * tests/test-strcasestr.c: Likewise.
12410         * tests/test-strchrnul.c: Likewise.
12411         * tests/test-strerror.c: Likewise.
12412         * tests/test-striconv.c: Likewise.
12413         * tests/test-striconveh.c: Likewise.
12414         * tests/test-striconveha.c: Likewise.
12415         * tests/test-strsignal.c: Likewise.
12416         * tests/test-strstr.c: Likewise.
12417         * tests/test-strtod.c: Likewise.
12418         * tests/test-strverscmp.c: Likewise.
12419         * tests/test-symlink.c: Likewise.
12420         * tests/test-symlinkat.c: Likewise.
12421         * tests/test-trunc1.c: Likewise.
12422         * tests/test-trunc2.c: Likewise.
12423         * tests/test-truncf1.c: Likewise.
12424         * tests/test-truncf2.c: Likewise.
12425         * tests/test-truncl.c: Likewise.
12426         * tests/test-uname.c: Likewise.
12427         * tests/test-unlink.c: Likewise.
12428         * tests/test-unlinkat.c: Likewise.
12429         * tests/test-unsetenv.c: Likewise.
12430         * tests/test-usleep.c: Likewise.
12431         * tests/test-utimens.c: Likewise.
12432         * tests/test-utimensat.c: Likewise.
12433         * tests/test-vasnprintf-posix.c: Likewise.
12434         * tests/test-vasnprintf-posix2.c: Likewise.
12435         * tests/test-vasnprintf.c: Likewise.
12436         * tests/test-vasprintf-posix.c: Likewise.
12437         * tests/test-vasprintf.c: Likewise.
12438         * tests/test-vdprintf-posix.c: Likewise.
12439         * tests/test-vfprintf-posix.c: Likewise.
12440         * tests/test-vprintf-posix.c: Likewise.
12441         * tests/test-vsnprintf-posix.c: Likewise.
12442         * tests/test-vsnprintf.c: Likewise.
12443         * tests/test-vsprintf-posix.c: Likewise.
12444         * tests/test-wcrtomb.c: Likewise.
12445         * tests/test-wcsnrtombs.c: Likewise.
12446         * tests/test-wcsrtombs.c: Likewise.
12447         * tests/test-wctype.c: Likewise.
12448         * tests/test-wcwidth.c: Likewise.
12449         * tests/test-xfprintf-posix.c: Likewise.
12450         * tests/test-xmemdup0.c: Likewise.
12451         * tests/test-xprintf-posix.c: Likewise.
12452         * tests/test-xvasprintf.c: Likewise.
12453         * tests/unicase/test-locale-language.c: Likewise.
12454         * tests/unicase/test-mapping-part1.h: Likewise.
12455         * tests/unicase/test-predicate-part1.h: Likewise.
12456         * tests/unicase/test-u8-casecmp.c: Likewise.
12457         * tests/unicase/test-u8-casecoll.c: Likewise.
12458         * tests/unicase/test-u8-casefold.c: Likewise.
12459         * tests/unicase/test-u8-is-cased.c: Likewise.
12460         * tests/unicase/test-u8-is-casefolded.c: Likewise.
12461         * tests/unicase/test-u8-is-lowercase.c: Likewise.
12462         * tests/unicase/test-u8-is-titlecase.c: Likewise.
12463         * tests/unicase/test-u8-is-uppercase.c: Likewise.
12464         * tests/unicase/test-u8-tolower.c: Likewise.
12465         * tests/unicase/test-u8-totitle.c: Likewise.
12466         * tests/unicase/test-u8-toupper.c: Likewise.
12467         * tests/unicase/test-u16-casecmp.c: Likewise.
12468         * tests/unicase/test-u16-casecoll.c: Likewise.
12469         * tests/unicase/test-u16-casefold.c: Likewise.
12470         * tests/unicase/test-u16-is-cased.c: Likewise.
12471         * tests/unicase/test-u16-is-casefolded.c: Likewise.
12472         * tests/unicase/test-u16-is-lowercase.c: Likewise.
12473         * tests/unicase/test-u16-is-titlecase.c: Likewise.
12474         * tests/unicase/test-u16-is-uppercase.c: Likewise.
12475         * tests/unicase/test-u16-tolower.c: Likewise.
12476         * tests/unicase/test-u16-totitle.c: Likewise.
12477         * tests/unicase/test-u16-toupper.c: Likewise.
12478         * tests/unicase/test-u32-casecmp.c: Likewise.
12479         * tests/unicase/test-u32-casecoll.c: Likewise.
12480         * tests/unicase/test-u32-casefold.c: Likewise.
12481         * tests/unicase/test-u32-is-cased.c: Likewise.
12482         * tests/unicase/test-u32-is-casefolded.c: Likewise.
12483         * tests/unicase/test-u32-is-lowercase.c: Likewise.
12484         * tests/unicase/test-u32-is-titlecase.c: Likewise.
12485         * tests/unicase/test-u32-is-uppercase.c: Likewise.
12486         * tests/unicase/test-u32-tolower.c: Likewise.
12487         * tests/unicase/test-u32-totitle.c: Likewise.
12488         * tests/unicase/test-u32-toupper.c: Likewise.
12489         * tests/unicase/test-ulc-casecmp.c: Likewise.
12490         * tests/unicase/test-ulc-casecoll.c: Likewise.
12491         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
12492         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
12493         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
12494         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
12495         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
12496         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
12497         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
12498         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
12499         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
12500         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
12501         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
12502         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
12503         * tests/unictype/test-bidi_byname.c: Likewise.
12504         * tests/unictype/test-bidi_name.c: Likewise.
12505         * tests/unictype/test-bidi_of.c: Likewise.
12506         * tests/unictype/test-bidi_test.c: Likewise.
12507         * tests/unictype/test-block_list.c: Likewise.
12508         * tests/unictype/test-block_of.c: Likewise.
12509         * tests/unictype/test-block_test.c: Likewise.
12510         * tests/unictype/test-categ_and.c: Likewise.
12511         * tests/unictype/test-categ_and_not.c: Likewise.
12512         * tests/unictype/test-categ_byname.c: Likewise.
12513         * tests/unictype/test-categ_name.c: Likewise.
12514         * tests/unictype/test-categ_none.c: Likewise.
12515         * tests/unictype/test-categ_of.c: Likewise.
12516         * tests/unictype/test-categ_or.c: Likewise.
12517         * tests/unictype/test-categ_test_withtable.c: Likewise.
12518         * tests/unictype/test-combining.c: Likewise.
12519         * tests/unictype/test-decdigit.c: Likewise.
12520         * tests/unictype/test-digit.c: Likewise.
12521         * tests/unictype/test-mirror.c: Likewise.
12522         * tests/unictype/test-numeric.c: Likewise.
12523         * tests/unictype/test-pr_byname.c: Likewise.
12524         * tests/unictype/test-pr_test.c: Likewise.
12525         * tests/unictype/test-predicate-part1.h: Likewise.
12526         * tests/unictype/test-scripts.c: Likewise.
12527         * tests/unictype/test-sy_c_ident.c: Likewise.
12528         * tests/unictype/test-sy_java_ident.c: Likewise.
12529         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
12530         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
12531         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
12532         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
12533         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
12534         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
12535         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
12536         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
12537         * tests/uninorm/test-canonical-decomposition.c: Likewise.
12538         * tests/uninorm/test-compat-decomposition.c: Likewise.
12539         * tests/uninorm/test-composition.c: Likewise.
12540         * tests/uninorm/test-decomposing-form.c: Likewise.
12541         * tests/uninorm/test-decomposition.c: Likewise.
12542         * tests/uninorm/test-u8-nfc.c: Likewise.
12543         * tests/uninorm/test-u8-nfd.c: Likewise.
12544         * tests/uninorm/test-u8-nfkc.c: Likewise.
12545         * tests/uninorm/test-u8-nfkd.c: Likewise.
12546         * tests/uninorm/test-u8-normcmp.c: Likewise.
12547         * tests/uninorm/test-u8-normcoll.c: Likewise.
12548         * tests/uninorm/test-u16-nfc.c: Likewise.
12549         * tests/uninorm/test-u16-nfd.c: Likewise.
12550         * tests/uninorm/test-u16-nfkc.c: Likewise.
12551         * tests/uninorm/test-u16-nfkd.c: Likewise.
12552         * tests/uninorm/test-u16-normcmp.c: Likewise.
12553         * tests/uninorm/test-u16-normcoll.c: Likewise.
12554         * tests/uninorm/test-u32-nfc.c: Likewise.
12555         * tests/uninorm/test-u32-nfd.c: Likewise.
12556         * tests/uninorm/test-u32-nfkc.c: Likewise.
12557         * tests/uninorm/test-u32-nfkd.c: Likewise.
12558         * tests/uninorm/test-u32-normalize-big.c: Likewise.
12559         * tests/uninorm/test-u32-normcmp.c: Likewise.
12560         * tests/uninorm/test-u32-normcoll.c: Likewise.
12561         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
12562         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
12563         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
12564         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
12565         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
12566         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
12567         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
12568         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
12569         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
12570         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
12571         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
12572         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
12573         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
12574         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
12575         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
12576         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
12577         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
12578         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
12579         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
12580         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
12581         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
12582         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
12583         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
12584         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
12585         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
12586         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
12587         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
12588         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
12589         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
12590         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
12591         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
12592         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
12593         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
12594         * tests/uniwidth/test-u8-strwidth.c: Likewise.
12595         * tests/uniwidth/test-u8-width.c: Likewise.
12596         * tests/uniwidth/test-u16-strwidth.c: Likewise.
12597         * tests/uniwidth/test-u16-width.c: Likewise.
12598         * tests/uniwidth/test-u32-strwidth.c: Likewise.
12599         * tests/uniwidth/test-u32-width.c: Likewise.
12600         * tests/uniwidth/test-uc_width.c: Likewise.
12601         * tests/uniwidth/test-uc_width2.c: Likewise.
12602         * modules/acl-tests (Files): Add tests/macros.h.
12603         * modules/areadlink-tests (Files): Likewise.
12604         * modules/areadlink-with-size-tests (Files): Likewise.
12605         * modules/areadlinkat-tests (Files): Likewise.
12606         * modules/areadlinkat-with-size-tests (Files): Likewise.
12607         * modules/argmatch-tests (Files): Likewise.
12608         * modules/argv-iter-tests (Files): Likewise.
12609         * modules/array-list-tests (Files): Likewise.
12610         * modules/array-mergesort-tests (Files): Likewise.
12611         * modules/array-oset-tests (Files): Likewise.
12612         * modules/avltree-list-tests (Files): Likewise.
12613         * modules/avltree-oset-tests (Files): Likewise.
12614         * modules/avltreehash-list-tests (Files): Likewise.
12615         * modules/base64-tests (Files): Likewise.
12616         * modules/binary-io-tests (Files): Likewise.
12617         * modules/bitrotate-tests (Files): Likewise.
12618         * modules/btowc-tests (Files): Likewise.
12619         * modules/byteswap-tests (Files): Likewise.
12620         * modules/c-ctype-tests (Files): Likewise.
12621         * modules/c-stack-tests (Files): Likewise.
12622         * modules/c-strcase-tests (Files): Likewise.
12623         * modules/c-strcasestr-tests (Files): Likewise.
12624         * modules/c-strstr-tests (Files): Likewise.
12625         * modules/canonicalize-lgpl-tests (Files): Likewise.
12626         * modules/canonicalize-tests (Files): Likewise.
12627         * modules/carray-list-tests (Files): Likewise.
12628         * modules/ceilf-tests (Files): Likewise.
12629         * modules/ceill-tests (Files): Likewise.
12630         * modules/chown-tests (Files): Likewise.
12631         * modules/cloexec-tests (Files): Likewise.
12632         * modules/copy-file-tests (Files): Likewise.
12633         * modules/count-one-bits-tests (Files): Likewise.
12634         * modules/dprintf-posix-tests (Files): Likewise.
12635         * modules/dup2-tests (Files): Likewise.
12636         * modules/dup3-tests (Files): Likewise.
12637         * modules/duplocale-tests (Files): Likewise.
12638         * modules/fbufmode-tests (Files): Likewise.
12639         * modules/fchdir-tests (Files): Likewise.
12640         * modules/fcntl-safer-tests (Files): Likewise.
12641         * modules/fcntl-tests (Files): Likewise.
12642         * modules/fdopendir-tests (Files): Likewise.
12643         * modules/fdutimensat-tests (Files): Likewise.
12644         * modules/fflush-tests (Files): Likewise.
12645         * modules/filevercmp-tests (Files): Likewise.
12646         * modules/flock-tests (Files): Likewise.
12647         * modules/floorf-tests (Files): Likewise.
12648         * modules/floorl-tests (Files): Likewise.
12649         * modules/fnmatch-tests (Files): Likewise.
12650         * modules/fopen-safer-tests (Files): Likewise.
12651         * modules/fopen-tests (Files): Likewise.
12652         * modules/fpending-tests (Files): Likewise.
12653         * modules/fprintf-posix-tests (Files): Likewise.
12654         * modules/fpurge-tests (Files): Likewise.
12655         * modules/freadable-tests (Files): Likewise.
12656         * modules/freadahead-tests (Files): Likewise.
12657         * modules/freading-tests (Files): Likewise.
12658         * modules/freadptr-tests (Files): Likewise.
12659         * modules/freadseek-tests (Files): Likewise.
12660         * modules/freopen-tests (Files): Likewise.
12661         * modules/frexp-nolibm-tests (Files): Likewise.
12662         * modules/frexp-tests (Files): Likewise.
12663         * modules/frexpl-nolibm-tests (Files): Likewise.
12664         * modules/frexpl-tests (Files): Likewise.
12665         * modules/fseek-tests (Files): Likewise.
12666         * modules/fseeko-tests (Files): Likewise.
12667         * modules/fstrcmp-tests (Files): Likewise.
12668         * modules/fsync-tests (Files): Likewise.
12669         * modules/ftell-tests (Files): Likewise.
12670         * modules/ftello-tests (Files): Likewise.
12671         * modules/func-tests (Files): Likewise.
12672         * modules/futimens-tests (Files): Likewise.
12673         * modules/fwritable-tests (Files): Likewise.
12674         * modules/fwriting-tests (Files): Likewise.
12675         * modules/getcwd-tests (Files): Likewise.
12676         * modules/getdate-tests (Files): Likewise.
12677         * modules/getdelim-tests (Files): Likewise.
12678         * modules/getdtablesize-tests (Files): Likewise.
12679         * modules/getgroups-tests (Files): Likewise.
12680         * modules/getline-tests (Files): Likewise.
12681         * modules/getndelim2-tests (Files): Likewise.
12682         * modules/glob-tests (Files): Likewise.
12683         * modules/hash-tests (Files): Likewise.
12684         * modules/i-ring-tests (Files): Likewise.
12685         * modules/iconv-tests (Files): Likewise.
12686         * modules/iconv_open-utf-tests (Files): Likewise.
12687         * modules/idpriv-drop-tests (Files): Likewise.
12688         * modules/idpriv-droptemp-tests (Files): Likewise.
12689         * modules/inet_ntop-tests (Files): Likewise.
12690         * modules/inet_pton-tests (Files): Likewise.
12691         * modules/isblank-tests (Files): Likewise.
12692         * modules/isfinite-tests (Files): Likewise.
12693         * modules/isinf-tests (Files): Likewise.
12694         * modules/isnan-tests (Files): Likewise.
12695         * modules/isnand-nolibm-tests (Files): Likewise.
12696         * modules/isnand-tests (Files): Likewise.
12697         * modules/isnanf-nolibm-tests (Files): Likewise.
12698         * modules/isnanf-tests (Files): Likewise.
12699         * modules/isnanl-nolibm-tests (Files): Likewise.
12700         * modules/isnanl-tests (Files): Likewise.
12701         * modules/lchown-tests (Files): Likewise.
12702         * modules/ldexpl-tests (Files): Likewise.
12703         * modules/link-tests (Files): Likewise.
12704         * modules/linkat-tests (Files): Likewise.
12705         * modules/linked-list-tests (Files): Likewise.
12706         * modules/linkedhash-list-tests (Files): Likewise.
12707         * modules/localename-tests (Files): Likewise.
12708         * modules/lseek-tests (Files): Likewise.
12709         * modules/lstat-tests (Files): Likewise.
12710         * modules/mbmemcasecmp-tests (Files): Likewise.
12711         * modules/mbmemcasecoll-tests (Files): Likewise.
12712         * modules/mbrtowc-tests (Files): Likewise.
12713         * modules/mbscasecmp-tests (Files): Likewise.
12714         * modules/mbscasestr-tests (Files): Likewise.
12715         * modules/mbschr-tests (Files): Likewise.
12716         * modules/mbscspn-tests (Files): Likewise.
12717         * modules/mbsinit-tests (Files): Likewise.
12718         * modules/mbsncasecmp-tests (Files): Likewise.
12719         * modules/mbsnrtowcs-tests (Files): Likewise.
12720         * modules/mbspbrk-tests (Files): Likewise.
12721         * modules/mbspcasecmp-tests (Files): Likewise.
12722         * modules/mbsrchr-tests (Files): Likewise.
12723         * modules/mbsrtowcs-tests (Files): Likewise.
12724         * modules/mbsspn-tests (Files): Likewise.
12725         * modules/mbsstr-tests (Files): Likewise.
12726         * modules/memchr-tests (Files): Likewise.
12727         * modules/memchr2-tests (Files): Likewise.
12728         * modules/memcmp-tests (Files): Likewise.
12729         * modules/memmem-tests (Files): Likewise.
12730         * modules/memrchr-tests (Files): Likewise.
12731         * modules/mkdir-tests (Files): Likewise.
12732         * modules/mkfifo-tests (Files): Likewise.
12733         * modules/mkfifoat-tests (Files): Likewise.
12734         * modules/mknod-tests (Files): Likewise.
12735         * modules/nanosleep-tests (Files): Likewise.
12736         * modules/nl_langinfo-tests (Files): Likewise.
12737         * modules/obstack-printf-tests (Files): Likewise.
12738         * modules/open-tests (Files): Likewise.
12739         * modules/openat-tests (Files): Likewise.
12740         * modules/pipe-filter-gi-tests (Files): Likewise.
12741         * modules/pipe-filter-ii-tests (Files): Likewise.
12742         * modules/pipe2-tests (Files): Likewise.
12743         * modules/popen-safer-tests (Files): Likewise.
12744         * modules/popen-tests (Files): Likewise.
12745         * modules/posixtm-tests (Files): Likewise.
12746         * modules/pread-tests (Files): Likewise.
12747         * modules/printf-frexp-tests (Files): Likewise.
12748         * modules/printf-frexpl-tests (Files): Likewise.
12749         * modules/printf-posix-tests (Files): Likewise.
12750         * modules/priv-set-tests (Files): Likewise.
12751         * modules/quotearg-tests (Files): Likewise.
12752         * modules/random_r-tests (Files): Likewise.
12753         * modules/rawmemchr-tests (Files): Likewise.
12754         * modules/rbtree-list-tests (Files): Likewise.
12755         * modules/rbtree-oset-tests (Files): Likewise.
12756         * modules/rbtreehash-list-tests (Files): Likewise.
12757         * modules/readlink-tests (Files): Likewise.
12758         * modules/remove-tests (Files): Likewise.
12759         * modules/rename-tests (Files): Likewise.
12760         * modules/renameat-tests (Files): Likewise.
12761         * modules/rmdir-tests (Files): Likewise.
12762         * modules/round-tests (Files): Likewise.
12763         * modules/roundf-tests (Files): Likewise.
12764         * modules/roundl-tests (Files): Likewise.
12765         * modules/safe-alloc-tests (Files): Likewise.
12766         * modules/setenv-tests (Files): Likewise.
12767         * modules/sigaction-tests (Files): Likewise.
12768         * modules/signbit-tests (Files): Likewise.
12769         * modules/sleep-tests (Files): Likewise.
12770         * modules/snprintf-posix-tests (Files): Likewise.
12771         * modules/snprintf-tests (Files): Likewise.
12772         * modules/sprintf-posix-tests (Files): Likewise.
12773         * modules/stat-tests (Files): Likewise.
12774         * modules/stat-time-tests (Files): Likewise.
12775         * modules/strcasestr-tests (Files): Likewise.
12776         * modules/strchrnul-tests (Files): Likewise.
12777         * modules/strerror-tests (Files): Likewise.
12778         * modules/striconv-tests (Files): Likewise.
12779         * modules/striconveh-tests (Files): Likewise.
12780         * modules/striconveha-tests (Files): Likewise.
12781         * modules/strsignal-tests (Files): Likewise.
12782         * modules/strstr-tests (Files): Likewise.
12783         * modules/strtod-tests (Files): Likewise.
12784         * modules/strverscmp-tests (Files): Likewise.
12785         * modules/symlink-tests (Files): Likewise.
12786         * modules/symlinkat-tests (Files): Likewise.
12787         * modules/trunc-tests (Files): Likewise.
12788         * modules/truncf-tests (Files): Likewise.
12789         * modules/truncl-tests (Files): Likewise.
12790         * modules/uname-tests (Files): Likewise.
12791         * modules/unicase/cased-tests (Files): Likewise.
12792         * modules/unicase/ignorable-tests (Files): Likewise.
12793         * modules/unicase/locale-language-tests (Files): Likewise.
12794         * modules/unicase/tolower-tests (Files): Likewise.
12795         * modules/unicase/totitle-tests (Files): Likewise.
12796         * modules/unicase/toupper-tests (Files): Likewise.
12797         * modules/unicase/u8-casecmp-tests (Files): Likewise.
12798         * modules/unicase/u8-casecoll-tests (Files): Likewise.
12799         * modules/unicase/u8-casefold-tests (Files): Likewise.
12800         * modules/unicase/u8-is-cased-tests (Files): Likewise.
12801         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
12802         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
12803         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
12804         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
12805         * modules/unicase/u8-tolower-tests (Files): Likewise.
12806         * modules/unicase/u8-totitle-tests (Files): Likewise.
12807         * modules/unicase/u8-toupper-tests (Files): Likewise.
12808         * modules/unicase/u16-casecmp-tests (Files): Likewise.
12809         * modules/unicase/u16-casecoll-tests (Files): Likewise.
12810         * modules/unicase/u16-casefold-tests (Files): Likewise.
12811         * modules/unicase/u16-is-cased-tests (Files): Likewise.
12812         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
12813         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
12814         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
12815         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
12816         * modules/unicase/u16-tolower-tests (Files): Likewise.
12817         * modules/unicase/u16-totitle-tests (Files): Likewise.
12818         * modules/unicase/u16-toupper-tests (Files): Likewise.
12819         * modules/unicase/u32-casecmp-tests (Files): Likewise.
12820         * modules/unicase/u32-casecoll-tests (Files): Likewise.
12821         * modules/unicase/u32-casefold-tests (Files): Likewise.
12822         * modules/unicase/u32-is-cased-tests (Files): Likewise.
12823         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
12824         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
12825         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
12826         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
12827         * modules/unicase/u32-tolower-tests (Files): Likewise.
12828         * modules/unicase/u32-totitle-tests (Files): Likewise.
12829         * modules/unicase/u32-toupper-tests (Files): Likewise.
12830         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
12831         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
12832         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
12833         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
12834         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
12835         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
12836         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
12837         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
12838         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
12839         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
12840         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
12841         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
12842         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
12843         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
12844         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
12845         * modules/unictype/bidicategory-name-tests (Files): Likewise.
12846         * modules/unictype/bidicategory-of-tests (Files): Likewise.
12847         * modules/unictype/bidicategory-test-tests (Files): Likewise.
12848         * modules/unictype/block-list-tests (Files): Likewise.
12849         * modules/unictype/block-of-tests (Files): Likewise.
12850         * modules/unictype/block-test-tests (Files): Likewise.
12851         * modules/unictype/category-C-tests (Files): Likewise.
12852         * modules/unictype/category-Cc-tests (Files): Likewise.
12853         * modules/unictype/category-Cf-tests (Files): Likewise.
12854         * modules/unictype/category-Cn-tests (Files): Likewise.
12855         * modules/unictype/category-Co-tests (Files): Likewise.
12856         * modules/unictype/category-Cs-tests (Files): Likewise.
12857         * modules/unictype/category-L-tests (Files): Likewise.
12858         * modules/unictype/category-Ll-tests (Files): Likewise.
12859         * modules/unictype/category-Lm-tests (Files): Likewise.
12860         * modules/unictype/category-Lo-tests (Files): Likewise.
12861         * modules/unictype/category-Lt-tests (Files): Likewise.
12862         * modules/unictype/category-Lu-tests (Files): Likewise.
12863         * modules/unictype/category-M-tests (Files): Likewise.
12864         * modules/unictype/category-Mc-tests (Files): Likewise.
12865         * modules/unictype/category-Me-tests (Files): Likewise.
12866         * modules/unictype/category-Mn-tests (Files): Likewise.
12867         * modules/unictype/category-N-tests (Files): Likewise.
12868         * modules/unictype/category-Nd-tests (Files): Likewise.
12869         * modules/unictype/category-Nl-tests (Files): Likewise.
12870         * modules/unictype/category-No-tests (Files): Likewise.
12871         * modules/unictype/category-P-tests (Files): Likewise.
12872         * modules/unictype/category-Pc-tests (Files): Likewise.
12873         * modules/unictype/category-Pd-tests (Files): Likewise.
12874         * modules/unictype/category-Pe-tests (Files): Likewise.
12875         * modules/unictype/category-Pf-tests (Files): Likewise.
12876         * modules/unictype/category-Pi-tests (Files): Likewise.
12877         * modules/unictype/category-Po-tests (Files): Likewise.
12878         * modules/unictype/category-Ps-tests (Files): Likewise.
12879         * modules/unictype/category-S-tests (Files): Likewise.
12880         * modules/unictype/category-Sc-tests (Files): Likewise.
12881         * modules/unictype/category-Sk-tests (Files): Likewise.
12882         * modules/unictype/category-Sm-tests (Files): Likewise.
12883         * modules/unictype/category-So-tests (Files): Likewise.
12884         * modules/unictype/category-Z-tests (Files): Likewise.
12885         * modules/unictype/category-Zl-tests (Files): Likewise.
12886         * modules/unictype/category-Zp-tests (Files): Likewise.
12887         * modules/unictype/category-Zs-tests (Files): Likewise.
12888         * modules/unictype/category-and-not-tests (Files): Likewise.
12889         * modules/unictype/category-and-tests (Files): Likewise.
12890         * modules/unictype/category-byname-tests (Files): Likewise.
12891         * modules/unictype/category-name-tests (Files): Likewise.
12892         * modules/unictype/category-none-tests (Files): Likewise.
12893         * modules/unictype/category-of-tests (Files): Likewise.
12894         * modules/unictype/category-or-tests (Files): Likewise.
12895         * modules/unictype/category-test-withtable-tests (Files): Likewise.
12896         * modules/unictype/combining-class-tests (Files): Likewise.
12897         * modules/unictype/ctype-alnum-tests (Files): Likewise.
12898         * modules/unictype/ctype-alpha-tests (Files): Likewise.
12899         * modules/unictype/ctype-blank-tests (Files): Likewise.
12900         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
12901         * modules/unictype/ctype-digit-tests (Files): Likewise.
12902         * modules/unictype/ctype-graph-tests (Files): Likewise.
12903         * modules/unictype/ctype-lower-tests (Files): Likewise.
12904         * modules/unictype/ctype-print-tests (Files): Likewise.
12905         * modules/unictype/ctype-punct-tests (Files): Likewise.
12906         * modules/unictype/ctype-space-tests (Files): Likewise.
12907         * modules/unictype/ctype-upper-tests (Files): Likewise.
12908         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
12909         * modules/unictype/decimal-digit-tests (Files): Likewise.
12910         * modules/unictype/digit-tests (Files): Likewise.
12911         * modules/unictype/mirror-tests (Files): Likewise.
12912         * modules/unictype/numeric-tests (Files): Likewise.
12913         * modules/unictype/property-alphabetic-tests (Files): Likewise.
12914         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
12915         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
12916         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
12917         Likewise.
12918         * modules/unictype/property-bidi-block-separator-tests (Files):
12919         Likewise.
12920         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
12921         Likewise.
12922         * modules/unictype/property-bidi-common-separator-tests (Files):
12923         Likewise.
12924         * modules/unictype/property-bidi-control-tests (Files): Likewise.
12925         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
12926         Likewise.
12927         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
12928         Likewise.
12929         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
12930         Likewise.
12931         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
12932         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
12933         Likewise.
12934         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
12935         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
12936         Likewise.
12937         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
12938         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
12939         * modules/unictype/property-bidi-segment-separator-tests (Files):
12940         Likewise.
12941         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
12942         * modules/unictype/property-byname-tests (Files): Likewise.
12943         * modules/unictype/property-combining-tests (Files): Likewise.
12944         * modules/unictype/property-composite-tests (Files): Likewise.
12945         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
12946         * modules/unictype/property-dash-tests (Files): Likewise.
12947         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
12948         * modules/unictype/property-default-ignorable-code-point-tests (Files):
12949         Likewise.
12950         * modules/unictype/property-deprecated-tests (Files): Likewise.
12951         * modules/unictype/property-diacritic-tests (Files): Likewise.
12952         * modules/unictype/property-extender-tests (Files): Likewise.
12953         * modules/unictype/property-format-control-tests (Files): Likewise.
12954         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
12955         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
12956         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
12957         * modules/unictype/property-hex-digit-tests (Files): Likewise.
12958         * modules/unictype/property-hyphen-tests (Files): Likewise.
12959         * modules/unictype/property-id-continue-tests (Files): Likewise.
12960         * modules/unictype/property-id-start-tests (Files): Likewise.
12961         * modules/unictype/property-ideographic-tests (Files): Likewise.
12962         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
12963         * modules/unictype/property-ids-trinary-operator-tests (Files):
12964         Likewise.
12965         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
12966         * modules/unictype/property-iso-control-tests (Files): Likewise.
12967         * modules/unictype/property-join-control-tests (Files): Likewise.
12968         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
12969         * modules/unictype/property-line-separator-tests (Files): Likewise.
12970         * modules/unictype/property-logical-order-exception-tests (Files):
12971         Likewise.
12972         * modules/unictype/property-lowercase-tests (Files): Likewise.
12973         * modules/unictype/property-math-tests (Files): Likewise.
12974         * modules/unictype/property-non-break-tests (Files): Likewise.
12975         * modules/unictype/property-not-a-character-tests (Files): Likewise.
12976         * modules/unictype/property-numeric-tests (Files): Likewise.
12977         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
12978         * modules/unictype/property-other-default-ignorable-code-point-tests
12979         (Files): Likewise.
12980         * modules/unictype/property-other-grapheme-extend-tests (Files):
12981         Likewise.
12982         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
12983         * modules/unictype/property-other-id-start-tests (Files): Likewise.
12984         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
12985         * modules/unictype/property-other-math-tests (Files): Likewise.
12986         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
12987         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
12988         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
12989         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
12990         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
12991         * modules/unictype/property-private-use-tests (Files): Likewise.
12992         * modules/unictype/property-punctuation-tests (Files): Likewise.
12993         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
12994         * modules/unictype/property-radical-tests (Files): Likewise.
12995         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
12996         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
12997         * modules/unictype/property-space-tests (Files): Likewise.
12998         * modules/unictype/property-terminal-punctuation-tests (Files):
12999         Likewise.
13000         * modules/unictype/property-test-tests (Files): Likewise.
13001         * modules/unictype/property-titlecase-tests (Files): Likewise.
13002         * modules/unictype/property-unassigned-code-value-tests (Files):
13003         Likewise.
13004         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
13005         * modules/unictype/property-uppercase-tests (Files): Likewise.
13006         * modules/unictype/property-variation-selector-tests (Files): Likewise.
13007         * modules/unictype/property-white-space-tests (Files): Likewise.
13008         * modules/unictype/property-xid-continue-tests (Files): Likewise.
13009         * modules/unictype/property-xid-start-tests (Files): Likewise.
13010         * modules/unictype/property-zero-width-tests (Files): Likewise.
13011         * modules/unictype/scripts-tests (Files): Likewise.
13012         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
13013         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
13014         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
13015         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
13016         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
13017         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
13018         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
13019         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
13020         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
13021         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
13022         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
13023         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
13024         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
13025         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
13026         * modules/uninorm/composition-tests (Files): Likewise.
13027         * modules/uninorm/decomposing-form-tests (Files): Likewise.
13028         * modules/uninorm/decomposition-tests (Files): Likewise.
13029         * modules/uninorm/filter-tests (Files): Likewise.
13030         * modules/uninorm/nfc-tests (Files): Likewise.
13031         * modules/uninorm/nfd-tests (Files): Likewise.
13032         * modules/uninorm/nfkc-tests (Files): Likewise.
13033         * modules/uninorm/nfkd-tests (Files): Likewise.
13034         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
13035         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
13036         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
13037         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
13038         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
13039         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
13040         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
13041         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
13042         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
13043         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
13044         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
13045         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
13046         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
13047         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
13048         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
13049         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
13050         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
13051         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
13052         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
13053         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
13054         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
13055         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
13056         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
13057         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
13058         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
13059         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
13060         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
13061         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
13062         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
13063         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
13064         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
13065         * modules/uniwidth/u8-width-tests (Files): Likewise.
13066         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
13067         * modules/uniwidth/u16-width-tests (Files): Likewise.
13068         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
13069         * modules/uniwidth/u32-width-tests (Files): Likewise.
13070         * modules/uniwidth/width-tests (Files): Likewise.
13071         * modules/unlink-tests (Files): Likewise.
13072         * modules/unsetenv-tests (Files): Likewise.
13073         * modules/usleep-tests (Files): Likewise.
13074         * modules/utimens-tests (Files): Likewise.
13075         * modules/utimensat-tests (Files): Likewise.
13076         * modules/vasnprintf-posix-tests (Files): Likewise.
13077         * modules/vasnprintf-tests (Files): Likewise.
13078         * modules/vasprintf-posix-tests (Files): Likewise.
13079         * modules/vasprintf-tests (Files): Likewise.
13080         * modules/vdprintf-posix-tests (Files): Likewise.
13081         * modules/vfprintf-posix-tests (Files): Likewise.
13082         * modules/vprintf-posix-tests (Files): Likewise.
13083         * modules/vsnprintf-posix-tests (Files): Likewise.
13084         * modules/vsnprintf-tests (Files): Likewise.
13085         * modules/vsprintf-posix-tests (Files): Likewise.
13086         * modules/wcrtomb-tests (Files): Likewise.
13087         * modules/wcsnrtombs-tests (Files): Likewise.
13088         * modules/wcsrtombs-tests (Files): Likewise.
13089         * modules/wctype-tests (Files): Likewise.
13090         * modules/wcwidth-tests (Files): Likewise.
13091         * modules/xmemdup0-tests (Files): Likewise.
13092         * modules/xprintf-posix-tests (Files): Likewise.
13093         * modules/xvasprintf-tests (Files): Likewise.
13094
13095 2009-12-24  Eric Blake  <ebb9@byu.net>
13096
13097         test-nanosleep: fix typo
13098         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
13099         patch.
13100         Reported by Bruno Haible.
13101
13102 2009-12-24  Bruno Haible  <bruno@clisp.org>
13103
13104         Reduce namespace pollution on glibc systems.
13105         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
13106         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
13107         systems.
13108         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
13109         <getopt.h> on glibc systems.
13110         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
13111         systems.
13112         * lib/fcntl.c: Include <unistd.h> here instead.
13113
13114 2009-12-24  Bruno Haible  <bruno@clisp.org>
13115
13116         * lib/stdlib.in.h (includes): Fix typo in today's commit.
13117
13118 2009-12-24  Eric Blake  <ebb9@byu.net>
13119
13120         tests: add signature checks
13121         * tests/signature.h (SIGNATURE_CHECK): New file.
13122         * modules/atexit-tests (Files): Use it.
13123         * modules/btowc-tests (Files): Likewise.
13124         * modules/canonicalize-lgpl-tests (Files): Likewise.
13125         * modules/ceilf-tests (Files): Likewise.
13126         * modules/ceill-tests (Files): Likewise.
13127         * modules/chown-tests (Files): Likewise.
13128         * modules/dprintf-posix-tests (Files): Likewise.
13129         * modules/dup2-tests (Files): Likewise.
13130         * modules/dup3-tests (Files): Likewise.
13131         * modules/duplocale-tests (Files): Likewise.
13132         * modules/fchdir-tests (Files): Likewise.
13133         * modules/fcntl-tests (Files): Likewise.
13134         * modules/fdopendir-tests (Files): Likewise.
13135         * modules/fflush-tests (Files): Likewise.
13136         * modules/flock-tests (Files): Likewise.
13137         * modules/floorf-tests (Files): Likewise.
13138         * modules/floorl-tests (Files): Likewise.
13139         * modules/fnmatch-tests (Files): Likewise.
13140         * modules/fopen-tests (Files): Likewise.
13141         * modules/fprintf-posix-tests (Files): Likewise.
13142         * modules/freopen-tests (Files): Likewise.
13143         * modules/frexp-nolibm-tests (Files): Likewise.
13144         * modules/frexp-tests (Files): Likewise.
13145         * modules/frexpl-nolibm-tests (Files): Likewise.
13146         * modules/frexpl-tests (Files): Likewise.
13147         * modules/fseek-tests (Files): Likewise.
13148         * modules/fseeko-tests (Files): Likewise.
13149         * modules/fsync-tests (Files): Likewise.
13150         * modules/ftell-tests (Files): Likewise.
13151         * modules/ftello-tests (Files): Likewise.
13152         * modules/futimens-tests (Files): Likewise.
13153         * modules/getaddrinfo-tests (Files): Likewise.
13154         * modules/getcwd-tests (Files): Likewise.
13155         * modules/getdelim-tests (Files): Likewise.
13156         * modules/getdtablesize-tests (Files): Likewise.
13157         * modules/getgroups-tests (Files): Likewise.
13158         * modules/gethostname-tests (Files): Likewise.
13159         * modules/getline-tests (Files): Likewise.
13160         * modules/getopt-posix-tests (Files): Likewise.
13161         * modules/gettimeofday-tests (Files): Likewise.
13162         * modules/glob-tests (Files): Likewise.
13163         * modules/iconv-tests (Files): Likewise.
13164         * modules/inet_ntop-tests (Files): Likewise.
13165         * modules/inet_pton-tests (Files): Likewise.
13166         * modules/isblank-tests (Files): Likewise.
13167         * modules/lchown-tests (Files): Likewise.
13168         * modules/ldexpl-tests (Files): Likewise.
13169         * modules/link-tests (Files): Likewise.
13170         * modules/linkat-tests (Files): Likewise.
13171         * modules/lseek-tests (Files): Likewise.
13172         * modules/lstat-tests (Files): Likewise.
13173         * modules/mbrtowc-tests (Files): Likewise.
13174         * modules/mbsinit-tests (Files): Likewise.
13175         * modules/mbsnrtowcs-tests (Files): Likewise.
13176         * modules/mbsrtowcs-tests (Files): Likewise.
13177         * modules/memchr-tests (Files): Likewise.
13178         * modules/memcmp-tests (Files): Likewise.
13179         * modules/memmem-tests (Files): Likewise.
13180         * modules/memrchr-tests (Files): Likewise.
13181         * modules/mkdir-tests (Files): Likewise.
13182         * modules/mkfifo-tests (Files): Likewise.
13183         * modules/mkfifoat-tests (Files): Likewise.
13184         * modules/mknod-tests (Files): Likewise.
13185         * modules/nanosleep-tests (Files): Likewise.
13186         * modules/nl_langinfo-tests (Files): Likewise.
13187         * modules/obstack-printf-tests (Files): Likewise.
13188         * modules/open-tests (Files): Likewise.
13189         * modules/openat-tests (Files): Likewise.
13190         * modules/perror-tests (Files): Likewise.
13191         * modules/pipe2-tests (Files): Likewise.
13192         * modules/poll-tests (Files): Likewise.
13193         * modules/popen-tests (Files): Likewise.
13194         * modules/posix_spawn-tests (Files): Likewise.
13195         * modules/posix_spawnp-tests (Files): Likewise.
13196         * modules/pread-tests (Files): Likewise.
13197         * modules/printf-posix-tests (Files): Likewise.
13198         * modules/pty-tests (Files): Likewise.
13199         * modules/random_r-tests (Files): Likewise.
13200         * modules/rawmemchr-tests (Files): Likewise.
13201         * modules/readlink-tests (Files): Likewise.
13202         * modules/remove-tests (Files): Likewise.
13203         * modules/rename-tests (Files): Likewise.
13204         * modules/renameat-tests (Files): Likewise.
13205         * modules/rmdir-tests (Files): Likewise.
13206         * modules/round-tests (Files): Likewise.
13207         * modules/roundf-tests (Files): Likewise.
13208         * modules/roundl-tests (Files): Likewise.
13209         * modules/select-tests (Files): Likewise.
13210         * modules/setenv-tests (Files): Likewise.
13211         * modules/sigaction-tests (Files): Likewise.
13212         * modules/sleep-tests (Files): Likewise.
13213         * modules/snprintf-posix-tests (Files): Likewise.
13214         * modules/snprintf-tests (Files): Likewise.
13215         * modules/sprintf-posix-tests (Files): Likewise.
13216         * modules/stat-tests (Files): Likewise.
13217         * modules/strcasestr-tests (Files): Likewise.
13218         * modules/strchrnul-tests (Files): Likewise.
13219         * modules/strerror-tests (Files): Likewise.
13220         * modules/strsignal-tests (Files): Likewise.
13221         * modules/strstr-tests (Files): Likewise.
13222         * modules/strtod-tests (Files): Likewise.
13223         * modules/strverscmp-tests (Files): Likewise.
13224         * modules/symlink-tests (Files): Likewise.
13225         * modules/symlinkat-tests (Files): Likewise.
13226         * modules/times-tests (Files): Likewise.
13227         * modules/trunc-tests (Files): Likewise.
13228         * modules/truncf-tests (Files): Likewise.
13229         * modules/truncl-tests (Files): Likewise.
13230         * modules/tsearch-tests (Files): Likewise.
13231         * modules/uname-tests (Files): Likewise.
13232         * modules/unlink-tests (Files): Likewise.
13233         * modules/unsetenv-tests (Files): Likewise.
13234         * modules/usleep-tests (Files): Likewise.
13235         * modules/utimensat-tests (Files): Likewise.
13236         * modules/vasprintf-tests (Files): Likewise.
13237         * modules/vdprintf-posix-tests (Files): Likewise.
13238         * modules/vfprintf-posix-tests (Files): Likewise.
13239         * modules/vprintf-posix-tests (Files): Likewise.
13240         * modules/vsnprintf-posix-tests (Files): Likewise.
13241         * modules/vsnprintf-tests (Files): Likewise.
13242         * modules/vsprintf-posix-tests (Files): Likewise.
13243         * modules/wcrtomb-tests (Files): Likewise.
13244         * modules/wcsnrtombs-tests (Files): Likewise.
13245         * modules/wcsrtombs-tests (Files): Likewise.
13246         * modules/wcwidth-tests (Files): Likewise.
13247         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
13248         * tests/test-isinf.c (isinf): Likewise.
13249         * tests/test-isnan.c (isnan): Likewise.
13250         * tests/test-signbit.c (signbit): Likewise.
13251         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
13252         declaration, either as macro or with correct signature.
13253         (select): Ensure function under test is declared with correct
13254         signature in correct header.
13255         * tests/test-atexit.c (atexit): Likewise.
13256         * tests/test-btowc.c (btowc): Likewise.
13257         * tests/test-canonicalize-lgpl.c (realpath)
13258         (canonicalize_file_name): Likewise.
13259         * tests/test-ceilf1.c (ceilf): Likewise.
13260         * tests/test-ceill.c (ceill): Likewise.
13261         * tests/test-chown.c (chown): Likewise.
13262         * tests/test-dprintf-posix.c (dprintf): Likewise.
13263         * tests/test-dup2.c (dup2): Likewise.
13264         * tests/test-dup3.c (dup3): Likewise.
13265         * tests/test-duplocale.c (duplocale): Likewise.
13266         * tests/test-fchdir.c (fchdir): Likewise.
13267         * tests/test-fchownat.c (fchownat): Likewise.
13268         * tests/test-fcntl.c (fcntl): Likewise.
13269         * tests/test-fdopendir.c (fdopendir): Likewise.
13270         * tests/test-fflush.c (fflush): Likewise.
13271         * tests/test-flock.c (flock): Likewise.
13272         * tests/test-floorf1.c (floorf): Likewise.
13273         * tests/test-floorl.c (floorl): Likewise.
13274         * tests/test-fnmatch.c (fnmatch): Likewise.
13275         * tests/test-fopen.c (fopen): Likewise.
13276         * tests/test-fprintf-posix.c (fprintf): Likewise.
13277         * tests/test-freopen.c (freopen): Likewise.
13278         * tests/test-frexp.c (frexp): Likewise.
13279         * tests/test-frexpl.c (frexpl): Likewise.
13280         * tests/test-fseek.c (fseek): Likewise.
13281         * tests/test-fseeko.c (fseeko): Likewise.
13282         * tests/test-fstatat.c (fstatat): Likewise.
13283         * tests/test-fsync.c (fsync): Likewise.
13284         * tests/test-ftell.c (ftell): Likewise.
13285         * tests/test-ftello.c (ftello): Likewise.
13286         * tests/test-futimens.c (futimens): Likewise.
13287         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
13288         (gai_strerror): Likewise.
13289         * tests/test-getcwd.c (getcwd): Likewise.
13290         * tests/test-getdelim.c (getdelim): Likewise.
13291         * tests/test-getdtablesize.c (getdtablesize): Likewise.
13292         * tests/test-getgroups.c (getgroups): Likewise.
13293         * tests/test-gethostname.c (gethostname): Likewise.
13294         * tests/test-getline.c (getline): Likewise.
13295         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
13296         Likewise.
13297         * tests/test-gettimeofday.c (gettimeofday): Likewise.
13298         * tests/test-glob.c (glob, globfree): Likewise.
13299         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
13300         * tests/test-inet_ntop.c (inet_ntop): Likewise.
13301         * tests/test-inet_pton.c (inet_pton): Likewise.
13302         * tests/test-isblank.c (isblank): Likewise.
13303         * tests/test-lchown.c (lchown): Likewise.
13304         * tests/test-ldexpl.c (ldexpl): Likewise.
13305         * tests/test-link.c (link): Likewise.
13306         * tests/test-linkat.c (linkat): Likewise.
13307         * tests/test-lseek.c (lseek): Likewise.
13308         * tests/test-lstat.c (lstat): Likewise.
13309         * tests/test-mbrtowc.c (mbrtowc): Likewise.
13310         * tests/test-mbsinit.c (mbsinit): Likewise.
13311         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
13312         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
13313         * tests/test-memchr.c (memchr): Likewise.
13314         * tests/test-memcmp.c (memcmp): Likewise.
13315         * tests/test-memmem.c (memmem): Likewise.
13316         * tests/test-memrchr.c (memrchr): Likewise.
13317         * tests/test-mkdir.c (mkdir): Likewise.
13318         * tests/test-mkdirat.c (mkdirat): Likewise.
13319         * tests/test-mkfifo.c (mkfifo): Likewise.
13320         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
13321         * tests/test-mknod.c (mknod): Likewise.
13322         * tests/test-nanosleep.c (nanosleep): Likewise.
13323         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
13324         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
13325         Likewise.
13326         * tests/test-open.c (open): Likewise.
13327         * tests/test-openat.c (openat): Likewise.
13328         * tests/test-perror.c (perror): Likewise.
13329         * tests/test-pipe2.c (pipe2): Likewise.
13330         * tests/test-poll.c (poll): Likewise.
13331         * tests/test-popen.c (popen, pclose): Likewise.
13332         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
13333         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
13334         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
13335         (posix_spawn_file_actions_destroy)
13336         (posix_spawn_file_actions_addclose)
13337         (posix_spawn_file_actions_addopen)
13338         (posix_spawn_file_actions_adddup2): Likewise.
13339         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
13340         * tests/test-pread.c (pread): Likewise.
13341         * tests/test-printf-posix.c (printf): Likewise.
13342         * tests/test-pty.c (openpty, forkpty): Likewise.
13343         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
13344         (random_r): Likewise.
13345         * tests/test-rawmemchr.c (rawmemchr): Likewise.
13346         * tests/test-readlink.c (readlink): Likewise.
13347         * tests/test-remove.c (remove): Likewise.
13348         * tests/test-rename.c (rename): Likewise.
13349         * tests/test-renameat.c (renameat): Likewise.
13350         * tests/test-rmdir.c (rmdir): Likewise.
13351         * tests/test-round1.c (round): Likewise.
13352         * tests/test-roundf1.c (roundf): Likewise.
13353         * tests/test-roundl.c (roundl): Likewise.
13354         * tests/test-setenv.c (setenv): Likewise.
13355         * tests/test-sigaction.c (sigaction): Likewise.
13356         * tests/test-sleep.c (sleep): Likewise.
13357         * tests/test-snprintf.c (snprintf): Likewise.
13358         * tests/test-sprintf-posix.c (sprintf): Likewise.
13359         * tests/test-stat.c (stat): Likewise.
13360         * tests/test-stpncpy.c (stpncpy): Likewise.
13361         * tests/test-strcasestr.c (strcasestr): Likewise.
13362         * tests/test-strchrnul.c (strchrnul): Likewise.
13363         * tests/test-strerror.c (strerror): Likewise.
13364         * tests/test-strsignal.c (strsignal): Likewise.
13365         * tests/test-strstr.c (strstr): Likewise.
13366         * tests/test-strtod.c (strtod): Likewise.
13367         * tests/test-strverscmp.c (strverscmp): Likewise.
13368         * tests/test-symlink.c (symlink): Likewise.
13369         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
13370         * tests/test-times.c (times): Likewise.
13371         * tests/test-trunc1.c (trunc): Likewise.
13372         * tests/test-truncf1.c (truncf): Likewise.
13373         * tests/test-truncl.c (truncl): Likewise.
13374         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
13375         Likewise.
13376         * tests/test-uname.c (uname): Likewise.
13377         * tests/test-unlink.c (unlink): Likewise.
13378         * tests/test-unlinkat.c (unlinkat): Likewise.
13379         * tests/test-unsetenv.c (unsetenv): Likewise.
13380         * tests/test-usleep.c (usleep): Likewise.
13381         * tests/test-utimensat.c (utimensat): Likewise.
13382         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
13383         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
13384         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
13385         * tests/test-vprintf-posix.c (vprintf): Likewise.
13386         * tests/test-vsnprintf.c (vsnprintf): Likewise.
13387         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
13388         * tests/test-wcrtomb.c (wcrtomb): Likewise.
13389         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
13390         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
13391         * tests/test-wcwidth.c (wcwidth): Likewise.
13392
13393         build: pull in conditional headers during GNULIB_POSIXCHECK
13394         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
13395         definitions from any conditionally-included headers.
13396         * lib/stdlib.in.h (includes): Likewise.
13397         * lib/unistd.in.h (includes): Likewise.
13398
13399 2009-12-24  Bruno Haible  <bruno@clisp.org>
13400
13401         * tests/test-argv-iter.c: Include header file being tested immediately
13402         after config.h.
13403         * tests/test-base64.c: Likewise.
13404         * tests/test-flock.c: Likewise.
13405         * tests/test-fsync.c: Likewise.
13406         * tests/test-getdate.c: Likewise.
13407         * tests/test-getndelim2.c: Likewise.
13408         * tests/test-isfinite.c: Likewise.
13409         * tests/test-isinf.c: Likewise.
13410         * tests/test-strerror.c: Likewise.
13411         * tests/test-strsignal.c: Likewise.
13412
13413 2009-12-23  Eric Blake  <ebb9@byu.net>
13414
13415         unistd: work around cygwin bug
13416         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
13417         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
13418         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
13419
13420 2009-12-23  Bruno Haible  <bruno@clisp.org>
13421
13422         localename: More tests.
13423         * tests/test-localename.c (SIZEOF): New macro.
13424         (categories): New variable.
13425         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
13426         test_locale_name_default): Add test w.r.t. thread locale.
13427         (test_locale_name_thread): New function.
13428         (main): Invoke it.
13429
13430         localename: Make aware of thread locale.
13431         * lib/localename.h (gl_locale_name_thread): New declaration.
13432         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
13433         behaviour with respect to thread locale.
13434         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
13435         <langinfo.h>, glthread/lock.h.
13436         (SIZE_BITS): New macro.
13437         (string_hash): New function.
13438         (struct hash_node): New type.
13439         (HASH_TABLE_SIZE): New macro.
13440         (struniq_hash_table, struniq_lock): New variables.
13441         (struniq): New function.
13442         (gl_locale_name_thread): New function.
13443         (gl_locale_name): Invoke it.
13444         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
13445         * modules/localename (Depends-on): Add lock.
13446         Reported by Mike Gran <spk121@yahoo.com>.
13447
13448 2009-12-23  Eric Blake  <ebb9@byu.net>
13449
13450         va-args: new module
13451         * modules/va-args: New file.
13452         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
13453         * MODULES.html.sh (Core language properties): Mention it.
13454
13455         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
13456         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
13457         named alias for __attribute__((__unused__)).
13458         * lib/chown.c: Update client.
13459         * lib/fchmodat.c: Likewise.
13460         * lib/fts.c: Likewise.
13461         * lib/getdate.y: Likewise.
13462         * lib/getgroups.c: Likewise.
13463         * lib/getopt.c: Likewise.
13464         * lib/getugroups.c: Likewise.
13465         * lib/mkdir.c: Likewise.
13466         * lib/mkfifo.c: Likewise.
13467         * lib/mkfifoat.c: Likewise.
13468         * lib/mknod.c: Likewise.
13469         * lib/mknodat.c: Likewise.
13470         * lib/readlink.c: Likewise.
13471         * lib/se-context.in.h: Likewise.
13472         * lib/se-selinux.in.h: Likewise.
13473         * lib/sockets.c: Likewise.
13474         * lib/symlink.c: Likewise.
13475         * lib/symlinkat.c: Likewise.
13476         * lib/unicodeio.c: Likewise.
13477         * lib/unistr.h: Likewise.
13478         * tests/test-areadlink.c: Likewise.
13479         * tests/test-areadlinkat.c: Likewise.
13480         * tests/test-filenamecat.c: Likewise.
13481         * tests/test-fseeko.c: Likewise.
13482         * tests/test-ftello.c: Likewise.
13483         * tests/test-getdate.c: Likewise.
13484         * tests/test-getgroups.c: Likewise.
13485         * tests/test-gethostname.c: Likewise.
13486         * tests/test-quotearg.c: Likewise.
13487         * tests/test-version-etc.c: Likewise.
13488         * tests/test-xalloc-die.c: Likewise.
13489         * tests/test-xfprintf-posix.c: Likewise.
13490         * tests/test-xprintf-posix.c: Likewise.
13491         * tests/test-xvasprintf.c: Likewise.
13492
13493         tests: avoid compiler warnings
13494         * tests/test-fcntl.c (main): Delete unused parameters.
13495         * tests/test-freopen-safer.c (main): Likewise.
13496         * tests/test-xalloc-die.c (main): Mark unused parameters.
13497         * tests/test-fseeko.c (main): Likewise.
13498         * tests/test-ftello.c (main): Likewise.
13499         * tests/test-nanosleep.c (main): Avoid declaration warning.
13500         * tests/test-sleep.c (main): Likewise.
13501         * tests/test-unsetenv.c (main): Silence warning about string
13502         literal.
13503         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
13504
13505 2009-12-23  Bruno Haible  <bruno@clisp.org>
13506
13507         * tests/test-localename.c (test_locale_name): New function, extracted
13508         from main. Also test mixed situations.
13509         (test_locale_name_posix, test_locale_name_environ,
13510         test_locale_name_default): New functions.
13511         (main): Invoke them all.
13512         * modules/localename-tests (configure.ac): Test for newlocale.
13513
13514 2009-12-23  Bruno Haible  <bruno@clisp.org>
13515
13516         unistd: Ensure getcwd gets declared before being overridden.
13517         * lib/unistd.in.h: Conditionally include <io.h>.
13518
13519 2009-12-22  Bruno Haible  <bruno@clisp.org>
13520
13521         wchar: Diagnose broken combination of glibc and gcc versions and flags.
13522         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
13523         (gl_WCHAR_H): Invoke it.
13524         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
13525         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
13526         Reported by Karl Berry <karl@freefriends.org>.
13527
13528 2009-12-22  Eric Blake  <ebb9@byu.net>
13529
13530         math, unistd: avoid redundant includes
13531         * lib/math.in.h (isnan): No need to re-include <math.h>.
13532         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
13533
13534         getsubopt: work around cygwin bug
13535         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
13536         avoid conflicting with system getsubopt.
13537         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
13538         bug.
13539
13540         getopt: synchronize from glibc
13541         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
13542         parameter order.  Adjust all callers.
13543         (_getopt_internal_r, main): Adjust quoting in error messages.
13544         Drop considerations for outdated POSIX 1003.2 error message.
13545         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
13546         callers.
13547         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
13548
13549         test-getopt: test stderr behavior
13550         * modules/getopt-posix-tests (Depends-on): Add dup2.
13551         * tests/test-getopt.c (ASSERT): Avoid stderr.
13552         (main): Move stderr to a temporary file.
13553         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
13554         Instead, add parameter to inform caller if output occurred.
13555         (test_getopt): Adjust all existing tests to expect silence, and
13556         add new tests of leading ":".
13557         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
13558         glibc shortcomings with leading "-:" or "+:" in optstring.
13559         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
13560         Likewise.
13561         * doc/posix-functions/getopt.texi (getopt): Likewise.
13562
13563         test-getopt: enhance test
13564         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
13565         supports optind=0.
13566         * tests/test-getopt.c (OPTIND_MIN): Move...
13567         * tests/test-getopt.h (OPTIND_MIN): ...here.
13568         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
13569         Require that optind=0 works, since modern BSD supports it in
13570         addition to optreset, and since coreutils expects it.
13571         (test_getopt_long_only): New test.
13572         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
13573         glibc shortcomings with 'W;', and enforcement of optind=0.
13574         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
13575         Likewise.
13576
13577 2009-12-21  Bruno Haible  <bruno@clisp.org>
13578
13579         localename: Improvements for MacOS X and Cygwin.
13580         * lib/localename.h (gl_locale_name_environ): New declaration.
13581         * lib/localename.c (gl_locale_name_environ): New function, extracted from
13582         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
13583         (gl_locale_name_posix): Invoke it.
13584         (gl_locale_name_default): Add comments. Use Windows native API also on
13585         Cygwin.
13586
13587 2009-12-21  Bruno Haible  <bruno@clisp.org>
13588
13589         Update list of Win32 locale ids.
13590         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
13591         (LANG_SAMI): Renamed from LANG_SAAMI.
13592         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
13593         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
13594         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
13595         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
13596         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
13597         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
13598         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
13599         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
13600         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
13601         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
13602         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
13603         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
13604         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
13605         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
13606         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
13607         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
13608         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
13609         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
13610         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
13611         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
13612         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
13613         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
13614         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
13615         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
13616         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
13617         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
13618         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
13619         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
13620         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
13621         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
13622         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
13623         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
13624         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
13625         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
13626         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
13627         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
13628         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
13629         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
13630         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
13631         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
13632         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
13633         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
13634         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
13635         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
13636         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
13637         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
13638         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
13639         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
13640         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
13641         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
13642         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
13643         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
13644         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
13645         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
13646         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
13647         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
13648         Add more languages and countries for Sami, Sorbian. Add more countries
13649         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
13650         for Pashto. Change country for Syriac, Tswana.
13651
13652 2009-12-21  Eric Blake  <ebb9@byu.net>
13653
13654         test-utimens: avoid spurious failure
13655         * tests/test-chown.h (nap): Factor...
13656         * tests/nap.h: ...into new file.
13657         * tests/test-lchown.h (nap): Avoid duplication.
13658         * tests/test-utimens-common.h (nap): Use shared implementation,
13659         necessary on file systems with 1-second resolution.
13660         * modules/chown-tests (Files): Include new file.
13661         * modules/fdutimensat-tests (Files): Likewise.
13662         * modules/futimens-tests (Files): Likewise.
13663         * modules/lchown-tests (Files): Likewise.
13664         * modules/openat-tests (Files): Likewise.
13665         * modules/utimens-tests (Files): Likewise.
13666         * modules/utimensat-tests (Files): Likewise.
13667
13668 2009-12-19  Eric Blake  <ebb9@byu.net>
13669
13670         futimens, utimensat: work around Linux bug
13671         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
13672         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
13673         * lib/utimensat.c (rpl_utimensat): Work around it.
13674         * lib/futimens.c (rpl_futimens): Adjust comment.
13675
13676         utimens: work around Linux ctime bug
13677         * lib/utimens.c (detect_ctime_bug): New helper function.
13678         (update_timespec): Differentiate between workaround needed for
13679         this bug vs. what is needed for systems that lack utimensat.
13680         (fdutimens, lutimens): Work around bug.
13681
13682         utimens: check for ctime update
13683         * tests/test-utimens-common.h (check_ctime): Define.
13684         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
13685         * tests/test-futimens.h (test_futimens): Likewise.
13686         * tests/test-lutimens.h (test_lutimens): Likewise.
13687         * doc/posix-functions/futimens.texi (futimens): Document the bug.
13688         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
13689
13690 2009-12-19  Bruno Haible  <bruno@clisp.org>
13691
13692         dprintf-posix: Check against memory leak fixed on 2009-12-15.
13693         * tests/test-dprintf-posix2.sh: New file.
13694         * tests/test-dprintf-posix2.c: New file.
13695         * modules/dprintf-posix-tests (Files): Add them.
13696         (configure.ac): Check for getrlimit and setrlimit.
13697         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
13698
13699 2009-12-19  Bruno Haible  <bruno@clisp.org>
13700
13701         fprintf-posix: Check against memory leak fixed on 2009-12-15.
13702         * tests/test-fprintf-posix3.sh: New file.
13703         * tests/test-fprintf-posix3.c: New file.
13704         * modules/fprintf-posix-tests (Files): Add them.
13705         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
13706
13707 2009-12-19  Eric Blake  <ebb9@byu.net>
13708
13709         dirfd: fix prototype
13710         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
13711         * lib/dirfd.c (dirfd): Likewise.
13712
13713         canonicalize: reduce memory usage
13714         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
13715         allocation to size.
13716         Reported by Solar Designer <solar@openwall.com>.
13717
13718 2009-12-19  Bruno Haible  <bruno@clisp.org>
13719
13720         New module attribute 'Applicability'.
13721         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
13722         * gnulib-tool: New option --extract-applicability.
13723         (func_usage): Document it.
13724         (sed_extract_prog): Recognize it.
13725         (func_get_applicability): New function.
13726         (func_import): Generalize handling of 'link-warning' module.
13727         * modules/link-warning (Applicability): New section.
13728         * modules/arg-nonnull (Applicability): New section.
13729         Repoted by Simon Josefsson <simon@josefsson.org>.
13730
13731 2009-12-19  Bruno Haible  <bruno@clisp.org>
13732
13733         fflush: tweak
13734         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
13735         * lib/fseeko.c (rpl_fseeko): Likewise.
13736
13737 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
13738
13739         * lib/gl_list.h: Fix typo in comment.
13740
13741 2009-12-16  Eric Blake  <ebb9@byu.net>
13742
13743         fcntl: use to simplify other modules
13744         * modules/cloexec (Depends-on): Add fcntl.
13745         * modules/fchdir (Depends-on): Likewise.
13746         * modules/fd-safer-flag (Depends-on): Likewise.
13747         * modules/unistd-safer (Depends-on): Likewise.
13748         * modules/dup3 (configure.ac): Set module indicator.
13749         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
13750         missing.
13751         * lib/fchdir.c (_gl_register_dup): Fix comment.
13752         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
13753         * lib/dup-safer.c (dup_safer): Likewise.
13754         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
13755         * lib/dup3.c (dup3): Likewise.
13756         * tests/test-fchdir.c (main): Enhance test.
13757         Fixes a dup_cloexec bug reported by Ondřej Vašík.
13758
13759         fcntl: port portions of fcntl to mingw
13760         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
13761         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
13762         replacement for mingw.
13763         * modules/fcntl (Description): Update.
13764         (Depends-on): Add dup2.
13765         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
13766         * modules/fcntl-h (Makefile.am): Substitute it.
13767         * lib/fcntl.in.h (fcntl): Update declaration.
13768         (F_DUPFD, F_GETFD): New macros, when needed.
13769         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
13770         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
13771         * tests/test-fcntl.c (check_flags, main): Enhance test for items
13772         we now guarantee.
13773
13774         fcntl: work around cygwin bug in F_DUPFD
13775         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
13776         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
13777         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
13778         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
13779         * doc/posix-functions/fcntl.texi (fcntl): Document it.
13780
13781         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
13782         * modules/fcntl (Files): List new files.
13783         (configure.ac): Run a test.
13784         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
13785         * lib/fcntl.c (rpl_fcntl): Likewise.
13786         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
13787         (gl_FCNTL_H): Always replace fcntl.h.
13788         * modules/fcntl-h (Makefile.am): Substitute witnesses.
13789         * lib/fcntl.in.h (fcntl): Declare replacement.
13790         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
13791         needed, plus a witness.
13792         * doc/posix-functions/fcntl.texi (fcntl): Document this.
13793         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
13794         * tests/test-fcntl.c: New file.
13795         * modules/fcntl-tests: Likewise.
13796
13797         binary-io: avoid potential compilation warning
13798         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
13799         directives.
13800
13801         fflush: avoid compilation error on NetBSD
13802         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
13803         between off_t and fpos_t, since the latter is sometimes a struct.
13804         * lib/fseeko.c (rpl_fseeko): Likewise.
13805         Reported by Alexander Nasonov <alnsn@yandex.ru>.
13806
13807 2009-12-15  Eric Blake  <ebb9@byu.net>
13808
13809         fcntl-h, stdio, sys_ioctl: fix declarations
13810         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
13811         function must not take arguments.
13812         * lib/sys_ioctl.in.h (ioctl): Likewise.
13813         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
13814         (open): Add a link warning.
13815
13816 2009-12-15  Jim Meyering  <meyering@redhat.com>
13817
13818         areadlink, areadlink-with-size: relax license to LGPLv2+
13819         * modules/areadlink (License): Relax to LGPLv2+.
13820         * modules/areadlink-with-size (License): Likewise.
13821
13822 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
13823             Bruno Haible  <bruno@clisp.org>
13824
13825         *printf: Fix memory leak.
13826         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
13827         * lib/vfprintf.c (vfprintf): Likewise.
13828         * lib/dprintf.c (dprintf): Likewise.
13829         * lib/vdprintf.c (vdprintf): Likewise.
13830
13831 2009-12-14  Eric Blake  <ebb9@byu.net>
13832
13833         accept4: adjust module dependencies
13834         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
13835
13836         utimens: one more try at avoiding compiler warning
13837         * lib/utimens.c (lutimens): Lower scope of result.
13838
13839 2009-12-13  Bruno Haible  <bruno@clisp.org>
13840
13841         Move the malloc checking from module 'list' to new module 'xlist'.
13842         * modules/xlist: New file.
13843         * lib/gl_xlist.h: New file.
13844         * lib/gl_xlist.c: New file.
13845         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
13846         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
13847         gl_list_add_last, gl_list_add_before, gl_list_add_after,
13848         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
13849         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
13850         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
13851         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
13852         gl_sortedlist_nx_add): New declarations.
13853         (struct gl_list_implementation): Rename and change methods accordingly.
13854         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
13855         (gl_list_nx_create): Renamed from gl_list_create.
13856         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
13857         (gl_list_nx_set_at): Renamed from gl_list_set_at.
13858         (gl_list_nx_add_first): Renamed from gl_list_add_first.
13859         (gl_list_nx_add_last): Renamed from gl_list_add_last.
13860         (gl_list_nx_add_before): Renamed from gl_list_add_before.
13861         (gl_list_nx_add_after): Renamed from gl_list_add_after.
13862         (gl_list_nx_add_at): Renamed from gl_list_add_at.
13863         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
13864         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
13865         gl_list_create_empty.
13866         (gl_list_nx_create): Renamed from gl_list_create.
13867         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
13868         (gl_list_nx_set_at): Renamed from gl_list_set_at.
13869         (gl_list_nx_add_first): Renamed from gl_list_add_first.
13870         (gl_list_nx_add_last): Renamed from gl_list_add_last.
13871         (gl_list_nx_add_before): Renamed from gl_list_add_before.
13872         (gl_list_nx_add_after): Renamed from gl_list_add_after.
13873         (gl_list_nx_add_at): Renamed from gl_list_add_at.
13874         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
13875         * lib/gl_array_list.c: Don't include xalloc.h.
13876         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
13877         NULL upon out-of-memory.
13878         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
13879         out-of-memory.
13880         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
13881         Change return type to 'int'.
13882         (gl_array_nx_set_at): Renamed from gl_array_set_at.
13883         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
13884         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
13885         upon out-of-memory.
13886         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
13887         upon out-of-memory.
13888         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
13889         upon out-of-memory.
13890         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
13891         upon out-of-memory.
13892         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
13893         out-of-memory.
13894         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
13895         Update.
13896         (gl_array_list_implementation): Update.
13897         * lib/gl_carray_list.c: Don't include xalloc.h.
13898         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
13899         Return NULL upon out-of-memory.
13900         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
13901         out-of-memory.
13902         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
13903         Change return type to 'int'.
13904         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
13905         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
13906         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
13907         upon out-of-memory.
13908         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
13909         upon out-of-memory.
13910         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
13911         out-of-memory.
13912         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
13913         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
13914         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
13915         Update.
13916         (gl_carray_list_implementation): Update.
13917         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
13918         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
13919         gl_linked_create_empty. Return NULL upon out-of-memory.
13920         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
13921         out-of-memory.
13922         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
13923         Change return type to 'int'. Return -1 upon out-of-memory.
13924         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
13925         out-of-memory.
13926         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
13927         upon out-of-memory.
13928         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
13929         upon out-of-memory.
13930         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
13931         NULL upon out-of-memory.
13932         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
13933         upon out-of-memory.
13934         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
13935         out-of-memory.
13936         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
13937         Update.
13938         * lib/gl_linked_list.c: Don't include xalloc.h.
13939         (gl_linked_list_implementation): Update.
13940         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
13941         (add_to_bucket): Change return type to 'int'.
13942         (gl_linkedhash_list_implementation): Update.
13943         * lib/gl_anytree_list1.h (free_subtree): New function.
13944         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
13945         gl_tree_create_empty. Return NULL upon out-of-memory.
13946         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
13947         Change return type to 'int'. Return -1 upon out-of-memory.
13948         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
13949         out-of-memory.
13950         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
13951         (gl_tree_remove_node): New function, moved here from
13952         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
13953         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
13954         Update.
13955         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
13956         malloc, not xmalloc. Return NULL upon out-of-memory.
13957         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
13958         out-of-memory.
13959         (gl_tree_remove_node_from_tree): New function, extracted from
13960         gl_tree_remove_node.
13961         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
13962         upon out-of-memory.
13963         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
13964         out-of-memory.
13965         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
13966         upon out-of-memory.
13967         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
13968         upon out-of-memory.
13969         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
13970         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
13971         not xmalloc. Return NULL upon out-of-memory.
13972         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
13973         out-of-memory.
13974         (gl_tree_remove_node_from_tree): New function, extracted from
13975         gl_tree_remove_node.
13976         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
13977         upon out-of-memory.
13978         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
13979         out-of-memory.
13980         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
13981         upon out-of-memory.
13982         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
13983         upon out-of-memory.
13984         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
13985         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
13986         gl_anytree_list1.h before gl_anyavltree_list2.h.
13987         (gl_avltree_list_implementation): Update.
13988         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
13989         gl_anytree_list1.h before gl_anyavltree_list2.h.
13990         (gl_rbtree_list_implementation): Update.
13991         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
13992         Change return type to 'int'. Return -1 upon out-of-memory. Use
13993         __builtin_expect.
13994         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
13995         (gl_avltreehash_list_implementation): Update.
13996         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
13997         (gl_rbtreehash_list_implementation): Update.
13998         * modules/array-list (Depends-on): Remove xalloc.
13999         * modules/carray-list (Depends-on): Likewise.
14000         * modules/linked-list (Depends-on): Likewise.
14001         * modules/linkedhash-list (Depends-on): Likewise.
14002         * modules/avltree-list (Depends-on): Likewise.
14003         * modules/rbtree-list (Depends-on): Likewise.
14004         * modules/avltreehash-list (Depends-on): Likewise.
14005         * modules/rbtreehash-list (Depends-on): Likewise.
14006
14007         * modules/xsublist: New file.
14008         * lib/gl_xsublist.h: New file.
14009         * lib/gl_xsublist.c: New file.
14010         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
14011         (gl_sublist_nx_create): New declaration.
14012         * lib/gl_sublist.c: Don't include xalloc.h.
14013         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
14014         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
14015         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
14016         Change return type to 'int'. Return -1 upon out-of-memory.
14017         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
14018         upon out-of-memory.
14019         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
14020         NULL upon out-of-memory.
14021         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
14022         upon out-of-memory.
14023         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
14024         NULL upon out-of-memory.
14025         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
14026         NULL upon out-of-memory.
14027         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
14028         upon out-of-memory.
14029         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
14030         (gl_sublist_list_implementation): Update.
14031         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
14032         upon out-of-memory.
14033         * modules/sublist (Depends-on): Remove xalloc.
14034
14035         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
14036         * tests/test-carray_list.c: Likewise.
14037         * tests/test-linked_list.c: Likewise.
14038         * tests/test-linkedhash_list.c: Likewise.
14039         * tests/test-avltree_list.c: Likewise.
14040         * tests/test-rbtree_list.c: Likewise.
14041         * tests/test-avltreehash_list.c: Likewise.
14042         * tests/test-rbtreehash_list.c: Likewise.
14043         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
14044         * modules/carray-list-tests (Makefile.am): Likewise.
14045         * modules/linked-list-tests (Makefile.am): Likewise.
14046         * modules/linkedhash-list-tests (Makefile.am): Likewise.
14047         * modules/avltree-list-tests (Makefile.am): Likewise.
14048         * modules/rbtree-list-tests (Makefile.am): Likewise.
14049         * modules/avltreehash-list-tests (Makefile.am): Likewise.
14050         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
14051
14052         * NEWS: Mention the changes.
14053
14054         * lib/clean-temp.c: Include gl_xlist.h.
14055         * modules/clean-temp (Depends-on): Add xlist.
14056
14057         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
14058         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
14059
14060         * tests/test-array_oset.c: Include gl_xlist.h.
14061         * modules/array-oset-tests (Depends-on): Add xlist.
14062
14063         Reported by José E. Marchesi <jemarch@gnu.org>.
14064
14065 2009-12-13  Bruno Haible  <bruno@clisp.org>
14066
14067         Move the malloc checking from module 'oset' to new module 'xoset'.
14068         * modules/xoset: New file.
14069         * lib/gl_xoset.h: New file.
14070         * lib/gl_xoset.c: New file.
14071         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
14072         declarations.
14073         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
14074         (struct gl_oset_implementation): Rename and change methods accordingly.
14075         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
14076         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
14077         'int'. Mark as __warn_unused_result__.
14078         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
14079         gl_oset_create_empty.
14080         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
14081         'int'.
14082         * lib/gl_array_oset.c: Don't include xalloc.h.
14083         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
14084         malloc, not xmalloc.
14085         (grow): Change return type to 'int'. Don't call xalloc_die.
14086         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
14087         to 'int'.
14088         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
14089         'int'.
14090         (gl_array_oset_implementation): Update.
14091         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
14092         gl_tree_create_empty.
14093         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
14094         'int'.
14095         * lib/gl_avltree_oset.c: Don't include xalloc.h.
14096         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
14097         xmalloc.
14098         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
14099         not xmalloc.
14100         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
14101         xmalloc.
14102         (gl_avltree_oset_implementation): Update.
14103         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
14104         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
14105         xmalloc.
14106         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
14107         not xmalloc.
14108         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
14109         xmalloc.
14110         (gl_rbtree_oset_implementation): Update.
14111         * modules/array-oset (Depends-on): Remove xalloc.
14112         * modules/avltree-oset (Depends-on): Likewise.
14113         * modules/rbtree-oset (Depends-on): Likewise.
14114         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
14115         * tests/test-avltree_oset.c: Likewise.
14116         * tests/test-rbtree_oset.c: Likewise.
14117         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
14118         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
14119         * modules/rbtree-oset-tests (Makefile.am): Likewise.
14120         * NEWS: Mention the change.
14121
14122 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
14123
14124         maint.mk: allow a project to override release-prep commands
14125         * top/maint.mk (alpha, beta, stable): Move release-preparatory
14126         commands into a new rule.
14127         (release-prep): New rule.
14128         (release-prep-hook): New overridable variable.
14129
14130 2009-12-13  Bruno Haible  <bruno@clisp.org>
14131
14132         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
14133
14134 2009-12-13  Jim Meyering  <meyering@redhat.com>
14135
14136         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
14137         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
14138
14139 2009-12-12  Bruno Haible  <bruno@clisp.org>
14140
14141         duplocale: Tweak.
14142         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
14143
14144 2009-12-12  Karl Berry  <karl@gnu.org>
14145
14146         * config/srclist.txt (strtoll.c): tab changes, no more sync.
14147
14148 2009-12-12  Bruno Haible  <bruno@clisp.org>
14149
14150         * m4/po.m4: Undo incorrect untabification.
14151
14152 2009-12-12  Bruno Haible  <bruno@clisp.org>
14153
14154         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
14155         * modules/c-strtod (Depends-on): Add locale.
14156         * modules/c-strtold (Depends-on): Likewise.
14157
14158 2009-12-12  Bruno Haible  <bruno@clisp.org>
14159
14160         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
14161
14162 2009-12-11  Eric Blake  <ebb9@byu.net>
14163
14164         setenv: relax requirement in light of POSIX ruling
14165         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
14166         not NULL.
14167         * tests/test-setenv.c (main): Relax test.
14168         * tests/test-unsetenv.c (main): Likewise.
14169         * doc/posix-functions/setenv.texi (setenv): Document this.
14170         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
14171
14172 2009-12-11  Bruno Haible  <bruno@clisp.org>
14173
14174         New module 'fd-safer-flag'.
14175         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
14176         * lib/dup-safer.c (dup_safer_flag): Remove function.
14177         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
14178         * lib/fd-safer.c (fd_safer_flag): Remove function.
14179         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
14180         * modules/cloexec (configure.ac): Drop indicator macro.
14181         * modules/fd-safer-flag: New file.
14182         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
14183         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
14184         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
14185
14186 2009-12-11  Bruno Haible  <bruno@clisp.org>
14187
14188         Tests for module 'nl_langinfo'.
14189         * modules/nl_langinfo-tests: New file.
14190         * tests/test-nl_langinfo.sh: New file.
14191         * tests/test-nl_langinfo.c: New file.
14192
14193         New module 'nl_langinfo'.
14194         * lib/nl_langinfo.c: New file.
14195         * m4/nl_langinfo.m4: New file.
14196         * modules/nl_langinfo: New file.
14197         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
14198
14199 2009-12-11  Bruno Haible  <bruno@clisp.org>
14200
14201         Tests for module 'langinfo'.
14202         * modules/langinfo-tests: New file.
14203         * tests/test-langinfo.c: New file.
14204
14205         New module 'langinfo'.
14206         * lib/langinfo.in.h: New file.
14207         * m4/langinfo_h.m4: New file.
14208         * modules/langinfo: New file.
14209         * doc/posix-headers/langinfo.texi: Mention the new module.
14210
14211 2009-12-11  Bruno Haible  <bruno@clisp.org>
14212
14213         * lib/config.charset: Untabify.
14214
14215 2009-12-11  Bruno Haible  <bruno@clisp.org>
14216
14217         * modules/unistd-safer (configure.ac): Drop indicator macro.
14218
14219 2009-12-11  Bruno Haible  <bruno@clisp.org>
14220
14221         Move pipe2-safer code to its own file.
14222         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
14223         * lib/pipe-safer.c (pipe2_safer): Remove function.
14224         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
14225         (Makefile.am): Add it to lib_SOURCES.
14226
14227 2009-12-10  Bruno Haible  <bruno@clisp.org>
14228
14229         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
14230
14231 2009-12-10  Bruno Haible  <bruno@clisp.org>
14232
14233         Declare which arguments expect non-NULL values, for GCC and clang.
14234         * build-aux/arg-nonnull.h: New file.
14235         * modules/arg-nonnull: New file.
14236         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
14237         (inet_ntop, inet_pton): Use it.
14238         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
14239         (closedir, dirfd, opendir, scandir, alphasort): Use it.
14240         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
14241         (open, openat): Use it.
14242         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
14243         (fnmatch): Use it.
14244         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
14245         (getopt, getopt_long, getopt_long_only): Use it.
14246         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
14247         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
14248         Use it.
14249         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
14250         (iconv_open): Use it.
14251         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
14252         (strtoimax, strtoumax): Use it.
14253         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
14254         (duplocale): Use it.
14255         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
14256         (frexp, frexpl): Use it.
14257         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
14258         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
14259         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
14260         (tsearch, tfind, tdelete, twalk): Use it.
14261         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
14262         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
14263         sigpending): Use it.
14264         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
14265         (posix_spawn, posix_spawnp, posix_spawnattr_init,
14266         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
14267         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
14268         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
14269         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
14270         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
14271         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
14272         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
14273         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
14274         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
14275         Use it.
14276         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
14277         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
14278         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
14279         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
14280         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
14281         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
14282         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
14283         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
14284         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
14285         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
14286         strtoull, unsetenv): Use it.
14287         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
14288         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
14289         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
14290         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
14291         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
14292         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
14293         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
14294         (strcasecmp, strncasecmp): Use it.
14295         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
14296         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
14297         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
14298         rpl_setsockopt): Use it.
14299         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
14300         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
14301         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
14302         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
14303         (gettimeofday): Use it.
14304         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
14305         (times): Use it.
14306         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
14307         (uname): Use it.
14308         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
14309         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
14310         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
14311         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
14312         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
14313         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
14314         unlinkat, write): Use it.
14315         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
14316         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
14317         * lib/argv-iter.h: Include arg-nonnull.h.
14318         (_ATTRIBUTE_NONNULL_): Remove macro.
14319         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
14320         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
14321         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
14322         optimization.
14323         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
14324         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
14325         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
14326         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
14327         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
14328         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
14329         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
14330         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
14331         * modules/arpa_inet (Depends-on): Add arg-nonnull.
14332         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
14333         * modules/dirent (Depends-on): Add arg-nonnull.
14334         (Makefile.am): Insert arg-nonnull.h into dirent.h.
14335         * modules/fcntl-h (Depends-on): Add arg-nonnull.
14336         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
14337         * modules/fnmatch (Depends-on): Add arg-nonnull.
14338         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
14339         * modules/getopt-posix (Depends-on): Add arg-nonnull.
14340         (Makefile.am): Insert arg-nonnull.h into getopt.h.
14341         * modules/glob (Depends-on): Add arg-nonnull.
14342         (Makefile.am): Insert arg-nonnull.h into glob.h.
14343         * modules/iconv_open (Depends-on): Add arg-nonnull.
14344         (Makefile.am): Insert arg-nonnull.h into iconv.h.
14345         * modules/inttypes (Depends-on): Add arg-nonnull.
14346         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
14347         * modules/locale (Depends-on): Add arg-nonnull.
14348         (Makefile.am): Insert arg-nonnull.h into locale.h.
14349         * modules/math (Depends-on): Add arg-nonnull.
14350         (Makefile.am): Insert arg-nonnull.h into math.h.
14351         * modules/netdb (Depends-on): Add arg-nonnull.
14352         (Makefile.am): Insert arg-nonnull.h into netdb.h.
14353         * modules/search (Depends-on): Add arg-nonnull.
14354         (Makefile.am): Insert arg-nonnull.h into search.h.
14355         * modules/signal (Depends-on): Add arg-nonnull.
14356         (Makefile.am): Insert arg-nonnull.h into signal.h.
14357         * modules/spawn (Depends-on): Add arg-nonnull.
14358         (Makefile.am): Insert arg-nonnull.h into spawn.h.
14359         * modules/stdio (Depends-on): Add arg-nonnull.
14360         (Makefile.am): Insert arg-nonnull.h into stdio.h.
14361         * modules/stdlib (Depends-on): Add arg-nonnull.
14362         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
14363         * modules/string (Depends-on): Add arg-nonnull.
14364         (Makefile.am): Insert arg-nonnull.h into string.h.
14365         * modules/strings (Depends-on): Add arg-nonnull.
14366         (Makefile.am): Insert arg-nonnull.h into strings.h.
14367         * modules/sys_socket (Depends-on): Add arg-nonnull.
14368         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
14369         * modules/sys_stat (Depends-on): Add arg-nonnull.
14370         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
14371         * modules/sys_time (Depends-on): Add arg-nonnull.
14372         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
14373         * modules/sys_times (Depends-on): Add arg-nonnull.
14374         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
14375         * modules/sys_utsname (Depends-on): Add arg-nonnull.
14376         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
14377         * modules/time (Depends-on): Add arg-nonnull.
14378         (Makefile.am): Insert arg-nonnull.h into time.h.
14379         * modules/unistd (Depends-on): Add arg-nonnull.
14380         (Makefile.am): Insert arg-nonnull.h into unistd.h.
14381         * modules/wchar (Depends-on): Add arg-nonnull.
14382         (Makefile.am): Insert arg-nonnull.h into wchar.h.
14383         * modules/argv-iter (Depends-on): Add arg-nonnull.
14384         * tests/test-canonicalize.c (null_ptr): New function.
14385         (main): Use it.
14386         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
14387         (main): Use it.
14388         * tests/test-memmem.c (null_ptr): New function.
14389         (main): Use it.
14390         Reported by Jim Meyering.
14391
14392 2009-12-10  Bruno Haible  <bruno@clisp.org>
14393
14394         Use spaces for indentation, not tabs.
14395         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
14396         * m4/*.m4: Untabify.
14397         * build-aux/*.h: Untabify.
14398         * tests/**/*.[hc]: Untabify.
14399         * README: New section "Indent with spaces, not TABs", based on
14400         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
14401         * NEWS: Mention the change.
14402
14403 2009-12-10  Bruno Haible  <bruno@clisp.org>
14404
14405         pty test: Fix link error.
14406         * modules/pty-tests (Makefile.am): Add the default LDADD value to
14407         test_pty_LDADD.
14408
14409 2009-12-07  Simon Josefsson  <simon@josefsson.org>
14410
14411         * modules/pty: New file.
14412         * modules/pty-tests: New file.
14413         * m4/pty.m4: New file.
14414         * tests/test-pty.c: New file.
14415         * doc/glibc-headers/pty.texi: Modified.
14416         * doc/glibc-functions/forkpty.texi: Modified.
14417         * doc/glibc-functions/openpty.texi: Modified.
14418
14419 2009-12-10  Bruno Haible  <bruno@clisp.org>
14420
14421         Avoid syntax error in C++ mode.
14422         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
14423
14424 2009-12-10  Bruno Haible  <bruno@clisp.org>
14425
14426         Use sed with option -e.
14427         * gnulib-tool (func_version, func_emit_copyright_notice,
14428         func_emit_initmacro_end, func_import, func_create_testdir): Pass
14429         option -e to sed.
14430         * modules/link-warning (Makefile.am): Likewise.
14431
14432 2009-12-10  Jim Meyering  <meyering@redhat.com>
14433
14434         mgetgroups: do not write bytes beyond end of malloc'd buffer
14435         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
14436         username, we call getgroups with a one-element-shorter buffer,
14437         but still told it the length was original, max_n_groups.
14438
14439 2009-12-09  Eric Blake  <ebb9@byu.net>
14440
14441         cloexec: relax license
14442         * modules/cloexec (Maintainer): Add myself.
14443         (License): Use LGPL, not GPL.
14444
14445         link-warning: optimize generation
14446         * modules/link-warning (Makefile.am): Reduce process usage.
14447
14448 2009-12-09  Bruno Haible  <bruno@clisp.org>
14449
14450         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
14451         workaround was added on 2009-11-17.
14452
14453 2009-12-09  Jim Meyering  <meyering@redhat.com>
14454             Bruno Haible  <bruno@clisp.org>
14455
14456         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
14457         * modules/link-warning (Makefile.am): Make the comment-removing sed
14458         command more robust in the face of bootstrap-prepended comment lines.
14459
14460 2009-12-09  Bruno Haible  <bruno@clisp.org>
14461
14462         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
14463         most one group.
14464
14465 2009-12-09  Simon Josefsson <simon@josefsson.org>
14466             Bruno Haible  <bruno@clisp.org>
14467
14468         * build-aux/link-warning.h: Add copyright notice.
14469         * modules/link-warning (Makefile.am): Generate link-warning.h from
14470         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
14471         * NEWS: Mention change in link-warning module.
14472         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
14473         * modules/dirent (Makefile.am): Add dependency to dirent.h.
14474         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
14475         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
14476         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
14477         * modules/math (Makefile.am): Add dependency to math.h.
14478         * modules/search (Makefile.am): Add dependency to search.h.
14479         * modules/signal (Makefile.am): Add dependency to signal.h.
14480         * modules/spawn (Makefile.am): Add dependency to spawn.h.
14481         * modules/stdio (Makefile.am): Add dependency to stdio.h.
14482         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
14483         * modules/string (Makefile.am): Add dependency to string.h.
14484         * modules/strings (Makefile.am): Add dependency to strings.h.
14485         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
14486         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
14487         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
14488         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
14489         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
14490         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
14491         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
14492         * modules/unistd (Makefile.am): Add dependency to unistd.h.
14493         * modules/wchar (Makefile.am): Add dependency to wchar.h.
14494
14495 2009-12-09  Bruno Haible  <bruno@clisp.org>
14496
14497         fchdir: Optimize away rpl_fstat when possible.
14498         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
14499         REPLACE_OPEN_DIRECTORY.
14500         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
14501
14502 2009-12-09  Bruno Haible  <bruno@clisp.org>
14503
14504         * lib/fchdir.c: Update comment.
14505
14506 2009-12-09  Bruno Haible  <bruno@clisp.org>
14507
14508         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
14509
14510 2009-12-08  Eric Blake  <ebb9@byu.net>
14511
14512         fchdir: avoid memory leak on re-registration.
14513         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
14514
14515 2009-12-08  Jim Meyering  <meyering@redhat.com>
14516
14517         init.sh: avoid Solaris 10 /bin/sh portability problem
14518         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
14519         sourced script:
14520           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
14521           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
14522           bar
14523         tests/init.sh relied on that, accepting a --set-path=DIR argument,
14524         and two tests used that idiom.
14525         * tests/init.sh: Update suggested usage comments.
14526         (path_prepend_): New function, to be used in place
14527         of the --src-path=DIR option.
14528         (setup_): Move PATH-prepending code into path_prepend_.
14529         * tests/test-pread.sh: Adapt to new usage.
14530         * tests/test-xalloc-die.sh: Likewise.
14531
14532 2009-12-08  Simon Josefsson  <simon@josefsson.org>
14533
14534         * doc/gnulib.texi (Glibc pty.h): Add.
14535         * doc/glibc-functions/forkpty.texi: Add.
14536         * doc/glibc-functions/openpty.texi: Add.
14537         Suggested by Bruno Haible.
14538
14539 2009-12-08  Eric Blake  <ebb9@byu.net>
14540
14541         fchdir: fix logic bugs
14542         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
14543         * tests/test-fchdir.c (main): Enhance test.
14544         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
14545         is in use.
14546
14547         dup2: fix logic bugs
14548         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
14549         REPLACE_DUP2 to decide when rpl_dup2 is needed.
14550         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
14551         exists.
14552         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
14553
14554 2009-12-07  Eric Blake  <ebb9@byu.net>
14555
14556         unlink: fix m4 detection
14557         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
14558
14559         unistd-safer: add unit test
14560         * modules/unistd-safer-tests: New file.
14561         * tests/test-dup-safer.c: Likewise.
14562         * tests/test-cloexec.c (setmode): Avoid compiler warning.
14563         * tests/test-dup2.c (setmode): Likewise.
14564         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
14565
14566         cloexec: preserve text vs. binary across dup_cloexec
14567         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
14568         mode.
14569         * modules/dup2-tests (Depends-on): Add binary-io.
14570         * modules/cloexec-tests (Depends-on): Likewise.
14571         * tests/test-dup2.c (setmode, is_mode): New helpers.
14572         (main): Add tests that translation mode is preserved.
14573         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
14574         Reported by Bruno Haible.
14575
14576         mgetgroups: reduce duplicate listings
14577         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
14578         resulting array.
14579         * tests/test-chown.h (test_chown): Simplify client.
14580         * tests/test-lchown.h (test_lchown): Likewise.
14581
14582 2009-12-06  Bruno Haible  <bruno@clisp.org>
14583
14584         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
14585         value.
14586
14587 2009-12-06  Bruno Haible  <bruno@clisp.org>
14588
14589         * lib/progname.c: Include stdio.h, stdlib.h.
14590         (set_program_name): Reject a NULL argument.
14591
14592 2009-12-05  Eric Blake  <ebb9@byu.net>
14593
14594         pipe2-safer: new module
14595         * modules/pipe2-safer: New file.
14596         * lib/unistd-safer.h (pipe2_safer): New prototype.
14597         * lib/unistd--.h (pipe2): New wrapper.
14598         * lib/pipe-safer.c (pipe2_safer): New function.
14599         * modules/pipe (Depends-on): Add pipe2-safer.
14600         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
14601
14602         stdlib-safer: preserve cloexec flag for mkostemp[s]
14603         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
14604         fd_safer_flag.
14605
14606         unistd-safer: allow preservation of cloexec status via flag
14607         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
14608         prototypes.
14609         * lib/dup-safer.c (dup_safer_flag): New function.
14610         * lib/fd-safer.c (fd_safer_flag): Likewise.
14611         * modules/cloexec (configure.ac): Set witness.
14612
14613         test-dup2: enhance test
14614         * modules/dup2-tests (Depends-on): Add cloexec.
14615         * tests/test-dup2.c (main): Enhance test.
14616
14617         cloexec: add dup_cloexec
14618         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
14619         header and comments.
14620         * lib/cloexec.c (set_cloexec_flag): Add comments.
14621         (dup_cloexec): New function, with mingw implementation borrowed
14622         from...
14623         * lib/w32spawn.h (dup_noinherit): ...here.
14624         * modules/execute (Depends-on): Add cloexec.
14625         * modules/pipe (Depends-on): Likewise.
14626         * modules/cloexec (Depends-on): Add dup2.
14627         * modules/cloexec-tests (Files): New file.
14628         * tests/test-cloexec.c: Likewise.
14629
14630         test-xalloc-die: fix test for mingw
14631         * modules/xalloc-die-tests (Files): Add tests/init.sh.
14632         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
14633         directory and .exe suffix off argv[0] output.
14634
14635         test-fseeko: fix test for mingw
14636         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
14637         than undefining fseek, so test will pass on mingw.
14638
14639 2009-12-05  Bruno Haible  <bruno@clisp.org>
14640
14641         * lib/progname.h (set_program_name): Clarify specification.
14642         * lib/progname.c (set_program_name): Likewise.
14643         Reported by Jim Meyering.
14644
14645 2009-12-05  Jim Meyering  <meyering@redhat.com>
14646
14647         maint.mk: backslash-escape parens in default regexp
14648         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
14649         backslash-escape the literal parentheses.
14650
14651         maint.mk: news-date-check: use grep -E
14652         * top/maint.mk (today): Define a Make variable, not a...
14653         (news-date-check): ...shell variable.
14654         (news-date-regexp): Use the Make variable.
14655         Use grep's -E option.  Change the failing diagnostic to mention
14656         the variable, $(news-date-regexp).
14657
14658 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
14659
14660         maintainer-makefile: allow customization of NEWS entry format
14661         * top/maint.mk (news-date-regexp): New overridable variable.
14662         (news-date-check): Use it.
14663
14664 2009-12-04  Eric Blake  <ebb9@byu.net>
14665
14666         mgetgroups: add xgetgroups, and avoid ENOSYS failures
14667         * lib/mgetgroups.h (xgetgroups): New prototype.
14668         * lib/mgetgroups.c (xgetgroups): New wrapper.
14669         (mgetgroups): Handle ENOSYS.
14670         * modules/mgetgroups (Depends-on): Add realloc.
14671         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
14672
14673         mgetgroups: avoid argument promotion issues with -1
14674         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
14675         for invalid gid_t.
14676         * tests/test-chown.h (getegid, test_chown): Likewise.
14677         * tests/test-lchown.h (getegid, test_lchown): Likewise.
14678
14679 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
14680
14681         exclude: Fix header file problems.
14682         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
14683
14684 2009-12-01  Jim Meyering  <meyering@redhat.com>
14685
14686         fts: fts_open: do not let an empty string cause immediate failure
14687         This is required in support of GNU rm, for which the command
14688         "rm A '' B" must process and remove both A and B, in spite of
14689         the empty string argument.
14690         * lib/fts.c (fts_open): Do not let the presence of an empty string
14691         cause fts_open to fail immediately.  Most fts-using tools must be
14692         able to process all arguments, in order, and can be expected to
14693         diagnose such arguments themselves.
14694
14695 2009-11-30  Eric Blake  <ebb9@byu.net>
14696
14697         utimens: fix compilation error
14698         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
14699         Declare variable at right scope.
14700
14701 2009-11-29  Jim Meyering  <meyering@redhat.com>
14702
14703         bootstrap: handle perl-5.11's changed --version output
14704         * build-aux/bootstrap (get_version): Handle perl separately,
14705         since perl-5.11's --version output is different.
14706
14707 2009-11-28  Jim Meyering  <meyering@redhat.com>
14708
14709         userspec: depend on the inttostr module, too
14710         * modules/userspec (Depends-on): Add inttostr.
14711
14712         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
14713         * lib/userspec.c (parse_with_separator): Do not accept a user ID
14714         number of MAXUID when it evaluates to (uid_t) -1.
14715         Likewise for group ID.  Reported by Matt McCutchen in
14716         <http://savannah.gnu.org/bugs/?28113>
14717
14718         userspec: reformat to use spaces, not TABs
14719         * lib/userspec.c: Expand TABs to spaces.
14720         Add Emacs' "indent-tabs-mode: nil" hint.
14721
14722 2009-11-27  Eric Blake  <ebb9@byu.net>
14723
14724         getopt-gnu: flush out another BSD bug
14725         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
14726         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
14727         flush out BSD bug.
14728         * tests/test-getopt.h (test_getopt): End lists with NULL.
14729         * tests/test-getopt_long.h (test_getopt_long): Likewise.
14730         (test_getopt_long_posix): Enhance test.
14731         * modules/getopt-posix-tests (Depends-on): Add stdbool.
14732         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
14733         getopt-gnu.
14734         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
14735         Likewise.
14736
14737 2009-11-27  Simon Josefsson  <simon@josefsson.org>
14738
14739         * modules/idpriv-droptemp-tests (Notice): Fix text.
14740
14741 2009-11-27  Jim Meyering  <meyering@redhat.com>
14742
14743         test-xalloc-die: avoid spurious failure due to libtool argv difference
14744         In a libtool-enabled project, this test would fail due to a difference
14745         in the emitted program name, e.g.,
14746         -test-xalloc-die: memory exhausted
14747         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
14748         Use program to avoid that.
14749         * modules/xalloc-die-tests (Depends-on): Add progname.
14750         * tests/test-xalloc-die.c: Include progname.h".
14751         (program_name): Remove decl.
14752         (main): Call set_program_name.
14753         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
14754
14755 2009-11-26  Richard Jones  <rjones@redhat.com>
14756
14757         w32sock: leave win32 error in place.
14758         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
14759
14760 2009-11-26  Eric Blake  <ebb9@byu.net>
14761
14762         init.sh: suggest to use skip_ and fail_ functions in comments
14763         * tests/init.sh: Add a sentence.
14764
14765 2009-11-25  Bruno Haible  <bruno@clisp.org>
14766
14767         init.sh: add documentation in comments
14768         * tests/init.sh: Add some developer and user documentation.
14769
14770 2009-11-26  Jim Meyering  <meyering@redhat.com>
14771
14772         init.sh: accommodate even those who specify bogus srcdir manually
14773         * tests/init.sh: Normally, srcdir is guaranteed by automake and
14774         configure-time tests to be sanitized, so that there is no need to
14775         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
14776         (with no double quotes) suffices.  However, since tests may be
14777         invoked manually, and since you may explicitly set srcdir to the
14778         name of a directory containing spaces, do quote its uses here.
14779         * tests/test-pread.sh: Likewise.
14780         Suggested by Bruno Haible.
14781
14782         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
14783         * tests/test-pread.sh: Write no data into the pipe, because
14784         test-pread actually reads none.  This avoids a diagnostic,
14785         "bash: echo: write error: Broken pipe", that arises in the unusual
14786         event something is ignoring SIGPIPE, and might be interpreted
14787         as some sort of failure.  Reported by Bruno Haible.
14788
14789 2009-11-25  Jim Meyering  <meyering@redhat.com>
14790
14791         test-pread: cover failure with ESPIPE and EINVAL
14792         * tests/test-pread.c (main): Test for failure, too.
14793         * tests/test-pread.sh: Invoke with stdin on a pipe.
14794         Suggested by Eric Blake.
14795
14796         pread: improvement and fix
14797         * modules/pread (Depends-on): Depend on lseek, for portability to
14798         e.g., mingw.  Suggested by Eric Blake.
14799         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
14800
14801         unistd.in.h: correct declaration of pread
14802         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
14803         Reported by Richard W.M. Jones.
14804
14805         test-pread.sh: distribute the test script
14806         * modules/pread-tests (Files): Include test-pread.sh.
14807
14808         test-pread.sh: clean up
14809         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
14810         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
14811         That is unnecessary, since it's always ".".
14812         Suggestion from Eric Blake.
14813
14814         test-pread.sh: make executable
14815         * tests/test-pread.sh: Set executable bit.
14816         Reported by Eric Blake.
14817
14818         correct typo in test-pread.sh
14819         * tests/test-pread.sh: Add #! line.
14820
14821         test pread
14822         * tests/test-pread.c: New file.
14823         * tests/test-pread.sh: Likewise.
14824         * modules/pread-tests: Likewise.
14825
14826         pread: new module
14827         * modules/pread: New file.
14828         * lib/unistd.in.h (pread): Define/declare.
14829         * lib/pread.c (pread): New file.
14830         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
14831         * modules/unistd (Makefile.am): Substitute witnesses.
14832         * doc/posix-functions/pread.texi (pread): Update.
14833         * MODULES.html.sh: Add pread.
14834
14835 2009-11-25  Jim Meyering  <meyering@redhat.com>
14836
14837         tests/init.sh: new file to be used via most *.sh tests
14838         * tests/init.sh: New file.
14839
14840 2009-11-25  Eric Blake  <ebb9@byu.net>
14841
14842         utimens: work around older Linux failure with symlinks
14843         * lib/utimens.c (lutimensat_works_really): New variable.
14844         (fdutimens, lutimens): Use it to manage kernels that support
14845         nanosecond times on files, but not on symlinks.
14846         Reported by Ondřej Vašík.
14847
14848         utimes: fix configure grammar
14849         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
14850
14851 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
14852
14853         regex: Fix fastmap for multibyte character ranges.
14854         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
14855         characters when a multibyte character range is included.
14856
14857 2009-11-22  Andy Wingo  <wingo@pobox.com>
14858
14859         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
14860         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
14861
14862 2009-11-24  Bruno Haible  <bruno@clisp.org>
14863
14864         doc: Most *_l functions exist in MacOS X 10.5.
14865         * doc/posix-functions/duplocale.texi: Update platforms list.
14866         * doc/posix-functions/freelocale.texi: Likewise.
14867         * doc/posix-functions/newlocale.texi: Likewise.
14868         * doc/posix-functions/uselocale.texi: Likewise.
14869         * doc/posix-functions/isalnum_l.texi: Likewise.
14870         * doc/posix-functions/isalpha_l.texi: Likewise.
14871         * doc/posix-functions/isblank_l.texi: Likewise.
14872         * doc/posix-functions/iscntrl_l.texi: Likewise.
14873         * doc/posix-functions/isdigit_l.texi: Likewise.
14874         * doc/posix-functions/isgraph_l.texi: Likewise.
14875         * doc/posix-functions/islower_l.texi: Likewise.
14876         * doc/posix-functions/isprint_l.texi: Likewise.
14877         * doc/posix-functions/ispunct_l.texi: Likewise.
14878         * doc/posix-functions/isspace_l.texi: Likewise.
14879         * doc/posix-functions/isupper_l.texi: Likewise.
14880         * doc/posix-functions/iswalnum_l.texi: Likewise.
14881         * doc/posix-functions/iswalpha_l.texi: Likewise.
14882         * doc/posix-functions/iswblank_l.texi: Likewise.
14883         * doc/posix-functions/iswcntrl_l.texi: Likewise.
14884         * doc/posix-functions/iswctype_l.texi: Likewise.
14885         * doc/posix-functions/iswdigit_l.texi: Likewise.
14886         * doc/posix-functions/iswgraph_l.texi: Likewise.
14887         * doc/posix-functions/iswlower_l.texi: Likewise.
14888         * doc/posix-functions/iswprint_l.texi: Likewise.
14889         * doc/posix-functions/iswpunct_l.texi: Likewise.
14890         * doc/posix-functions/iswspace_l.texi: Likewise.
14891         * doc/posix-functions/iswupper_l.texi: Likewise.
14892         * doc/posix-functions/iswxdigit_l.texi: Likewise.
14893         * doc/posix-functions/isxdigit_l.texi: Likewise.
14894         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
14895         * doc/posix-functions/strcasecmp_l.texi: Likewise.
14896         * doc/posix-functions/strcoll_l.texi: Likewise.
14897         * doc/posix-functions/strfmon_l.texi: Likewise.
14898         * doc/posix-functions/strftime_l.texi: Likewise.
14899         * doc/posix-functions/strncasecmp_l.texi: Likewise.
14900         * doc/posix-functions/strxfrm_l.texi: Likewise.
14901         * doc/posix-functions/tolower_l.texi: Likewise.
14902         * doc/posix-functions/toupper_l.texi: Likewise.
14903         * doc/posix-functions/towctrans_l.texi: Likewise.
14904         * doc/posix-functions/towlower_l.texi: Likewise.
14905         * doc/posix-functions/towupper_l.texi: Likewise.
14906         * doc/posix-functions/wcscoll_l.texi: Likewise.
14907         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
14908         * doc/posix-functions/wctrans_l.texi: Likewise.
14909         * doc/posix-functions/wctype_l.texi: Likewise.
14910         * doc/glibc-functions/strptime_l.texi: Likewise.
14911         * doc/glibc-functions/strtod_l.texi: Likewise.
14912         * doc/glibc-functions/strtof_l.texi: Likewise.
14913         * doc/glibc-functions/strtol_l.texi: Likewise.
14914         * doc/glibc-functions/strtold_l.texi: Likewise.
14915         * doc/glibc-functions/strtoll_l.texi: Likewise.
14916         * doc/glibc-functions/strtoul_l.texi: Likewise.
14917         * doc/glibc-functions/strtoull_l.texi: Likewise.
14918         * doc/glibc-functions/wcsftime_l.texi: Likewise.
14919         * doc/glibc-functions/wcstod_l.texi: Likewise.
14920         * doc/glibc-functions/wcstof_l.texi: Likewise.
14921         * doc/glibc-functions/wcstol_l.texi: Likewise.
14922         * doc/glibc-functions/wcstold_l.texi: Likewise.
14923         * doc/glibc-functions/wcstoll_l.texi: Likewise.
14924         * doc/glibc-functions/wcstoul_l.texi: Likewise.
14925         * doc/glibc-functions/wcstoull_l.texi: Likewise.
14926
14927 2009-11-24  Bruno Haible  <bruno@clisp.org>
14928
14929         duplocale: Fix logic bug.
14930         * lib/duplocale.c: Don't include <langinfo.h>.
14931         (_NL_LOCALE_NAME): Remove macro.
14932         (rpl_duplocale): Use setlocale instead of nl_langinfo.
14933         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
14934
14935 2009-11-23  Jim Meyering  <meyering@redhat.com>
14936
14937         test-update-copyright: don't hard-code /usr/bin/perl
14938         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
14939         perl to print the current year.  Gilles Espinasse reported that
14940         the replaced use of perl was hard-coded as /usr/bin/perl.
14941
14942 2009-11-23  Bruno Haible  <bruno@clisp.org>
14943
14944         duplocale: Add support for glibc 2.3.x.
14945         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
14946
14947 2009-11-22  Bruno Haible  <bruno@clisp.org>
14948
14949         vasnprintf: Tiny optimization.
14950         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
14951         MacOS X.
14952
14953 2009-11-22  Bruno Haible  <bruno@clisp.org>
14954
14955         Tests for module 'duplocale'.
14956         * modules/duplocale-tests: New file.
14957         * tests/test-duplocale.c: New file.
14958
14959         New module 'duplocale'.
14960         * m4/duplocale.m4: New file.
14961         * lib/locale.in.h (duplocale): New declaration.
14962         * lib/duplocale.c: New file.
14963         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
14964         gl_LOCALE_H_DEFAULTS): New macros.
14965         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
14966         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
14967         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
14968         REPLACE_DUPLOCALE.
14969         * modules/duplocale: New file.
14970         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
14971
14972 2009-11-22  Bruno Haible  <bruno@clisp.org>
14973
14974         * modules/locale-tests (configure.ac): Test for newlocale function.
14975         * tests/test-locale.c: When the system has extended locale functions,
14976         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
14977
14978         locale: Make locale_t available when possible.
14979         * lib/locale.in.h: Include <xlocale.h> when it exists.
14980         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
14981         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
14982         * modules/locale (Depends-on): Add extensions.
14983         (Makefile.am): Also substitute HAVE_XLOCALE_H.
14984         * doc/posix-headers/locale.texi: Document the problem with locale_t.
14985
14986 2009-11-22  Bruno Haible  <bruno@clisp.org>
14987
14988         Add comments.
14989         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
14990         invocation.
14991         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
14992         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
14993         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
14994
14995 2009-11-22  Bruno Haible  <bruno@clisp.org>
14996
14997         error: account for the possibility of freopen (stdout).
14998         * lib/error.c: Include <unistd.h>.
14999         (flush_stdout): New function, extracted from error and error_at_line.
15000         Determine stdout's fd dynamically.
15001         (error, error_at_line): Invoke flush_stdout.
15002         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
15003         * modules/error (Depends-on): Add unistd.
15004
15005 2009-11-22  Bruno Haible  <bruno@clisp.org>
15006
15007         diffseq: Add comment.
15008         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
15009
15010 2009-11-22  Jim Meyering  <meyering@redhat.com>
15011
15012         c-stack: avoid defining an unused static function
15013         * lib/c-stack.c (find_stack_direction): Do not define this function
15014         when it will not be used.
15015
15016         diffseq: avoid spurious gcc warnings
15017         * lib/diffseq.h (IF_LINT2): Define.
15018         (compareseq): Use it to initialize two members of "part".
15019         This avoids two used-uninitialized warnings.
15020
15021 2009-11-21  Jim Meyering  <meyering@redhat.com>
15022
15023         c-stack: avoid "ignoring return value of `write'" warning
15024         * lib/c-stack.c: Include "ignore-value.h".
15025         (die): Explicitly ignore each write return value.
15026         * modules/c-stack (Depends-on): Add ignore-value.
15027
15028 2009-11-21  Bruno Haible  <bruno@clisp.org>
15029
15030         diffseq: reduce scope of variable 'best'.
15031         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
15032         variable, earlier used for two different purposes.
15033
15034 2009-11-21  Jim Meyering  <meyering@redhat.com>
15035
15036         diffseq: remove useless assignment to "best"
15037         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
15038         assignment.  At that point "best" is already guaranteed to be zero.
15039
15040 2009-11-20  Eric Blake  <ebb9@byu.net>
15041
15042         build: mention ftp redirector in release announcements
15043         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
15044         values that used to come from cfg.mk; mention FTP redirect URL.
15045         * build-aux/announce-gen: Mention the mirror list.
15046         Suggested by Karl Berry.
15047
15048         nanosleep: improve port to mingw
15049         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
15050         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
15051         LIB_NANOSLEEP, but only when needed.
15052         * modules/select (Link): Document LIBSOCKET.
15053         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
15054         enough.
15055
15056         nanosleep: work around cygwin bug
15057         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
15058         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
15059         bug.
15060         (getnow): Delete, not needed.
15061         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
15062         LIB_CLOCK_GETTIME.
15063         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
15064         clock-time, gettime.
15065         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
15066         bug.
15067         * modules/nanosleep-tests: New test.
15068         * tests/test-nanosleep.c: New file.
15069
15070         sleep: work around cygwin bug
15071         * lib/sleep.c (rpl_sleep): Work around the bug.
15072         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
15073         (gl_PREREQ_SLEEP): Delete unused macro.
15074         * modules/sleep (Depends-on): Add verify.
15075         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
15076         * modules/unistd (Makefile.am): Substitute witness.
15077         * lib/unistd.in.h (sleep): Update prototype.
15078         * doc/posix-functions/sleep.texi (sleep): Document the bug.
15079         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
15080         * modules/sleep-tests (Depends-on): Check for alarm.
15081
15082 2009-11-20  Jim Meyering  <meyering@redhat.com>
15083
15084         maint.mk: improve sc_prohibit_magic_number_exit
15085         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
15086         so it does not match uses like System.exit(1).
15087         Add comments showing how to correct all offenders.
15088
15089 2009-11-19  Eric Blake  <ebb9@byu.net>
15090
15091         xalloc-die-tests: add missing library
15092         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
15093
15094         test-xvasprintf: silence compiler warnings
15095         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
15096         empty string from gcc.
15097
15098 2009-11-19  Jim Meyering  <meyering@redhat.com>
15099
15100         xfreopen: new module, from coreutils
15101         * modules/xfreopen: New module.
15102         * lib/xfreopen.c: New file.
15103         * lib/xfreopen.h: New file.
15104         * MODULES.html.sh (File stream based Input/Output"): Add it.
15105
15106 2009-11-19  Eric Blake  <ebb9@byu.net>
15107
15108         manywarnings: depend on warnings
15109         * modules/manywarnings (Depends-on): Add warnings.
15110
15111         build: avoid compiler warnings
15112         * lib/select.c (rpl_select): Delete unused variable.
15113         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
15114
15115 2009-11-18  Eric Blake  <ebb9@byu.net>
15116
15117         tests: avoid false negative with --with-packager
15118         * tests/test-version-etc.sh: Discard packager information.
15119         * tests/test-argp-version-etc-1.sh: Likewise.
15120         Reported by Mike Frysinger.
15121
15122         utimens: fix regression on Solaris
15123         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
15124         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
15125         can only change fd timestamps via futimesat.  Instead, use an
15126         additional witness macro to avoid BSD bug.
15127         Reported by Jim Meyering.
15128
15129 2009-11-17  Eric Blake  <ebb9@byu.net>
15130
15131         usleep: use it to simplify tests
15132         * modules/stat-time-tests (Depends-on): Add usleep.
15133         (configure.ac): Drop usleep check.
15134         * modules/chown-tests (Depends-on, configure.ac): Likewise.
15135         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
15136         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
15137         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
15138         * modules/openat-tests (Depends-on, configure.ac): Likewise.
15139         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
15140         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
15141         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
15142         Likewise.
15143         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
15144         * tests/test-lchown.h (nap): Likewise.
15145         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
15146         * tests/test-stat-time.c (nap): Likewise.
15147         * tests/test-utimens-common.h (nap): Update comments.
15148
15149         usleep: new module
15150         * modules/usleep: New file.
15151         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
15152         * lib/usleep.c (usleep): Likewise.
15153         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
15154         * modules/unistd (Makefile.am): Substitute witnesses.
15155         * lib/unistd.in.h (usleep): Add declaration.
15156         * doc/pastposix-functions/usleep.texi (usleep): Document this.
15157         * MODULES.html.sh (Date and time): Likewise.
15158         * modules/usleep-tests (Depends-on): New test.
15159         * tests/test-usleep.c: New file.
15160
15161         chown: work around OpenBSD bug
15162         * lib/chown.c (rpl_chown): Work around the bug.
15163         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
15164         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
15165         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
15166         * modules/chown (Depends-on): Add stdbool.
15167         * modules/lchown (Depends-on): Likewise.
15168         * doc/posix-functions/chown.texi (chown): Document the bug.
15169         * doc/posix-functions/lchown.texi (lchown): Likewise.
15170         * tests/test-lchown.h (test_chown): Relax test.
15171
15172         mkstemp: avoid conflict with C++ keyword template
15173         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
15174         * lib/mkostemp.c (mkostemp): Likewise.
15175         * lib/mkostemps.c (mkostemps): Likewise.
15176         * lib/mkstemp.c (mkstemp): Likewise.
15177         * lib/mkstemps.c (mkstemps): Likewise.
15178
15179         xalloc-die-tests: optimize
15180         * tests/test-xalloc-die.sh: Reduce number of processes.
15181
15182 2009-11-17  Simon Josefsson  <simon@josefsson.org>
15183
15184         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
15185         patch from ludo@gnu.org (Ludovic Courtès).
15186
15187 2009-11-17  Jim Meyering  <meyering@redhat.com>
15188
15189         version-etc: use proper license string
15190         * modules/version-etc (License): Use LGPL, not LGPLv3+.
15191         * modules/version-etc-fsf: Likewise.
15192
15193 2009-11-17  Simon Josefsson  <simon@josefsson.org>
15194
15195         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
15196         printed to stdout.  Deal with EOL differences.
15197
15198 2009-11-17  Eric Blake  <ebb9@byu.net>
15199
15200         unsetenv: work around Solaris bug
15201         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
15202         * lib/unsetenv.c (rpl_unsetenv): Work around it.
15203         Reported by Jim Meyering.
15204
15205         vasnprintf: avoid compiler warnings
15206         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
15207         variables.
15208         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
15209
15210 2009-11-17  Simon Josefsson  <simon@josefsson.org>
15211
15212         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
15213         settings since xalloc-die is no longer the self test,
15214         xalloc-die.sh is.
15215
15216 2009-11-17  Jim Meyering  <meyering@redhat.com>
15217
15218         test-xalloc-die.sh: make the code agree with the commit log
15219         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
15220         at the end, just in case you happen to have a test-xalloc-die
15221         program in some other PATH directory.
15222
15223         test-xalloc-die.sh: fix a portability bug
15224         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
15225         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
15226         Otherwise, argv[0] (as often seen in diagnostics) would be too
15227         system-dependent, sometimes with, and sometimes without the leading "./".
15228
15229         version-etc-fsf: relax license to LGPLv3+
15230         * modules/version-etc-fsf (License): Relax license.
15231
15232 2009-11-16  Eric Blake  <ebb9@byu.net>
15233
15234         xalloc-die-tests: avoid printing null pointer
15235         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
15236         shell script.
15237         * tests/test-xalloc-die.c (program_name): Declare.
15238         * tests/test-xalloc-die.sh (tmpfiles): New file.
15239
15240         setenv, unsetenv: work around various bugs
15241         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
15242         (setenv) [HAVE_SETENV]: Work around bugs.
15243         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
15244         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
15245         for bugs.
15246         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
15247         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
15248         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
15249         * modules/stdlib (Makefile.am): Update substitutions.
15250         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
15251         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
15252         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
15253         * modules/setenv-tests: New test.
15254         * modules/unsetenv-tests: Likewise.
15255         * tests/test-setenv.c: New file.
15256         * tests/test-unsetenv.c: Likewise.
15257
15258 2009-11-16  Jim Meyering  <meyering@redhat.com>
15259
15260         version-etc: relax license to LGPLv3+
15261         * modules/version-etc (License): Relax license.
15262
15263         better AC_REQUIRE expanded-before-required-warning avoidance
15264         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
15265         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
15266         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
15267         which is no longer needed.
15268
15269 2009-11-16  Eric Blake  <ebb9@byu.net>
15270
15271         test-freading: clean up temporary file
15272         * tests/test-freading.c (main): Remove file on success, and use
15273         ASSERT more liberally.
15274         Reported by Jim Meyering.
15275
15276 2009-11-16  Jim Meyering  <meyering@redhat.com>
15277
15278         avoid new AC_REQUIRE expanded-before-required warnings
15279         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
15280         merely using it.
15281         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
15282         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
15283
15284 2009-11-15  Simon Josefsson  <simon@josefsson.org>
15285
15286         * tests/test-xalloc-die.c: New file.
15287         * modules/xalloc-die-tests: New file.
15288         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
15289         XFAIL_TESTS so it can be appended by modules.
15290
15291 2009-11-15  Simon Josefsson  <simon@josefsson.org>
15292
15293         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
15294         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
15295
15296 2009-11-14  Eric Blake  <ebb9@byu.net>
15297
15298         fnmatch: avoid compiler warning
15299         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
15300         to silence compiler warning about mismatch signedness in ?:.
15301         Reported by Robert Millan.
15302
15303         intprops: add double-inclusion guard
15304         * lib/intprops.h: Allow idempotent includes.
15305         Suggested by Bruce Korb.
15306
15307         openat: detect Solaris fchownat bug
15308         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
15309         penalizing glibc chownat when only lchownat is broken.
15310         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
15311         trailing slash bugs.
15312         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
15313         * modules/openat-tests (Files): Include more files.
15314         (Depends-on): Add mgetgroups, sleep, stat-time.
15315         (configure.ac): Add additional checks.
15316         (Makefile.am): Build new test.
15317         * tests/test-fchownat.c: New file.
15318
15319         lchown: detect Solaris and FreeBSD bug
15320         * lib/lchown.c (rpl_lchown): Work around bug.
15321         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
15322         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
15323         * modules/unistd (Makefile.am): Populate it.
15324         * lib/unistd.in.h (lchown): Update declaration.
15325         * doc/posix-functions/lchown.texi (lchown): Document the bug.
15326         * modules/lchown-tests: New file.
15327         * tests/test-lchown.h (test_lchown): Likewise.
15328         * tests/test-lchown.c (main): Likewise.
15329
15330         chown: detect Solaris and FreeBSD bug
15331         * lib/chown.c (rpl_chown): Work around bug.
15332         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
15333         (gl_PREREQ_CHOWN): Delete.
15334         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
15335         * modules/unistd (Makefile.am): Populate it.
15336         * lib/unistd.in.h (chown): Update declaration.
15337         * lib/lchown.c (chown): Update client.
15338         * modules/lchown (Depends-on): Add lstat.
15339         * doc/posix-functions/chown.texi (chown): Document the bug.
15340         * doc/posix-functions/getgroups.texi (getgroups): Document
15341         getgroups pitfall.
15342         * modules/chown-tests: New file.
15343         * tests/test-chown.h (test_chown): Likewise.
15344         * tests/test-chown.c (main): Likewise.
15345
15346 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
15347
15348         gnulib-tool: correctly detect absence of m4 directories
15349         * gnulib-tool: Avoid extra newline on data passed to wc -l.
15350
15351 2009-11-14  Jim Meyering  <meyering@redhat.com>
15352
15353         maint.mk: Prohibit inclusion of "xalloc.h" without use.
15354         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
15355
15356 2009-11-14  John W. Eaton  <jwe@gnu.org>
15357
15358         strftime.h: wrap funtion declaration in extern "C" block
15359         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
15360
15361 2009-11-13  Eric Blake  <ebb9@byu.net>
15362
15363         getgroups: avoid compiler warning
15364         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
15365
15366         getgroups: work around FreeBSD bug
15367         * lib/getgroups.c (rpl_getgroups): Work around the bug.
15368         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
15369         * doc/posix-functions/getgroups.texi (getgroups): Document it.
15370         * tests/test-getgroups.c (main): Fix buffer overrun.
15371
15372         getgroups: avoid compilation failure
15373         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
15374         * modules/getgroups (Depends-on): Add stdint.
15375
15376 2009-11-13  Jim Meyering  <meyering@redhat.com>
15377
15378         test-getgroups: avoid compilation failure
15379         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
15380
15381 2009-11-13  Eric Blake  <ebb9@byu.net>
15382
15383         mgetgroups: new module, taken from coreutils
15384         * modules/mgetgroups: New file.
15385         * lib/mgetgroups.h: Likewise.
15386         * lib/mgetgroups.c (mgetgroups): Likewise.
15387         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
15388         * MODULES.html.sh (Users and groups): Mention it.
15389
15390         getgroups: don't expose GETGROUPS_T to user
15391         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
15392         an element at a time if GETGROUPS_T is wrong size.
15393         * lib/getugroups.h (getugroups): Change signature.
15394         * lib/unistd.in.h (getgroups): Likewise.
15395         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
15396         signature needs fixing.
15397         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
15398         AC_TYPE_GETGROUPS.
15399         * modules/group-member (Depends-on): Add getgroups.
15400         * lib/group-member.c (group_info, get_group_info): Use gid_t.
15401         (group_member): Rely on getgroups replacement.
15402         * lib/getugroups.c (getugroups): Use gid_t.
15403         * tests/test-getgroups.c (main): Likewise.
15404         * NEWS: Mention the signature change.
15405         * doc/posix-functions/getgroups.texi (getgroups): Mention the
15406         problem with signature.
15407         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
15408         GETGROUPS_T is still useful for setgroups.
15409
15410         getgroups, getugroups: provide stubs for mingw
15411         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
15412         * lib/getugroups.c (getugroups): Likewise.
15413         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
15414         function.  Modernize replacement scheme.
15415         (gl_PREREQ_GETGROUPS): Delete.
15416         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
15417         * modules/getgroups (configure.ac): Declare witness.
15418         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
15419         * modules/unistd (Depends-on): Substitute witness.
15420         * lib/unistd.in.h (getgroups): Declare replacement.
15421
15422         getgroups: avoid calling exit
15423         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
15424         drop xalloc.
15425         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
15426         dependencies.
15427         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
15428         exiting, in the rare case of malloc failure.
15429
15430         getgroups: fix logic error
15431         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
15432         has more than 20 groups.
15433         * modules/getgroups-tests: New test.
15434         * tests/test-getgroups.c: New file.
15435
15436 2009-11-13  Simon Josefsson  <simon@josefsson.org>
15437
15438         * tests/test-base64.c: Improve.
15439
15440 2009-11-13  Simon Josefsson  <simon@josefsson.org>
15441
15442         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
15443         Blake <ebb9@byu.net>.
15444
15445 2009-11-13  Simon Josefsson  <simon@josefsson.org>
15446
15447         * tests/test-xvasprintf.c: Add %s%s related checks.
15448
15449 2009-11-12  Eric Blake  <ebb9@byu.net>
15450
15451         version-etc: match standards.texi style
15452         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
15453         and use <> only for URLs.
15454
15455 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
15456
15457         fts: do not fail on a submount during traversal
15458         * lib/fts.c (fts_build): Read the stat info again after opening
15459         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
15460         Original report at http://bugzilla.redhat.com/501848.
15461
15462 2009-11-12  Jim Meyering  <meyering@redhat.com>
15463
15464         bootstrap: sync from coreutils
15465         * build-aux/bootstrap (bootstrap_epilogue): New function.
15466         Use git_modules_config in one more place.  This make bootstrap's
15467         --gnulib-srcdir option more useful for testing.
15468
15469         bootstrap: generalize autoheader check
15470         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
15471         AC_CONFIG_HEADERS.
15472
15473 2009-11-11  Eric Blake  <ebb9@byu.net>
15474
15475         mkfifoat: use new modules for Solaris and BSD bugs
15476         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
15477         * lib/mkfifoat.c (mknodat): Split...
15478         * lib/mknodat.c (mknodat): ...into new file.
15479         * modules/mkfifoat (Files): Ship new file.
15480         (Depends-on): Add mkfifo, mknod.
15481         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
15482         (Depends-on): Add symlink.
15483         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
15484         redundant with test_mkfifo.h.
15485         (do_mkfifoat, do_mknodat): New helpers.
15486
15487         mknod: new module
15488         * modules/mknod: New file.
15489         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
15490         * lib/mknod.c (mknod): Likewise.
15491         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
15492         defaults.
15493         * modules/sys_stat (Makefile.am): Substitute them.
15494         * lib/sys_stat.in.h (mknod): Declare replacement.
15495         * MODULES.html.sh (Support for systems lacking POSIX:2008):
15496         Document it.
15497         * doc/posix-functions/mknod.texi (mknod): Likewise.
15498         * modules/mknod-tests: New test.
15499         * tests/test-mknod.c: Likewise.
15500
15501         mkfifo: new module
15502         * modules/mkfifo: New file.
15503         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
15504         * lib/mkfifo.c (mkfifo): Likewise.
15505         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
15506         defaults.
15507         * modules/sys_stat (Makefile.am): Substitute them.
15508         * lib/sys_stat.in.h (mkfifo): Declare replacement.
15509         * MODULES.html.sh (Support for systems lacking POSIX:2008):
15510         Document it.
15511         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
15512         * modules/mkfifo-tests: New test.
15513         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
15514         from test-mkfifoat.c.
15515         * tests/test-mkfifo.c: New file.
15516
15517         readlink: detect FreeBSD bug
15518         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
15519         slash on symlink.
15520         * doc/posix-functions/readlink.texi (readlink): Document the bug.
15521         * tests/test-readlink.h (test_readlink): Enhance test.
15522
15523         symlink: detect FreeBSD bug
15524         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
15525         slash on symlink.
15526         * doc/posix-functions/symlink.texi (symlink): Document the bug.
15527         * tests/test-symlink.h (test_symlink): Enhance test.
15528
15529 2009-11-10  Eric Blake  <ebb9@byu.net>
15530
15531         link: detect FreeBSD bug
15532         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
15533         symlink.
15534         * doc/posix-functions/link.texi (link): Document the bug.
15535         * tests/test-link.h (test_link): Enhance test.
15536         * tests/test-linkat.c (main): Update caller.
15537
15538         unlink, remove: detect FreeBSD bug
15539         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
15540         slash on symlink.
15541         * doc/posix-functions/unlink.texi (unlink): Document the bug.
15542         * doc/posix-functions/remove.texi (remove): Likewise.
15543         * tests/test-unlink.h (test_unlink): Enhance test.
15544         * tests/test-remove.c (main): Likewise.
15545
15546 2009-11-09  Eric Blake  <ebb9@byu.net>
15547
15548         rename: detect FreeBSD bug
15549         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
15550         slash on symlink.
15551         * modules/renameat-tests (Depends-on): Add filenamecat.
15552         * tests/test-rename.h (test_rename): Allow one more errno.
15553         * tests/test-renameat.c (main): Likewise.
15554         * doc/posix-functions/rename.texi (rename): Document the bug.
15555
15556         open: detect FreeBSD bug
15557         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
15558         symlink.
15559         * doc/posix-functions/open.texi (open): Document the bug.
15560         * doc/posix-functions/utimes.texi (utimes): Likewise.
15561         * tests/test-open.h (test_open): Add parameters, and test symlink
15562         handling.
15563         * tests/test-open.c (main): Adjust caller.
15564         * tests/test-fcntl-safer.c (main): Likewise.
15565         * modules/open-tests (Depends-on): Add stdbool, symlink.
15566         * modules/fcntl-safer-tests (Depends-on): Likewise.
15567         * tests/test-openat.c (main): Add test-open tests.
15568
15569         stat: detect FreeBSD bug
15570         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
15571         symlink.
15572         * doc/posix-functions/stat.texi (stat): Document the bug.
15573         * tests/test-stat.h (test_stat_func): Add argument.
15574         * tests/test-stat.c (main): Adjust caller.
15575         * tests/test-fstatat.c (main): Likewise.
15576         * modules/stat-tests (Depends-on): Add stdbool, symlink.
15577         Reported by Jim Meyering.
15578
15579 2009-11-09  James Youngman  <jay@gnu.org>
15580
15581         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
15582         * lib/strftime.c: Correct placement of #include "ignore-value.h".
15583
15584 2009-11-08  Jim Meyering  <meyering@redhat.com>
15585
15586         utimens: remove invalid futimesat call
15587         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
15588         It used the file descriptor of the target file as the DIR_FD
15589         parameter and NULL as the file name.  That caused failure with
15590         errno == EFAULT on FreeBSD-8.0-rc2
15591
15592 2009-11-07  Eric Blake  <ebb9@byu.net>
15593
15594         fflush, freadseek: use fseeko, not fseek
15595         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
15596         (clear_ungetc_buffer): Avoid potential problems on large files.
15597         * lib/freadseek.c (freadseek): Likewise.
15598         * modules/freadseek (Depends-on): Add fseeko.
15599         * modules/fseek (configure.ac): Set a witness.
15600         * tests/test-fflush.c (main): Use fseeko.
15601         * tests/test-fpurge.c (fseek): Disable link warning.
15602         * tests/test-freadable.c (fseek): Likewise.
15603         * tests/test-freading.c (fseek): Likewise.
15604         * tests/test-fseeko.c (fseek): Likewise.
15605         * tests/test-ftell.c (fseek): Likewise.
15606         * tests/test-ftello.c (fseek): Likewise.
15607         * tests/test-fwritable.c (fseek): Likewise.
15608         * tests/test-fwriting.c (fseek): Likewise.
15609
15610 2009-11-06  Simon Josefsson  <simon@josefsson.org>
15611
15612         * modules/memchr (Depends-on): Drop getpagesize dependency.
15613
15614 2009-11-06  Simon Josefsson  <simon@josefsson.org>
15615
15616         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
15617         Reported by Ludovic Courtès.
15618         * build-aux/pmccabe2html: Improve example usage.
15619         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
15620
15621 2009-11-06  Jim Meyering  <meyering@redhat.com>
15622
15623         do-release-commit-and-tag: New module.
15624         Automate the release-commit and tag process.
15625         * build-aux/do-release-commit-and-tag: New script, from coreutils.
15626         * modules/do-release-commit-and-tag: New file.
15627         * MODULES.html.sh (Support for maintaining and releasing): Add it.
15628
15629 2009-11-06  Simon Josefsson  <simon@josefsson.org>
15630
15631         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
15632         because test-select.c uses inet_pton.
15633
15634 2009-11-06  Simon Josefsson  <simon@josefsson.org>
15635
15636         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
15637         GETADDRINFO_LIB.  Bump serial number.
15638         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
15639         Suggested by Eric Blake <ebb9@byu.net>.
15640
15641 2009-11-05  Eric Blake  <ebb9@byu.net>
15642
15643         strtod: detect darwin bug
15644         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
15645         Reported by Leo Davis.
15646
15647         freopen-safer: new module
15648         * modules/freopen-safer: New module.
15649         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
15650         * lib/freopen-safer.c (freopen_safer): New file.
15651         * lib/stdio-safer.h (freopen_safer): New declaration.
15652         * lib/stdio--.h (freopen): New override.
15653         * MODULES.html.sh (File stream based Input/Output): Mention it.
15654         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
15655         freopen-safer module.
15656         * doc/posix-functions/stderr.texi (stderr): Likewise.
15657         * doc/posix-functions/stdin.texi (stdin): Likewise.
15658         * doc/posix-functions/stdout.texi (stdout): Likewise.
15659         * modules/freopen-safer-tests: New test.
15660         * tests/test-reopen-safer.c: New file.
15661
15662 2009-11-05  Jim Meyering  <meyering@redhat.com>
15663
15664         maint.mk: Prohibit inclusion of "close-stream.h" without use.
15665         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
15666
15667 2009-11-05  Simon Josefsson  <simon@josefsson.org>
15668
15669         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
15670
15671 2009-11-05  Simon Josefsson  <simon@josefsson.org>
15672
15673         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
15674
15675 2009-11-05  Simon Josefsson  <simon@josefsson.org>
15676
15677         Fix link error.
15678         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
15679         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
15680
15681 2009-11-05  Simon Josefsson  <simon@josefsson.org>
15682
15683         * tests/test-func.c: Also test value of __func__.
15684
15685 2009-11-05  Simon Josefsson  <simon@josefsson.org>
15686
15687         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
15688         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
15689
15690 2009-11-05  Bruno Haible  <bruno@clisp.org>
15691
15692         Fix link error.
15693         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
15694         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
15695         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
15696
15697 2009-11-05  Bruno Haible  <bruno@clisp.org>
15698
15699         Tests for module 'inet_pton'.
15700         * modules/inet_pton-tests: New file.
15701         * tests/test-inet_pton.c: New file.
15702
15703 2009-11-05  Bruno Haible  <bruno@clisp.org>
15704
15705         Tests for module 'inet_ntop'.
15706         * modules/inet_ntop-tests: New file.
15707         * tests/test-inet_ntop.c: New file.
15708
15709 2009-11-04  Eric Blake  <ebb9@byu.net>
15710
15711         stdlib-safer: wrap all mkstemp variants
15712         * modules/mkostemp (configure.ac): Set witness.
15713         * modules/mkostemps (configure.ac): Likewise.
15714         * modules/mkstemps (configure.ac): Likewise.
15715         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
15716         (mkstemps_safer): Wrap more functions.
15717         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
15718         wrapping.
15719         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
15720         (mkstemps_safer): Implement the wrappers.
15721
15722         mkstemps, mkostemps: new modules
15723         * modules/mkostemps: New module.
15724         * modules/mkstemps: Likewise.
15725         * lib/mkostemps.c (mkostemps): New file.
15726         * lib/mkstemps.c (mkstemps): Likewise.
15727         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
15728         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
15729         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
15730         * modules/stdlib (Makefile.am): Substitute them.
15731         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
15732         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
15733         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
15734         * doc/gnulib.texi (Glibc stdlib.h): Include them.
15735         * MODULES.html.sh (File system functions): Mention them.
15736
15737         tempname: resync from glibc
15738         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
15739         same values for __GT_FILE as glibc.  Abort even when assertions
15740         are disabled.
15741         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
15742         match its value otherwise.  Allow idempotent inclusion.
15743         * lib/mkdtemp.c (mkdtemp): Adjust caller.
15744         * lib/mkostemp.c (mkostemp): Likewise.
15745         * lib/mkstemp.c (mkstemp): Likewise.
15746         * lib/tmpfile.c (tmpfile): Likewise.
15747         * NEWS: Document this.
15748
15749         utimens: fix use of futimens on older Linux
15750         * lib/utimens.c (fdutimens): Use updated, rather than original,
15751         timespec to avoid bug in older Linux kernel.
15752         Reported by Simon Josefsson.
15753
15754 2009-11-04  Bruno Haible  <bruno@clisp.org>
15755
15756         Make num_processors more flexible and consistent.
15757         * lib/nproc.h (enum nproc_query): New type.
15758         (num_processors): Add a 'query' argument.
15759         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
15760         (num_processors): Add a 'query' argument. Test the value of the
15761         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
15762         mingw, count the number of CPUs available for the current process.
15763         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
15764         Check for sched_getaffinity and sched_getaffinity_np.
15765         * modules/nproc (Depends-on): Add c-ctype, extensions.
15766         * NEWS: Mention the change.
15767
15768 2009-11-03  Bruno Haible  <bruno@clisp.org>
15769
15770         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
15771
15772 2009-11-03  Jim Meyering  <meyering@redhat.com>
15773
15774         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
15775         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
15776         if it is defined.
15777
15778 2009-11-02  Eric Blake  <ebb9@byu.net>
15779
15780         mktime, timegm: share common declaration
15781         * lib/mktime-internal.h: New file.
15782         * lib/mktime.c: Use it rather than open-coding a declaration.
15783         * lib/timegm.c: Likewise.
15784         * modules/mktime (Files): Ship it.
15785         * modules/timegm (Files): Likewise.
15786         Suggested by Bruno Haible.
15787
15788         test-update-copyright: update test to match script changes
15789         * tests/test-update-copyright.sh: Avoid hard-coding perl
15790         location.  Don't update *.bak created by earlier runs.
15791
15792 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
15793             Simon Josefsson  <simon@josefsson.org>
15794             Bruno Haible  <bruno@clisp.org>
15795
15796         Fix link error on Solaris 8.
15797         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
15798         also in libnsl. Define also INET_PTON_LIB.
15799         * modules/inet_pton (Link): New section.
15800
15801 2009-11-02  Simon Josefsson  <simon@josefsson.org>
15802             Bruno Haible  <bruno@clisp.org>
15803
15804         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
15805         * modules/inet_ntop (Link): New section.
15806         Reported by Boyan Kasarov <bkasarov@gmail.com>.
15807
15808 2009-11-02  Eric Blake  <ebb9@byu.net>
15809
15810         maint: avoid compiler warnings in m4 macros
15811         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
15812         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
15813
15814 2009-11-02  Simon Josefsson  <simon@josefsson.org>
15815
15816         * m4/pmccabe2html.m4: Remove file.
15817         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
15818         function.  Change maintainer.
15819         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
15820         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
15821         Courtès).
15822
15823 2009-10-31  Eric Blake  <ebb9@byu.net>
15824
15825         fseeko: fix m4 regression
15826         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
15827         regression from 2009-10-27.
15828         Reported by Ralf Wildenhues.
15829
15830 2009-10-31  Jim Meyering  <meyering@redhat.com>
15831
15832         inttostr: aesthetics and improved (compile-time) safety
15833         Define inttype_is_signed rather than inttype_is_unsigned,
15834         since the sole use is via "#if inttype_is_signed".
15835         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
15836         inttype_is_unsigned.
15837         * lib/offtostr.c (inttype_is_signed): Likewise.
15838         * lib/uinttostr.c (inttype_is_signed): Likewise.
15839         * lib/umaxtostr.c (inttype_is_signed): Likewise.
15840         * lib/inttostr.c (inttostr): Use verify to cross-check the
15841         inttype_is_signed value and the signedness of the actual type.
15842         * modules/inttostr (Depends-on): Add verify.
15843
15844 2009-10-30  Eric Blake  <ebb9@byu.net>
15845
15846         build: avoid compiler warnings
15847         * lib/fchmodat.c (lchmod): Mark unused variables.
15848         * lib/getopt.c (_getopt_initialize): Likewise.
15849         * lib/mktime.c (__mktime_internal): Provide prototype.
15850         * lib/inttostr.c (inttostr): Avoid compiler warning even with
15851         older gcc that do not understand #pragma GCC diagnostic.
15852         * lib/uinttostr.c (inttype_is_unsigned): Define.
15853         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
15854
15855 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
15856
15857         stat: fix compilation on AIX
15858         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
15859         only see struct stat64.
15860
15861 2009-10-30  Eric Blake  <ebb9@byu.net>
15862
15863         exclude: make more robust
15864         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
15865         rather than masking a coding bug.
15866         Suggested by Bruno Haible.
15867
15868 2009-10-30  Jim Meyering  <meyering@redhat.com>
15869
15870         perl scripts: remove #!/usr/bin/perl in favor of more portable...
15871         Rather than putting #!/usr/bin/perl on the first line,
15872         start with a variant of what's recommended by "man perlrun" that
15873         invokes the first "perl" program from your shell's search path.
15874         * build-aux/gitlog-to-changelog: Replace #!... as above.
15875         Add a "Local Variables" perl mode setting.
15876         Prompted by a patch from Ludovic Courtès.
15877         Improved by Eric Blake.
15878         * build-aux/useless-if-before-free: Likewise.
15879         * build-aux/announce-gen: Likewise.
15880         * build-aux/update-copyright: Likewise.
15881
15882 2009-10-29  Eric Blake  <ebb9@byu.net>
15883
15884         filenamecat-lgpl: adjust clients
15885         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
15886         filenamecat.
15887         * modules/renameat (Depends-on): Likewise.
15888
15889         filenamecat: split into filenamecat-lgpl
15890         * modules/filenamecat-lgpl: New module.
15891         * modules/filenamecat (Files): Move library-safe files into
15892         filenamecat-lgpl.
15893         (Depends-on): Add filenamecat-lgpl.
15894         (configure.ac): Declare witness.
15895         * lib/filenamecat.h (file_name_concat): Only declare when using
15896         GPL module.
15897         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
15898         Move...
15899         * lib/filenamecat-lgpl.c: ...into new file.
15900         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
15901         (gl_FILE_NAME_CONCAT): Use it.
15902         * MODULES.html.sh (File system functions): Mention new module.
15903
15904         argp: avoid memory leak
15905         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
15906         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
15907         base_name, since the latter malloc()s and can call exit().
15908         Leak introduced 2006-07-03.
15909
15910         dirname-lgpl: adjust clients that don't need full dirname
15911         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
15912         * modules/filenamecat (Depends-on): Likewise.
15913         * modules/linkat (Depends-on): Likewise.
15914         * modules/mkancesdirs (Depends-on): Likewise.
15915         * modules/mkdir (Depends-on): Likewise.
15916         * modules/openat (Depends-on): Likewise.
15917         * modules/savewd (Depends-on): Likewise.
15918         * modules/rename (Depends-on): Likewise.
15919         (License): Relax license.
15920         * modules/mkdir-tests (Depends-on): Drop progname.
15921         (Makefile.am): Delete unneeded LDADD.
15922         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
15923
15924         dirname: split into dirname-lgpl
15925         * modules/dirname-lgpl: New module.
15926         * modules/dirname (Files): Move library-safe files into
15927         dirname-lgpl.
15928         (Depends-on): Add dirname-lgpl.
15929         (configure.ac): Declare witness.
15930         * modules/double-slash-root (License): Relax license.
15931         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
15932         module.
15933         * lib/dirname.c (dir_len, mdir_name): Move...
15934         * lib/dirname-lgpl.c: ...into new file.
15935         * lib/basename.c (last_component, base_len): Move...
15936         * lib/basename-lgpl.c: ...into new file.
15937         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
15938         (gl_DIRNAME): Use it.
15939         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
15940         Mention new module.
15941         * modules/dirname-tests (Depends-on): Add progname.
15942         * tests/test-dirname.c (program_name): Delete.
15943
15944         mkdir: make safe for libraries
15945         * modules/mkdir (Depends-on): Drop xalloc.
15946         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
15947         exit.
15948
15949         tests: avoid some compiler warnings
15950         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
15951         literals.
15952         * tests/test-memchr.c (main): Avoid type mismatch.
15953         * tests/test-arpa_inet.c (main): Avoid unused parameters.
15954         * tests/test-base64.c (main): Likewise.
15955         * tests/test-getdelim.c (main): Likewise.
15956         * tests/test-gethostname.c (main): Likewise.
15957         * tests/test-getline.c (main): Likewise.
15958         * tests/test-netinet_in.c (main): Likewise.
15959         * tests/test-select.c (open_server_socket, main): Likewise.
15960         * tests/test-select-stdin.c (main): Likewise.
15961         * tests/test-sockets.c (main): Likewise.
15962         * tests/test-strsignal.c (main): Likewise.
15963         * tests/test-sys_select.c (main): Likewise.
15964         * tests/test-sys_socket.c (main): Likewise.
15965         * tests/test-u64.c (main): Likewise.
15966         * tests/test-xfprintf-posix.c (main): Likewise.
15967         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
15968
15969         sockets: avoid compiler warning
15970         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
15971
15972         maint: detect usage(1) and other suspicious exits
15973         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
15974
15975 2009-10-29  Jim Meyering  <meyering@redhat.com>
15976
15977         timespec: long-to-int truncation could make timespec_cmp malfunction
15978         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
15979         a multiple of 2^32 nanoseconds as no difference.
15980
15981 2009-10-28  Jim Meyering  <meyering@redhat.com>
15982
15983         fprintftime: wrap macro code argument in "do {...} while(0)"
15984         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
15985         cpy macro must be a statement that can be followed by a semicolon.
15986         Now that the else clause contains a comment and is hence longer
15987         than one line, I require curly braces.  That in turn requires
15988         that we wrap this code block in the standard do...while(0).
15989
15990         fprintftime: remove stray semicolon from previous change
15991         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
15992
15993         fprintftime: avoid a warning about ignored fwrite return value
15994         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
15995         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
15996         that is unsafe.
15997         * modules/fprintftime (Depends-on): Add ignore-value.
15998
15999         exclude: avoid an unwarranted warning
16000         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
16001
16002 2009-10-27  Eric Blake  <ebb9@byu.net>
16003
16004         fseek: avoid compilation failure when fflush is replaced
16005         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
16006         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
16007         module is in use.
16008         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
16009         module is not in use; since REPLACE_FSEEK worked otherwise.
16010         (GNULIB_FTELLO): Likewise for ftell.
16011         Reported by Ian Beckwith and others.
16012
16013 2009-10-27  Bruno Haible  <bruno@clisp.org>
16014
16015         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
16016         Reported by Jim Meyering.
16017
16018 2009-10-27  Jim Meyering  <jim@meyering.net>
16019             Bruno Haible  <bruno@clisp.org>
16020
16021         Avoid warning despite dropping the return value of fwrite.
16022         * lib/unicodeio.c: Include ignore-value.h.
16023         (fwrite_success_callback): Explicitly ignore fwrite's return value.
16024         * modules/unicodeio (Depends-on): Add ignore-value.
16025
16026 2009-10-26  Eric Blake  <ebb9@byu.net>
16027
16028         areadlinkat: fix fallback path
16029         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
16030         pointer and zero.
16031
16032 2009-10-22  Pádraig Brady  <P@draigBrady.com>
16033
16034         Use a better IO block size for modern systems
16035         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
16036         * lib/md2.c: Likewise.
16037         * lib/md4.c: Likewise.
16038         * lib/md5.c: Likewise.
16039         * lib/sha1.c: Likewise.
16040         * lib/sha256.c: Likewise.
16041         * lib/sha512.c: Likewise.
16042
16043 2009-10-22  Eric Blake  <ebb9@byu.net>
16044
16045         tests: avoid several compiler warnings
16046         * tests/test-getcwd.c (main): Avoid buffer underflow.
16047         * tests/test-getdate.c (main): String literals are not safe with
16048         putenv, so use setenv.  Declare unused argument.
16049         * modules/getdate-tests (Depends-on): Add setenv.
16050         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
16051         problems with string literals in char *.
16052         * tests/test-hash.c (main): Avoid shadowing declaration.
16053         (insert_new): Treat string literals as char const *.
16054         * tests/test-getopt.h (test_getopt): Likewise.
16055         (getopt_loop): Alter types to minimize casting elsewhere.
16056         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
16057         (test_getopt_long_posix): Likewise.
16058         (do_getopt_long): Add wrapper to minimize casting.
16059         * tests/test-atexit.c (clear_temp_file): Use void.
16060         * tests/test-areadlink-with-size.c (main): Declare unused
16061         arguments.
16062         * tests/test-areadlink.c (main): Likewise.
16063         * tests/test-areadlinkat-with-size.c (main): Likewise.
16064         * tests/test-areadlinkat.c (main): Likewise.
16065         * tests/test-canonicalize-lgpl.c (main): Likewise.
16066         * tests/test-canonicalize.c (main): Likewise.
16067         * tests/test-dirent-safer.c (main): Likewise.
16068         * tests/test-dirname.c (main): Likewise.
16069         * tests/test-dup2.c (main): Likewise.
16070         * tests/test-fchdir.c (main): Likewise.
16071         * tests/test-fcntl-h.c (main): Likewise.
16072         * tests/test-fcntl-safer.c (main): Likewise.
16073         * tests/test-fdopendir.c (main): Likewise.
16074         * tests/test-fdutimensat.c (main): Likewise.
16075         * tests/test-fflush.c (main): Likewise.
16076         * tests/test-filenamecat.c (main): Likewise.
16077         * tests/test-filevercmp.c (main): Likewise.
16078         * tests/test-fopen-safer.c (main): Likewise.
16079         * tests/test-fopen.c (main): Likewise.
16080         * tests/test-fpending.c (main): Likewise.
16081         * tests/test-fpurge.c (main): Likewise.
16082         * tests/test-freading.c (main): Likewise.
16083         * tests/test-fstatat.c (main): Likewise.
16084         * tests/test-fsync.c (main): Likewise.
16085         * tests/test-futimens.c (main): Likewise.
16086         * tests/test-getndelim2.c (main): Likewise.
16087         * tests/test-gettimeofday.c (main): Likewise.
16088         * tests/test-getopt.c (main): Likewise.
16089         * tests/test-i-ring.c (main): Likewise.
16090         * tests/test-inttypes.c (main): Likewise.
16091         * tests/test-link.c (main): Likewise.
16092         * tests/test-lstat.c (main): Likewise.
16093         * tests/test-math.c (main): Likewise.
16094         * tests/test-md5.c (main): Likewise.
16095         * tests/test-memchr2.c (main): Likewise.
16096         * tests/test-memrchr.c (main): Likewise.
16097         * tests/test-mkdir.c (main): Likewise.
16098         * tests/test-mkdirat.c (main): Likewise.
16099         * tests/test-mkfifoat.c (main): Likewise.
16100         * tests/test-open.c (main): Likewise.
16101         * tests/test-openat-safer.c (main): Likewise.
16102         * tests/test-openat.c (main): Likewise.
16103         * tests/test-quotearg.c (main): Likewise.
16104         * tests/test-rawmemchr.c (main): Likewise.
16105         * tests/test-readlink.c (main): Likewise.
16106         * tests/test-remove.c (main): Likewise.
16107         * tests/test-rename.c (main): Likewise.
16108         * tests/test-renameat.c (main): Likewise.
16109         * tests/test-rmdir.c (main): Likewise.
16110         * tests/test-sha1.c (main): Likewise.
16111         * tests/test-signal.c (main): Likewise.
16112         * tests/test-sigaction.c (main): Likewise.
16113         * tests/test-stat.c (main): Likewise.
16114         * tests/test-stat-time.c (main): Likewise.
16115         * tests/test-stddef.c (main): Likewise.
16116         * tests/test-stdint.c (main): Likewise.
16117         * tests/test-stdio.c (main): Likewise.
16118         * tests/test-stdlib.c (main): Likewise.
16119         * tests/test-strchrnul.c (main): Likewise.
16120         * tests/test-strerror.c (main): Likewise.
16121         * tests/test-string.c (main): Likewise.
16122         * tests/test-strtod.c (main): Likewise.
16123         * tests/test-strverscmp.c (main): Likewise.
16124         * tests/test-symlink.c (main): Likewise.
16125         * tests/test-symlinkat.c (main): Likewise.
16126         * tests/test-sys_stat.c (main): Likewise.
16127         * tests/test-sys_time.c (main): Likewise.
16128         * tests/test-time.c (main): Likewise.
16129         * tests/test-unistd.c (main): Likewise.
16130         * tests/test-unlink.c (main): Likewise.
16131         * tests/test-unlinkat.c (main): Likewise.
16132         * tests/test-utimens.c (main): Likewise.
16133         * tests/test-utimensat.c (main): Likewise.
16134         * tests/test-version-etc.c (main): Likewise.
16135         * tests/test-wchar.c (main): Likewise.
16136         * tests/test-wctype.c (main): Likewise.
16137         * tests/test-xprintf-posix.c (main): Likewise.
16138         * tests/test-posixtm.c (main): Likewise.
16139         (STREQ): Delete unused macro.
16140         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
16141         shadowed variables.
16142         * tests/test-memchr.c (main): Likewise.
16143
16144 2009-10-21  Eric Blake  <ebb9@byu.net>
16145
16146         areadlinkat: avoid failure on older glibc
16147         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
16148         rather than mis-comparing 0 against FUNC_RESULT of char*.
16149
16150 2009-10-21  Bruno Haible  <bruno@clisp.org>
16151
16152         * modules/stpncpy (License): Relicense under LGPLv2+.
16153         Reported by David Lutterkort <lutter@redhat.com>.
16154
16155 2009-10-20  Eric Blake  <ebb9@byu.net>
16156
16157         utimensat: work around Solaris 9 bug
16158         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
16159         has trailing slash bugs.
16160         * tests/test-lutimens.h (test_lutimens): Enhance test.
16161         * tests/test-utimens.h (test_utimens): Likewise.
16162         * doc/posix-functions/utime.texi (utime): Enhance documentation.
16163         * doc/posix-functions/utimes.texi (utimes): Likewise.
16164         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
16165         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
16166         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
16167         * doc/posix-functions/futimens.texi (futimens): Likewise.
16168
16169         fdutimensat: new module
16170         * modules/fdutimensat: New file.
16171         * lib/fdutimensat.c (fdutimensat): Likewise.
16172         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
16173         * MODULES.html.sh (File system functions): Mention module.
16174         * modules/fdutimensat-tests: New test.
16175         * tests/test-fdutimensat.c: Likewise.
16176
16177         doc: regenerate INSTALL
16178         * doc/INSTALL: Reflect recent autoconf update.
16179         * doc/INSTALL.ISO: Likewise.
16180         * doc/INSTALL.UTF-8: Likewise.
16181
16182 2009-10-20  Pádraig Brady  <P@draigBrady.com>
16183
16184         acl: warn if ACL support is not detected
16185         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
16186
16187 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
16188
16189         * lib/nproc.h: Add extern "C" block for C++.
16190
16191 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
16192             Bruno Haible  <bruno@clisp.org>
16193
16194         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
16195         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
16196         * doc/posix-functions/isalpha.texi: Likewise.
16197         * doc/posix-functions/isblank.texi: Likewise.
16198         * doc/posix-functions/iscntrl.texi: Likewise.
16199         * doc/posix-functions/isdigit.texi: Likewise.
16200         * doc/posix-functions/isgraph.texi: Likewise.
16201         * doc/posix-functions/islower.texi: Likewise.
16202         * doc/posix-functions/isprint.texi: Likewise.
16203         * doc/posix-functions/ispunct.texi: Likewise.
16204         * doc/posix-functions/isspace.texi: Likewise.
16205         * doc/posix-functions/isupper.texi: Likewise.
16206         * doc/posix-functions/isxdigit.texi: Likewise.
16207
16208 2009-10-18  Bruno Haible  <bruno@clisp.org>
16209
16210         Tests for module 'isblank'.
16211         * modules/isblank-tests: New file.
16212         * tests/test-isblank.c: New file.
16213
16214         New module 'isblank'.
16215         * lib/isblank.c: New file.
16216         * m4/isblank.m4: New file.
16217         * modules/isblank: New file.
16218         * doc/posix-functions/isblank.texi: Mention the new module.
16219
16220 2009-10-18  Bruno Haible  <bruno@clisp.org>
16221
16222         New module 'ctype'.
16223         * lib/ctype.in.h: New file.
16224         * m4/ctype.m4: New file.
16225         * modules/ctype: New file.
16226         * doc/posix-headers/ctype.texi: Mention the new module.
16227
16228 2009-10-18  Jim Meyering  <meyering@redhat.com>
16229
16230         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
16231         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
16232         right after its initialization, rather than farther down.
16233         Keeping these in close proximity makes it easier to ensure
16234         that each such variable is initialized.  E.g.,
16235
16236             LIB_CLOCK_GETTIME=
16237             AC_SUBST([LIB_CLOCK_GETTIME])
16238
16239         This change also increments these serial numbers.
16240         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
16241         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
16242         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
16243
16244 2009-10-18  Bruno Haible  <bruno@clisp.org>
16245
16246         Don't let environment variables perturb build.
16247         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
16248         (gl_PREREQ_GETHRXTIME): ... not here.
16249
16250 2009-10-18  Bruno Haible  <bruno@clisp.org>
16251
16252         Avoid symlink attack in localcharset module.
16253         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
16254         (O_NOFOLLOW): Define fallback.
16255         (get_charset_aliases): Don't open the file if it is a symbolic link.
16256         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
16257         gl_FCNTL_H.
16258         (gl_FCNTL_H): Require it.
16259         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
16260         * modules/localcharset (Files): Add m4/fcntl_h.m4.
16261         Reported by Fergal Glynn <fglynn@veracode.com>.
16262
16263 2009-10-18  Bruno Haible  <bruno@clisp.org>
16264
16265         Implement nproc for mingw.
16266         * lib/nproc.c: Include <windows.h>
16267         (num_processors): On native Windows platforms, try GetSystemInfo.
16268
16269 2009-10-18  Bruno Haible  <bruno@clisp.org>
16270
16271         Implement nproc for IRIX.
16272         * lib/nproc.c: Include <sys/sysmp.h>.
16273         (num_processors): On IRIX systems, try sysmp.
16274         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
16275
16276 2009-10-18  Bruno Haible  <bruno@clisp.org>
16277
16278         Implement nproc for HP-UX.
16279         * lib/nproc.c: Include <sys/pstat.h>
16280         (num_processors): On HP-UX systems, try pstat_getdynamic.
16281         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
16282         pstat_getdynamic.
16283
16284 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
16285             Bruno Haible  <bruno@clisp.org>
16286
16287         Implement nproc for NetBSD, OpenBSD.
16288         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
16289         (ARRAY_SIZE): New macro.
16290         (num_processors): On BSD systems, try sysctl of HW_NCPU.
16291         * m4/nproc.m4: New file.
16292         * modules/nproc (Files): Add m4/nproc.m4.
16293         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
16294         (Makefile.am): Instead, augment lib_SOURCES.
16295
16296 2009-10-18  Bruno Haible  <bruno@clisp.org>
16297
16298         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
16299         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
16300         sys/param.h.
16301
16302 2009-10-16  Eric Blake  <ebb9@byu.net>
16303
16304         utimensat: new module
16305         * modules/utimensat: New file.
16306         * lib/utimensat.c (utimensat): Likewise.
16307         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
16308         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
16309         so we can work around Linux bugs.
16310         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
16311         * modules/sys_stat (Makefile.am): Substitute them.
16312         * lib/sys_stat.in.h (utimensat): Declare it.
16313         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
16314         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
16315         * modules/utimensat-tests: New test.
16316         * tests/test-utimensat.c: Likewise.
16317
16318         utimens: let lutimens work on non-symlinks
16319         * lib/utimens.c (lutimens): Fall back to utimens rather than
16320         failing with ENOSYS, when file is not a symlink.
16321         (utimens): Reduce redirection.
16322         * tests/test-lutimens.h (test_lutimens): Update test to cover
16323         non-symlinks.
16324         * tests/test-utimens.h (test_utimens): Update test to cover
16325         symlinks.
16326         * tests/test-utimens.c (main): Update caller.
16327
16328         utimens: cache whether utimensat syscall works
16329         * lib/utimens.c (utimensat_works_really): New cache variable.
16330         (fdutimens, lutimens): Use it to avoid failing syscall.
16331
16332         test-stat-time, test-utimens: improve portability
16333         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
16334         ext4 on alpha, and for cygwin.
16335         * tests/test-utimens-common.h: New file.
16336         (nap): Factor delays into single function.
16337         * tests/test-lutimens.h (test_lutimens): Use new header.
16338         * tests/test-futimens.h (test_futimens): Likewise.
16339         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
16340         timestamps to occur from same machine, as was done previously for
16341         test_utimens.
16342         * modules/utimens-tests (Files): Ship new file.
16343         * modules/futimens-tests (Files): Likewise.
16344         Reported in part by Jim Meyering.
16345
16346         sys_stat: sort replacement declarations
16347         * lib/sys_stat.in.h: Sort declarations.
16348         * lib/futimens.c (futimens): Fix typo.
16349
16350 2009-10-15  Jim Meyering  <meyering@redhat.com>
16351
16352         don't let environment settings perturb build
16353         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
16354         could cause a configure-time and/or build-time malfunction.
16355         Typically, a configure-time function-in-library test is performed
16356         via code like this:
16357
16358           LIB_VAR=
16359           AC_SUBST([LIB_VAR])
16360           prefix_saved_LIBS=$LIBS
16361             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
16362                        [test "$ac_cv_search_FUNC" = "none required" ||
16363                         LIB_VAR=$ac_cv_search_FUNC])
16364           LIBS=$prefix_saved_LIBS
16365
16366         However, in each of the files affected by this change, the LIB_VAR=
16367         initialization was omitted.  Thus, when set in the environment, its
16368         value would propagate into generated Makefiles when FUNC is not found
16369         in LIB_NAME.
16370         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
16371         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
16372         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
16373
16374 2009-10-14  Eric Blake  <ebb9@byu.net>
16375
16376         fchdir: avoid infinite recursion in mingw
16377         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
16378         recursing.
16379
16380         test-stat-time: port to mingw
16381         * tests/test-stat-time.c (force_unlink): Return a value.
16382         (test_ctime) [W32]: Fix compilation error.
16383         (nap): Don't call usleep with too large an argument.  Use
16384         force_unlink.
16385         * doc/pastposix-functions/usleep.texi (usleep): Document the
16386         portability issue.
16387
16388 2009-10-13  Jim Meyering  <meyering@redhat.com>
16389
16390         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
16391         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
16392         * modules/pipe-filter-ii: Likewise.
16393         * modules/sys_socket-tests: Likewise.
16394         * modules/tsearch-tests: Likewise.
16395         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
16396         (check): Depend on it.
16397
16398 2009-10-12  Eric Blake  <ebb9@byu.net>
16399
16400         utimens-tests: port to NFS file systems
16401         * tests/test-utimens.h (test_utimens): Refactor utimecmp
16402         comparisons to avoid spurious failures from timestamp drift
16403         between NFS machines.
16404
16405 2009-10-12  Eric Blake  <ebb9@byu.net>
16406
16407         stat-time-tests: minor cleanups
16408         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
16409         * tests/test-stat-time.c (nap): Separate assignment from call.
16410         Suggested by Paolo Bonzini and Bruno Haible.
16411
16412         sys_stat: guarantee struct timespec
16413         * lib/sys_stat.in.h (includes): Always include <time.h>
16414         * modules/sys_stat (Depends-on): Add time.
16415         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
16416         mode_t permission values.
16417         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
16418         get at subsecond timestamps.
16419
16420 2009-10-10  Eric Blake  <ebb9@byu.net>
16421
16422         futimens: new module
16423         * modules/futimens: New file.
16424         * lib/futimens.c (futimens): Likewise.
16425         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
16426         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
16427         we can work around Linux bugs.
16428         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
16429         * modules/sys_stat (Makefile.am): Substitute them.
16430         * lib/sys_stat.in.h (futimens): Declare it.
16431         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
16432         * doc/posix-functions/futimens.texi (futimens): Likewise.
16433         * modules/futimens-tests: New test.
16434         * tests/test-futimens.c: Likewise.
16435
16436         utimens: introduce fdutimens
16437         * lib/utimens.h (fdutimens): New prototype.
16438         * lib/utimens.c (gl_futimens): Move guts...
16439         (fdutimens): ...to new interface.
16440         * tests/test-utimens.c (do_fdutimens): Use it.
16441
16442         utimens: add UTIME_NOW and UTIME_OMIT support
16443         * lib/utimens.c (validate_timespec, update_timespec): New helper
16444         functions.
16445         (gl_futimens, lutimens): Use them.
16446         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
16447         stdbool, sys_stat.
16448         (Link): Mention resulting library dependency.
16449         * modules/utimecmp (Link): Likewise.
16450         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
16451         (Makefile.am): Pick up library dependency.
16452         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
16453         definition.
16454         * tests/test-sys_stat.c: Test the definitions.
16455         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
16456         * NEWS: Document library dependency.
16457
16458         utimecmp: support symlink timestamps
16459         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
16460         hashing when possible.  Use pathconf when available.
16461         (SYSCALL_RESOLUTION): Recognize tighter resolution.
16462         * modules/utimecmp (Depends-on): Add lstat.
16463
16464         utimens: add lutimens interface
16465         * lib/utimens.c (lutimens): New function.
16466         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
16467         * lib/utimens.h (lutimens): Declare new interface.
16468         * tests/test-utimens.c (main): Enhance test.
16469         * tests/test-lutimens.h (test_lutimens): New file.
16470         * modules/utimens-tests (Files): Distribute it.
16471         (Depends-on): Add symlink.
16472         (configure.ac): Check for usleep.
16473
16474         utimens: validate futimens usage
16475         * lib/utimens.c (gl_futimens): Require valid fd up front, using
16476         fewer syscalls on failure later on.  Avoid compiler warning on
16477         mingw.
16478         * modules/utimens (Depends-on): Add dup2.
16479
16480         utimens: add test
16481         * modules/utimens-tests: New test.
16482         * tests/test-utimens.h: New file.
16483         * tests/test-futimens.h: Likewise.
16484         * tests/test-utimens.c: Likewise.
16485
16486         doc: mention timestamp portability issues
16487         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
16488         instead.
16489         * doc/posix-functions/utime.texi (utime): Likewise.
16490         * doc/posix-functions/utimes.texi (utimes): Likewise.
16491         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
16492         instead.
16493         * doc/posix-functions/futimens.texi (futimens): Mention utimens
16494         module.
16495         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
16496         Mention weakness with symlink timestamps.
16497         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
16498         to utimensat/futimens instead.
16499         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
16500
16501         test-dup2: enhance test
16502         * tests/test-dup2.c (main): Also check AT_FDCWD.
16503
16504         test-stat-time: avoid more spurious failures
16505         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
16506         xfs; and avoid race if the two timestamps cross quantization edge.
16507
16508         relocatable: prefer 'file system' over 'filesystem'
16509         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
16510         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
16511         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
16512         * doc/relocatable.texi (Enabling Relocatability): Likewise.
16513         * lib/relocatable.c (compute_curr_prefix): Likewise.
16514
16515 2009-10-10  Jim Meyering  <meyering@redhat.com>
16516
16517         stat-time-tests: check for the usleep function
16518         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
16519
16520 2009-10-10  Bruno Haible  <bruno@clisp.org>
16521
16522         * modules/xnanosleep: Put the Link section after the Include section.
16523
16524 2009-10-09  Eric Blake  <ebb9@byu.net>
16525
16526         dup2: work around FreeBSD 6.1 bug
16527         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
16528         * doc/posix-functions/dup2.texi (dup2): Document it.
16529         Reported by Nelson H. F. Beebe and Jim Meyering.
16530
16531         test-stat-time: port to buggy NFS clients
16532         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
16533         (test_ctime): Also skip test if mtime and ctime are skewed.
16534
16535         maint: prefer 'file system' over 'filesystem'
16536         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
16537         * doc/posix-functions/lstat.texi (lstat): Likewise.
16538         * lib/file-has-acl.c (file_has_acl): Likewise.
16539         * lib/fwriteerror.c [TEST]: Likewise.
16540         * tests/test-areadlink.h (test_areadlink): Likewise.
16541         * tests/test-areadlinkat-with-size.c (main): Likewise.
16542         * tests/test-areadlinkat.c (main): Likewise.
16543         * tests/test-canonicalize-lgpl.c (main): Likewise.
16544         * tests/test-canonicalize.c (main): Likewise.
16545         * tests/test-fstatat.c (main): Likewise.
16546         * tests/test-linkat.c (main): Likewise.
16547         * tests/test-lstat.h (test_lstat_func): Likewise.
16548         * tests/test-mkdir.h (test_mkdir): Likewise.
16549         * tests/test-readlink.h (test_readlink): Likewise.
16550         * tests/test-remove.c (main): Likewise.
16551         * tests/test-rename.h (test_rename): Likewise.
16552         * tests/test-renameat.c (main): Likewise.
16553         * tests/test-rmdir.h (test_rmdir_func): Likewise.
16554         * tests/test-symlink.h (test_symlink): Likewise.
16555         * tests/test-symlinkat.c (main): Likewise.
16556         * tests/test-unlink.h (test_unlink_func): Likewise.
16557         * tests/test-unlinkat.c (main): Likewise.
16558
16559         maint: make realtime library usage explicit
16560         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
16561         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
16562         * modules/settime (Link): Likewise.
16563         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
16564
16565         test-stat-time: speed up execution
16566         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
16567         warning on mingw.
16568         (nap): New helper function.
16569         (prepare_test): Use it to reduce sleep time.
16570         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
16571         execution.
16572         * modules/stat-time-tests (configure.ac): Check for usleep.
16573
16574 2009-10-09  Jim Meyering  <meyering@redhat.com>
16575
16576         selinux-h: always use getfilecon wrappers
16577         * lib/getfilecon.c: New file.
16578         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
16579         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
16580         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
16581         (fgetfilecon): Provide a stub.
16582         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
16583         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
16584         file unconditionally.
16585         When <selinux/selinux.h> is found, arrange to use wrappers.
16586         * modules/selinux-h (Files): Add getfilecon.c.
16587         (Makefile.am): Substitute include-next-related bits
16588         into the now-always-generated selinux/selinux.h file.
16589         * doc/glibc-functions/lgetfilecon.texi: New file.
16590         * doc/glibc-functions/fgetfilecon.texi: New file.
16591         * doc/glibc-functions/getfilecon.texi: New file.
16592         * doc/glibc-functions/getfilecon-desc.texi: New file.
16593         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
16594         which to pull in the new files.
16595         * MODULES.html.sh (Misc): Add selinux-h.
16596
16597 2009-10-08  Jim Meyering  <meyering@redhat.com>
16598
16599         unistd: fix comment typo
16600         * lib/unistd.in.h (euidaccess): Fix a comment typo.
16601
16602 2009-10-08  Eric Blake  <ebb9@byu.net>
16603
16604         areadlink: use SIZE_MAX consistently
16605         * modules/areadlink (Depends-on): Add stdint.
16606         * modules/areadlink-with-size (Depends-on): Likewise.
16607         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
16608         gives NULL; drop sys/types, since unistd gives size_t; and add
16609         stdint for SIZE_MAX.
16610         (SIZE_MAX): Rely on headers.
16611         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
16612         and add stdint.
16613         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
16614         (SIZE_MAX): Likewise.
16615         (INITIAL_BUF_SIZE): Turn into enum.
16616         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
16617
16618 2009-10-08  Jim Meyering  <meyering@redhat.com>
16619
16620         areadlinkat: avoid compilation failure
16621         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
16622         Fix typo in comment.
16623
16624 2009-10-07  Eric Blake  <ebb9@byu.net>
16625
16626         areadlinkat-with-size: new module
16627         * modules/areadlinkat-with-size: New module.
16628         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
16629         * lib/areadlink.h (areadlinkat): Declare it.
16630         * MODULES.html.sh (File system functions): Mention it.
16631         * modules/areadlinkat-with-size-tests: New test.
16632         * tests/test-areadlinkat-with-size.c: New file.
16633
16634         xreadlinkat: new module
16635         * modules/xreadlinkat: New module.
16636         * lib/xreadlinkat.c (xreadlinkat): New file.
16637         * lib/xreadlink.h (xreadlinkat): Declare it.
16638         * MODULES.html.sh (File system functions): Mention it.
16639
16640         areadlinkat: new module
16641         * lib/at-func.c (FUNC_FAIL): New define.
16642         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
16643         * modules/areadlinkat: New module.
16644         * lib/linkat.c (areadlinkat): Move...
16645         * lib/areadlinkat.c (areadlinkat): ...to new file.
16646         * lib/areadlink.h (areadlinkat): Declare it.
16647         * modules/linkat (Depends-on): Add areadlinkat.
16648         * MODULES.html.sh (File system functions): Mention it.
16649         * modules/areadlinkat-tests: New test.
16650         * tests/test-areadlinkat.c: New file.
16651
16652         areadlink, areadlink-with-size: add tests
16653         * modules/areadlink-tests: New test.
16654         * modules/areadlink-with-size-tests: Likewise.
16655         * tests/test-areadlink.h: New file.
16656         * tests/test-areadlink.c: Likewise.
16657         * tests/test-areadlink-with-size.c: Likewise.
16658
16659         maint: minor cleanups
16660         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
16661         _UNUSED_PARAMETER_ instead.
16662         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
16663         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
16664         * modules/linkat-tests (Files): Distribute test-link.h.
16665
16666         openat, utimens: whitespace cleanup
16667         * lib/openat.c: Prefer space throughout, rather than mix of 8
16668         spaces vs. tabs.
16669         * lib/at-func.c: Likewise.
16670         * lib/utimens.c: Likewise.
16671
16672         openat: avoid using wrong fd
16673         * lib/openat.c (openat_permissive): Reject user's fd if saving the
16674         working directory chooses same fd.
16675         * lib/at-func.c (AT_FUNC_NAME): Likewise.
16676
16677         mkdir, mkdirat: fix cygwin 1.5.x bug
16678         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
16679         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
16680         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
16681         bug.
16682         (gl_PREREQ_MKDIR): Delete unused macro.
16683         * modules/mkdir (Files): Track file rename.
16684         (configure.ac): Update macro name.
16685         * modules/openat (Depends-on): Add mkdir.
16686         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
16687
16688         mkdir, mkdirat: add tests
16689         * modules/mkdir-tests: New test.
16690         * tests/test-mkdir.h: New file.
16691         * tests/test-mkdir.c: Likewise.
16692         * tests/test-mkdirat.c: Likewise.
16693         * modules/openat-tests (Files): Add new files.
16694         (Makefile.am): Run new test.
16695
16696 2009-10-06  Eric Blake  <ebb9@byu.net>
16697
16698         doc: tweak *at function documentation
16699         * doc/posix-functions/faccessat.texi (faccessat): Mention
16700         known issue with replacement.
16701         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
16702         * doc/posix-functions/linkat.texi (linkat): Likewise.
16703         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
16704         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
16705         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
16706         * doc/posix-functions/renameat.texi (renameat): Likewise.
16707         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
16708
16709         openat: fix GNU/Hurd bug in unlinkat
16710         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
16711         broken.
16712         * doc/posix-functions/unlink.texi (unlink): Document this.
16713         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
16714
16715         fdopendir: fix GNU/Hurd bug
16716         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
16717         allowing non-directory fds.
16718         * lib/fdopendir.c (rpl_fdopendir): Work around it.
16719         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
16720         * modules/dirent (Makefile.am): Substitute it.
16721         * lib/dirent.in.h (fdopendir): Declare replacement.
16722         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
16723         * tests/test-fdopendir.c (main): Test something other than
16724         /dev/null, since on Hurd that behaves like a directory.
16725
16726         test-symlink: port to GNU/Hurd
16727         * tests/test-symlink.h (test_symlink): Relax expected errno.
16728
16729         doc: tweak more cygwin information
16730         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
16731         now compatible with glibc.
16732         * doc/posix-functions/getopt.texi (getopt): Likewise.
16733
16734         getopt-gnu: add another test
16735         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
16736         guarantee behavior relied on by m4.
16737         * tests/test-getopt.c (main): Use it.
16738         * modules/getopt-posix-tests (Depends-on): Add setenv.
16739         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
16740
16741         getopt: fix compilation on darwin
16742         * lib/getopt.in.h (includes): Leave breadcrumbs during system
16743         include.
16744         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
16745         Reported by Ludovic Courtès.
16746
16747 2009-10-06  Bruno Haible  <bruno@clisp.org>
16748
16749         * modules/size_max (Description): Discourage its use.
16750         Reported by Simon Josefsson.
16751
16752 2009-10-06  Jim Meyering  <meyering@redhat.com>
16753
16754         linkat: avoid compilation failure
16755         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
16756
16757 2009-10-05  Eric Blake  <ebb9@byu.net>
16758
16759         linkat: support Linux 2.6.17
16760         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
16761         linkat on Linux, but allow cache variable override.
16762         * lib/linkat.c (rpl_linkat): Define override.
16763         * modules/linkat (Depends-on): Add symlinkat.
16764         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
16765         * modules/unistd (Makefile.am): Substitute it.
16766         * lib/unistd.in.h (linkat): Declare replacement.
16767         Reported by Pádraig Brady.
16768
16769         quotearg: port test to systems with C.UTF-8 locale
16770         * tests/test-quotearg.c (struct result_strings): Add another
16771         member, differentiating between C.ASCII and C.UTF-8 handling.
16772         (compare_strings): Add parameter.
16773         (main): Adjust all callers.
16774
16775         getopt: avoid clash with FreeBSD _getopt_internal
16776         * lib/getopt.in.h (_getopt_internal): Override the name.
16777         * lib/getopt_int.h (includes): Pick up any overrides.
16778         Reported by Reuben Thomas.
16779
16780         hash: allow C89 compilation
16781         * lib/hash.c (check_tuning): Move declaration before statement.
16782         Reported by Reuben Thomas.
16783
16784 2009-10-05  Karl Berry  <karl@gnu.org>
16785
16786         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
16787
16788 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
16789             Bruno Haible  <bruno@clisp.org>
16790
16791         * lib/uname.c (uname): Use a table-driven algorithm to compute
16792         Windows NT versions.
16793
16794 2009-10-04  Bruno Haible  <bruno@clisp.org>
16795
16796         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
16797         program_invocation_short_name.
16798         * modules/progname (configure.ac): Test for presence of
16799         program_invocation_short_name.
16800         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
16801
16802 2009-10-04  Bruno Haible  <bruno@clisp.org>
16803
16804         * lib/progname.c (set_program_name): Fix comment.
16805         Reported by Jim Meyering.
16806
16807 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
16808             Bruno Haible  <bruno@clisp.org>
16809
16810         * lib/uname.c: Include <string.h>.
16811         (uname): Do only one call to GetVersionEx in the common case.
16812
16813 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
16814             Bruno Haible  <bruno@clisp.org>
16815
16816         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
16817         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
16818         (uname): Add support for Windows CE and various non-x86 CPU types.
16819
16820 2009-10-03  Bruno Haible  <bruno@clisp.org>
16821
16822         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
16823         invocation to tests/configure.ac.
16824         Reported by Ian Beckwith <ianb@erislabs.net>.
16825
16826 2009-10-02  Eric Blake  <ebb9@byu.net>
16827
16828         fchdir: avoid compiler warning
16829         * lib/fchdir.c (canonicalize_file_name)
16830         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
16831
16832         test-open: support mingw errno values
16833         * tests/test-open.h (test_open): Relax test.
16834         * tests/test-fopen.h (test_fopen): Likewise.
16835         * tests/test-openat-safer.c (main): Likewise.
16836
16837         open: fix opening directory on mingw
16838         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
16839
16840         test-open: on GNU/Hurd, /dev/null is a directory
16841         * tests/test-fopen.h (main): Rename...
16842         (test_fopen): ...to this.  Use a guaranteed non-directory when
16843         confirming open behavior on trailing slash.
16844         * tests/test-openat-safer.c (main): Likewise.
16845         * tests/test-open.h (main): Likewise....
16846         (test_open): ...to this.
16847         * tests/test-fopen.c (main): Adjust caller.
16848         * tests/test-fopen-safer.c (main): Likewise.
16849         * tests/test-open.c (main): Likewise.
16850         * tests/test-fcntl-safer.c (main): Likewise.
16851         Reported by Samuel Thibault.
16852
16853         rename, fchdir: don't ignore chdir failure
16854         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
16855         * lib/rename.c (rpl_rename) [W32]: Likewise.
16856         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
16857         an empty destination directory if source cannot be renamed,
16858         although there is still possibility for failure.
16859         * doc/posix-functions/rename.texi (rename): Document the race.
16860         Reported by Jim Meyering.
16861
16862         maint: cleanup whitespace in recent commits
16863         * lib/rename.c (rpl_rename): Remove tabs.
16864         * tests/test-link.h (test_link): Likewise.
16865         * lib/fchdir.c (get_name): Likewise.
16866         Reported by Jim Meyering.
16867
16868 2009-10-02  Ben Pfaff  <blp@gnu.org>
16869
16870         relocatable-prog-wrapper: Add missing dependency on
16871         double-slash-root.
16872         * modules/relocatable-prog-wrapper: Add dependency.
16873         Reported by Ian Beckwith <ianb@erislabs.net>.
16874
16875 2009-10-02  Eric Blake  <ebb9@byu.net>
16876
16877         renameat: fix Solaris bugs
16878         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
16879         needed fixing.
16880         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
16881         * modules/stdio (Makefile.am): Substitute it.
16882         * lib/stdio.in.h (renameat): Declare replacement.
16883         * lib/renameat.c (rpl_renameat): Implement fix.
16884
16885         renameat: new module
16886         * modules/renameat: New file.
16887         * lib/renameat.c (renameat): Likewise.
16888         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
16889         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
16890         * modules/stdio (Makefile.am): Substitute them.
16891         * lib/stdio.in.h (renameat): Declare it.
16892         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
16893         * doc/posix-functions/renameat.texi (renameat): Likewise.
16894         * modules/renameat-tests: New test.
16895         * tests/test-renameat.c: Likewise.
16896
16897         rename: fix mingw bugs
16898         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
16899         directory overwrite bugs.
16900
16901         rename: fix another cygwin 1.5 bug
16902         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
16903         checks.
16904         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
16905         unnecessary cygwin workarounds.  Also work around bug with moving
16906         full directory onto an empty one.
16907         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
16908
16909         rename-dest-slash: merge into rename module
16910         * modules/rename-dest-slash (Status): Mark obsolete.
16911         (Depends-on): Add rename.
16912         (Files): Let rename do it all.
16913         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
16914         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
16915         * m4/rename-dest-slash.m4: ...so this file can be deleted.
16916         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
16917         * lib/rename.c (rpl_rename): Update comments.
16918
16919         rename: fix cygwin 1.5.x bugs
16920         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
16921         * lib/rename.c (rpl_rename): Work around them.
16922         * modules/rename (Depends-on): Add same-inode.
16923
16924         rename: fix Solaris 10 bug
16925         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
16926         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
16927         was the only bug.
16928
16929         rename: fix Solaris 9 bug
16930         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
16931         on non-directory.  Avoid calling exit.
16932         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
16933         strdup.
16934         * modules/rename-tests (Depends-on): Drop lstat.
16935         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
16936         (gl_PREREQ_RENAME): Delete unused macro.
16937
16938         rename-dest-slash: fix NetBSD bug
16939         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
16940         links.
16941         * modules/rename-dest-slash (Depends-on): Add same-inode.
16942
16943         rename-tests: new test, exposes several platform bugs
16944         * modules/rename-tests: New file.
16945         * tests/test-rename.h: Likewise.
16946         * tests/test-rename.c: Likewise.
16947         * doc/posix-functions/rename.texi (rename): Improve documentation,
16948         including bugs that will eventually be fixed in gnulib.
16949
16950 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
16951
16952         * lib/uname.c: Include <stdlib.h>
16953         (uname): Assume version info is available.
16954
16955 2009-10-02  Jim Meyering  <meyering@redhat.com>
16956
16957         gnu-web-doc-update: correct --help output
16958         * build-aux/gnu-web-doc-update: Make --help output relevant.
16959
16960         gnu-web-doc-update: add standard options
16961         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
16962
16963         gnu-web-doc-update: New module.
16964         Use this script to automatically update the on-line web documentation
16965         for your GNU project at http://www.gnu.org/software/$pkg/manual/
16966         * modules/gnu-web-doc-update: New file, from coreutils.
16967         * build-aux/gnu-web-doc-update: New script.
16968
16969 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
16970
16971         link: LoadLibrary is not needed.
16972         * lib/link.c: Use GetModuleHandle.
16973
16974 2009-10-01  Eric Blake  <ebb9@byu.net>
16975
16976         getopt: bump serial number
16977         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
16978         change.
16979
16980         tests: tighten link, rmdir, and remove tests
16981         * tests/test-link.h (includes): No need to use <config.h> here.
16982         Clean up if directory hard link was created, otherwise test for
16983         trailing '.'.
16984         * tests/test-linkat.c (main): Simplify.
16985         * tests/test-remove.c (main): Enhance test for trailing '.'.
16986         * tests/test-rmdir.h (test_rmdir_func): Likewise.
16987
16988 2009-10-01  Jim Meyering  <meyering@redhat.com>
16989
16990         maint.mk: requiring "make major" was annoying, for a "minor" release.
16991         What is intended is "stable", to contrast with alpha and beta,
16992         so require "make stable", not "make major".
16993         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
16994         (get_tool_versions): Likewise.
16995         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
16996
16997 2009-09-30  Ben Pfaff  <blp@gnu.org>
16998
16999         Fix broken build of replacement for Windows tmpfile().
17000         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
17001         flags argument added along with the 'mkostemp' module.
17002
17003 2009-09-28  Bruno Haible  <bruno@clisp.org>
17004
17005         Avoid identifier clash with POSIX function 'remove' defined as a macro.
17006         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
17007         to 'remove_elt'.
17008         (gl_list_remove): Update.
17009         * lib/gl_list.c (gl_list_remove): Update.
17010         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
17011         to 'remove_elt'.
17012         (gl_oset_remove): Update.
17013         * lib/gl_list.c (gl_oset_remove): Update.
17014         Reported by Eric Blake.
17015
17016 2009-09-28  Eric Blake  <ebb9@byu.net>
17017
17018         doc: mention yet more cygwin 1.7 status
17019         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
17020         cygwin.
17021         * doc/glibc-functions/execvpe.texi (execvpe): New file.
17022         * doc/gnulib.texi (Glibc unistd.h): Mention it.
17023
17024         argp: fix test failure
17025         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
17026         that are not upper-case.  Pass correct range to tolower.
17027
17028 2009-09-27  Jim Meyering  <meyering@redhat.com>
17029
17030         test-yesno: work around sparc-dash here-document infelicity
17031         Without this change, the literal \177 byte in a here document
17032         would make dash 0.5.5.1-3 access uninitialized memory.
17033         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
17034         Instead, use a marker, "@", and filter through tr to create the desired
17035         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
17036
17037 2009-09-27  Bruno Haible  <bruno@clisp.org>
17038
17039         Disable untested support for new flavours of ACLs on AIX.
17040         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
17041         progress.
17042         * lib/set-mode-acl.c (qset_acl): Likewise.
17043
17044 2008-12-07  Bruno Haible  <bruno@clisp.org>
17045
17046         Add support for new flavours of ACLs on AIX. (Untested.)
17047         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
17048         (file_has_acl): Add support for newer AIX.
17049         * lib/set-mode-acl.c (qset_acl): Likewise.
17050         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
17051         Rainer Tammer <tammer@tammer.net>.
17052
17053 2009-09-26  Eric Blake  <ebb9@byu.net>
17054
17055         argp: fix compilation of getopt
17056         * lib/getopt.in.h (includes): Use different guard than glibc.
17057         Reported by Sergey Poznyakoff.
17058
17059         doc: mention more cygwin 1.7 status
17060         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
17061         bug.
17062         * doc/posix-functions/execl.texi (execl): Likewise.
17063         * doc/posix-functions/execle.texi (execle): Likewise.
17064         * doc/posix-functions/execlp.texi (execlp): Likewise.
17065         * doc/posix-functions/execv.texi (execv): Likewise.
17066         * doc/posix-functions/execve.texi (execve): Likewise.
17067         * doc/posix-functions/execvp.texi (execvp): Likewise.
17068         * doc/glibc-functions/canonicalize_file_name.texi
17069         (canonicalize_file_name): Cygwin 1.7 now provides this.
17070         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
17071         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
17072         on AT_SYMLINK_NOFOLLOW.
17073
17074 2009-09-24  Eric Blake  <ebb9@byu.net>
17075
17076         test-linkat: make test more robust
17077         * tests/test-linkat.c (main): Avoid collision with EEXIST.
17078
17079         getopt: fix inclusion guards for cygwin
17080         * modules/getopt-posix (Depends-on): Add include-next.
17081         (Makefile.am): Substitute more items in replacement header.
17082         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
17083         <getopt.h>.
17084         * lib/getopt.in.h (includes): Use split inclusion guard, and
17085         prefer <getopt.h> over include <unistd.h> when one is present.
17086         (option): Also override name of 'struct option'.
17087
17088         same-inode: revert prior change; it is not yet ready
17089         * NEWS: Undo mention of this change.
17090         * lib/same-inode.h (same-inode.h): Undo tri-state change.
17091         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
17092         * lib/cycle-check.c (cycle_check): Likewise.
17093         * lib/same.c (same_name): Likewise.
17094         * lib/at-func2.c (at_func2): Likewise.
17095
17096 2009-09-23  Eric Blake  <ebb9@byu.net>
17097
17098         linkat: new module
17099         * modules/linkat: New file.
17100         * lib/at-func2.c (at_func2): Likewise.
17101         * lib/linkat.c (linkat): Likewise.
17102         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
17103         * lib/openat-priv.h (at_func2): Add declaration.
17104         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
17105         * modules/unistd (Makefile.am): Substitute them.
17106         * lib/unistd.in.h (linkat): Declare it.
17107         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
17108         * doc/posix-functions/linkat.texi (linkat): Likewise.
17109         * doc/posix-functions/link.texi (link): Tweak wording.
17110         * tests/test-link.c (main): Move guts...
17111         * tests/test-link.h (test_link): ...into new file.
17112         * modules/linkat-tests: New test.
17113         * tests/test-linkat.c: Likewise.
17114         * modules/link-tests (Files): Ship new file.
17115         (Depends-on): Add stdbool.
17116
17117         dirname: add library-safe mdir_name
17118         * lib/dirname.h (mdir_name): New prototype.
17119         * lib/dirname.c (dir_name): Move guts...
17120         (mdir_name): ...to new function that avoids xalloc_die.
17121
17122         fchdir: another mingw fix
17123         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
17124         * lib/fchdir.c (get_name): New helper method; skips canonicalize
17125         on mingw (where it has not yet been ported), and make it optional
17126         elsewhere.
17127         (_gl_register_fd): Use it.
17128
17129         same-inode: make SAME_INODE tri-state, to port to mingw
17130         * NEWS: Mention this change.
17131         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
17132         st_ino always being 0.
17133         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
17134         * lib/cycle-check.c (cycle_check): Likewise.
17135         * lib/same.c (same_name): Likewise.
17136
17137         lstat: avoid mingw compilation error
17138         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
17139         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
17140         lstat ourselves.
17141         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
17142         was adequate.
17143         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
17144         the checks for lstat.
17145         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
17146
17147         link: fix test failure on Solaris 9
17148         * lib/link.c (rpl_link): Don't assume link will catch bogus
17149         trailing slash on source.
17150
17151         test-symlinkat: enhance test
17152         * tests/test-readlink.c (main): Move guts...
17153         * tests/test-readlink.h (test_readlink): ...into new file.
17154         * tests/test-symlink.c (main): Move guts...
17155         * tests/test-symlink.h (test_symlink): ...into new file.
17156         * tests/test-symlinkat.c (main): Use new files for further
17157         coverage.
17158         (do_symlink, do_readlink): New helper functions.
17159         * modules/symlink-tests (Files): Ship new file.
17160         (Depends-on): Add stdbool.
17161         * modules/readlink-tests (Files): Ship new file.
17162         (Depends-on): Add stdbool.
17163         * modules/symlinkat-tests (Files): Use new files.
17164
17165 2009-09-23  Eric Blake  <ebb9@byu.net>
17166
17167         readlink: document portability issue with symlink length
17168         * doc/posix-functions/lstat.texi (lstat): Mention that some file
17169         systems have bogus st_size on symlinks, and mention the
17170         areadlink-with-size module.
17171         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
17172         * doc/posix-functions/readlink.texi (readlink): Mention the
17173         areadlink module, and ERANGE failure.
17174         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
17175         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
17176
17177         readlink: fix Solaris 9 bug with trailing slash
17178         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
17179         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
17180         * doc/posix-functions/readlink.texi (readlink): Document this.
17181         * modules/readlink-tests: New test.
17182         * tests/test-readlink.c: Likewise.
17183
17184         readlink: fix cygwin 1.5.x bug with return type
17185         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
17186         * lib/unistd.in.h (readlink): Use ssize_t.
17187         * lib/readlink.c (readlink): Likewise.
17188         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
17189         * modules/unistd (Makefile.am): Substitute it.
17190         * lib/unistd.in.h (readlink): Declare replacement.
17191         * doc/posix-functions/readlink.texi (readlink): Document this.
17192
17193         symlink: use throughout gnulib
17194         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
17195         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
17196         symlink is not used.
17197         * modules/symlinkat (Depends-on): Add symlink.
17198         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
17199         * modules/canonicalize-tests (Depends-on): Likewise.
17200         * modules/lstat-tests (Depends-on): Likewise.
17201         * modules/openat-tests (Depends-on): Likewise.
17202         * modules/remove-tests (Depends-on): Likewise.
17203         * modules/rmdir-tests (Depends-on): Likewise.
17204         * modules/unlink-tests (Depends-on): Likewise.
17205         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
17206         * tests/test-canonicalize.c (symlink): Likewise.
17207         * tests/test-fstatat.c (symlink): Likewise.
17208         * tests/test-lstat.c (symlink): Likewise.
17209         * tests/test-remove.c (symlink): Likewise.
17210         * tests/test-rmdir.c (symlink): Likewise.
17211         * tests/test-unlink.c (symlink): Likewise.
17212         * tests/test-unlinkat.c (symlink): Likewise.
17213
17214         symlink: new module, for Solaris 9 bug
17215         * modules/symlink: New file.
17216         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
17217         * lib/symlink.c: Likewise.
17218         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
17219         * modules/unistd (Makefile.am): Substitute them.
17220         * lib/unistd.in.h (symlink): Declare replacement.
17221         * MODULES.html.sh (File system functions): Mention it.
17222         * doc/posix-functions/symlink.texi (symlink): Likewise.
17223         * modules/symlink-tests: New test.
17224         * tests/test-symlink.c: Likewise.
17225
17226 2009-09-23  Bruno Haible  <bruno@clisp.org>
17227
17228         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
17229         when needed.
17230         Test case: gnulib-tool --import --with-tests atexit inttypes.
17231         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
17232
17233 2009-09-23  Bruno Haible  <bruno@clisp.org>
17234
17235         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
17236         subcommand, not in a subshell.
17237
17238 2009-09-22  Eric Blake  <ebb9@byu.net>
17239
17240         unistd: sort replacement declarations
17241         * lib/unistd.in.h: Sort declarations.
17242
17243         open, openat: minor optimization
17244         * lib/open.c (open): If open succeeded, len is non-zero.
17245         * lib/openat.c (rpl_openat): Likewise.
17246
17247         link-follow: ensure correct result
17248         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
17249         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
17250         distinguish between possible failures.
17251
17252 2009-09-21  Eric Blake  <ebb9@byu.net>
17253
17254         fts: avoid compiler warning
17255         * lib/fts.c (dirent_inode_sort_may_be_useful)
17256         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
17257
17258 2009-09-19  Bruno Haible  <bruno@clisp.org>
17259
17260         * lib/progreloc.c (canonicalize_file_name): New declaration.
17261
17262 2009-09-19  Eric Blake  <ebb9@byu.net>
17263
17264         link: fix quoting
17265         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
17266
17267         openat: fix openat bugs on Solaris 9
17268         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
17269         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
17270         * modules/openat (Depends-on): Add open.
17271         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
17272         * modules/fcntl-h (Makefile.am): Substitute it.
17273         * lib/fcntl.in.h (openat): Declare replacement.
17274         * doc/posix-functions/openat.texi (openat): Document this.
17275
17276         openat: move fstatat and unlinkat into correct files
17277         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
17278         compiled.
17279         * lib/openat.c (fstatat, unlinkat): Move...
17280         * lib/fstatat.c (fstatat): ...into correct files.
17281         * lib/unlinkat.c (unlinkat): Likewise.
17282
17283         openat: fix unlinkat bugs on Solaris 9
17284         * lib/unlinkat.c (unlinkat): New file.
17285         * modules/openat (Depends-on): Add unlink.
17286         (Files): Distribute it.
17287         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
17288         trailing slash behavior is broken.
17289         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
17290         * modules/unistd (Makefile.am): Substitute it.
17291         * lib/unistd.in.h (unlinkat): Declare replacement.
17292         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
17293
17294         openat: fix fstatat bugs on Solaris 9
17295         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
17296         stat.
17297         * doc/posix-functions/fstatat.texi (fstatat): Document this.
17298
17299         test-unlinkat: enhance test, to expose Solaris 9 bug
17300         * tests/test-unlink.c (main): Factor guts...
17301         * tests/test-unlink.h (test_rmdir_func): ...into new file.
17302         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
17303         * tests/test-rmdir.c (main): Adjust caller.
17304         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
17305         (unlinker): New helper function.
17306         (rmdirat): Enhance check.
17307         * modules/rmdir-tests (Depends-on): Add stdbool.
17308         * modules/unlink-tests (Depends-on): Likewise.
17309         (Files): Add test-unlink.h.
17310         * modules/openat-tests (Files): Likewise.
17311         (Depends-on): Add unlinkdir.
17312
17313         test-fstatat: new test, to expose Solaris 9 bugs
17314         * tests/test-stat.c (main): Factor guts...
17315         * tests/test-stat.h (test_stat_func): ...into new file.
17316         * tests/test-lstat.c (main): Factor guts...
17317         * tests/test-lstat.h (test_lstat_func): ...into new file.
17318         * tests/test-fstatat.c: New file.
17319         * modules/stat-tests (Files): Add test-stat.h.
17320         * modules/lstat-tests (Files): Add test-lstat.h.
17321         (Depends-on): Add stdbool.
17322         * modules/openat-tests (Depends-on): Add pathmax.
17323         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
17324         (Makefile.am): Run new test.
17325
17326         remove: new module, for mingw and Solaris 9 bugs
17327         * modules/remove: New file.
17328         * lib/remove.c: Likewise.
17329         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
17330         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
17331         * modules/stdio (Makefile.am): Use them.
17332         * lib/stdio.in.h (remove): Declare replacement.
17333         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
17334         * doc/posix-functions/remove.texi (remove): Likewise.
17335         * modules/remove-tests: New test.
17336         * tests/test-remove.c: Likewise.
17337
17338         unlink: new module, for Solaris 9 bug
17339         * modules/unlink: New file.
17340         * lib/unlink.c: Likewise.
17341         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
17342         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
17343         * modules/unistd (Makefile.am): Use them.
17344         * lib/unistd.in.h (stat): Declare replacement.
17345         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
17346         * doc/posix-functions/unlink.texi (unlink): Likewise.
17347         * modules/unlink-tests: New test.
17348         * tests/test-unlink.c: Likewise.
17349
17350         lstat: fix Solaris 9 bug
17351         * lib/lstat.c (lstat): Also check for trailing slash on
17352         non-symlink, non-directories.  Use stat module to simplify logic.
17353         * doc/posix-functions/lstat.texi (lstat): Document it.
17354         * modules/lstat-tests (Depends-on): Add errno, same-inode.
17355         (configure.ac): Check for symlink.
17356         * tests/test-lstat.c (main): Add more tests.
17357
17358         stat: add as dependency to other modules
17359         * modules/chown (Depends-on): Add stat.
17360         * modules/euidaccess (Depends-on): Likewise.
17361         * modules/fchdir (Depends-on): Likewise.
17362         * modules/isdir (Depends-on): Likewise.
17363         * modules/link (Depends-on): Likewise.
17364         * modules/lstat (Depends-on): Likewise.
17365         * modules/mkdir-p (Depends-on): Likewise.
17366         * modules/modechange (Depends-on): Likewise.
17367         * modules/open (Depends-on): Likewise.
17368         * modules/readlink (Depends-on): Likewise.
17369         * modules/same (Depends-on): Likewise.
17370
17371         stat: fix Solaris 9 bug
17372         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
17373         slash.
17374         * lib/stat.c (rpl_stat): Work around it.
17375         * doc/posix-functions/stat.texi (stat): Update documentation.
17376
17377         stat: new module, for mingw bug
17378         * modules/stat: New file.
17379         * lib/stat.c: Likewise.
17380         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
17381         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
17382         * modules/sys_stat (Makefile.am): Use them.
17383         * lib/sys_stat.in.h (stat): Declare replacement.
17384         * lib/openat.c (fstatat): Deal with lstat and stat being function
17385         macros.
17386         * modules/openat (Depends-on): Add inline.
17387         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
17388         * doc/posix-functions/stat.texi (stat): Likewise.
17389         * modules/stat-tests: New test.
17390         * tests/test-stat.c: Likewise.
17391
17392 2009-09-19  Jim Meyering  <meyering@redhat.com>
17393
17394         syntax-check: detect unnecessary inclusion of canonicalize.h
17395         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
17396
17397 2009-09-19  Eric Blake  <ebb9@byu.net>
17398
17399         canonicalize-lgpl: adjust clients to use correct header
17400         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
17401         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
17402         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
17403         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
17404         * lib/progreloc.c (includes): Likewise.
17405
17406 2009-09-19  Jim Meyering  <meyering@redhat.com>
17407
17408         test-posixtm.c: correct a comment
17409         * tests/test-posixtm.c: Correct first-line comment.
17410         Spotted by Eric Blake.
17411
17412 2009-09-16  Jim Meyering  <meyering@redhat.com>
17413
17414         posixtm-tests: make T const-correct; add a test case
17415         * tests/test-posixtm.c (T): Declare const.
17416         Add a test for -(2^31+1).
17417         Remove useless can-succeed-only-in-2002 test.
17418
17419         posixtm-tests: adjust the sole failing test
17420         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
17421         expected output matches what mktime now produces.  Cross-checked via
17422         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
17423
17424         posixtm: move #ifdef'd tests into a new module
17425         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
17426         * tests/test-posixtm.c: ... this new file.
17427         * modules/posixtm-tests: New module.
17428
17429 2009-09-19  Eric Blake  <ebb9@byu.net>
17430
17431         openat: simplify use of at-func.c
17432         * lib/at-func.c (includes): Include prerequisites here, to
17433         simplify requirements on client files.
17434         * lib/openat-priv.h: Add double-inclusion guard.
17435         * lib/faccessat.c (includes): Simplify.
17436         * lib/fchmodat.c (includes): Likewise.
17437         * lib/fchownat.c (includes): Likewise.
17438         * lib/mkdirat.c (includes): Likewise.
17439         * lib/mkfifoat.c (includes): Likewise.
17440         * lib/symlinkat.c (includes): Likewise.
17441
17442         openat: allow return of fd 0
17443         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
17444         * modules/save-cwd (Depends-on): Replace fcntl-safer with
17445         unistd-safer.
17446         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
17447         <fcntl.h>; this module does not leak fds.
17448         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
17449         must be allowed to return 0, leaving openat_safer to add the
17450         safety.
17451         (openat_permissive): Avoid writing to just-opened fd 2 if
17452         restoring the current directory fails.
17453         * lib/openat-die.c (openat_restore_fail): Add comment.
17454         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
17455         (save_cwd): Guarantee safe fd, but without use of open_safer.
17456         * tests/test-openat.c: New test.
17457         * modules/openat-tests (Files, Makefile.am): Distribute and build
17458         new file.
17459
17460         relocatable-prog-wrapper: fix build
17461         * modules/relocatable-prog-wrapper (Files): Update name of
17462         canonicalize m4 file, broken on 2009-09-17.
17463         Reported by emad hajjar <aleppos@hotmail.com>.
17464
17465 2009-09-19  Bruno Haible  <bruno@clisp.org>
17466
17467         * lib/safe-alloc.h: Use the standard header with GPL copyright.
17468         * lib/safe-alloc.c: Likewise.
17469         Reported by Ian Beckwith <ianb@erislabs.net>.
17470
17471 2009-09-18  Bruno Haible  <bruno@clisp.org>
17472
17473         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
17474         Reported by <erobles@sensacd.com.mx>.
17475
17476 2009-09-17  Eric Blake  <ebb9@byu.net>
17477
17478         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
17479         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
17480         slashes when checking if last component is missing.
17481         * tests/test-canonicalize.c (main): Test this.
17482
17483         canonicalize, canonicalize-lgpl: honor // if distinct from /
17484         * modules/canonicalize (Files): Add double-slash-root.m4.
17485         * modules/canonicalize-lgpl (Files): Likewise.
17486         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
17487         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
17488         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
17489         fallback definition.
17490         (canonicalize_filename_mode): Use it to protect //.
17491         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
17492         (__realpath): Likewise.
17493         * tests/test-canonicalize.c (main): Test this.
17494         * tests/test-canonicalize-lgpl.c (main): Likewise.
17495         * modules/canonicalize-tests (Depends-on): Add same-inode.
17496         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
17497
17498         canonicalize-lgpl: fix glibc bug with trailing slash
17499         * m4/canonicalize-lgpl.m4: Move contents...
17500         * m4/canonicalize.m4: ...here.
17501         (gl_CANONICALIZE_LGPL): Factor realpath check...
17502         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
17503         glibc 2.3.5 bug, fixed 2005-04-27.
17504         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
17505         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
17506         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
17507         * modules/canonicalize-lgpl (Files): Manage file rename.
17508         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
17509         * modules/stdlib (Makefile.am): Substitute witness.
17510         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
17511         is needed.
17512         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
17513         replacement is required.
17514         * lib/canonicalize.c (canonicalize_file_name): Likewise.
17515         * doc/glibc-functions/canonicalize_file_name.texi
17516         (canonicalize_file_name): Document this.
17517         * doc/posix-functions/realpath.texi (realpath): Likewise.
17518
17519         canonicalize-lgpl: reject non-directory with trailing slash
17520         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
17521         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
17522         catches failures in glibc 2.3.5.
17523         * tests/test-canonicalize.c (main): Likewise.
17524
17525         canonicalize-lgpl: use native realpath if it works
17526         * lib/canonicalize-lgpl.c (realpath): Guard with
17527         FUNC_REALPATH_WORKS.
17528         * lib/stdlib.in.h (realpath): Make declaration optional based on
17529         HAVE_REALPATH.
17530         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
17531         native realpath works.
17532         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
17533         * modules/stdlib (Makefile.am): Substitute witness.
17534
17535         canonicalize, canonicalize-lgpl: use <stdlib.h>
17536         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
17537         (Include): Mention <stdlib.h>.
17538         (configure.ac): Mention functions we provide.
17539         * modules/canonicalize (configure.ac): Likewise.
17540         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
17541         realpath if canonicalize_file_name is missing.
17542         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
17543         * modules/stdlib (Makefile.am): Substitute witnesses.
17544         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
17545         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
17546         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
17547         * NEWS: Document this.
17548         * doc/glibc-functions/canonicalize_file_name.texi
17549         (canonicalize_file_name): Likewise.
17550         * doc/posix-functions/realpath.texi (realpath): Likewise.
17551         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
17552
17553         test-canonicalize: consolidate into single C program
17554         * tests/test-canonicalize.sh: Delete; move setup into...
17555         * tests/test-canonicalize.c (main): ...the program, making it
17556         easier to run in debugger.  Add some tests.
17557         * modules/canonicalize-tests (Files): Remove unused file.
17558         (Depends-on): Add progname.
17559         (configure.ac, Makefile.am): Simplify.
17560
17561         test-canonicalize-lgpl: consolidate into single C program
17562         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
17563         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
17564         easier to run in debugger.  Add some tests.
17565         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
17566         (configure.ac, Makefile.am): Simplify.
17567
17568         canonicalize: avoid resolvepath
17569         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
17570         unnecessary checks.
17571         * lib/canonicalize.c (includes): Simplify.
17572         (canonicalize_file_name): Drop resolvepath implementation.
17573         * modules/canonicalize (Depends-on): Drop filenamecat.
17574
17575         canonicalize: don't lose errno
17576         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
17577         over calls to free.
17578
17579         canonicalize: simplify errno handling
17580         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
17581         assignment.
17582
17583         canonicalize, canonicalize-lgpl: update module dependencies
17584         * modules/canonicalize (Depends-on): Add extensions, lstat,
17585         pathmax, stdlib.
17586         (Files): Drop pathmax.h.
17587         (configure.ac): Adjust macro name.
17588         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
17589         lstat, stdlib, sys_stat.
17590         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
17591         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
17592         extensions.
17593         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
17594         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
17595         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
17596         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
17597         declaration, if available.
17598         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
17599         we can rely on the readlink module.
17600         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
17601         (includes): Use <unistd.h> unconditionally.
17602
17603 2009-09-17  Eric Blake  <ebb9@byu.net>
17604
17605         maint: make Include sections of modules consistent
17606         * modules/alloca: Use only header name; no need to list #include.
17607         * modules/alloca-opt: Likewise.
17608         * modules/arpa_inet: Likewise.
17609         * modules/canon-host: Likewise.
17610         * modules/configmake: Likewise.
17611         * modules/dirent: Likewise.
17612         * modules/eealloc: Likewise.
17613         * modules/environ: Likewise.
17614         * modules/fchdir: Likewise.
17615         * modules/fcntl: Likewise.
17616         * modules/fcntl-h: Likewise.
17617         * modules/gethrxtime: Likewise.
17618         * modules/gettime: Likewise.
17619         * modules/ignore-value: Likewise.
17620         * modules/inet_ntop: Likewise.
17621         * modules/inet_pton: Likewise.
17622         * modules/inttypes: Likewise.
17623         * modules/isnand-nolibm: Likewise.
17624         * modules/isnanf-nolibm: Likewise.
17625         * modules/mbchar: Likewise.
17626         * modules/mbfile: Likewise.
17627         * modules/mbiter: Likewise.
17628         * modules/mbuiter: Likewise.
17629         * modules/netdb: Likewise.
17630         * modules/netinet_in: Likewise.
17631         * modules/nproc: Likewise.
17632         * modules/pagealign_alloc: Likewise.
17633         * modules/poll: Likewise.
17634         * modules/printf-frexp: Likewise.
17635         * modules/pthread: Likewise.
17636         * modules/putenv: Likewise.
17637         * modules/random_r: Likewise.
17638         * modules/relocatable-prog: Likewise.
17639         * modules/search: Likewise.
17640         * modules/select: Likewise.
17641         * modules/selinux-h: Likewise.
17642         * modules/settime: Likewise.
17643         * modules/signal: Likewise.
17644         * modules/size_max: Likewise.
17645         * modules/socklen: Likewise.
17646         * modules/ssize_t: Likewise.
17647         * modules/stdarg: Likewise.
17648         * modules/stdbool: Likewise.
17649         * modules/stddef: Likewise.
17650         * modules/stdint: Likewise.
17651         * modules/stdio: Likewise.
17652         * modules/stdlib: Likewise.
17653         * modules/string: Likewise.
17654         * modules/strings: Likewise.
17655         * modules/sys_file: Likewise.
17656         * modules/sys_ioctl: Likewise.
17657         * modules/sys_select: Likewise.
17658         * modules/sys_socket: Likewise.
17659         * modules/sys_stat: Likewise.
17660         * modules/sys_time: Likewise.
17661         * modules/sys_times: Likewise.
17662         * modules/sys_utsname: Likewise.
17663         * modules/sys_wait: Likewise.
17664         * modules/sysexits: Likewise.
17665         * modules/time: Likewise.
17666         * modules/times: Likewise.
17667         * modules/tmpfile: Likewise.
17668         * modules/trim: Likewise.
17669         * modules/unistd: Likewise.
17670         * modules/wchar: Likewise.
17671         * modules/wctype: Likewise.
17672
17673 2009-09-17  Bruno Haible  <bruno@clisp.org>
17674
17675         Make getdate.y compile on QNX and NetBSD 5 / i386.
17676         * m4/getdate.m4 (gl_GETDATE): Conditionally define
17677         TIME_T_FITS_IN_LONG_INT.
17678         * lib/getdate.y (long_time_t): New type.
17679         (relative_time): Change type of 'seconds' field to long_time_t.
17680         (get_date): Update types of local variables. Check against overflow
17681         during conversion from long_time_t to time_t.
17682         Reported by Matt Kraai <kraai@ftbfs.org>
17683         and Hasso Tepper <hasso@netbsd.org>.
17684
17685 2009-09-17  Bruno Haible  <bruno@clisp.org>
17686
17687         * modules/COPYING: Update copyright years.
17688         * modules/README: Likeiwse.
17689         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
17690         Reported by Ian Beckwith <ianb@erislabs.net>.
17691
17692 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
17693
17694         * users.txt: Update references for gnuit package.
17695
17696 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
17697
17698         * m4/getdelim.m4: Fix typo in copyright line.
17699
17700 2009-09-17  Bruno Haible  <bruno@clisp.org>
17701
17702         * lib/atoll.c: Use the standard header with GPL copyright.
17703         * lib/argz.in.h: Likewise.
17704         * lib/glob.c: Likewise.
17705         * lib/glob-libc.h: Likewise.
17706         * lib/random_r.c: Likewise.
17707         * lib/siglist.h: Likewise.
17708         * lib/strsignal.c: Likewise.
17709         Reported by Ian Beckwith <ianb@erislabs.net>.
17710
17711 2009-09-17  Eric Blake  <ebb9@byu.net>
17712
17713         rmdir: ensure correct dependency order
17714         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
17715
17716 2009-09-17  Bruno Haible  <bruno@clisp.org>
17717
17718         Disable assertion that fails on NetBSD 5 / i386.
17719         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
17720         Reported by Sam Steingold <sds@gnu.org>
17721         and Hasso Tepper <hasso@netbsd.org>.
17722
17723 2009-09-16  Eric Blake  <ebb9@byu.net>
17724
17725         unlinkdir: port to mingw
17726         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
17727         on which no one can unlink a directory.
17728
17729         stdlib: sort witness names
17730         * modules/stdlib (Makefile.am): Sort replacements.
17731         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
17732         * lib/stdlib.in.h: Likewise.
17733
17734         parse-duration-tests: avoid link failure
17735         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
17736         LIBINTL.
17737         Reported by Tom G. Christensen.
17738
17739         openat-tests: ensure unlinkat behaves like rmdir
17740         * tests/test-rmdir.c (main): Factor guts...
17741         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
17742         * modules/rmdir-tests (Files): Ship new file.
17743         * modules/openat-tests: New test.
17744         * tests/test-unlinkat.c: Likewise.
17745
17746         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
17747         * modules/rmdir-errno (Status, Notice): Now obsolete.
17748
17749         rmdir: work around cygwin 1.5.x and mingw bugs
17750         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
17751         * lib/rmdir.c (rmdir): Work around it.
17752         * modules/rmdir (Status, Notice): No longer obsolete.
17753         (Files): Add dos.m4.
17754         (Depends-on): Add unistd.
17755         (configure.ac): Set witnesses.
17756         (License): Relax to LGPLv2+.
17757         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
17758         * modules/unistd (Makefile.am): Substitute witnesses.
17759         * lib/unistd.in.h (rmdir): Declare replacement.
17760         * doc/posix-functions/rmdir.texi (rmdir): Document this.
17761         * modules/rmdir-tests: New tests.
17762         * tests/test-rmdir.c: Likewise.
17763
17764 2009-09-15  Eric Blake  <ebb9@byu.net>
17765
17766         fchdir: improve use of replacement functions
17767         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
17768         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
17769         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
17770         REPLACE_CLOSEDIR.
17771         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
17772         * modules/sys_stat (Makefile.am): Substitute correct witness.
17773         * modules/dirent (Makefile.am): Likewise.
17774         * modules/unistd (Makefile.am): Likewise.
17775         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
17776         * lib/unistd.in.h (dup): Likewise.
17777         * lib/sys_stat.in.h (fstat): Likewise.
17778
17779         maint: ignore gnulib-tool temp files
17780         * .gitignore: Ignore files created during gnulib-tool --test.
17781
17782 2009-09-13  Jim Meyering  <meyering@redhat.com>
17783
17784         posixtm: don't reject a time that specify "60" as the number of seconds
17785         * lib/posixtm.c (posixtime): The code to reject invalid dates
17786         would also reject a time specified with the .60 suffix.
17787         But POSIX allows that, in order to accommodate leap seconds.
17788         So don't reject it.
17789         (main): Adjust tests accordingly.
17790         * modules/posixtm (Depends-on): Add stpcpy.
17791
17792 2009-09-11  Jim Meyering  <meyering@redhat.com>
17793
17794         announce-gen: include [$release_type] in emitted Subject:
17795         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
17796         e.g., [stable] in the emitted Subject: line.
17797
17798 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17799
17800         Remove obsolete macros from several modules.
17801         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
17802         obsolete Autoconf macros with their modern counterparts.
17803         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
17804         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
17805         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
17806         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
17807         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
17808         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
17809         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
17810         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
17811         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
17812         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
17813         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
17814         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
17815         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
17816         * m4/sockets.m4 (gl_SOCKETS): Likewise.
17817         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
17818         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
17819         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
17820         * m4/time_r.m4 (gl_TIME_R): Likewise.
17821         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
17822         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
17823         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
17824
17825         Fix copyright header in build-aux scripts.
17826         * build-aux/git-version-gen: Fix copyright header to match GPLv3
17827         recommendation.
17828         * build-aux/ncftpput-ftp: Likewise.
17829         * build-aux/update-copyright: Likewise.
17830
17831 2009-09-09  Eric Blake  <ebb9@byu.net>
17832
17833         test-link: allow Linux choice of errno
17834         * tests/test-link.c (main): Relax test for alternate error.
17835
17836         strndup: fix improper m4 caching
17837         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
17838         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
17839         (gl_PREREQ_STRNDUP): Delete.
17840         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
17841         * modules/string (Makefile.am): Substitute it.
17842         * lib/string.in.h (strndup): Modernize prototype.
17843
17844         getcwd: port to mingw
17845         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
17846         different from the POSIX assumptions made throughout the getcwd
17847         module; fortunately, the mingw getcwd does not need replacement.
17848         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
17849         * modules/getcwd-tests: New test.
17850         * tests/test-getcwd.c: Likewise.
17851
17852         link: fix platform bugs
17853         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
17854         * lib/link.c (link): Work around them.  Fix related mingw bug.
17855         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
17856         * modules/unistd (Makefile.am): Substitute it.
17857         * lib/unistd.in.h (link): Declare replacement.
17858         * doc/posix-functions/link.texi (link): Document this.
17859         * modules/link (Depends-on): Add strdup-posix, sys_stat.
17860
17861         test-link: consolidate into single C program, test more cases
17862         * tests/test-link.sh: Delete.
17863         * tests/test-link.c: Test more error conditions.  Exposes bugs on
17864         at least Cygwin and Solaris.
17865         * modules/link-tests (Files): Remove unused file.
17866         (Depends-on): Add errno, sys_stat.
17867         (Makefile.am): Simplify.
17868
17869 2009-09-08  Bruno Haible  <bruno@clisp.org>
17870
17871         Work around towlower, towupper bug on mingw.
17872         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
17873         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
17874         * doc/posix-functions/towlower.texi: Mention the mingw bug.
17875         * doc/posix-functions/towupper.texi: Likewise.
17876         Reported by Eric Blake.
17877
17878 2009-09-08  Jim Meyering  <meyering@redhat.com>
17879
17880         build: don't try to run autoheader if we don't use it
17881         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
17882         is not used in configure.ac.
17883
17884 2009-09-08  Eric Blake  <ebb9@byu.net>
17885
17886         euidaccess: fix compilation error
17887         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
17888
17889         rawmemchr: relax license
17890         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
17891         okay.
17892         Reported by Jim Meyering.
17893
17894         mkfifoat: new module
17895         * modules/mkfifoat: New file.
17896         * lib/mkfifoat.c: Likewise.
17897         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
17898         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
17899         * modules/sys_stat (Makefile.am): Use them.
17900         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
17901         * MODULES.html.sh (File system functions): Mention module.
17902         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
17903         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
17904         * modules/mkfifoat-tests: New test.
17905         * tests/test-mkfifoat.c: Likewise.
17906
17907         strchrnul: relax license
17908         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
17909         okay.
17910         Reported by Jim Meyering.
17911
17912 2009-09-08  Eric Blake  <ebb9@byu.net>
17913
17914         fstatat: fix compilation on Solaris
17915         * lib/fstatat.c (includes): Add fcntl.h.
17916         Reported by Pádraig Brady.
17917
17918 2009-09-07  Eric Blake  <ebb9@byu.net>
17919
17920         rename: modernize replacement
17921         * modules/rename (Depends-on): Add stdio.
17922         (configure.ac): Declare witness.
17923         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
17924         stdio take care of replacement.
17925         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
17926         * modules/stdio (Makefile.am): Substitute them.
17927         * lib/stdio.in.h (rename): Declare replacement.
17928         * lib/rename.c (includes): Allow cross-compilation to non-windows
17929         machines.
17930         * doc/posix-functions/rename.texi (rename): Improve
17931         documentation.
17932
17933         stdio: sort witness names
17934         * modules/stdio (Makefile.am): Sort replacements.
17935         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
17936         * lib/stdio.in.h: Likewise.
17937
17938         getcwd: minor cleanups
17939         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
17940         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
17941
17942         openat: provide more convenience names
17943         * modules/faccessat (configure.ac): Add C witness.
17944         * lib/unistd.in.h (readlinkat): Fix typo.
17945         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
17946         convenience wrappers.
17947         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
17948         wrappers in syntax checks.
17949
17950 2009-09-06  Eric Blake  <ebb9@byu.net>
17951
17952         doc: fix comments in recent patches
17953         * lib/faccessat.c: Mention correct function.
17954         * lib/fchmodat.c: Likewise.
17955         * lib/fchownat.c: Likewise.
17956         * lib/symlinkat.c: Likewise.
17957         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
17958         constants.
17959
17960         faccessat, symlinkat: continue cleanup of previous patch
17961         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
17962         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
17963         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
17964         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
17965         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
17966         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
17967         set.
17968
17969 2009-09-06  Bruno Haible  <bruno@clisp.org>
17970
17971         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
17972         (fstatat): Declare if GNULIB_FSTATAT is set.
17973         (mkdirat): Declare if GNULIB_MKDIRAT is set.
17974         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
17975         (unlinkat): Declare if GNULIB_UNLINKAT is set.
17976         * modules/fcntl-h (Files): Remove m4/openat.m4.
17977         * modules/sys_stat (Files): Remove m4/openat.m4.
17978         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
17979         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
17980         * modules/unistd (Files): Remove m4/openat.m4.
17981         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
17982         GNULIB_OPENAT.
17983         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
17984         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
17985         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
17986         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
17987         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
17988         gl_OPENAT_DEFAULTS.
17989         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
17990         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
17991         Don't require gl_OPENAT_DEFAULTS.
17992         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
17993         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
17994         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
17995         (gl_OPENAT_DEFAULTS): Remove macro.
17996
17997 2009-09-06  Bruno Haible  <bruno@clisp.org>
17998
17999         * modules/openat (configure.ac): Remove unneeded witness.
18000
18001 2009-09-06  Bruno Haible  <bruno@clisp.org>
18002
18003         Set errno to ENOSYS when a function is entirely unsupported.
18004         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
18005         EOPNOTSUPP.
18006         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
18007         * modules/chown (Depends-on): Remove errno.
18008
18009 2009-09-06  Bruno Haible  <bruno@clisp.org>
18010
18011         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
18012
18013 2009-09-06  Bruno Haible  <bruno@clisp.org>
18014
18015         * lib/sys_stat.in.h: Fix preprocessor command indentation.
18016
18017 2009-09-06  Ben Pfaff  <blp@gnu.org>
18018             Bruno Haible  <bruno@clisp.org>
18019
18020         Work around a glibc bug in strtok_r.
18021         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
18022         Undefine if UNDEFINE_STRTOK_R is set.
18023         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
18024         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
18025         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
18026         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
18027         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
18028         UNDEFINE_STRTOK_R.
18029         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
18030
18031 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
18032
18033         exclude: minor fix
18034         * lib/exclude.c: Include wctype.h
18035
18036 2009-09-06  Akim Demaille  <demaille@gostai.com>
18037
18038         bootstrap: improve error message
18039         * build-aux/bootstrap (find_tool): Upon failure, report the list
18040         of candidates.
18041         Honor the initial value of the envvar.
18042
18043 2009-09-05  Eric Blake  <ebb9@byu.net>
18044
18045         symlinkat: new module
18046         * modules/symlinkat: New file.
18047         * lib/symlinkat.c: Likewise.
18048         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
18049         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
18050         * modules/unistd (Makefile.am): Use them.
18051         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
18052         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
18053         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
18054         * MODULES.html.sh (File system functions): Mention module.
18055         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
18056         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
18057         * modules/symlinkat-tests: New test.
18058         * tests/test-symlinkat.c: Likewise.
18059
18060         test-openat-safer: add more checks
18061         * tests/test-openat-safer.c (main): Check more code paths.
18062
18063 2009-09-05  Jim Meyering  <meyering@redhat.com>
18064
18065         syntax-check: detect unnecessary inclusion of openat.h
18066         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
18067
18068 2009-09-05  Bruno Haible  <bruno@clisp.org>
18069
18070         Support towlower, towupper.
18071         * doc/posix-functions/towlower.texi: Mention module wctype.
18072         * doc/posix-functions/towupper.texi: Likewise.
18073         * lib/wctype.in.h (towlower, towupper): New functions.
18074         * tests/test-wctype.c: Include stdio.h, stdlib.h.
18075         (ASSERT): New macro.
18076         (e): New variable.
18077         (main): Test also towlower, towupper. Test WEOF argument.
18078         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
18079
18080 2009-09-05  Bruno Haible  <bruno@clisp.org>
18081
18082         Fix conversion behaviour when the input is invalid.
18083         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
18084         mark occurring in first pass of indirect conversion.
18085         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
18086         input.
18087         Found by clang's static analyzer.
18088
18089 2009-09-05  Bruno Haible  <bruno@clisp.org>
18090
18091         * tests/test-striconveh.c (main): Test indirect conversion on platforms
18092         where direct conversion is possible.
18093
18094 2009-09-04  Eric Blake  <ebb9@byu.net>
18095
18096         openat: fail with ENOENT on empty name
18097         * lib/openat-proc.c (openat_proc_name): Special-case the empty
18098         buffer.
18099
18100         link-follow: fix logic bug in prior patch
18101         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
18102         reversed sense of yes and no in prior patch.  Avoid confusing
18103         compilation failure with desired semantics.
18104
18105         link-follow: accomodate mingw and cross-compilation
18106         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
18107         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
18108         cross-compilation results to -1, to make linkat easier to
18109         implement when cross-compiling.  Trivially support mingw.
18110         * modules/link-follow (configure.ac): Call new name.
18111         * NEWS: Mention this.
18112
18113 2009-09-03  Eric Blake  <ebb9@byu.net>
18114
18115         faccessat: compile replacement
18116         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
18117         needed.
18118
18119         fts: fix compilation error
18120         * lib/fts.c (includes): Re-add "openat.h", for
18121         openat_needs_fchdir.
18122
18123         faccessat: new module
18124         * modules/faccessat: New file.
18125         * lib/faccessat.c: Likewise.
18126         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
18127         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
18128         * modules/unistd (Makefile.am): Use it.
18129         * lib/unistd.in.h (faccessat): Declare it.
18130         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
18131         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
18132         * MODULES.html.sh (File system functions): Mention it.
18133         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
18134         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
18135
18136         euidaccess: prefer POSIX over non-standard implementation
18137         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
18138         * lib/euidaccess.c (euidaccess): Use it if available.
18139
18140         openat: make template easier to use
18141         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
18142         AT_FUNC_F2 to be undefined.
18143         (VALIDATE_FLAG): New macro; use it to reject bad flags.
18144         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
18145         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
18146         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
18147         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
18148         Likewise.
18149         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
18150         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
18151         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
18152         Likewise.
18153
18154         openat: declare in POSIX headers
18155         * NEWS: Mention this.
18156         * modules/openat (configure.ac): Declare witnesses.
18157         (Depends-on): Add fcntl-h, sys_stat, unistd.
18158         (Include): Mention correct headers.
18159         * modules/fcntl-h (Depends-on): Add link-warning.
18160         (Files): Add openat.m4.
18161         (Makefile.am): Substitute witnesses.
18162         * modules/sys_stat (Files, Makefile.am): Likewise.
18163         * modules/unistd (Files, Makefile.am): Likewise.
18164         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
18165         (gl_OPENAT_DEFAULTS): New macro.
18166         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
18167         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
18168         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
18169         (SYS_STAT_H): Remove unused variable.
18170         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
18171         * lib/fcntl--.h (includes): Remove unneeded header.
18172         * lib/openat-safer.c (includes): Likewise.
18173         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
18174         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
18175         appropriate headers.
18176         (__OPENAT_PREFIX): Delete.
18177         * lib/fcntl.in.h (openat): Provide declaration.
18178         (AT_FDCWD): Fix Solaris bug.
18179         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
18180         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
18181         * lib/fchmodat.c (includes):  Adjust to find declaration.
18182         * lib/fchownat.c (includes): Likewise.
18183         * lib/mkdirat.c (includes): Likewise.
18184         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
18185         still visible.
18186
18187 2009-09-02  Eric Blake  <ebb9@byu.net>
18188
18189         errno: use consistently
18190         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
18191         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
18192         * lib/canonicalize.c (ELOOP): Likewise.
18193         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
18194         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
18195         * lib/lchown.c (EOPNOTSUPP): Likewise.
18196         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
18197         * lib/savewd.c (ESTALE): Likewise.
18198         * lib/settime.c (ENOSYS): Likewise.
18199         * lib/utimens.c (ENOSYS): Likewise.
18200         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
18201         * lib/chdir-safer.c (ELOOP): Likewise.
18202         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
18203         * modules/c-stack (Depends-on): Add errno.
18204         * modules/canonicalize (Depends-on): Likewise.
18205         * modules/chdir-safer (Depends-on): Likewise.
18206         * modules/fdopendir (Depends-on): Likewise.
18207         * modules/inet_ntop (Depends-on): Likewise.
18208         * modules/inet_pton (Depends-on): Likewise.
18209         * modules/lchown (Depends-on): Likewise.
18210         * modules/openat (Depends-on): Likewise.
18211         * modules/savewd (Depends-on): Likewise.
18212         * modules/settime (Depends-on): Likewise.
18213         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
18214
18215         fts: avoid leaking fds
18216         * modules/fts (Depends-on): Add cloexec.
18217         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
18218         flag.
18219
18220         fts: make directory fds more robust
18221         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
18222         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
18223
18224         backupfile, chdir-long, fts, savedir: make safer
18225         * lib/backupfile.c (includes): Use "dirent--.h", since
18226         numbered_backup can write to stderr during readdir.
18227         * lib/savedir.c (includes): Likewise.
18228         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
18229         emulation can write to stderr on failure.
18230         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
18231         * lib/getcwd.c: Document why opendir_safer is unused.
18232         * lib/glob.c: Likewise.
18233         * lib/scandir.c: Likewise.
18234         * lib/openat-proc.c: Likewise, for open_safer.
18235         * modules/backupfile (Depends-on): Add dirent-safer.
18236         * modules/savedir (Depends-on): Likewise.
18237         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
18238         * modules/chdir-long (Depends-on): Add openat-safer.
18239
18240         openat-safer: new module
18241         * modules/openat-safer: New file.
18242         * lib/openat-safer.c: Likewise.
18243         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
18244         * lib/fcntl-safer.h (openat_safer): Declare.
18245         * lib/fcntl--.h (openat): Override.
18246         * MODULES.html.sh (File descriptor based I/O): Mention it.
18247         * lib/openat.h: Add double-inclusion guards.
18248         * lib/openat.c (includes): Only include "fcntl-safer.h", not
18249         "fcntl--.h", so we can implement openat.
18250         * modules/openat-safer-tests: New test.
18251         * tests/test-openat-safer.c: New file.
18252
18253         dirent-safer: new module
18254         * modules/dirent-safer: New file.
18255         * lib/dirent--.h: Likewise.
18256         * lib/dirent-safer.h: Likewise.
18257         * lib/opendir-safer.c: Likewise.
18258         * m4/dirent-safer.m4: Likewise.
18259         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
18260         * modules/dirent-safer-tests: New test.
18261         * tests/test-dirent-safer.c: New file.
18262         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
18263
18264         fdopendir: optimize on mingw
18265         * lib/unistd.in.h (_gl_directory_name): New prototype.
18266         * lib/fchdir.c (_gl_directory_name): Implement it.
18267         (fchdir): Use it to simplify implementation.
18268         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
18269         fchdir, when available, to avoid calling [f]chdir().
18270
18271         fdopendir: split into its own module
18272         * lib/openat.c (fdopendir): Move...
18273         * lib/fdopendir.c: ...into new file.
18274         * modules/fdopendir: New module.
18275         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
18276         * modules/openat (Depends-on): Add fdopendir.
18277         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
18278         fdopendir here.
18279         * modules/savedir (Depends-on): Only need fdopendir, not full
18280         openat.
18281         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
18282         * lib/openat.h (fdopendir): Drop prototype.
18283         * lib/dirent.in.h (fdopendir): Provide prototype.
18284         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
18285         * modules/dirent (Makefile.am): Substitute them.
18286         * MODULES.html.sh (File system functions): Mention it.
18287         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
18288         * modules/fdopendir-tests: New file.
18289         * tests/test-fdopendir.c: Likewise.
18290
18291         fchdir: use more consistent macro convention
18292         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
18293         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
18294         REPLACE_FCHDIR, rather than relying on config.h macros.
18295         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
18296         inside a single make-time REPLACE_FCHDIR block, rather than using
18297         the config.h FCHDIR_REPLACEMENT.
18298         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
18299         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
18300         Manage fstat replacement.
18301         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
18302         REPLACE_FCHDIR.
18303         * modules/sys_stat (Files): Add m4/unistd_h.m4.
18304         (Makefile.am): Substitute REPLACE_FCHDIR.
18305         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
18306         FCHDIR_REPLACEMENT.
18307         * lib/dup-safer.c (dup_safer): Likewise.
18308         * lib/dup2.c (rpl_dup2): Likewise.
18309         * lib/dup3.c (rpl_dup3): Likewise.
18310         * lib/open.c (rpl_open): Likewise.
18311
18312         fchdir: simplify error handling, and support dup3
18313         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
18314         stdbool, malloc-posix, realloc-posix.
18315         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
18316         (ensure_dirs_slot): Return false on allocation failure.
18317         (rpl_dup2): Delete.
18318         (_gl_register_dup): New function.
18319         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
18320         (_gl_register_fd): Close fd on allocation failure.
18321         * lib/fcntl.in.h (_gl_register_fd): Update signature.
18322         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
18323         prototype.
18324         (rpl_dup2_fchdir): Delete prototype.
18325         * lib/open.c (open): Update caller.
18326         * lib/dup2.c (dup2): Track fchdir metadata.
18327         * lib/dup3.c (dup3): Likewise.
18328         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
18329         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
18330
18331 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18332
18333         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
18334         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
18335         don't pass arguments to AC_OUTPUT.
18336
18337 2009-09-02  Bruno Haible  <bruno@clisp.org>
18338
18339         * modules/mkdtemp (License): Relicense under LGPLv2+.
18340         Reported by Paolo Bonzini.
18341
18342 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18343
18344         Replace uses of obsolete autoconf macros in Jim's modules.
18345         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
18346         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
18347         can evoke a warning from autoconf when run with -Wobsolete
18348         enabled.  They were declared obsolete for good reasons (see
18349         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
18350         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
18351         should not continue using the deprecated macros.
18352         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
18353         obsolete Autoconf macros with modern counterparts.
18354         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
18355         * m4/dos.m4 (gl_AC_DOS): Likewise.
18356         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
18357         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
18358         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
18359         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
18360         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
18361         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
18362         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
18363         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
18364         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
18365         Likewise.
18366         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
18367         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
18368         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
18369         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
18370         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
18371         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
18372
18373 2009-09-01  Eric Blake  <ebb9@byu.net>
18374
18375         fchdir: fix off-by-one bug in previous patch
18376         * lib/fchdir.c (rpl_fstat): Use correct bounds.
18377         (_gl_unregister_fd): Delete useless if.
18378
18379 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
18380
18381         maint.mk: sort the list of syntax-check rules
18382         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
18383         easier to get a sense of progress when the rules are run sequentially
18384         and take a long time.
18385
18386 2009-09-01  Simon Josefsson  <simon@josefsson.org>
18387
18388         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
18389         * modules/netinet_in: Likewise.
18390         * modules/sys_file: Likewise.
18391         * modules/sys_ioctl: Likewise.
18392         * modules/sys_select: Likewise.
18393         * modules/sys_socket: Likewise.
18394         * modules/sys_stat: Likewise.
18395         * modules/sys_time: Likewise.
18396         * modules/sys_times: Likewise.
18397         * modules/sys_utsname: Likewise.
18398         * modules/sys_wait: Likewise.
18399
18400 2009-09-01  Jim Meyering  <meyering@redhat.com>
18401
18402         fts: help ensure that return values are not ignored
18403         * lib/fts_.h (__GNUC_PREREQ): Define.
18404         (__attribute_warn_unused_result__): Define.
18405         (fts_children, fts_close, fts_open, fts_read): Declare with
18406         __attribute_warn_unused_result__.
18407
18408         fts: fts_close now fails also when closing a dir file descriptor fails
18409         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
18410         and propagate to caller, along with errno.
18411
18412         announce-gen: correct formatting in --help output
18413         * build-aux/announce-gen (usage): Move the one-line description in
18414         --help output "up", to where it belongs, just after Usage:.
18415
18416 2009-08-31  Eric Blake  <ebb9@byu.net>
18417
18418         fchdir: port to mingw
18419         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
18420         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
18421         opened, then use a substitute.
18422         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
18423         replacement.
18424         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
18425         (_gl_register_fd): No need to check stat if open already filters
18426         all directories.
18427         (fchdir): Fix error condition to match POSIX.
18428         * modules/fchdir (Depends-on): Add sys_stat.
18429         * doc/posix-functions/open.texi (open): Document the limitation.
18430         * modules/fchdir-tests: New file.
18431         * tests/test-fchdir.c: Likewise.
18432
18433         canonicalize: allow cross-testing from cygwin to mingw
18434         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
18435         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
18436         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
18437         Likewise.
18438         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
18439         target does not support symlinks.
18440         * tests/test-canonicalize-lgpl.sh: Likewise.
18441
18442         chown: avoid compilation warning on mingw
18443         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
18444         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
18445         mingw.
18446         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
18447         * modules/chown (Depends-on): Add errno.
18448
18449 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
18450
18451         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
18452         command.
18453
18454 2009-08-31  Jim Meyering  <meyering@redhat.com>
18455
18456         canonicalize: remove useless initialization
18457         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
18458         initialization of local, "end".
18459
18460 2009-08-30  Bruno Haible  <bruno@clisp.org>
18461
18462         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
18463         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
18464         ENOSYS.
18465
18466 2009-08-30  Bruno Haible  <bruno@clisp.org>
18467
18468         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
18469         /usr/xpg4/bin/tr when it exists.
18470         * tests/test-pipe-filter-gi1.sh: Likewise.
18471
18472 2009-08-30  Bruno Haible  <bruno@clisp.org>
18473
18474         Work around deficient /usr/bin/id program on Solaris.
18475         * tests/test-file-has-acl.sh (ID): New variable.
18476         * tests/test-set-mode-acl.sh (ID): Likewise.
18477         * tests/test-copy-acl.sh (ID): Likewise.
18478         * tests/test-copy-file.sh (ID): Likewise.
18479
18480 2009-08-30  Bruno Haible  <bruno@clisp.org>
18481
18482         New module 'xstriconveh'.
18483         * lib/xstriconveh.h: New file.
18484         * lib/xstriconveh.c: New file.
18485         * modules/xstriconveh: New file.
18486
18487 2009-08-30  Bruno Haible  <bruno@clisp.org>
18488
18489         Make it easier to use mem_cd_iconveh.
18490         * lib/striconveh.h (iconveh_t): New type.
18491         (iconveh_open, iconveh_close): New declarations.
18492         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
18493         with a single 'const iconveh_t *' argument.
18494         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
18495         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
18496         with a single 'const iconveh_t *' argument.
18497         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
18498         * tests/test-striconveh.c (main): Update.
18499         * NEWS: Mention the change.
18500
18501 2009-08-30  Bruno Haible  <bruno@clisp.org>
18502
18503         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
18504         problem.
18505
18506 2009-08-30  Bruno Haible  <bruno@clisp.org>
18507
18508         Work around iconv_open problem on Solaris.
18509         * lib/iconv_open-solaris.gperf: New file.
18510         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
18511         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
18512         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
18513         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
18514         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
18515         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
18516
18517 2009-08-29  Jim Meyering  <meyering@redhat.com>
18518
18519         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
18520         * top/maint.mk (cvs-check): Remove target; it was just an alias
18521         to the better-named vc-diff-check.
18522         (maintainer-distcheck): Remove rule.  It was used only from
18523         the (alpha/beta/major) target, and all of its commands but one
18524         were coreutils-specific.
18525         (vc-dist): Remove rule.
18526         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
18527         Run vc-diff-check, not vc-dist.
18528         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
18529
18530 2009-08-27  Bruno Haible  <bruno@clisp.org>
18531
18532         * tests/test-bitrotate.c (main): Remove test that uses a shift count
18533         of 0.
18534
18535 2009-08-27  Bruno Haible  <bruno@clisp.org>
18536
18537         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
18538         compilers.
18539         * doc/func.texi: Document the SunPRO C bug.
18540
18541 2009-08-27  Bruno Haible  <bruno@clisp.org>
18542
18543         Fix link error on Solaris.
18544         * tests/test-parse-duration.c (xstrdup): Remove function.
18545
18546 2009-08-26  Pádraig Brady  <P@draigbrady.com>
18547
18548         ignore-value: handle pointer types, too
18549         * lib/ignore-value.h (__attribute__): Remove definition.
18550         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
18551         of a more concise and more-often effective "(void) i" statement.
18552         (ignore_ptr): New function to suppress warnings from functions that
18553         return pointers, and to make it explicit that one function doesn't
18554         handle all cases.
18555
18556 2009-08-25  Bruno Haible  <bruno@clisp.org>
18557
18558         dup2: work around a Linux bug.
18559         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
18560         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
18561         * doc/posix-functions/dup2.texi: Mention the Linux bug.
18562         Reported by Simon Josefsson.
18563
18564 2009-08-25  Jim Meyering  <meyering@redhat.com>
18565
18566         libguestfs uses gnulib
18567         * users.txt: Add libguestfs.
18568
18569 2009-08-24  Eric Blake  <ebb9@byu.net>
18570
18571         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
18572         * lib/pipe2.c (includes): Add binary-io.h.
18573         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
18574
18575 2009-08-24  Bruno Haible  <bruno@clisp.org>
18576
18577         Tolerate declared but missing accept4 syscall.
18578         * lib/accept4.c (accept4): Invoke original accept4 function first, if
18579         available.
18580         * lib/sys_socket.in.h (accept4): If the function is already present,
18581         override it.
18582         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
18583         * modules/accept4 (Makefile.am): Compile accept4.c always.
18584         Reported by Paolo Bonzini and Eric Blake.
18585
18586 2009-08-23  Bruno Haible  <bruno@clisp.org>
18587
18588         New module 'accept4'.
18589         * lib/sys_socket.in.h (accept4): New declaration.
18590         * lib/accept4.c: New file.
18591         * m4/accept4.m4: New file.
18592         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
18593         GNULIB_ACCEPT4, HAVE_ACCEPT4.
18594         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
18595         HAVE_ACCEPT4.
18596         * modules/accept4: New file.
18597         * doc/glibc-functions/accept4.texi: Mention the new module.
18598
18599 2009-08-24  Jim Meyering  <meyering@redhat.com>
18600
18601         progname: also set global program_invocation_name, when possible
18602         Before this change, a libtool-enabled program that calls glibc's
18603         error function would report the program name as
18604         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
18605         * modules/progname (configure.ac): Check for a declaration of
18606         program_invocation_name.
18607         * lib/progname.c:  Include <errno.h>.
18608         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
18609         Set program_invocation_name.
18610
18611 2009-08-23  Bruno Haible  <bruno@clisp.org>
18612
18613         * lib/dup3.c: Include <string.h>.
18614
18615 2009-08-23  Bruno Haible  <bruno@clisp.org>
18616
18617         * lib/dup3.c (dup3): Test only once whether the system actually exists.
18618         * lib/pipe2.c (pipe2): Likewise.
18619         Suggested by Eric Blake.
18620
18621 2009-08-23  Bruno Haible  <bruno@clisp.org>
18622
18623         Tolerate declared but missing dup3 syscall.
18624         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
18625         * lib/unistd.in.h (dup3): If the function is already present,
18626         override it.
18627         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
18628         * modules/dup3 (Makefile.am): Compile dup3.c always.
18629         Reported by Paolo Bonzini.
18630
18631 2009-08-23  Bruno Haible  <bruno@clisp.org>
18632
18633         Tolerate declared but missing pipe2 syscall.
18634         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
18635         available.
18636         * lib/unistd.in.h (pipe2): If the function is already present,
18637         override it.
18638         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
18639         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
18640         Reported by Paolo Bonzini.
18641
18642 2009-08-23  Bruno Haible  <bruno@clisp.org>
18643
18644         * lib/pipe2.c (pipe2): Move #ifs inside function.
18645
18646 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
18647
18648         quotearg: document limitations of quote_these_too
18649         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
18650         those limitations are created.
18651         * lib/quotearg.h (set_char_quoting): Document that digits and
18652         letters that are special after backslash are not permitted.
18653         (quotearg_char): Cross-reference set_char_quoting documentation.
18654
18655 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
18656
18657         quotearg: implement custom_quoting_style
18658         * lib/quotearg.c: (struct quoting_options): Add left_quote and
18659         right_quote fields.
18660         (set_custom_quoting): New public function.
18661         (quotearg_buffer_restyled): Add left_quote and right_quote
18662         arguments, handle them very much like locale quoting, and update
18663         all uses.
18664         (quotearg_n_custom): New public function.
18665         (quotearg_n_custom_mem): New public function.
18666         (quotearg_custom): New public function.
18667         (quotearg_custom_mem): New public function.
18668         * lib/quotearg.h: Prototype and document new public functions.
18669         (enum quoting_style): For escape_quoting_style and
18670         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
18671         ignored even though they're otherwise like c_quoting_style.
18672         Add custom_quoting_style member and document with comparison to
18673         clocale_quoting_style.
18674         * tests/test-quotearg.c (custom_quotes): New array.
18675         (custom_results): New array.
18676         (main): Extend to test custom quoting.
18677
18678 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
18679
18680         quotearg: fix right quote escaping when it's in quote_these_too
18681         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
18682         quote, be sure to prepend only one backslash.
18683         * tests/test-quotearg.c (use_quote_double_quotes): New function.
18684         (main): Test it.
18685
18686 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
18687
18688         quotearg-tests: test escaping of embedded locale quotes
18689         * tests/test-quotearg.c (struct result_strings): Add member for
18690         new input.
18691         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
18692         (inputs): Add new input.
18693         (results_g): Add expected results.
18694         (flag_results): Likewise.
18695         (locale_results): Likewise.
18696         (compare_strings): Check those.
18697
18698 2009-08-23  Bruno Haible  <bruno@clisp.org>
18699
18700         Tests for module 'dup3'.
18701         * modules/dup3-tests: New file.
18702         * tests/test-dup3.c: New file.
18703
18704         New module 'dup3'.
18705         * lib/unistd.in.h (dup3): New declaration.
18706         * lib/dup3.c: New file.
18707         * m4/dup3.m4: New file.
18708         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
18709         HAVE_DUP3.
18710         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
18711         * modules/dup3: New file.
18712         * doc/glibc-functions/dup3.texi: Mention the new module.
18713
18714 2009-08-23  Bruno Haible  <bruno@clisp.org>
18715
18716         Tweak the dup2 test.
18717         * tests/test-dup2.c (main): Create the test file empty. Verify that an
18718         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
18719         the test file is still empty. Fix argument order of lseek.
18720
18721 2009-08-23  Bruno Haible  <bruno@clisp.org>
18722
18723         Avoid test link errors when the modules getopt-gnu, gettext are used.
18724         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
18725         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18726
18727 2009-08-23  Bruno Haible  <bruno@clisp.org>
18728
18729         Fix getdtablesize() on mingw.
18730         * lib/getdtablesize.c (getdtablesize): Implement differently.
18731         * lib/unistd.in.h (getdtablesize): Improve comment.
18732
18733 2009-08-23  Bruno Haible  <bruno@clisp.org>
18734
18735         New module 'mkostemp'.
18736         Based on Ulrich Drepper's 2007-08-10 change in glibc.
18737         * lib/stdlib.in.h (mksotemp): New declaration.
18738         * lib/mkostemp.c: New file, from glibc with modifications.
18739         * lib/tempname.h (GT_FILE): Remove outdated comment.
18740         (gen_tempname): Add flags argument.
18741         * lib/tempname.c (__GT_BIGFILE): Remove macro.
18742         (__GT_FILE): Map to 1.
18743         (small_open, large_open): Remove macros.
18744         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
18745         * lib/mkstemp.c (mkstemp): Update.
18746         * lib/mkdtemp.c (mkdtemp): Likewise.
18747         * m4/mkostemp.m4: New file.
18748         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
18749         HAVE_MKOSTEMP.
18750         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
18751         HAVE_MKOSTEMP.
18752         * modules/mkostemp: New file, based on modules/mkstemp.
18753         * doc/glibc-functions/mkostemp.texi: Mention the new module.
18754         * NEWS: Mention the change.
18755
18756 2009-08-23  Bruno Haible  <bruno@clisp.org>
18757
18758         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
18759         Reported by Eric Blake.
18760
18761 2009-08-23  Bruno Haible  <bruno@clisp.org>
18762
18763         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
18764         Reported by Eric Blake.
18765
18766 2009-08-23  Bruno Haible  <bruno@clisp.org>
18767
18768         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
18769         * modules/pipe2 (Depends-on): Likewise.
18770
18771 2009-08-23  Eric Blake  <ebb9@byu.net>
18772
18773         fcntl-h: add O_TTY_INIT support
18774         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
18775         * tests/test-fcntl-h.c (o): Test it.
18776         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
18777
18778         fcntl-h: rename from fcntl, in preparation for fcntl(2)
18779         * modules/fcntl: Move <fcntl.h> header replacement...
18780         * modules/fcntl-h: ...to new name, so as not to collide with
18781         like-named function.
18782         * tests/test-fcntl.c: Rename...
18783         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
18784         * modules/fcntl-tests: Rename...
18785         * modules/fcntl-h-tests: ...to this.  Update test file name.
18786         * modules/chdir-long (Depends-on): Update clients.
18787         * modules/chdir-safer (Depends-on): Likewise.
18788         * modules/fcntl-safer (Depends-on): Likewise.
18789         * modules/fts (Depends-on): Likewise.
18790         * modules/mkancesdirs (Depends-on): Likewise.
18791         * modules/mkdir-p (Depends-on): Likewise.
18792         * modules/open (Depends-on): Likewise.
18793         * modules/savewd (Depends-on): Likewise.
18794         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
18795         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
18796
18797 2009-08-22  Bruno Haible  <bruno@clisp.org>
18798
18799         * modules/binary-io (License): Relicense under LGPL.
18800         * modules/pipe2 (License): Likewise.
18801
18802 2009-08-22  Bruno Haible  <bruno@clisp.org>
18803
18804         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
18805         return value.
18806         * lib/pipe-filter-gi.c (filter_init): Likewise.
18807         Reported by Eric Blake.
18808
18809 2009-08-22  Bruno Haible  <bruno@clisp.org>
18810
18811         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
18812         * modules/pipe (Depends-on): Add pipe2.
18813
18814 2009-08-22  Bruno Haible  <bruno@clisp.org>
18815
18816         Tests for module 'pipe2'.
18817         * modules/pipe2-tests: New file.
18818         * tests/test-pipe2.c: New file.
18819
18820         New module 'pipe2'.
18821         * lib/unistd.in.h (pipe2): New declaration.
18822         * lib/pipe2.c: New file.
18823         * m4/pipe2.m4: New file.
18824         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
18825         HAVE_PIPE2.
18826         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
18827         * modules/pipe2: New file.
18828         * doc/glibc-functions/pipe2.texi: Mention the new module.
18829
18830 2009-08-22  Bruno Haible  <bruno@clisp.org>
18831
18832         Reference some new glibc functions.
18833         * doc/glibc-functions/accept4.texi: New file.
18834         * doc/glibc-functions/dup3.texi: New file.
18835         * doc/glibc-functions/mkostemp.texi: New file.
18836         * doc/glibc-functions/pipe2.texi: New file.
18837         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
18838         (Glibc sys/socket.h): Refer to accept4.
18839         (Glibc unistd.h): Refer to dup3, pipe2.
18840         Reported by Eric Blake.
18841
18842 2009-08-22  Jim Meyering  <meyering@redhat.com>
18843             Bruno Haible  <bruno@clisp.org>
18844
18845         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
18846         This makes it so packages using automake-1.11's silent-rules option
18847         can print e.g., a single "GEN    configmake.h" line, rather than
18848         the 30+ statements that perform the job.  If you want to see the
18849         actual commands, you can still run "make V=1".
18850         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
18851         so that make output is abbreviated when those variables are defined
18852         appropriately.
18853         * modules/argz: Likewise.
18854         * modules/arpa_inet: Likewise.
18855         * modules/byteswap: Likewise.
18856         * modules/configmake: Likewise.
18857         * modules/dirent: Likewise.
18858         * modules/errno: Likewise.
18859         * modules/fcntl: Likewise.
18860         * modules/float: Likewise.
18861         * modules/fnmatch: Likewise.
18862         * modules/getopt-posix: Likewise.
18863         * modules/glob: Likewise.
18864         * modules/iconv_open: Likewise.
18865         * modules/inttypes: Likewise.
18866         * modules/localcharset: Likewise.
18867         * modules/locale: Likewise.
18868         * modules/math: Likewise.
18869         * modules/netdb: Likewise.
18870         * modules/netinet_in: Likewise.
18871         * modules/poll: Likewise.
18872         * modules/posix_spawnp-tests: Likewise.
18873         * modules/sched: Likewise.
18874         * modules/search: Likewise.
18875         * modules/selinux-h: Likewise.
18876         * modules/signal: Likewise.
18877         * modules/spawn: Likewise.
18878         * modules/stdarg: Likewise.
18879         * modules/stdbool: Likewise.
18880         * modules/stddef: Likewise.
18881         * modules/stdint: Likewise.
18882         * modules/stdio: Likewise.
18883         * modules/stdlib: Likewise.
18884         * modules/string: Likewise.
18885         * modules/strings: Likewise.
18886         * modules/sys_file: Likewise.
18887         * modules/sys_ioctl: Likewise.
18888         * modules/sys_select: Likewise.
18889         * modules/sys_socket: Likewise.
18890         * modules/sys_stat: Likewise.
18891         * modules/sys_time: Likewise.
18892         * modules/sys_times: Likewise.
18893         * modules/sys_utsname: Likewise.
18894         * modules/sys_wait: Likewise.
18895         * modules/sysexits: Likewise.
18896         * modules/time: Likewise.
18897         * modules/unistd: Likewise.
18898         * modules/wchar: Likewise.
18899         * modules/wctype: Likewise.
18900
18901 2009-08-22  Jim Meyering  <meyering@redhat.com>
18902
18903         announce-gen: detect write failure
18904         * build-aux/announce-gen: Add Coda at end.
18905         Remove equivalent-but-more-verbose block at top.
18906
18907 2009-08-19  Akim Demaille  <demaille@gostai.com>
18908
18909         bootstrap: --help to stdout.
18910         * bootstrap (usage): Don't send --help to stderr.
18911         Use a here doc instead of a long string.
18912
18913 2009-08-21  Eric Blake  <ebb9@byu.net>
18914
18915         test-popen-safer: split from test-popen
18916         * tests/test-popen.c (main): Move...
18917         * tests/test-popen.h: ...into new file.
18918         * tests/test-popen-safer2.c: New file.
18919         * modules/popen-tests (Files): Add test-popen.h.
18920         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
18921         Suggested by Bruno Haible.
18922
18923         test-fcntl-safer: split from test-open
18924         * tests/test-open.c (main): Move...
18925         * tests/test-open.h: ...into new file.
18926         * tests/test-fcntl-safer.c: New file.
18927         * modules/open-tests (Files): Add test-open.h.
18928         * modules/fcntl-safer-tests: New file.
18929         Suggested by Bruno Haible.
18930
18931         test-fopen-safer: split from test-fopen
18932         * tests/test-fopen.c (main): Move...
18933         * tests/test-fopen.h: ...into new file.
18934         * tests/test-fopen-safer.c: New file.
18935         * modules/fopen-tests (Files): Add test-fopen.h.
18936         * modules/fopen-safer-tests: New file.
18937         Suggested by Bruno Haible.
18938
18939 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
18940
18941         popen-safer: test O_CLOEXEC at run-time.
18942         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
18943
18944 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
18945
18946         fcntl: move more flags to the header
18947         * lib/cloexec.c: Do not define FD_CLOEXEC here.
18948         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
18949         * lib/fcntl.in.h: Do both things here.
18950
18951 2009-08-21  Jim Meyering  <meyering@redhat.com>
18952
18953         consistently remove $@-t before redirecting to it
18954         * modules/argz: Remove $@-t and $@ before redirecting to the former.
18955         * modules/alloca-opt: Likewise.
18956         * modules/byteswap: Likewise.
18957         * modules/fnmatch: Likewise.
18958         * modules/getopt-posix: Likewise.
18959         * modules/glob: Likewise.
18960         * modules/poll: Likewise.
18961         * modules/posix_spawnp-tests: Likewise.
18962         * modules/sys_socket: Likewise.
18963         * modules/sysexits: Likewise.
18964
18965 2009-08-21  Eric Blake  <ebb9@byu.net>
18966
18967         popen: simplify access to original popen
18968         * lib/popen.c (rpl_popen): No need to worry about popen being a
18969         macro.
18970         Reported by Bruno Haible.
18971
18972 2009-08-20  Eric Blake  <ebb9@byu.net>
18973
18974         build: avoid some compiler warnings
18975         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
18976         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
18977         type.
18978         (new_exclude_segment, excluded_file_pattern_p)
18979         (excluded_file_name_p): Reduce scope.
18980         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
18981         old-style declaration.
18982
18983 2009-08-20  Simon Josefsson  <simon@josefsson.org>
18984
18985         * tests/test-exclude1.sh: Handle Windows EOL.
18986         * tests/test-exclude2.sh: Likewise.
18987         * tests/test-exclude3.sh: Likewise.
18988         * tests/test-exclude4.sh: Likewise.
18989         * tests/test-exclude5.sh: Likewise.
18990         * tests/test-exclude6.sh: Likewise.
18991         * tests/test-exclude7.sh: Likewise.
18992
18993 2009-08-19  Akim Demaille  <demaille@gostai.com>
18994
18995         bootstrap: find sha1sum when named gsha1sum.
18996         * bootstrap (find_tool): New.
18997         ($SHA1SUM): New.
18998         Use it.
18999
19000 2009-08-20  Jim Meyering  <meyering@redhat.com>
19001
19002         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
19003         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
19004         expression that converts "." in a file name to "\." in the resulting
19005         regexp.  Start with a dummy statement, so that prior shell variable
19006         definitions are expanded portably.  Reported by Simon Josefsson.
19007
19008 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
19009
19010         Fix polling for writeability of a screen buffer.
19011         * lib/poll.c: Distinguish input and screen buffers for the
19012         Win32 implementation.
19013         * lib/select.c: Likewise.
19014
19015 2009-08-19  Eric Blake  <ebb9@byu.net>
19016
19017         popen-safer: prevent popen from clobbering std descriptors
19018         * modules/popen-safer: New file.
19019         * lib/popen-safer.c: Likewise.
19020         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
19021         * lib/stdio--.h (popen): Provide override.
19022         * lib/stdio-safer.h (popen_safer): Provide declaration.
19023         * tests/test-popen.c (includes): Partially test this.
19024         * modules/popen-safer-tests: New file, for more tests.
19025         * tests/test-popen-safer.c: Likewise.
19026         * MODULES.html.sh (file stream based Input/Output): Mention it.
19027
19028         tests: test some of the *-safer modules
19029         * modules/fopen-safer (Depends-on): Add fopen.
19030         * modules/fcntl-safer (Depends-on): Add fcntl.
19031         * modules/stdlib-safer (Depends-on): Add stdlib.
19032         (configure.ac): Set indicator.
19033         * modules/unistd-safer (configure.ac): Likewise.
19034         * modules/tmpfile-safer (configure.ac): Likewise.
19035         (Depends-on): Add tmpfile.
19036         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
19037         active.
19038         * tests/test-fopen.c (includes): Test safer versions when they are
19039         in use.
19040         * tests/test-open.c (includes): Likewise.
19041
19042         popen: fix cygwin 1.5 bug when stdin closed
19043         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
19044         * modules/popen: New file.
19045         * modules/popen-tests: Likewise.
19046         * tests/test-popen.c: Likewise.
19047         * m4/popen.m4: Likewise.
19048         * lib/popen.c: Likewise.
19049         * lib/stdio.in.h (popen): New declaration.
19050         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
19051         * modules/stdio (Makefile.am): Likewise.
19052         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
19053
19054 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
19055
19056         maint.mk: give full control over update-copyright exclusions
19057         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
19058         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
19059         (update-copyright): Don't force inclusion of top-level
19060         ChangeLog.  Don't force exclusion of all COPYING files, but make
19061         them the default exclusion instead.
19062
19063 2009-08-16  Bruno Haible  <bruno@clisp.org>
19064
19065         Fix test failures on Solaris 10.
19066         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
19067         tests when Solaris iconv() is used.
19068         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
19069         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
19070         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
19071         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
19072         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
19073
19074 2009-08-16  Bruno Haible  <bruno@clisp.org>
19075
19076         Fix test failures on Solaris 10.
19077         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
19078         'tr' program and pass it as first argument.
19079         * tests/test-pipe-filter-gi1.sh: Likewise.
19080         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
19081         program as first argument.
19082         * tests/test-pipe-filter-gi1.c (main): Likewise.
19083
19084 2009-08-16  Eric Blake  <ebb9@byu.net>
19085
19086         fpurge: fix previous commits
19087         * modules/fpurge (Makefile.am): Make replacement conditional,
19088         partially reverting 2007-04-29 change; missed in previous
19089         attempt.
19090         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
19091         is missing.
19092
19093 2009-08-16  Bruno Haible  <bruno@clisp.org>
19094
19095         Clarify fpurge's effect on the file position.
19096         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
19097         * tests/test-fpurge.c (main): Make a second pass for checking the file
19098         position.
19099
19100 2009-08-16  Bruno Haible  <bruno@clisp.org>
19101
19102         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
19103         declaration of fpurge is missing.
19104         * tests/test-fpurge.c (main): Check that the file has not more contents
19105         than expected. Close the file before removing it.
19106
19107 2009-08-15  Eric Blake  <ebb9@byu.net>
19108
19109         fpurge: don't wrap working cygwin implementation
19110         * lib/fpurge.c (fpurge): Fix comment typo.
19111         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
19112         1.7 to avoid replacement.
19113         * tests/test-fpurge.c (main): Enhance test.
19114
19115 2009-08-15  Eric Blake  <ebb9@byu.net>
19116         and Jim Meyering  <meyering@redhat.com>
19117
19118         test-update-copyright: skip if perl is insufficient
19119         * tests/test-update-copyright.sh: Failure to run maintainer tool
19120         should not cause testsuite failure on cygwin 1.5.
19121
19122 2009-08-14  Eric Blake  <ebb9@byu.net>
19123
19124         doc: mention more functions added in cygwin 1.7.0
19125         * doc/posix-headers/limits.texi (limits.h): Update for recent
19126         cygwin additions.
19127         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
19128         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
19129         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
19130         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
19131         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
19132
19133 2009-08-14  Eric Blake  <ebb9@byu.net>
19134
19135         maint.mk: simplify update-copyright rule
19136         * top/maint.mk (update-copyright-local): Delete, and document how
19137         to do it in cfg.mk instead.
19138         (update-copyright-exclude-regexp): Delete, and document how to do
19139         it in .x-update-copyright instead.
19140         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
19141         exclude ChangeLog.
19142
19143 2009-08-14  Bruno Haible  <bruno@clisp.org>
19144
19145         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
19146
19147 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
19148
19149         maint.mk: support update-copyright-env
19150         * top/maint.mk (update-copyright-env): Define place-holder.
19151         (update-copyright): Expand $(update-copyright-env) before
19152         invoking update-copyright.
19153
19154 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
19155
19156         update-copyright: implement forced reformatting
19157         * build-aux/update-copyright: Implement and document
19158         UPDATE_COPYRIGHT_FORCE.
19159         * tests/test-update-copyright.sh: Test it.
19160
19161 2009-08-14  Eric Blake  <ebb9@byu.net>
19162         and Bruno Haible  <bruno@clisp.org>
19163
19164         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
19165         * tests/test-locale.c: Revert previous patch related to NULL.
19166         * tests/test-stdio.c: Likewise.
19167         * tests/test-stdlib.c: Likewise.
19168         * tests/test-string.c: Likewise.
19169         * tests/test-unistd.c: Likewise.
19170         * modules/time-tests (Depends-on): Add verify.
19171         * modules/wchar-tests (Depends-on): Likewise.
19172         * tests/test-time.c: Test for NULL compliance.
19173         * tests/test-wchar.c: Likewise.
19174         * modules/locale (Depends-on): Add stddef.
19175         * modules/stdio (Depends-on): Likewise.
19176         * modules/stdlib (Depends-on): Likewise.
19177         * modules/string (Depends-on): Likewise.
19178         * modules/time (Depends-on): Likewise.
19179         * modules/unistd (Depends-on): Likewise.
19180         * modules/wchar (Depends-on): Likewise.
19181         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
19182         * lib/stdlib.in.h (includes): Likewise.
19183         * lib/string.in.h (includes): Likewise.
19184         * lib/time.in.h (includes): Likewise.
19185         * lib/unistd.in.h (includes): Likewise.
19186         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
19187         replaced.
19188         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
19189         * m4/stddef_h.m4: New file.
19190         * modules/stddef: Likewise.
19191         * lib/stddef.in.h: Likewise.
19192         * modules/stddef-tests: Likewise.
19193         * tests/test-stddef.c: Likewise.
19194         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
19195         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
19196         * doc/posix-headers/locale.texi (locale.h): Likewise.
19197         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
19198         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
19199         * doc/posix-headers/string.texi (string.h): Likewise.
19200         * doc/posix-headers/time.texi (time.h): Likewise.
19201         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
19202         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
19203
19204 2009-08-14  Eric Blake  <ebb9@byu.net>
19205
19206         doc: improve git diff of texinfo files
19207         * .gitattributes: Add rule for *.texi files, with hint on how to
19208         use it.
19209         Copied from m4, and based on a report by Bruno Haible.
19210
19211 2009-08-14  Bruno Haible  <bruno@clisp.org>
19212
19213         Disable multithread support by default on Cygwin 1.5.x for real.
19214         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
19215
19216 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
19217
19218         update-copyright: much ado about intervals
19219         * build-aux/update-copyright: Implement and document
19220         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
19221         of copyright year intervals.
19222         Also, document UPDATE_COPYRIGHT_YEAR.
19223         * tests/test-update-copyright.sh: Test it.
19224
19225         update-copyright: convert 2-digit to 4-digit years
19226         * build-aux/update-copyright: Implement and document.
19227         * tests/test-update-copyright.sh: Update.
19228
19229 2009-08-14  Jim Meyering  <meyering@redhat.com>
19230
19231         test-exclude: avoid coreutils "make check" failure
19232         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
19233         just as in test-argmatch.c.
19234
19235 2009-08-13  Eric Blake  <ebb9@byu.net>
19236
19237         test-dup2: fix bad assumption
19238         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
19239         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
19240
19241         test-version-etc: fix CRLF portability issue
19242         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
19243         recognize \r.
19244         * tests/test-argp-version-etc-1.sh: Likewise.
19245
19246         getopt: update client modules
19247         * modules/argp (Depends-on): Use getopt-gnu.
19248         * modules/git-merge-changelog (Depends-on): Likewise.
19249         * modules/long-options (Depends-on): Likewise.
19250         * modules/xstrtol (Depends-on): Likewise.
19251
19252 2009-08-13  Simon Josefsson  <simon@josefsson.org>
19253
19254         * tests/test-version-etc.sh: Don't fail on different
19255         project/version.  Don't fail on CRLF differences.  Rewrite to use
19256         multiple -e instead of multiple sed forks, suggested by Eric Blake
19257         <ebb9@byu.net>.
19258         * tests/test-argp-version-etc-1.sh: Likewise.
19259
19260 2009-08-13  Simon Josefsson  <simon@josefsson.org>
19261
19262         * tests/test-version-etc.sh: Don't fail on different
19263         project/version.
19264
19265 2009-08-12  Bruno Haible  <bruno@clisp.org>
19266
19267         Tests for modules 'getopt-posix', 'getopt-gnu'.
19268         * modules/getopt-posix-tests: New file.
19269         * tests/test-getopt.c: New file.
19270         * tests/test-getopt.h: New file.
19271         * tests/test-getopt_long.h: New file.
19272
19273         New modules 'getopt-posix', 'getopt-gnu'.
19274         * modules/getopt-gnu: New file, renamed from modules/getopt.
19275         * modules/getopt-posix: New file.
19276         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
19277         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
19278         (gl_GETOPT): Remove macro.
19279         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
19280         Disable the test against BSD systems that declare optreset. Test
19281         against mingw bug. Test against lack of support of optional arguments
19282         on many platforms.
19283         * doc/glibc-headers/getopt.texi: Update module name and list of
19284         relevant platforms.
19285         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
19286         'getopt-gnu' and more portability problems.
19287         * NEWS: Mention the changes.
19288
19289 2009-08-12  Bruno Haible  <bruno@clisp.org>
19290
19291         Ensure that optarg etc. get declared by <unistd.h>.
19292         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
19293         AC_USE_SYSTEM_EXTENSIONS.
19294         * modules/getopt (Depends-on): Add 'extensions'.
19295
19296 2009-08-12  Bruno Haible  <bruno@clisp.org>
19297
19298         Avoid test link errors.
19299         * modules/pipe-filter-ii-tests (Makefile.am): Define
19300         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
19301         * modules/pipe-filter-gi-tests (Makefile.am): Define
19302         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
19303         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19304
19305 2009-08-12  Bruno Haible  <bruno@clisp.org>
19306
19307         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
19308         gl_GETOPT_SUBSTITUTE before.
19309         (gl_GETOPT): Use it.
19310         * m4/argp.m4 (gl_ARGP): Update.
19311         Reported by Sergey Poznyakoff.
19312
19313         * m4/getopt.m4: Reorder macros.
19314         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
19315         (gl_GETOPT_SUBSTITUTE): Remove macro.
19316
19317 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
19318
19319         Minor improvement in gitlog-to-changelog
19320
19321         * build-aux/gitlog-to-changelog: New option `--format' makes
19322         output format string configurable.
19323
19324 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
19325
19326         Optimize exclude: use hash tables for non-wildcard patterns.
19327
19328         * lib/exclude.c: Include hash.h and mbuiter.h
19329         (struct exclude_pattern, exclude_segment): New data types.
19330         (struct exclude): Rewrite.
19331         (fnmatch_pattern_has_wildcards): New function.
19332         (new_exclude_segment, free_exclude_segment): New functions.
19333         (excluded_file_pattern_p, excluded_file_name_p): New functions.
19334         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
19335         * lib/exclude.h (is_fnmatch_pattern): New prototype.
19336         * modules/exclude: Depend on hash and mbuiter.
19337
19338         * modules/exclude-tests: New file.
19339         * tests/test-exclude.c: New file.
19340         * tests/test-exclude1.sh: New file.
19341         * tests/test-exclude2.sh: New file.
19342         * tests/test-exclude3.sh: New file.
19343         * tests/test-exclude4.sh: New file.
19344         * tests/test-exclude5.sh: New file.
19345         * tests/test-exclude6.sh: New file.
19346         * tests/test-exclude7.sh: New file.
19347
19348 2009-08-12  Bruno Haible  <bruno@clisp.org>
19349
19350         Ensure that getopt() gets declared by <unistd.h>.
19351         * lib/unistd.in.h: Conditionally include getopt.h.
19352         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
19353         Set GNULIB_UNISTD_H_GETOPT.
19354         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19355         GNULIB_UNISTD_H_GETOPT.
19356         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
19357
19358 2009-08-12  Bruno Haible  <bruno@clisp.org>
19359
19360         Clarify logic.
19361         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
19362         gl_replace_getopt instead of GETOPT_H.
19363
19364 2009-08-12  Bruno Haible  <bruno@clisp.org>
19365
19366         * m4/getopt.m4: Add comments.
19367
19368 2009-08-12  Bruno Haible  <bruno@clisp.org>
19369
19370         Disable multithread support by default on Cygwin 1.5.x.
19371         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
19372         set gl_use_threads=no if not specified otherwise.
19373
19374 2009-08-11  Bruno Haible  <bruno@clisp.org>
19375
19376         Avoid compilation error on NetBSD 5.0.
19377         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
19378         * tests/test-stdio.c: Likewise.
19379         * tests/test-stdlib.c: Likewise.
19380         * tests/test-string.c: Likewise.
19381         * tests/test-unistd.c: Likewise.
19382         Reported by Greg Troxel <gdt@ir.bbn.com>
19383         at <https://savannah.gnu.org/support/?106973>.
19384
19385 2009-08-11  Bruno Haible  <bruno@clisp.org>
19386
19387         * modules/dup2-tests (Depends-on): Remove close.
19388
19389         Undo 2009-07-19 commit.
19390         * modules/acl-tests (Depends-on): Remove close.
19391         * modules/binary-io-tests (Depends-on): Likewise.
19392         * modules/closein-tests (Depends-on): Likewise.
19393         * modules/flock-tests (Depends-on): Likewise.
19394         * modules/fsync-tests (Depends-on): Likewise.
19395         * modules/lseek-tests (Depends-on): Likewise.
19396         * modules/pipe-tests (Depends-on): Likewise.
19397         * modules/posix_spawn-tests (Depends-on): Likewise.
19398         * modules/posix_spawnp-tests (Depends-on): Likewise.
19399         * modules/stat-time-tests (Depends-on): Likewise.
19400         * modules/yesno-tests (Depends-on): Likewise.
19401
19402 2009-08-10  Bruno Haible  <bruno@clisp.org>
19403
19404         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
19405
19406 2009-08-10  Bruno Haible  <bruno@clisp.org>
19407
19408         Fix a gcc warning.
19409         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
19410
19411 2009-08-10  Bruno Haible  <bruno@clisp.org>
19412
19413         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
19414         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
19415         not only the first time.
19416         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
19417         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
19418         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
19419         is 1, not only the the first time.
19420
19421 2009-08-10  Bruno Haible  <bruno@clisp.org>
19422
19423         Make it possible to use module 'gethostname' without module 'close'.
19424         * lib/unistd.in.h (close): Evoke a link error only if
19425         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
19426         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19427         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
19428         * modules/unistd (Makefile.am): Substitute
19429         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
19430         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
19431         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
19432         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
19433         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
19434         * modules/sys_ioctl (Makefile.am): Substitute
19435         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
19436         * modules/socket (configure.ac): On native Windows, set
19437         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
19438         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
19439         Reported by Sam Steingold <sds@gnu.org>.
19440
19441 2009-08-10  Bruno Haible  <bruno@clisp.org>
19442
19443         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
19444         * modules/ioctl (configure.ac): Likewise.
19445
19446 2009-08-10  Bruno Haible  <bruno@clisp.org>
19447
19448         Avoid collision between gnulib wrapper and libintl wrapper.
19449         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
19450         already defined in intl/printf.c.
19451         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
19452         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
19453
19454 2009-08-09  Bruno Haible  <bruno@clisp.org>
19455
19456         Make <sys/select.h> really self-contained, also on Solaris 10.
19457         * lib/sys_select.in.h: Include <string.h>.
19458         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
19459         Solaris 10 problem.
19460         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
19461         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
19462         Reported by Jim Meyering.
19463
19464 2009-08-09  Bruno Haible  <bruno@clisp.org>
19465
19466         Avoid warnings from 'aclocal' that are due to a use of macro name
19467         AM_XGETTEXT_OPTION that is not defined in automake.
19468         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
19469         automake.
19470         * modules/error (configure.ac): Likewise.
19471         * modules/propername (configure.ac): Likewise.
19472         * modules/vasprintf (configure.ac): Likewise.
19473         * modules/verror (configure.ac): Likewise.
19474         * modules/xprintf (configure.ac): Likewise.
19475         * modules/xvasprintf (configure.ac): Likewise.
19476
19477 2009-08-08  Bruno Haible  <bruno@clisp.org>
19478
19479         Avoid compilation error in C++ mode.
19480         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
19481         Reported by Sam Steingold <sds@gnu.org>.
19482
19483 2009-08-08  Bruno Haible  <bruno@clisp.org>
19484
19485         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
19486         for the various Unix platforms.
19487         * doc/posix-headers/limits.texi: Update platforms list regarding
19488         HOST_NAME_MAX.
19489         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19490
19491 2009-08-07  Jim Meyering  <meyering@redhat.com>
19492
19493         selinux-at: fix typo in a comment
19494         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
19495         Spotted by Paolo Bonzini.
19496
19497         selinux-at: remove redundant m4 code, add documentation
19498         * modules/selinux-at (configure.ac): Remove redundant code.
19499         LIB_SELINUX is already set via the dependent module, selinux-h.
19500         (Include): Add quotes around selinux-at.h.
19501         * lib/selinux-at.h: Add documentation.
19502         Reported by Bruno Haible in
19503         http://marc.info/?l=gnulib-bug&m=124958988300749
19504
19505 2009-08-07  Bruno Haible  <bruno@clisp.org>
19506
19507         Avoid link error on MacOS X 10.3 and 10.4.
19508         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
19509         on non-ELF systems.
19510         * lib/argp-pv.c (argp_program_version): Likewise.
19511         Reported by Simon Josefsson.
19512
19513 2009-08-07  Simon Josefsson  <simon@josefsson.org>
19514
19515         * tests/test-version-etc.sh: Use $EXEEXT.
19516
19517 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
19518
19519         update-copyright: update documentation to point to maint.mk
19520         * build-aux/update-copyright: Here.
19521
19522 2009-08-06  Jim Meyering  <meyering@redhat.com>
19523
19524         maint.mk: support update-copyright-local
19525         * top/maint.mk (update-copyright-local): Define place-holder.
19526         (update-copyright): Depend on $(update-copyright-local).
19527
19528 2009-08-06  Jim Meyering  <meyering@redhat.com>
19529
19530         selinux-at: new module
19531         Initially written for coreutils, this module will soon be
19532         used by findutils, too.
19533         * MODULES.html.sh [Misc]: Add selinux-at.
19534         * lib/selinux-at.h: New file, from coreutils.
19535         * lib/selinux-at.c: Likewise.
19536         * modules/selinux-at: Likewise.
19537         (License): Change from LGPL to GPL, since it depends
19538         on the GPL'd openat module.
19539
19540         doc: update README
19541         * README: Remove references to cogito.
19542         Remove cvs-repo-updating instructions from 2007.
19543         Don't imply that CVS is better if you have limited disk space.
19544
19545 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
19546
19547         update-copyright: support C-style comments
19548         * build-aux/update-copyright: Implement and document.
19549         * tests/test-update-copyright.sh: Test.
19550
19551 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
19552
19553         update-copyright: support omitted "(C)"
19554         * build-aux/update-copyright: Implement and document.  Also,
19555         allow variable whitespace before "(C)".
19556         * tests/test-update-copyright.sh: Test.
19557
19558 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
19559
19560         update-copyright: don't trip on non-FSF copyright statements
19561         * build-aux/update-copyright: Fix so that the first correctly
19562         formatted FSF copyright statement is recognized no matter what
19563         appears before it.  Update documentation.
19564         * tests/test-update-copyright.sh: Test that.
19565
19566 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
19567
19568         update-copyright: clean up code a little
19569         * build-aux/update-copyright: Append "_re" to the name of any
19570         variable holding a regular expression.
19571         Replace "old" and "new" with "stmt" in variable names.
19572         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
19573         handled correctly.
19574         Format code more consistently.
19575
19576 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
19577
19578         update-copyright-tests: improve portability
19579         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
19580         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
19581
19582 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
19583
19584         update-copyright: support @copyright{} and &copy;
19585         * build-aux/update-copyright: Implement and document.
19586         * tests/test-update-copyright.sh: Test.
19587
19588 2009-08-04  Jim Meyering  <meyering@redhat.com>
19589
19590         update-copyright-tests: correctly test EOL=\r\n handling
19591         * tests/test-update-copyright.sh: Put \r at the end of some lines
19592         for the dos-eol tests.  Based on a patch by Joel E. Denny.
19593
19594         maint.mk: make update-copyright exclusion list more configurable
19595         * top/maint.mk (update-copyright): Default to excluding COPYING,
19596         but allow an override, in case someone does want to update that file.
19597
19598         maint.mk: don't update copyright date in COPYING
19599         * top/maint.mk (update-copyright): Exclude COPYING.
19600
19601         maint.mk: add a copyright-updating rule
19602         * top/maint.mk (update-copyright): New rule.
19603         Derived from coreutils/Makefile.am.
19604
19605         update-copyright: rename some variables
19606         * build-aux/update-copyright: Rename a few variables for clarity.
19607         Tweak syntax.  List Joel E. Denny as coauthor.
19608
19609 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
19610
19611         update-copyright: fix bug for 2-digit last year and add tests
19612         * build-aux/update-copyright: Fix bug.
19613         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
19614         specified.
19615         * modules/update-copyright-tests: New
19616         * tests/test-update-copyright.sh: New.
19617
19618 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
19619
19620         update-copyright: handle leading tabs in line prefix
19621         * build-aux/update-copyright: Count leading tabs as 8 spaces
19622         when computing margin.  This helps with the formatting of
19623         ChangeLogs, for example.
19624         Fix documentation a little.
19625
19626 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
19627
19628         update-copyright: support EOL=\r\n
19629         * build-aux/update-copyright: Implement that.
19630
19631 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
19632
19633         update-copyright: automatically format copyright statements
19634         * build-aux/update-copyright: Implement that.
19635         Also, be a little more predictable and safer by always failing
19636         when the full copyright format is not perfectly recognized as an
19637         unbroken whole.  Discussed at
19638         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
19639         Rewrite documentation.
19640
19641 2009-08-03  Bruno Haible  <bruno@clisp.org>
19642
19643         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
19644
19645 2009-08-02  Bruno Haible  <bruno@clisp.org>
19646
19647         Tests for module 'uname'.
19648         * modules/uname-tests: New file.
19649         * tests/test-uname.c: New file.
19650
19651         New module 'uname'.
19652         * lib/uname.c: New file.
19653         * m4/uname.m4: New file.
19654         * modules/uname: New file.
19655         * doc/posix-functions/uname.texi: Mention the new module.
19656
19657 2009-08-02  Bruno Haible  <bruno@clisp.org>
19658
19659         Tests for module 'sys_utsname'.
19660         * modules/sys_utsname-tests: New file.
19661         * tests/test-sys_utsname.c: New file.
19662
19663         New module 'sys_utsname'.
19664         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
19665         * m4/sys_utsname_h.m4: New file.
19666         * modules/sys_utsname: New file.
19667         * doc/posix-headers/sys_utsname.texi: Mention the new module.
19668
19669 2009-08-02  Bruno Haible  <bruno@clisp.org>
19670
19671         Implicitly initialize the sockets library.
19672         * lib/gethostname.c: Include sockets.h.
19673         (rpl_gethostname): Invoke gl_sockets_startup.
19674         * lib/socket.c: Include sockets.h.
19675         (rpl_socket): Invoke gl_sockets_startup.
19676         * modules/gethostname (Depends-on): Add sockets.
19677         * modules/socket (Depends-on): Likewise.
19678         * tests/test-poll.c: Don't include sockets.h.
19679         (main): Don't invoke gl_sockets_startup.
19680         * tests/test-select.c: Don't include sockets.h.
19681         (main): Don't invoke gl_sockets_startup.
19682
19683 2009-08-02  Bruno Haible  <bruno@clisp.org>
19684
19685         Allow multiple calls to gl_sockets_startup.
19686         * lib/sockets.c (initialized_sockets_version): New variable.
19687         (gl_sockets_startup): Do nothing if already called for this or a higher
19688         version.
19689         (gl_sockets_cleanup): Reset initialized_sockets_version.
19690
19691 2009-08-03  Simon Josefsson  <simon@josefsson.org>
19692
19693         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
19694         different project/version.
19695
19696 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
19697             Bruno Haible  <bruno@clisp.org>
19698
19699         Tests for module 'pipe-filter-gi'.
19700         * modules/pipe-filter-gi-tests: New file.
19701         * tests/test-pipe-filter-gi1.sh: New file.
19702         * tests/test-pipe-filter-gi1.c: New file.
19703         * tests/test-pipe-filter-gi2.sh: New file.
19704         * tests/test-pipe-filter-gi2-main.c: New file.
19705         * tests/test-pipe-filter-gi2-child.c: New file.
19706
19707         New module 'pipe-filter-gi'.
19708         * lib/pipe-filter-gi.c: New file.
19709         * modules/pipe-filter-gi: New file.
19710
19711 2009-08-02  Bruno Haible  <bruno@clisp.org>
19712             Paolo Bonzini  <bonzini@gnu.org>
19713
19714         Tests for module 'pipe-filter-ii'.
19715         * modules/pipe-filter-ii-tests: New file.
19716         * tests/test-pipe-filter-ii1.sh: New file.
19717         * tests/test-pipe-filter-ii1.c: New file.
19718         * tests/test-pipe-filter-ii2.sh: New file.
19719         * tests/test-pipe-filter-ii2-main.c: New file.
19720         * tests/test-pipe-filter-ii2-child.c: New file.
19721
19722         New module 'pipe-filter-ii'.
19723         * lib/pipe-filter.h: New file.
19724         * lib/pipe-filter-ii.c: New file.
19725         * lib/pipe-filter-aux.h: New file.
19726         * modules/pipe-filter-ii: New file.
19727
19728 2009-08-02  Simon Josefsson  <simon@josefsson.org>
19729
19730         * lib/gc-libgcrypt.c: Change copyright to FSF.
19731         * lib/gc-gnulib.c: Likewise.
19732
19733 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
19734
19735         * lib/gethostname.c: Include limits.h.
19736
19737 2009-08-02  Simon Josefsson  <simon@josefsson.org>
19738             Bruno Haible  <bruno@clisp.org>
19739
19740         Ensure HOST_NAME_MAX as part of the gethostname module.
19741         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
19742         define also HOST_NAME_MAX.
19743         * tests/test-gethostname.c: Include <limits.h>.
19744         (main): Check also HOST_NAME_MAX.
19745         * doc/posix-headers/limits.texi: Document the mingw problem.
19746
19747 2009-08-02  Bruno Haible  <bruno@clisp.org>
19748
19749         * lib/gethostname.c (gethostname): Fix handling of large len argument.
19750         Add comments.
19751
19752 2009-03-31  Simon Josefsson  <simon@josefsson.org>
19753
19754         * lib/gethostname.c: Add Windows wrapper.
19755         * m4/gethostname.m4: Look for gethostname in -lws2_32.
19756         * modules/gethostname: Depend on sys_socket & errno, for also
19757         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
19758         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
19759
19760 2009-07-31  Jim Meyering  <meyering@redhat.com>
19761
19762         getloadavg: fix symbol name in comment
19763         * lib/getloadavg.c: Correct a typo I introduced when adding
19764         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
19765         Matt Kraai spotted the problem.
19766
19767 2009-07-29  Matt Kraai  <mkraai@beckman.com>
19768
19769         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
19770         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
19771         code also if ! defined N_NAME_POINTER.
19772         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
19773         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
19774         but the n_name member is a 12-byte array.
19775
19776 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
19777
19778         update-copyright: generalize comment handling
19779         * build-aux/update-copyright: Handle copyright statements
19780         within more comment styles.
19781         Document usage.
19782         Report any file with an external copyright holder or parse failure.
19783
19784 2009-07-29  Jim Meyering  <meyering@redhat.com>
19785
19786         mktime: correct setting of REPLACE_MKTIME
19787         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
19788
19789         update-copyright: new module
19790         * modules/update-copyright: New file.
19791         * build-aux/update-copyright: New file.
19792         * MODULES.html.sh (maint+release support): Add update-copyright.
19793
19794 2009-07-27  Bruno Haible  <bruno@clisp.org>
19795
19796         Fix compilation error when <ctime> is used and mktime is replaced.
19797         * lib/time.in.h (mktime): New declaration.
19798         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
19799         REPLACE_MKTIME instead of defining mktime in config.h.
19800         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
19801         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
19802         Reported by Ross McFarland <rwmcfa1@neces.com>.
19803
19804 2009-07-27  Bruno Haible  <bruno@clisp.org>
19805
19806         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
19807         Reported by Matt Kraai <mkraai@beckman.com>.
19808
19809 2009-07-25  Jim Meyering  <meyering@redhat.com>
19810
19811         maint.mk: avoid warnings about missing files
19812         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
19813         diagnostic when .prev-version does not exist.
19814         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
19815         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
19816         nonexistent cfg.mk.
19817         Suggestions from Simon Josefsson.
19818
19819 2009-07-25  Bruno Haible  <bruno@clisp.org>
19820
19821         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
19822         defined as macros. Needed on QNX 6.4.1.
19823         Reported by Matt Kraai <mkraai@beckman.com>.
19824
19825 2009-07-23  Jim Meyering  <meyering@redhat.com>
19826
19827         maint.mk: invoke "make dist" with a working value of XZ_OPT
19828         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
19829
19830 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
19831
19832         Make fseeko.c compile on QNX.
19833         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
19834
19835 2009-07-22  Peter Simons  <simons@cryp.to>
19836
19837         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
19838         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
19839         * lib/md4.h: Likewise.
19840         * lib/md5.h: Likewise.
19841         * lib/sha1.h: Likewise.
19842         * lib/sha256.h: Likewise.
19843         * lib/sha512.h: Likewise.
19844
19845         tests-sha1: don't assign literal string to 'char *' variable
19846         * tests/test-sha1.c (main): Declare locals with "const" to match
19847         attributes of the right hand side.
19848
19849 2009-07-21  Eric Blake  <ebb9@byu.net>
19850
19851         dup2: fix more mingw problems
19852         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
19853         fd to itself.
19854         * doc/posix-functions/dup2.texi (dup2): Document the bug.
19855         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
19856         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
19857         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
19858         care of mingw bugs.
19859
19860 2009-07-21  Jim Meyering  <meyering@redhat.com>
19861
19862         vc-list-files: avoid failure when /bin/sh is dash
19863         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
19864         On some Debian based systems, /bin/sh is a symlink to dash, and running
19865         this command would omit the "/" following each 'tests' prefix:
19866           dash -x build-aux/vc-list-files -C . tests
19867         That is because bash and dash work differently:
19868           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
19869           bash ok
19870           dash odd
19871
19872 2009-07-21  Eric Blake  <ebb9@byu.net>
19873
19874         dup2-tests: test previous patch
19875         * modules/dup2-tests: New file.
19876         * tests/test-dup2.c: Likewise.
19877         * tests/test-open.c (main): Avoid unspecified behavior.
19878         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
19879         test.
19880
19881         dup2: work around mingw and cygwin 1.5 bug
19882         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
19883         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
19884         * modules/unistd (Makefile.am): Substitute it.
19885         * lib/unistd.in.h (dup2): Declare the replacement.
19886         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
19887         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
19888         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
19889         * modules/execute (Depends-on): Add dup2.
19890         * modules/fseterr (Depends-on): Likewise.
19891         * modules/pipe (Depends-on): Likewise.
19892         * modules/posix_spawn-internal (Depends-on): Likewise.
19893
19894 2009-07-21  Bruno Haible  <bruno@clisp.org>
19895
19896         * modules/.gitattributes: New file.
19897
19898 2009-07-20  Bruno Haible  <bruno@clisp.org>
19899
19900         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
19901         (main): Use it.
19902
19903 2009-07-20  Eric Blake  <ebb9@byu.net>
19904
19905         test-pipe: make a bit more robust.
19906         * tests/test-pipe.c (myerr): Allow error messages regardless of
19907         what we do to stderr.
19908         (test_pipe): Rearrange to avoid deadlock.
19909         (child_main): Try a larger read, to ensure we avoided deadlock.
19910         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
19911         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
19912         if misused.
19913
19914 2009-07-19  Jim Meyering  <meyering@redhat.com>
19915
19916         fts: avoid false-positive cycle-detection
19917         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
19918         for each new command line argument.
19919
19920 2009-07-19  Bruno Haible  <bruno@clisp.org>
19921
19922         Fix build error on mingw with the modules sys_select and unistd.
19923         * modules/acl-tests (Depends-on): Add close.
19924         * modules/binary-io-tests (Depends-on): Likewise.
19925         * modules/closein-tests (Depends-on): Likewise.
19926         * modules/flock-tests (Depends-on): Likewise.
19927         * modules/fsync-tests (Depends-on): Likewise.
19928         * modules/lseek-tests (Depends-on): Likewise.
19929         * modules/pipe-tests (Depends-on): Likewise.
19930         * modules/posix_spawn-tests (Depends-on): Likewise.
19931         * modules/posix_spawnp-tests (Depends-on): Likewise.
19932         * modules/stat-time-tests (Depends-on): Likewise.
19933         * modules/yesno-tests (Depends-on): Likewise.
19934
19935 2009-07-19  Bruno Haible  <bruno@clisp.org>
19936
19937         Unify conditionals.
19938         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
19939         macros, not at the compiler macros.
19940         * lib/pipe.c: Likewise.
19941         * lib/execute.c: Likewise.
19942         * lib/spawni.c: Likewise.
19943
19944 2009-07-19  Bruno Haible  <bruno@clisp.org>
19945
19946         Fix handling of closed stdin/stdout/stderr on mingw.
19947         * lib/w32spawn.h: Include unistd.h.
19948         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
19949         file descriptor with O_NOINHERIT flag.
19950         (fd_safer_noinherit): New function, based on fd-safer.c.
19951         (dup_safer_noinherit): New function, based on dup-safer.c.
19952         (undup_safer_noinherit): New function.
19953         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
19954         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
19955         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
19956         instead of fd_safer.
19957         * tests/test-pipe.c: Include <windows.h>.
19958         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
19959
19960         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
19961         from main.
19962         (test_pipe): Pass an extra argument for disambiguation.
19963         (main): Invoke parent_main or child_main.
19964
19965         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
19966         consistently.
19967
19968 2009-07-18  Eric Blake  <ebb9@byu.net>
19969
19970         test-pipe: fix mingw build
19971         * tests/test-pipe.c (main): Avoid fcntl on mingw.
19972
19973 2009-07-18  Bruno Haible  <bruno@clisp.org>
19974
19975         * modules/pipe-tests (Makefile.am): Fix typo.
19976
19977 2009-07-18  Eric Blake  <ebb9@byu.net>
19978
19979         error: fix mingw build
19980         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
19981         Reported by Bruno Haible.
19982
19983         error: avoid undefined use of stdout
19984         * lib/error.c (error, error_at_line): Check that fd 1 is open
19985         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
19986         is handling faults and the close_stdout module wants to report the
19987         detection of closed stdout as an error.
19988
19989 2009-07-17  Eric Blake  <ebb9@byu.net>
19990
19991         pipe: be robust in face of closed fds
19992         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
19993         should cause child to misbehave.
19994         * modules/pipe-tests: New module.
19995         * tests/test-pipe.c: New file.
19996         * tests/test-pipe.sh: New file.
19997         Reported by Akim Demaille.
19998
19999 2009-07-14  Bruno Haible  <bruno@clisp.org>
20000
20001         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
20002         Reported by anonymous kc.
20003
20004 2009-07-07  Jim Meyering  <meyering@redhat.com>
20005
20006         maint.mk: don't look for translatable strings in *.m4 or *.mk
20007         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
20008         when searching for translatable strings.
20009
20010 2009-07-05  Jim Meyering  <meyering@redhat.com>
20011
20012         remove superfluous parentheses in STREQ definition
20013         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
20014         * lib/getugroups.c (STREQ): Likewise.
20015         * lib/fnmatch.c (STREQ): Likewise.
20016         Spotted by Bruno Haible.
20017
20018 2009-07-04  Jim Meyering  <meyering@redhat.com>
20019
20020         argv-iter: new module
20021         * MODULES.html.sh: Add argv-iter.
20022         * lib/argv-iter.c, lib/argv-iter.h: New files.
20023         * modules/argv-iter: New file.
20024         * modules/argv-iter-tests: New file.
20025         * tests/test-argv-iter.c: Test it.
20026
20027 2009-07-04  Bruno Haible  <bruno@clisp.org>
20028
20029         Fix assertion.
20030         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
20031         contains more exact copies of a given entry than file2, leave the extra
20032         copies unpaired rather than aborting.
20033         Reported by Eric Blake.
20034
20035 2009-07-02  Bruno Haible  <bruno@clisp.org>
20036
20037         Speedup git-merge-changelog for git cherry-pick.
20038         * lib/git-merge-changelog.c (struct entries_mapping): New type.
20039         (entries_mapping_get): New function, extracted from compute_mapping.
20040         (entries_mapping_reverse_get): New function.
20041         (compute_mapping): Add a 'full' argument. Return the result in a
20042         'struct entries_mapping'.
20043         (main): Update. Access the mappings through entries_mapping_get.
20044         Reported by Eric Blake.
20045
20046 2009-07-02  Bruno Haible  <bruno@clisp.org>
20047
20048         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
20049         best_i.
20050
20051 2009-07-02  Bruno Haible  <bruno@clisp.org>
20052
20053         Speed up approximate search for matching ChangeLog entries.
20054         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
20055         argument. Call fstrcmp_bounded instead of fstrcmp.
20056         (compute_mapping, try_split_merged_entry, main): Update callers.
20057
20058 2009-07-02  Bruno Haible  <bruno@clisp.org>
20059
20060         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
20061
20062 2009-06-30  Bruno Haible  <bruno@clisp.org>
20063
20064         Reduce the number of uc_is_cased calls.
20065         * lib/unicase.h (casing_suffix_context_t): Add
20066         'first_char_except_ignorable' field.
20067         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
20068         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
20069         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
20070         Update initializer.
20071         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
20072         case-ignorable characters.
20073         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
20074         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
20075         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
20076         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
20077         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
20078
20079 2009-06-30  Bruno Haible  <bruno@clisp.org>
20080
20081         Tests for module 'unicase/ignorable'.
20082         * modules/unicase/ignorable-tests: New file.
20083         * tests/unicase/test-ignorable.c: New file, generated by
20084         gen-uni-tables.
20085
20086         Tests for module 'unicase/cased'.
20087         * modules/unicase/cased-tests: New file.
20088         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
20089         * tests/unicase/test-predicate-part1.h: New file, derived from
20090         tests/unictype/test-predicate-part1.h.
20091         * tests/unicase/test-predicate-part2.h: New file, same as
20092         tests/unictype/test-predicate-part2.h.
20093
20094         Fix evaluation of "Before C" condition of FINAL_SIGMA.
20095         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
20096         (output_casing_properties): New function.
20097         (main): Call it.
20098         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
20099         * lib/unicase/cased.c: Include unictype/bitmap.h.
20100         (uc_is_cased): Define through a bitmap lookup.
20101         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
20102         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
20103         (uc_is_case_ignorable): Define through a bitmap lookup.
20104         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
20105         lib/unictype/bitmap.h.
20106         (Depends-on): Add inline. Clean up.
20107         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
20108         lib/unictype/bitmap.h.
20109         (Depends-on): Add inline. Clean up.
20110         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
20111         recognition.
20112         * tests/unicase/test-u16-tolower.c (main): Likewise.
20113         * tests/unicase/test-u32-tolower.c (main): Likewise.
20114
20115 2009-06-30  Bruno Haible  <bruno@clisp.org>
20116
20117         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
20118         * lib/unicase/u16-casemap.c: Likewise.
20119         * lib/unicase/u32-casemap.c: Likewise.
20120
20121 2009-06-29  Bruno Haible  <bruno@clisp.org>
20122
20123         Define u32_casefold as a wrapper around u32_ct_casefold.
20124         * lib/unicase/u32-casefold.c: Update.
20125         * modules/unicase/u32-casefold (Depends-on): Add
20126         unicase/u32-ct-casefold, unicase/empty-prefix-context,
20127         unicase/empty-suffix-context. Clean up.
20128
20129         Define u16_casefold as a wrapper around u16_ct_casefold.
20130         * lib/unicase/u16-casefold.c: Update.
20131         * modules/unicase/u16-casefold (Depends-on): Add
20132         unicase/u16-ct-casefold, unicase/empty-prefix-context,
20133         unicase/empty-suffix-context. Clean up.
20134
20135         Define u8_casefold as a wrapper around u8_ct_casefold.
20136         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
20137         * lib/unicase/u8-casefold.c: Update.
20138         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
20139         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
20140
20141         Define u32_totitle as a wrapper around u32_ct_totitle.
20142         * lib/unicase/u32-totitle.c: Update.
20143         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
20144         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
20145
20146         Define u16_totitle as a wrapper around u16_ct_totitle.
20147         * lib/unicase/u16-totitle.c: Update.
20148         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
20149         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
20150
20151         Define u8_totitle as a wrapper around u8_ct_totitle.
20152         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
20153         functions.
20154         (FUNC): Delegate to U_CT_TOTITLE.
20155         * lib/unicase/u8-totitle.c: Update.
20156         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
20157         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
20158
20159         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
20160         invocation.
20161         * modules/unicase/u32-tolower (Depends-on): Add
20162         unicase/empty-prefix-context, unicase/empty-suffix-context.
20163
20164         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
20165         invocation.
20166         * modules/unicase/u16-tolower (Depends-on): Add
20167         unicase/empty-prefix-context, unicase/empty-suffix-context.
20168
20169         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
20170         * modules/unicase/u8-tolower (Depends-on): Add
20171         unicase/empty-prefix-context, unicase/empty-suffix-context.
20172
20173         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
20174         invocation.
20175         * modules/unicase/u32-toupper (Depends-on): Add
20176         unicase/empty-prefix-context, unicase/empty-suffix-context.
20177
20178         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
20179         invocation.
20180         * modules/unicase/u16-toupper (Depends-on): Add
20181         unicase/empty-prefix-context, unicase/empty-suffix-context.
20182
20183         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
20184         * modules/unicase/u8-toupper (Depends-on): Add
20185         unicase/empty-prefix-context, unicase/empty-suffix-context.
20186
20187         New module 'unicase/u32-ct-casefold'.
20188         * lib/unicase/u32-ct-casefold.c: New file.
20189         * modules/unicase/u32-ct-casefold: New file.
20190
20191         New module 'unicase/u16-ct-casefold'.
20192         * lib/unicase/u16-ct-casefold.c: New file.
20193         * modules/unicase/u16-ct-casefold: New file.
20194
20195         New module 'unicase/u8-ct-casefold'.
20196         * lib/unicase/u8-ct-casefold.c: New file.
20197         * lib/unicase/u-ct-casefold.h: New file, derived from
20198         lib/unicase/u-casefold.h.
20199         * modules/unicase/u8-ct-casefold: New file.
20200
20201         New module 'unicase/u32-ct-totitle'.
20202         * lib/unicase/u32-ct-totitle.c: New file.
20203         * modules/unicase/u32-ct-totitle: New file.
20204
20205         New module 'unicase/u16-ct-totitle'.
20206         * lib/unicase/u16-ct-totitle.c: New file.
20207         * modules/unicase/u16-ct-totitle: New file.
20208
20209         New module 'unicase/u8-ct-totitle'.
20210         * lib/unicase/u8-ct-totitle.c: New file.
20211         * lib/unicase/u-ct-totitle.h: New file, derived from
20212         lib/unicase/u-totitle.h.
20213         * modules/unicase/u8-ct-totitle: New file.
20214
20215         New module 'unicase/u32-ct-tolower'.
20216         * lib/unicase/u32-ct-tolower.c: New file.
20217         * modules/unicase/u32-ct-tolower: New file.
20218
20219         New module 'unicase/u16-ct-tolower'.
20220         * lib/unicase/u16-ct-tolower.c: New file.
20221         * modules/unicase/u16-ct-tolower: New file.
20222
20223         New module 'unicase/u8-ct-tolower'.
20224         * lib/unicase/u8-ct-tolower.c: New file.
20225         * modules/unicase/u8-ct-tolower: New file.
20226
20227         New module 'unicase/u32-ct-toupper'.
20228         * lib/unicase/u32-ct-toupper.c: New file.
20229         * modules/unicase/u32-ct-toupper: New file.
20230
20231         New module 'unicase/u16-ct-toupper'.
20232         * lib/unicase/u16-ct-toupper.c: New file.
20233         * modules/unicase/u16-ct-toupper: New file.
20234
20235         New module 'unicase/u8-ct-toupper'.
20236         * lib/unicase/u8-ct-toupper.c: New file.
20237         * modules/unicase/u8-ct-toupper: New file.
20238
20239         Add context arguments to u*_casemap functions.
20240         * lib/unicase/unicasemap.h: Include unicase.h.
20241         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
20242         suffix_context arguments.
20243         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
20244         functions.
20245         (FUNC): Add prefix_context and suffix_context arguments. Use
20246         uc_is_cased and uc_is_case_ignorable.
20247         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
20248         * lib/unicase/u16-casemap.c: Likewise.
20249         * lib/unicase/u32-casemap.c: Likewise.
20250         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
20251         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
20252         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
20253         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
20254         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
20255         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
20256
20257         New module 'unicase/u32-suffix-context'.
20258         * lib/unicase/u32-suffix-context.c: New file.
20259         * modules/unicase/u32-suffix-context: New file.
20260
20261         New module 'unicase/u16-suffix-context'.
20262         * lib/unicase/u16-suffix-context.c: New file.
20263         * modules/unicase/u16-suffix-context: New file.
20264
20265         New module 'unicase/u8-suffix-context'.
20266         * lib/unicase/u8-suffix-context.c: New file.
20267         * lib/unicase/u-suffix-context.h: New file.
20268         * modules/unicase/u8-suffix-context: New file.
20269
20270         New module 'unicase/empty-suffix-context'.
20271         * lib/unicase/empty-suffix-context.c: New file.
20272         * modules/unicase/empty-suffix-context: New file.
20273
20274         New module 'unicase/u32-prefix-context'.
20275         * lib/unicase/u32-prefix-context.c: New file.
20276         * modules/unicase/u32-prefix-context: New file.
20277
20278         New module 'unicase/u16-prefix-context'.
20279         * lib/unicase/u16-prefix-context.c: New file.
20280         * modules/unicase/u16-prefix-context: New file.
20281
20282         New module 'unicase/u8-prefix-context'.
20283         * lib/unicase/u8-prefix-context.c: New file.
20284         * lib/unicase/u-prefix-context.h: New file.
20285         * lib/unicase/context.h: New file.
20286         * modules/unicase/u8-prefix-context: New file.
20287
20288         New module 'unicase/empty-prefix-context'.
20289         * lib/unicase/empty-prefix-context.c: New file.
20290         * modules/unicase/empty-prefix-context: New file.
20291
20292         New module 'unicase/ignorable'.
20293         * lib/unicase/ignorable.c: New file.
20294         * modules/unicase/ignorable: New file.
20295
20296         New module 'unicase/cased'.
20297         * lib/unicase/caseprop.h: New file.
20298         * lib/unicase/cased.c: New file.
20299         * modules/unicase/cased: New file.
20300
20301         New functions for case mapping of substrings.
20302         * lib/unicase.h (casing_prefix_context_t): New type.
20303         (unicase_empty_prefix_context): New variable.
20304         (u8_casing_prefix_context, u16_casing_prefix_context,
20305         u32_casing_prefix_context, u8_casing_prefixes_context,
20306         u16_casing_prefixes_context, u32_casing_prefixes_context): New
20307         declarations.
20308         (casing_suffix_context_t): New type.
20309         (unicase_empty_suffix_context): New variable.
20310         (u8_casing_suffix_context, u16_casing_suffix_context,
20311         u32_casing_suffix_context, u8_casing_suffixes_context,
20312         u16_casing_suffixes_context, u32_casing_suffixes_context,
20313         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
20314         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
20315         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
20316         declarations.
20317
20318 2009-06-28  Jim Meyering  <meyering@redhat.com>
20319
20320         boostrap: indent only with spaces
20321         * build-aux/bootstrap: Indent only with spaces, never TABs.
20322
20323         bootstrap: split long lines
20324         * build-aux/bootstrap: Keep line length < 80.
20325
20326         bootstrap: sync from coreutils
20327         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
20328         just as autoreconf does.  Verify a list of prerequisite
20329         package-name,version-number pairs if defined in bootstrap.conf.
20330         Refer to README-prereq, if prerequisites are not satisfied.
20331
20332 2009-06-27  Eric Blake  <ebb9@byu.net>
20333
20334         tests: add test for bogus NULL definition
20335         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
20336         * tests/test-stdlib.c: Likewise.
20337         * tests/test-string.c: Likewise.
20338         * tests/test-locale.c: Likewise.
20339         * tests/test-unistd.c: Likewise.
20340         * modules/stdio-tests (Depends-on): Add verify.
20341         * modules/stdlib-tests (Depends-on): Likewise.
20342         * modules/string-tests (Depends-on): Likewise.
20343         * modules/locale-tests (Depends-on): Likewise.
20344         * modules/unistd-tests (Depends-on): Likewise.
20345
20346 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
20347
20348         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
20349         self-explaining comment.
20350         * m4/selinux-selinux-h: Update serial.
20351         (gl_LIBSELINUX): New macro, adding a warning for missing development
20352         packages to code extracted from...
20353         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
20354         Add warning for missing development packages here, too.
20355
20356 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
20357
20358         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
20359
20360 2009-06-25  Eric Blake  <ebb9@byu.net>
20361
20362         version-etc: fix regression
20363         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
20364         gcc.
20365         (version_etc): Use it, to catch bugs with trailing NULL.
20366         * lib/version-etc.c (version_etc_arn): Delete unused argument.
20367         (version_etc_va): Fix logic bug.
20368         * modules/version-etc-tests: Add test.
20369         * tests/test-version-etc.c: New file.
20370         * tests/test-version-etc.sh: Likewise.
20371
20372 2009-06-25  Sam Steingold  <sds@gnu.org>
20373
20374         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
20375         mbtowc declaration.
20376
20377 2009-06-25  Eric Blake  <ebb9@byu.net>
20378
20379         fpurge: migrate into <stdio.h>
20380         * lib/fpurge.h: Delete...
20381         * lib/stdio.in.h (fpurge): ...and declare here, instead.
20382         * lib/fpurge.c (fpurge): Change declaring header.
20383         * modules/fpurge (Files): Drop deleted file.
20384         (Depends-on): Add stdio.
20385         (configure.ac): Set witness.
20386         * modules/stdio (Makefile.am): Support fpurge macros.
20387         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
20388         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
20389         * lib/fflush.c: Update client.
20390         * tests/test-fpurge.c: Likewise.
20391         * NEWS: Mention the change.
20392
20393 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
20394
20395         * lib/argp-version-etc.c (program_authors): Add const
20396         qualifier.
20397         * lib/version-etc.c: Fix typos in the comments.
20398         * modules/argp-version-etc: Depends on version-etc.
20399
20400 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
20401
20402         argp-version-etc: new module.
20403
20404         * lib/argp-version-etc.c: New file.
20405         * lib/argp-version-etc.h: New file.
20406         * modules/argp-version-etc: New file.
20407         * modules/argp-version-etc-tests: New file.
20408         * tests/test-argp-version-etc.c: New test.
20409         * tests/test-argp-version-etc-1.sh: New test.
20410
20411 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
20412
20413         Provide additional interfaces and documentation for version-etc
20414         module.
20415
20416         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
20417         interfaces.
20418         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
20419         prototypes.
20420
20421 2009-06-24  Bruno Haible  <bruno@clisp.org>
20422
20423         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
20424         HAVE_LIB${NAME} macro.
20425         Reported by Sam Steingold <sds@gnu.org>.
20426
20427 2009-06-23  Simon Josefsson  <simon@josefsson.org>
20428
20429         * modules/hash-tests (test_hash_LDADD): Link to libintl when
20430         needed.
20431
20432 2009-06-21  Bruno Haible  <bruno@clisp.org>
20433
20434         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
20435         work.
20436         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
20437         together with LIB${NAME}, LTLIB${NAME}.
20438         Reported by Sam Steingold <sds@gnu.org>.
20439
20440 2009-06-20  Jim Meyering  <meyering@redhat.com>
20441
20442         tests: make sc_require_test_exit_idiom more generic
20443         * top/maint.mk (Exit_witness_file): New overridable variable.
20444         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
20445         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
20446
20447 2009-06-19  Jim Meyering  <meyering@redhat.com>
20448
20449         hash: reverse order of src/dst parameters in an internal interface
20450         * lib/hash.c (transfer_entries): Reverse order of parameters to
20451         put DST before SRC.  Adjust callers.
20452
20453         tests: test-hash: avoid wholesale duplication
20454         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
20455         Instead, use a loop and add a single conditional.
20456
20457         tests: test-hash: allow seed selection via a command line argument
20458         * tests/test-hash.c (get_seed): New function.
20459         (main): Use it.
20460
20461 2009-06-19  Eric Blake  <ebb9@byu.net>
20462
20463         hash: avoid memory leak on allocation failure
20464         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
20465         failure.  Factor repeated algorithm...
20466         (transfer_entries): ...into new helper routine.
20467         (hash_delete): React to hash_rehash return value.
20468
20469         hash: reduce memory pressure in hash_rehash no-op case
20470         * lib/hash.c (next_prime): Avoid overflow.
20471         (hash_initialize): Factor bucket size computation...
20472         (compute_bucket_size): ...into new helper function.
20473         (hash_rehash): Use new function and open coding to reduce memory
20474         pressure, and avoid a memory leak in USE_OBSTACK code.
20475         Reported by Jim Meyering.
20476
20477 2009-06-18  Eric Blake  <ebb9@byu.net>
20478
20479         hash: make rotation more obvious
20480         * modules/hash (Depends-on): Add bitrotate and stdint.
20481         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
20482         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
20483         (SIZE_MAX): Rely on headers for definition.
20484         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
20485         (raw_hasher): Use rotr_sz.
20486         Suggested by Jim Meyering.
20487
20488         hash: fix memory leak in last patch
20489         * lib/hash.c (hash_rehash): Avoid memory leak.
20490
20491         hash: avoid no-op rehashing
20492         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
20493
20494         hash: provide default callback functions
20495         * lib/hash.c (raw_hasher, raw_comparator): New functions.
20496         (hash_initialize): Use them as defaults.
20497         * tests/test-hash.c (main): Test this.
20498
20499         hash: minor optimization
20500         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
20501         when possible.
20502         (hash_initialize): Document this promise.
20503         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
20504         * tests/test-hash.c (hash_compare_strings): Test this.
20505
20506 2009-06-18  Bruno Haible  <bruno@clisp.org>
20507
20508         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
20509         going to be replaced anyway.
20510
20511 2009-06-18  Bruno Haible  <bruno@clisp.org>
20512
20513         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
20514         in one place.
20515         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
20516         be replaced anyway.
20517
20518 2009-06-18  Eric Blake  <ebb9@byu.net>
20519
20520         hash: check for resize before insertion
20521         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
20522         threshold before insertion, so that a pathological hash_rehash
20523         that fills every bucket can still trigger another rehash.
20524
20525 2009-06-18  Jim Meyering  <meyering@redhat.com>
20526
20527         hash-tests: add a loop around the small tests
20528         * tests/test-hash.c (main): Repeat small tests with selected
20529         small initial table sizes.
20530
20531 2009-06-17  Eric Blake  <ebb9@byu.net>
20532
20533         hash: minor cleanups
20534         * lib/hash.h (hash_entry): Make opaque, by moving...
20535         * lib/hash.c (hash_entry): ...here.
20536         (hash_insert): Clarify restrictions on what can be inserted.
20537         (hash_get_next): Clarify when it is safe to remove an element
20538         during traversal.
20539         (check_tuning): Skip verification when tuning is known safe.
20540         (hash_initialize): Clarify restrictions on tuning.
20541
20542 2009-06-17  Jim Meyering  <jim@meyering.net>
20543         and Eric Blake  <ebb9@byu.net>
20544
20545         hash-tests: new module
20546         * modules/hash-tests: New file.
20547         * tests/test-hash.c: New file.
20548
20549 2009-06-17  Eric Blake  <ebb9@byu.net>
20550
20551         strstr-simple: document new module
20552         * MODULES.html.sh: Document new module.
20553
20554         strstr, strcasestr: replace on platforms with broken memchr
20555         * modules/strstr: Split into...
20556         * modules/strstr-simple: ...new module that does not care about
20557         performance, but does care about glibc bug.
20558         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
20559         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
20560         if platform memchr is broken, per Debian bug 521737.
20561         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
20562         memchr.
20563         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
20564         * doc/posix-functions/strstr.texi (strstr): Document the fix.
20565         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
20566         * modules/mountlist (Depends-on): Add strstr-simple.
20567         * modules/gen-uni-tables (Depends-on): Likewise.
20568         * modules/argz (Depends-on): Add strstr.
20569
20570 2009-06-17  Bruno Haible  <bruno@clisp.org>
20571
20572         * modules/posix_spawn-internal (Depends-on): Add errno.
20573
20574 2009-06-17  Bruno Haible  <bruno@clisp.org>
20575
20576         Define missing ESTALE on Interix 3.5.
20577         * lib/errno.in.h (ESTALE): Assign a value if missing.
20578         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
20579         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
20580         missing.
20581         * doc/posix-headers/errno.texi: Mention the Interix bug.
20582         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
20583
20584 2009-06-15  Eric Blake  <ebb9@byu.net>
20585
20586         memchr, memchr2: add valgrind exception
20587         * lib/memchr.valgrind: New file.
20588         * lib/memchr2.valgrind: New file.
20589         * modules/memchr (Files): Distribute valgrind file.
20590         * modules/memchr2 (Files): Likewise.
20591
20592         docs: memchr is no longer obsolete
20593         * MODULES.html.sh: Move memchr from obsolete to string.h section.
20594         * lib/string.in.h (memchr): Simplify logic.
20595
20596 2009-06-14  Jim Meyering  <meyering@redhat.com>
20597
20598         link-follow: fix the "checking..." message to not mention trailing slash
20599         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
20600         never considered trailing slashes.
20601
20602 2009-06-14  Bruno Haible  <bruno@clisp.org>
20603
20604         * m4/memchr.m4: Mention also the bug on IA-64.
20605         * doc/posix-functions/memchr.texi: Likewise.
20606
20607 2009-06-12  Eric Blake  <ebb9@byu.net>
20608
20609         memchr: detect broken x86_64 and alpha implementations
20610         * modules/memchr-tests (Depends-on): Move mmap detection...
20611         * modules/memchr (Depends-on): ...here.
20612         (configure.ac): Set indicator.
20613         * lib/string.in.h (memchr): Declare replacement.
20614         * modules/string (Makefile.am): Trigger replacement.
20615         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
20616         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
20617         bugs.
20618         * doc/posix-functions/memchr.texi (memchr): Document the bug.
20619         * modules/getpagesize (License): Relax license.
20620
20621 2009-06-11  Bruno Haible  <bruno@clisp.org>
20622
20623         * lib/idpriv.h: Add more references.
20624
20625 2009-06-08  Bruno Haible  <bruno@clisp.org>
20626
20627         Tests for module 'idpriv-droptemp'.
20628         * modules/idpriv-droptemp-tests: New file.
20629         * tests/test-idpriv-droptemp.sh: New file.
20630         * tests/test-idpriv-droptemp.su.sh: New file.
20631         * tests/test-idpriv-droptemp.c: New file.
20632
20633         New module 'idpriv-droptemp'.
20634         * lib/idpriv-droptemp.c: New file.
20635         * modules/idpriv-droptemp: New file.
20636
20637 2009-06-08  Bruno Haible  <bruno@clisp.org>
20638
20639         Tests for module 'idpriv-drop'.
20640         * modules/idpriv-drop-tests: New file.
20641         * tests/test-idpriv-drop.sh: New file.
20642         * tests/test-idpriv-drop.su.sh: New file.
20643         * tests/test-idpriv-drop.c: New file.
20644
20645         New module 'idpriv-drop'.
20646         * lib/idpriv.h: New file.
20647         * lib-idpriv-drop.c: New file.
20648         * m4/idpriv.m4: New file.
20649         * modules/idpriv-drop: New file.
20650
20651 2009-06-08  Bruno Haible  <bruno@clisp.org>
20652
20653         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
20654         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
20655         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
20656         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
20657         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
20658         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
20659         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
20660
20661 2009-06-08  Eric Blake  <ebb9@byu.net>
20662
20663         test-strstr: use memory fence, when possible
20664         * tests/test-strstr.c (main): Use memory fence, in order to be
20665         more likely to trigger Debian bug 521737.
20666         * modules/strstr-tests (Files): Pull in additional files.
20667
20668         memchr: no longer obsolete, for wider field testing
20669         * modules/memchr (Status, Notice): Delete, this module is no
20670         longer obsolete.
20671         * modules/vasnprintf (Depends-on): Add memchr.
20672
20673 2009-06-07  Jim Meyering  <meyering@redhat.com>
20674
20675         hash: declare some functions with the warn_unused_result attribute
20676         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
20677
20678 2009-06-07  Bruno Haible  <bruno@clisp.org>
20679
20680         * tests/test-alignof.c: Don't test int64_t if it does not exist.
20681         Reported by Eric Blake.
20682
20683 2009-06-06  Eric Blake  <ebb9@byu.net>
20684
20685         test-alignof: fix typo with long double
20686         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
20687         compiler error.
20688
20689 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
20690
20691         Escape non-texinfo { and }s.
20692         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
20693         markup error.
20694
20695 2009-06-04  Jim Meyering  <meyering@redhat.com>
20696
20697         gitlog-to-changelog: don't infloop on an empty commit log
20698         * build-aux/gitlog-to-changelog: Warn about an empty log message.
20699         Reported by Boris Petersen <transacid@centerim.org>.
20700
20701 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
20702
20703         version-etc: extend for packagers
20704         Add three new configure options, intended for packagers:
20705           --with-packager="packager name"
20706           --with-packager-version="packager-specific version"
20707           --with-packager-bug-reports="packager bug reporting"
20708         An example with coreutils:
20709           $ ./configure \
20710             --with-packager=Gentoo \
20711             --with-packager-bug-report=http://bugs.gentoo.org/ \
20712             --with-packager-version="patchset 1.6"
20713           $ ./src/ls --version | head -n2
20714           ls (GNU coreutils) 7.1-dirty
20715           Packaged by Gentoo (patchset 1.6)
20716         Note that the bug reporting info via --help doesn't show up because
20717         coreutils uses its own custom emit_bug_reporting_address() implementation
20718         in src/system.h.  If it didn't, it'd look like:
20719           $ ./src/ls --help | tail -n4
20720           Report bugs to <bug-coreutils@gnu.org>.
20721           Report Gentoo bugs to <http://bugs.gentoo.org/>.
20722           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
20723           General help using GNU software: <http://www.gnu.org/gethelp/>.
20724         * lib/version-etc.c: Print new information, if provided.
20725         * m4/version-etc.m4: New file.
20726         * modules/version-etc (Files): Add m4/version-etc.m4.
20727         (configure.ac): Add gl_VERSION_ETC.
20728
20729 2009-05-31  Bruno Haible  <bruno@clisp.org>
20730
20731         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
20732         and 'int64_t'.
20733         * modules/alignof-tests (Dependencies): Add stdint.
20734         Reported by Eric Blake.
20735
20736 2009-05-31  Bruno Haible  <bruno@clisp.org>
20737
20738         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
20739         restriction due to compiler bugs.
20740         Reported by Eric Blake.
20741
20742 2009-05-31  Simon Josefsson  <simon@josefsson.org>
20743             Bruno Haible  <bruno@clisp.org>
20744
20745         Fix test-alignof failure.
20746         * lib/alignof.h (alignof_slot): New macro.
20747         (alignof_type): New macro, with the same semantics as the previous
20748         'alignof'.
20749         (alignof): Alias to alignof_slot.
20750         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
20751         check that the results are usable as constant expressions.
20752
20753 2009-05-31  Bruno Haible  <bruno@clisp.org>
20754
20755         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
20756         * tests/test-memchr.c (main): Check that memchr does not read past the
20757         first occurrence of the byte.
20758         * tests/test-strstr.c (main): Update comment.
20759         Suggested by Eric Blake.
20760
20761 2009-05-30  Bruno Haible  <bruno@clisp.org>
20762
20763         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
20764         detail how to use dumpbin.
20765         Reported by David Byron <dbyron@dbyron.com>.
20766
20767 2009-06-02  Simon Josefsson  <simon@josefsson.org>
20768
20769         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
20770
20771 2009-06-02  Simon Josefsson  <simon@josefsson.org>
20772
20773         * m4/manywarnings.m4: Add GCC 4.4 warnings.
20774
20775 2009-05-28  Bruno Haible  <bruno@clisp.org>
20776
20777         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
20778         build-aux/ files.
20779
20780 2009-05-28  Simon Josefsson  <simon@josefsson.org>
20781
20782         * gnulib-tool (func_import): Transform license on build-aux/ files too.
20783
20784 2009-05-27  Simon Josefsson  <simon@josefsson.org>
20785
20786         * gnulib-tool (sed_transform_main_lib_file)
20787         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
20788         regexps.
20789
20790 2009-05-26  Simon Josefsson  <simon@josefsson.org>
20791
20792         * tests/test-strstr.c: Add another self-test.
20793         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
20794         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
20795
20796 2009-05-23  Bruno Haible  <bruno@clisp.org>
20797
20798         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
20799         change.
20800
20801 2009-05-21  Bruno Haible  <bruno@clisp.org>
20802
20803         Simplify use of mode_t varargs.
20804         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
20805         uses 'mode_t' or 'int'.
20806         * lib/openat.c (openat): Likewise.
20807         * lib/open-safer.c (open_safer): Likewise.
20808         * m4/mode_t.m4: New file.
20809         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
20810         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
20811         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
20812         * modules/open (Files): Add m4/mode_t.m4.
20813         * modules/openat (Files): Likewise.
20814         * modules/fcntl-safer (Files): Likewise.
20815         Suggested by Eric Blake.
20816
20817 2009-05-21  Pádraig Brady  <P@draigbrady.com>
20818
20819         * doc/glibc-functions/fallocate.texi: New file.
20820         * doc/gnulib.texi: Include it.
20821
20822 2009-05-21  Eric Blake  <ebb9@byu.net>
20823             Bruno Haible  <bruno@clisp.org>
20824
20825         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
20826         invocations.
20827         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
20828
20829 2009-05-21  Eric Blake  <ebb9@byu.net>
20830             Bruno Haible  <bruno@clisp.org>
20831
20832         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
20833         include_next. Fix of 2008-11-20 commit.
20834         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
20835         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
20836         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
20837         NEXT_MATH_H.
20838         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
20839         instead of NEXT_MATH_H.
20840
20841 2009-05-21  Bruno Haible  <bruno@clisp.org>
20842
20843         Avoid redefinition warnings for SIZE_MAX.
20844         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
20845         Reported by Simon Josefsson.
20846
20847 2009-05-21  Bruno Haible  <bruno@clisp.org>
20848
20849         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
20850         AC_CACHE_VAL.
20851
20852 2009-05-20  Bruno Haible  <bruno@clisp.org>
20853
20854         Make zeroptr.h work on mingw.
20855         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
20856         mprotect.
20857         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
20858         * modules/memchr2-tests (configure.ac): Likewise.
20859         * modules/memcmp-tests (configure.ac): Likewise.
20860         * modules/memmem-tests (configure.ac): Likewise.
20861         * modules/memrchr-tests (configure.ac): Likewise.
20862         Reported by Simon Josefsson.
20863
20864 2009-05-20  Simon Josefsson  <simon@josefsson.org>
20865
20866         * tests/test-glob.c: Include string.h for strcmp prototype.
20867
20868 2009-05-20  Simon Josefsson  <simon@josefsson.org>
20869
20870         * modules/getdelim (Depends-on): Add explicit stdint, although it
20871         was implicitly already pulled in via realloc-posix.
20872         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
20873
20874 2009-05-20  Simon Josefsson  <simon@josefsson.org>
20875
20876         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
20877         G. Christensen" <tgc@jupiterrise.com>.
20878         * m4/sys_socket_h.m4: Check for sa_family_t.
20879         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
20880         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
20881         * tests/test-sys_socket.c: Check that sa_family_t works.
20882
20883 2009-05-18  Eric Blake  <ebb9@byu.net>
20884
20885         maint.mk: allow gnulib_dir in VPATH build
20886         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
20887
20888 2009-05-15  Jim Meyering  <meyering@redhat.com>
20889
20890         maint.mk: Give gnulib_dir a default definition.
20891         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
20892         Thus, most packages no longer need to specify this variable in cfg.mk
20893
20894 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
20895
20896         rename.m4: fix typos that would make non-mingw cross-configure fail
20897         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
20898
20899 2009-05-13  Eric Blake  <ebb9@byu.net>
20900
20901         mmap-anon: avoid out-of-order autoconf expansion
20902         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
20903         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
20904         * modules/memchr-tests (Depends-on): Add extensions.
20905         * modules/memchr2-tests (Depends-on): Add extensions.
20906         * modules/memcmp-tests (Depends-on): Add extensions.
20907         * modules/memmem-tests (Depends-on): Add extensions.
20908         * modules/memrchr-tests (Depends-on): Add extensions.
20909
20910 2009-05-13  Bruno Haible  <bruno@clisp.org>
20911
20912         Make some tests ISO C 99 compliant.
20913         * tests/zerosize-ptr.h: New file.
20914         * tests/test-memchr.c: Include zerosize-ptr.h.
20915         (main): Use a zero-size object pointer instead of NULL.
20916         * tests/test-memchr2.c: Include zerosize-ptr.h.
20917         (main): Use a zero-size object pointer instead of NULL.
20918         * tests/test-memcmp.c: Include zerosize-ptr.h.
20919         (main): Use a zero-size object pointer instead of NULL.
20920         * tests/test-memmem.c: Include zerosize-ptr.h.
20921         (main): Use a zero-size object pointer instead of NULL.
20922         * tests/test-memrchr.c: Include zerosize-ptr.h.
20923         (main): Use a zero-size object pointer instead of NULL.
20924         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
20925         m4/mmap-anon.m4.
20926         (Depends-on): Add getpagesize.
20927         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
20928         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
20929         m4/mmap-anon.m4.
20930         (Depends-on): Add getpagesize.
20931         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
20932         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
20933         m4/mmap-anon.m4.
20934         (Depends-on): Add getpagesize.
20935         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
20936         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
20937         m4/mmap-anon.m4.
20938         (Depends-on): Add getpagesize.
20939         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
20940         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
20941         m4/mmap-anon.m4.
20942         (Depends-on): Add getpagesize.
20943         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
20944
20945 2009-05-12  Bruno Haible  <bruno@clisp.org>
20946
20947         Tests for module 'alignof'.
20948         * modules/alignof-tests: New file.
20949         * tests/test-alignof.c: New file.
20950
20951 2009-05-12  Bruno Haible  <bruno@clisp.org>
20952
20953         Fix alignof macro.
20954         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
20955         vendor compilers that are always correct.
20956
20957 2009-05-12  Bruno Haible  <bruno@clisp.org>
20958
20959         Make the MAP_ANONYMOUS detection work on HP-UX 11.
20960         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
20961         not whether its fully works.
20962
20963 2009-05-12  Bruno Haible  <bruno@clisp.org>
20964
20965         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
20966
20967 2009-05-12  Jim Meyering  <meyering@redhat.com>
20968
20969         * top/maint.mk: Adjust backslash alignment.
20970
20971 2009-05-11  Simon Josefsson  <simon@josefsson.org>
20972
20973         * top/maint.mk: Make $(srcdir)/build-aux configurable.
20974
20975 2009-05-11  Eric Blake  <ebb9@byu.net>
20976
20977         argp: avoid undefined behavior
20978         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
20979         macros.
20980
20981 2009-05-08  Simon Josefsson  <simon@josefsson.org>
20982
20983         * tests/test-vc-list-files-git.sh: Do git config of user.email and
20984         user.name to prevent git commit from complaining.
20985
20986 2009-05-10  Bruno Haible  <bruno@clisp.org>
20987
20988         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
20989         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
20990         it rewrites every file name only once.
20991         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
20992
20993 2009-05-08  Bruno Haible  <bruno@clisp.org>
20994
20995         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
20996         instead of 'max'.
20997
20998 2009-05-08  Simon Josefsson  <simon@josefsson.org>
20999
21000         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
21001         sockaddr_storage test.
21002
21003 2009-05-07  Simon Josefsson  <simon@josefsson.org>
21004
21005         * modules/sys_socket (Makefile.am): Substitute
21006         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
21007         * m4/sys_socket_h.m4: Check for sockaddr_storage.
21008         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
21009         * tests/test-sys_socket.c: Check sockaddr_storage.
21010
21011 2009-05-08  Bruno Haible  <bruno@clisp.org>
21012
21013         New module 'alignof'.
21014         * lib/alignof.h: New file.
21015         * modules/alignof: New file.
21016
21017 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
21018             Bruno Haible  <bruno@clisp.org>
21019
21020         Fix test-file-has-acl on FreeBSD.
21021         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
21022         mask is implicitly added.
21023         * tests/test-file-has-acl.c: Include <signal.h>.
21024         (main): Terminate the test after 5 seconds.
21025         * modules/acl-tests (configure.ac): Check for alarm function.
21026
21027 2009-05-04  Bruno Haible  <bruno@clisp.org>
21028
21029         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
21030         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
21031         * modules/errno (configure.ac): Drop AC_REQUIRE.
21032         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
21033         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
21034
21035 2009-05-04  Simon Josefsson  <simon@josefsson.org>
21036
21037         * modules/glob-tests: New module.
21038         * tests/test-glob.c: Add.
21039
21040 2009-05-04  Simon Josefsson  <simon@josefsson.org>
21041
21042         * modules/fnmatch-tests: New module.
21043         * tests/test-fnmatch.c: Add.
21044
21045 2009-05-04  Eric Blake  <ebb9@byu.net>
21046
21047         maint: make the new no-submodule-changes rule VPATH-safe
21048         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
21049
21050 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
21051             Bruno Haible  <bruno@clisp.org>
21052
21053         acl: Fix infinite loop on FreeBSD.
21054         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
21055         of return value from acl_get_entry.
21056         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
21057         Likewise.
21058
21059 2009-05-03  Bruno Haible  <bruno@clisp.org>
21060
21061         * lib/acl-internal.h (acl_entries): Clarify return value.
21062         * lib/acl_entries.c (acl_entries): Likewise.
21063
21064 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
21065
21066         Bug fix in acl module.
21067         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
21068
21069 2009-05-03  Bruno Haible  <bruno@clisp.org>
21070
21071         Create gperf-generated file in the source dir, not in the build dir.
21072         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
21073         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
21074         * modules/unicase/locale-language (unicase/locale-languages.h):
21075         Likewise.
21076         * modules/unicase/special-casing (unicase/special-casing-table.h):
21077         Likewise.
21078         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
21079         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
21080         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
21081         Reported by Ralf Wildenhues.
21082
21083 2009-05-03  Bruno Haible  <bruno@clisp.org>
21084
21085         * modules/fnmatch (Description, configure.ac): Taken from
21086         fnmatch-posix.
21087         * modules/fnmatch-posix: Turn into a symbolic reference to the
21088         'fnmatch' module, and deprecate.
21089         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
21090
21091 2009-05-03  Bruno Haible  <bruno@clisp.org>
21092
21093         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
21094         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
21095         Reported by Ralf Wildenhues.
21096
21097 2009-05-04  Simon Josefsson  <simon@josefsson.org>
21098
21099         * m4/fnmatch.m4: Fix fnmatch re-define.
21100
21101 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
21102
21103         priv-set: new module and tests; adapt write-any-file
21104         * lib/priv-set.c: New file.
21105         * lib/priv-set.h: New file.
21106         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
21107         * lib/write-any-file.c: Simplify by using priv-set module.
21108         * m4/priv-set.m4: New file.
21109         * modules/priv-set: New file.
21110         * modules/unlinkdir: Add dependency on priv-set module.
21111         * modules/write-any-file: Likewise.
21112
21113         Tests for module 'priv-set'.
21114         * modules/priv-set-tests: New file.
21115         * tests/test-priv-set.c: New file.
21116
21117 2009-05-03  Jim Meyering  <meyering@redhat.com>
21118             Bruno Haible  <bruno@clisp.org>
21119
21120         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
21121         use the converted UTF-8 variant of the name instead.
21122
21123 2009-05-03  Jim Meyering  <meyering@redhat.com>
21124
21125         tests: tighten some getdate tests
21126         * tests/test-getdate.c (main): Tighten tests: require equality,
21127         not just greater than.  Set TZ envvar to UTC0.
21128
21129 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
21130
21131         getdate: correctly interpret "next monday" when run on a Monday
21132         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
21133         that e.g., "next tues" (when run on a tuesday) results in a date
21134         that is one week in the future, and not today's date.
21135         I.e., add a week when the wday is the same as the current one.
21136         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
21137         and earlier by Martin Bernreuther and Jan Minář.
21138         * tests/test-getdate.c (main): Check that "next DAY" is always in
21139         the future and that "last DAY" is always in the past.
21140
21141 2009-05-02  Jim Meyering  <meyering@redhat.com>
21142
21143         build: ensure that a release build fails when a submodule is unclean
21144         * top/maint.mk (no-submodule-changes): New rule.
21145         (alpha beta major): Depend on it.
21146
21147 2009-05-02  Bruno Haible  <bruno@clisp.org>
21148
21149         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
21150         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
21151         shell variable gl_fnmatch_required to detect which variant is
21152         requested.
21153         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
21154         gl_FUNC_FNMATCH_POSIX.
21155         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
21156         exclude fnmatch-posix.
21157
21158 2009-05-02  Bruno Haible  <bruno@clisp.org>
21159
21160         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
21161         * modules/mbsrtowcs (License): Change to LGPLv2+.
21162         * modules/strnlen1 (License): Likewise.
21163         Reported by Simon Josefsson.
21164
21165 2009-05-02  Bruno Haible  <bruno@clisp.org>
21166
21167         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
21168         "cross".
21169         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
21170         gnulib-tool was called with option --source-base=lib.
21171
21172 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21173
21174         Use automake *-local hooks without commands, for extensibility.
21175         * modules/localcharset (Makefile.am): Rename install-exec-local
21176         rule to install-exec-localcharset, and make it a prerequisite of
21177         install-exec-local.  Likewise, rename the uninstall-local rule to
21178         uninstall-localcharset, and make it a prerequisite of the former.
21179
21180 2009-05-01  Bruno Haible  <bruno@clisp.org>
21181
21182         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
21183         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
21184         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
21185         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
21186         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
21187         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
21188         m4/locale-zh.m4, m4/codeset.m4.
21189
21190         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
21191         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
21192         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
21193         m4/locale-zh.m4.
21194
21195         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
21196         REPLACE_WCRTOMB if mbstate_t must be replaced.
21197         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
21198         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
21199
21200 2009-05-01  Bruno Haible  <bruno@clisp.org>
21201
21202         Avoid compiler warnings when redefining macros defined by <libintl.h>.
21203         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
21204         dngettext, dcngettext, textdomain, bindtextdomain,
21205         bind_textdomain_codeset): Undefine before redefining.
21206
21207 2009-04-30  Bruno Haible  <bruno@clisp.org>
21208
21209         Fix bug introduced on 2009-04-25.
21210         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
21211         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
21212         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
21213         is defined.
21214         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
21215         is defined.
21216         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
21217         is defined.
21218         Reported by Elbert_Pol <elbert.pol@gmail.com>.
21219
21220 2009-04-28  Bruno Haible  <bruno@clisp.org>
21221
21222         Comment tweaks.
21223         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
21224         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
21225         * lib/unicase.h (u*_casexfrm): Likewise.
21226         Reported by Paolo Bonzini.
21227
21228 2009-04-28  Bruno Haible  <bruno@clisp.org>
21229
21230         Fix a compilation error.
21231         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
21232         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
21233         Reported by Jim Meyering.
21234
21235 2009-04-27  Bruno Haible  <bruno@clisp.org>
21236
21237         New module 'libunistring'.
21238         * modules/libunistring: New file.
21239         * m4/libunistring.m4: New file.
21240         * MODULES.html.sh (Unicode string functions): Add it.
21241
21242 2009-04-27  Eric Blake  <ebb9@byu.net>
21243
21244         maint.mk: allow package-specific header to provide <config.h>
21245         * top/maint.mk (sc_require_config_h): New variable.
21246         (sc_require_config_h, sc_require_config_h_first): Use it.
21247
21248 2009-04-27  Simon Josefsson  <simon@josefsson.org>
21249
21250         * top/maint.mk (sc_avoid_if_before_free): Except
21251         useless-if-before-free script.
21252
21253 2009-04-27  Eric Blake  <ebb9@byu.net>
21254
21255         maintainer-makefile: depend on all required helper scripts
21256         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
21257         useless-if-before-free.
21258         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
21259         version, rather than assuming gnulib checkout is available.
21260         Reported by Simen Josefsson.
21261
21262 2009-04-26  Bruno Haible  <bruno@clisp.org>
21263
21264         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
21265         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
21266         "../" or "..".
21267
21268 2009-04-26  Bruno Haible  <bruno@clisp.org>
21269
21270         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
21271         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
21272         AC_LIB_HAVE_LINKFLAGS.
21273
21274 2009-04-26  Bruno Haible  <bruno@clisp.org>
21275
21276         Simplify calling convention of u*_conv_from_encoding.
21277         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
21278         u32_conv_from_encoding): Expect a resultbuf argument and return the
21279         result directly as a pointer.
21280         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
21281         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
21282         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
21283         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
21284         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
21285         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
21286         Update.
21287         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
21288         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
21289         * lib/vasnprintf.c (VASNPRINTF): Update.
21290         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
21291         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
21292         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
21293         * NEWS: Mention the change.
21294
21295 2009-04-26  Bruno Haible  <bruno@clisp.org>
21296
21297         Simplify calling convention of u*_conv_to_encoding.
21298         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
21299         u32_conv_to_encoding): Expect a resultbuf argument and return the
21300         result directly as a pointer.
21301         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
21302         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
21303         freeing scaled_offsets if mem_iconveha failed.
21304         * lib/unicase/u-casexfrm.h (FUNC): Update.
21305         * lib/uninorm/u-normxfrm.h (FUNC): Update.
21306         * lib/vasnprintf.c (VASNPRINTF): Update.
21307         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
21308         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
21309         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
21310         * NEWS: Mention the change.
21311
21312 2009-04-26  Bruno Haible  <bruno@clisp.org>
21313
21314         Avoid test failures on AIX and OSF/1.
21315         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
21316         malloc(0).
21317         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
21318         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
21319         Likewise.
21320         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
21321         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
21322         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
21323         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
21324         * doc/posix-functions/malloc.texi: Document the portability problem
21325         related to malloc(0).
21326
21327 2009-04-26  Bruno Haible  <bruno@clisp.org>
21328
21329         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
21330         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
21331         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
21332
21333 2009-04-25  Bruno Haible  <bruno@clisp.org>
21334
21335         Avoid link error when creating a namespace clean library.
21336         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
21337         as macro with arguments if already defined as an alias.
21338         * lib/signbitf.c (gl_signbitf): Don't undefine.
21339         * lib/signbitd.c (gl_signbitd): Don't undefine.
21340         * lib/signbitl.c (gl_signbitl): Don't undefine.
21341
21342 2009-04-25  Jim Meyering  <meyering@redhat.com>
21343
21344         vc-list-files: fix another quoting bug
21345         * build-aux/vc-list-files: Avoid sed backslash expansion
21346         of pathological directory names.
21347
21348 2009-04-25  Eric Blake  <ebb9@byu.net>
21349
21350         vc-list-files: fix shell quoting error
21351         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
21352         timestamp.
21353
21354 2009-04-25  Jim Meyering  <meyering@redhat.com>
21355
21356         vc-list-files: restore lost functionality with subdir argument
21357         * build-aux/vc-list-files: When given a non-"." sub-directory
21358         argument, substitute the $dir/ prefix back onto each resulting name.
21359         Otherwise, coreutils' root_tests check would fail.
21360
21361 2009-04-24  Eric Blake  <ebb9@byu.net>
21362
21363         vc-list-files: ignore git symlinks
21364         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
21365         than ls-files, to ignore git symlinks.
21366
21367         maint.mk: import improvements from m4
21368         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
21369         (move_if_change): Delete unused macro.
21370         (news-date-check, vc-diff-check): Support VPATH builds.
21371         (announcement): Likewise.  Split --bootstrap-tools list...
21372         (boostrap-tools): ...into separate list, which can be overridden
21373         in cfg.mk.
21374         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
21375         requiring dependency on useless-if-before-free module.
21376         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
21377         Support VPATH builds.
21378
21379 2009-04-24  Jim Meyering  <meyering@redhat.com>
21380
21381         maint.mk: remove coreutils-specific rules and variables
21382         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
21383         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
21384         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
21385
21386         maint.mk: remove obsolete rule
21387         * top/maint.mk (rel-check): Remove rule.
21388         (WGET, WGETFLAGS): Remove now-unused variables.
21389
21390 2009-04-24  Simon Josefsson  <simon@josefsson.org>
21391
21392         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
21393         consistency.
21394
21395         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
21396         '$(PATH_SEPARATOR)' instead of ':'.
21397
21398 2009-04-24  Simon Josefsson  <simon@josefsson.org>
21399
21400         * lib/getopt1.c (main): Use 'const' for static array.
21401
21402 2009-04-24  Simon Josefsson  <simon@josefsson.org>
21403
21404         * top/maint.mk: Sync with coreutils.
21405         * NEWS: Explain incompatibilities.
21406
21407 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21408             Bruno Haible  <bruno@clisp.org>
21409
21410         Fix cross-compilation results.
21411         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
21412         statement, as third argument of AC_TRY_RUN.
21413         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
21414         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
21415         Likewise.
21416         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
21417         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
21418         Likewise.
21419         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
21420         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
21421         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
21422
21423 2009-04-20  Bruno Haible  <bruno@clisp.org>
21424
21425         Avoid test failure on mingw.
21426         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
21427
21428 2009-04-20  Bruno Haible  <bruno@clisp.org>
21429
21430         Avoid compilation error on mingw.
21431         * modules/localename-tests (Depends-on): Add locale.
21432
21433 2009-04-19  Bruno Haible  <bruno@clisp.org>
21434
21435         Support for building a shared library on Windows platforms.
21436         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
21437         (main): Test the presence of UNINORM_NFC here.
21438         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
21439         (main): Test the presence of UNINORM_NFD here.
21440         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
21441         (main): Test the presence of UNINORM_NFKC here.
21442         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
21443         (main): Test the presence of UNINORM_NFKD here.
21444
21445 2009-04-19  Bruno Haible  <bruno@clisp.org>
21446
21447         Avoid a compiler warning.
21448         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
21449         Change type of variable 'sequence'.
21450
21451 2009-04-19  Bruno Haible  <bruno@clisp.org>
21452
21453         * modules/configmake (Makefile.am): When the contents of configmake.h
21454         does not change, arrange to preserve its modification time.
21455
21456 2009-04-17  Simon Josefsson  <simon@josefsson.org>
21457
21458         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
21459         gettext domain.
21460
21461 2009-04-16  Jim Meyering  <meyering@redhat.com>
21462
21463         useless-if-before-free: improve conversion code
21464         * build-aux/useless-if-before-free: Adjust code-in-comment to match
21465         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
21466
21467 2009-04-14  Bruno Haible  <bruno@clisp.org>
21468
21469         * modules/fcntl (Depends-on): Add extensions.
21470         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
21471
21472 2009-04-12  Ben Pfaff  <blp@gnu.org>
21473
21474         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
21475         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
21476
21477 2009-03-20  Ben Pfaff  <blp@gnu.org>
21478
21479         Make rename replace existing destinations on Windows.
21480         * m4/rename.m4: Add test for Mingw.
21481         * lib/rename.c: Add rename replacement that uses MoveFileEx with
21482         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
21483         * doc/posix-functions/rename.texi: Document.
21484
21485 2009-04-10  Bruno Haible  <bruno@clisp.org>
21486
21487         New include file "iconveh.h".
21488         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
21489         * lib/striconveh.h: Include it.
21490         (enum iconv_ilseq_handler): Remove definition.
21491         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
21492         striconveh.h.
21493         * lib/striconveha.c: Include striconveh.h.
21494         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
21495         * modules/striconveh (Files): Add lib/iconveh.h.
21496         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
21497         lib/striconveh.h.
21498
21499 2009-04-10  Bruno Haible  <bruno@clisp.org>
21500
21501         * lib/uniconv.h: Update comment.
21502
21503 2009-04-10  Bruno Haible  <bruno@clisp.org>
21504
21505         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
21506         always.
21507         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
21508         * lib/unistr/u16-mbtouc-aux.c: Likewise.
21509         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
21510         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
21511         "unistring-notinline.h", so that the function gets defined always.
21512         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
21513         * lib/unistr/u8-uctomb.c: Likewise.
21514         * lib/unistr/u16-mbtouc.c: Likewise.
21515         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
21516         * lib/unistr/u16-uctomb.c: Likewise.
21517         * lib/unistr/u32-mbtouc.c: Likewise.
21518         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
21519         * lib/unistr/u32-uctomb.c: Likewise.
21520
21521 2009-04-10  Bruno Haible  <bruno@clisp.org>
21522
21523         Mark 'utime' obsolete.
21524         * modules/utime (Status, Notice): New sections.
21525         Suggested by Jim Meyering.
21526
21527         Fix cross-compile guess for utime test.
21528         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
21529         autoconf.
21530         * doc/posix-functions/utime.texi: Give more precisions.
21531         Reported by Jan <ipif@ymail.com>.
21532
21533 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
21534
21535         filevercmp: correct today's change
21536         * lib/filevercmp.c: Also handle coreutils' test inputs.
21537         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
21538
21539         Fix regression in 'filevercmp' module. Thanks Sven Joachim
21540         for reporting it.
21541         * lib/filevercmp.c: Special handle for "", "." and "..".
21542         * tests/test-filevercmp.c: Enlarge the set suite.
21543
21544 2009-04-07  Jim Meyering  <meyering@redhat.com>
21545
21546         useless-if-before-free: show how to remove braced useless free, too
21547         * build-aux/useless-if-before-free: still only in a comment, though.
21548
21549 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
21550
21551         maint.mk: import changes to syntax-check macros from coreutils
21552         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
21553         Use them in the relevant macros.
21554
21555 2009-04-06  Bruno Haible  <bruno@clisp.org>
21556
21557         Fix unportable use of bit-fields.
21558         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
21559         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
21560         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
21561
21562 2009-04-06  Bruno Haible  <bruno@clisp.org>
21563
21564         Avoid test failures on AIX and OSF/1.
21565         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
21566         that malloc(0) = NULL.
21567         * tests/unicase/test-u8-tolower.c (check): Likewise.
21568         * tests/unicase/test-u8-totitle.c (check): Likewise.
21569         * tests/unicase/test-u8-toupper.c (check): Likewise.
21570         * tests/unicase/test-u16-casefold.c (check): Likewise.
21571         * tests/unicase/test-u16-tolower.c (check): Likewise.
21572         * tests/unicase/test-u16-totitle.c (check): Likewise.
21573         * tests/unicase/test-u16-toupper.c (check): Likewise.
21574         * tests/unicase/test-u32-casefold.c (check): Likewise.
21575         * tests/unicase/test-u32-tolower.c (check): Likewise.
21576         * tests/unicase/test-u32-totitle.c (check): Likewise.
21577         * tests/unicase/test-u32-toupper.c (check): Likewise.
21578         * tests/uninorm/test-u8-nfc.c (check): Likewise.
21579         * tests/uninorm/test-u8-nfd.c (check): Likewise.
21580         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
21581         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
21582         * tests/uninorm/test-u16-nfc.c (check): Likewise.
21583         * tests/uninorm/test-u16-nfd.c (check): Likewise.
21584         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
21585         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
21586         * tests/uninorm/test-u32-nfc.c (check): Likewise.
21587         * tests/uninorm/test-u32-nfd.c (check): Likewise.
21588         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
21589         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
21590
21591 2009-04-05  Bruno Haible  <bruno@clisp.org>
21592
21593         Work around an autoconf limitation.
21594         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
21595         comment line if it would be longer than 3 KB.
21596
21597 2009-04-05  Bruno Haible  <bruno@clisp.org>
21598
21599         Avoid test failure with libiconv-1.13.
21600         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
21601         of the expected test results.
21602
21603 2009-04-05  Bruno Haible  <bruno@clisp.org>
21604
21605         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
21606         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
21607         that it should be installed.
21608
21609 2009-04-05  Bruno Haible  <bruno@clisp.org>
21610
21611         * gnulib-tool: New option --copy-file.
21612         (func_usage): Document it.
21613         (func_dest_tmpfilename): Moved out of func_import.
21614         (func_add_file, func_update_file): New functions, extracted from
21615         func_import.
21616         (func_import): Update.
21617
21618 2009-04-05  Karl Berry  <karl@gnu.org>
21619
21620         * README: prominently mention gnulib-tool.
21621         Rearrange sections so getting the code is near the top.
21622
21623 2009-04-05  Bruno Haible  <bruno@clisp.org>
21624
21625         * lib/unicase.h: Mention u*_cmp2.
21626         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
21627         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
21628         * lib/unicase/ulc-casecmp.c: Likewise.
21629         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
21630         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
21631         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
21632         unistr/u8-cmp.
21633         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
21634         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
21635         unistr/u16-cmp.
21636         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
21637         unistr/u32-cmp.
21638
21639         * lib/uninorm.h: Mention u*_cmp2.
21640         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
21641         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
21642         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
21643         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
21644         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
21645         unistr/u8-cmp.
21646         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
21647         unistr/u16-cmp.
21648         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
21649         unistr/u32-cmp.
21650
21651         New module 'unistr/u32-cmp2'.
21652         * lib/unistr/u32-cmp2.c: New file.
21653         * modules/unistr/u32-cmp2: New file.
21654
21655         New module 'unistr/u16-cmp2'.
21656         * lib/unistr/u16-cmp2.c: New file.
21657         * modules/unistr/u16-cmp2: New file.
21658
21659         New module 'unistr/u8-cmp2'.
21660         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
21661         * lib/unistr/u8-cmp2.c: New file.
21662         * lib/unistr/u-cmp2.h: New file.
21663         * modules/unistr/u8-cmp2: New file.
21664
21665 2009-04-05  Bruno Haible  <bruno@clisp.org>
21666
21667         * lib/unictype.h (uc_property_is_valid): New macro.
21668         * tests/unictype/test-pr_byname.c (main): Use it.
21669
21670         * lib/unistr.h: Doc fixes.
21671         * lib/uniconv.h: Doc fixes.
21672         * lib/unictype.h: Doc fixes.
21673
21674 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
21675
21676         Port coreutils 7.2 to Solaris 8.
21677
21678         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
21679         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
21680         for Solaris 8.  This is a bit of a hack, as it means it's the
21681         caller's responsibility to add -lnsl if needed, but most likely it
21682         won't be needed since only getaddrinfo uses this and getaddrinfo
21683         isn't needed on Solaris 8.
21684
21685         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
21686         problem to Solaris 8 encountered with coreutils 7.2, which
21687         resulted in a message "fnmatch.c:292: warning: passing argument 4
21688         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
21689         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
21690
21691 2009-04-03  Simon Josefsson  <simon@josefsson.org>
21692
21693         * m4/ld-version-script.m4: Add FIXME comment.
21694
21695 2009-04-02  Simon Josefsson  <simon@josefsson.org>
21696
21697         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
21698         SOVERSION variable.
21699
21700 2009-04-02  Bruno Haible  <bruno@clisp.org>
21701
21702         * Makefile (info, html, dvi, pdf): Combine the rules.
21703         Suggested by Jim Meyering.
21704
21705 2009-04-01  Bruno Haible  <bruno@clisp.org>
21706
21707         * Makefile (info, html, dvi, pdf): New targets.
21708         Reported by Reuben Thomas <rrt@sc3d.org>.
21709
21710 2009-04-01  Bruno Haible  <bruno@clisp.org>
21711
21712         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
21713         can be put into PATH.
21714         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
21715
21716 2009-04-01  Bruno Haible  <bruno@clisp.org>
21717
21718         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
21719
21720 2009-04-01  Bruno Haible  <bruno@clisp.org>
21721
21722         Rename module 'visibility'.
21723         * modules/lib-symbol-visibility: Renamed from modules/visibility.
21724         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
21725         * doc/gnulib.texi: Update.
21726         * MODULES.html.sh (Misc): Update.
21727         * NEWS: Mention the change.
21728
21729 2009-04-01  Simon Josefsson  <simon@josefsson.org>
21730
21731         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
21732         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
21733         Eric Blake <ebb9@byu.net> for review.
21734         * MODULES.html.sh: Add lib-msvc-compat.
21735         * doc/gnulib.texi: Link to new section.
21736         * m4/ld-output-def.m4: New file.
21737         * doc/ld-output-def.texi: New file.
21738
21739 2009-04-01  Simon Josefsson  <simon@josefsson.org>
21740
21741         Rename ld-version-script to lib-symbol-versions.  Suggested by
21742         Bruno Haible <bruno@clisp.org>.
21743         * modules/ld-version-script: Renamed to lib-symbol-versions.
21744         * doc/ld-version-script.texi: Fix module name.
21745         * MODULES.html.sh: Add lib-symbol-versions.
21746
21747 2009-03-31  Simon Josefsson  <simon@josefsson.org>
21748
21749         * modules/u64-tests: New file.
21750         * tests/test-u64.c: New file.
21751
21752 2009-03-04  Simon Josefsson  <simon@josefsson.org>
21753
21754         * MODULES.html.sh: Mention u64.
21755         * modules/u64: New module.
21756         * modules/crypto/sha512: Depend on u64 module instead of providing
21757         u64.h.
21758
21759 2009-03-27  Eric Blake  <ebb9@byu.net>
21760
21761         test-strerror: make debugging EAI_SYSTEM easier
21762         * modules/getaddrinfo-tests (Depends-on): Add strerror.
21763         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
21764         failure was EAI_SYSTEM.
21765
21766 2009-03-25  Bruno Haible  <bruno@clisp.org>
21767
21768         Fix a problem with --enable-relocatable on Solaris 7.
21769         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
21770         since 2008-02-24.
21771
21772 2009-03-25  Eric Blake  <ebb9@byu.net>
21773
21774         test-sockets: avoid gcc warning
21775         * tests/test-sockets.c (main): Silence compiler warning.
21776
21777 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
21778
21779         New modules nproc, pthread, contributed by Glen Lenker.
21780
21781         * MODULES.html.sh: Add pthread, nproc.
21782         * lib/nproc.c: New file.
21783         * lib/nproc.h: New file.
21784         * lib/pthread.in.h: New file.
21785         * m4/pthread.m4: New file.
21786         * modules/nproc: New file.
21787         * modules/pthread: New file.
21788
21789 2009-03-24  Simon Josefsson  <simon@josefsson.org>
21790
21791         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
21792         New variable.
21793
21794 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
21795
21796         filevercmp: handle simple~ and numbered.~3~ backup suffixes
21797         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
21798         * tests/test-filevercmp.c: Add tests for backup suffixes.
21799
21800 2009-03-24  Simon Josefsson  <simon@josefsson.org>
21801
21802         * modules/stdlib (Depends-on): Add stdint, needed when defining
21803         struct random_data on, for example, HP-UX 10.20.  Reported by
21804         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
21805
21806 2009-03-24  Simon Josefsson  <simon@josefsson.org>
21807
21808         * lib/readline.c (readline): Call fflush on stdout after printing
21809         prompt.
21810
21811 2009-03-20  Bruno Haible  <bruno@clisp.org>
21812
21813         Remove dependency from 'close' module to -lws2_32 on native Windows.
21814         * lib/close-hook.h: New file.
21815         * lib/close-hook.c: New file.
21816         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
21817         w32sock.h.
21818         (_gl_close_fd_maybe_socket): Remove function.
21819         (rpl_close): Invoke execute_all_close_hooks instead of
21820         _gl_close_fd_maybe_socket.
21821         * lib/sockets.c: Include close-hook.h, w32sock.h.
21822         (close_fd_maybe_socket): New function, essentially from lib/close.c.
21823         (close_sockets_hook): New variable.
21824         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
21825         (gl_sockets_cleanup): Unregister it.
21826         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
21827         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
21828         * modules/close-hook: New file.
21829         * modules/close (Files): Remove lib/w32sock.h.
21830         (Depends-on): Add close-hook.
21831         (Link): Remove section.
21832         * modules/sockets (Files): Add lib/w32sock.h.
21833         (Depends-on): Add close-hook.
21834         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
21835         invocation.
21836         * NEWS: Mention that LIB_CLOSE is gone.
21837
21838 2009-03-23  Eric Blake  <ebb9@byu.net>
21839
21840         signal-tests: test previous patch
21841         * tests/test-signal.c: New file.
21842         * modules/signal-tests: Likewise.
21843
21844         signal.h: always support 'volatile sig_atomic_t'
21845         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
21846         (gl_SIGNAL_H_DEFAULTS): Add a default.
21847         * modules/signal (Makefile.am): Substitute if needed.
21848         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
21849         users can blindly add volatile.
21850         * doc/posix-headers/signal.texi (signal.h): Document it.
21851         Reported by Matthew Woehlke.
21852
21853 2009-03-23  Jim Meyering  <meyering@redhat.com>
21854
21855         pathmax: PATH_MAX: use pathconf only when available
21856         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
21857         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
21858         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
21859         This avoids a link failure in a PSP cross-compilation environment
21860         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
21861
21862         * lib/vasnprintf.c (divide): Fix typo in comment.
21863
21864 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21865
21866         * gnulib-tool (func_filter_filelist): Fix comment.
21867
21868 2009-03-20  Bruno Haible  <bruno@clisp.org>
21869
21870         Make sockets.h self-contained.
21871         * lib/sockets.c: Include sockets.h first.
21872         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
21873
21874 2009-03-19  Eric Blake  <ebb9@byu.net>
21875
21876         doc: mention more functions added in cygwin 1.7.0
21877         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
21878         addition.
21879         * doc/posix-functions/log2f.texi: Likewise.
21880
21881 2009-03-19  Jim Meyering  <meyering@redhat.com>
21882
21883         fsusage: avoid syntax error due to statement-before-declaration
21884         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
21885         after all declarations.  Reported by Matthew Woehlke in
21886         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
21887
21888 2009-03-18  Eric Blake  <ebb9@byu.net>
21889
21890         build-aux/compile: sync from automake
21891         * build-aux/compile: New file, from automake.
21892         * config/srclist.txt: Mention build-aux/compile.
21893
21894 2009-03-17  Bruno Haible  <bruno@clisp.org>
21895
21896         * lib/git-merge-changelog.c: Fix typo in comment.
21897         Reported by Reuben Thomas <rrt@sc3d.org>.
21898
21899 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
21900
21901         * m4/regex.m4: update and improve help for
21902         --without-included-regex.
21903
21904 2009-03-17  Simon Josefsson  <simon@josefsson.org>
21905
21906         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
21907         failure on missing include files.
21908
21909 2009-03-17  Eric Blake  <ebb9@byu.net>
21910
21911         doc: mention more functions added in cygwin 1.7.0
21912         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
21913         addition.
21914         * doc/posix-functions/fwscanf.texi: Likewise.
21915         * doc/posix-functions/swprintf.texi: Likewise.
21916         * doc/posix-functions/swscanf.texi: Likewise.
21917         * doc/posix-functions/vfwprintf.texi: Likewise.
21918         * doc/posix-functions/vfwscanf.texi: Likewise.
21919         * doc/posix-functions/vswprintf.texi: Likewise.
21920         * doc/posix-functions/vswscanf.texi: Likewise.
21921         * doc/posix-functions/vwprintf.texi: Likewise.
21922         * doc/posix-functions/vwscanf.texi: Likewise.
21923         * doc/posix-functions/wcscasecmp.texi: Likewise.
21924         * doc/posix-functions/wcsdup.texi: Likewise.
21925         * doc/posix-functions/wcsftime.texi: Likewise.
21926         * doc/posix-functions/wcsncasecmp.texi: Likewise.
21927         * doc/posix-functions/wprintf.texi: Likewise.
21928         * doc/posix-functions/wscanf.texi: Likewise.
21929         * doc/glibc-functions/gethostbyname2.texi: Likewise.
21930
21931 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21932
21933         maint.mk: really add $(AM_MAKEFLAGS)
21934         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
21935         was inadvertently omitted in the last commit.
21936         Spotted by Bruno Haible.
21937
21938         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
21939         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
21940         $(AM_MAKEFLAGS)' rather than plain `make'.
21941
21942         gnulib-tool: execute $MAKE not make
21943         * gnulib-tool: Default $MAKE to 'make'.
21944         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
21945         than make.  Initialize $MAKE in the do-autobuild script.
21946
21947         gnulib-tool: use $MAKE not make in generated files
21948         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
21949         make, in generated files.  Initialize $MAKE in the do-autobuild
21950         script.
21951
21952         * top/GNUmakefile (_have-git-version-gen): Fix typo.
21953
21954         GNUmakefile: disable parallelism only for multiple, recursive targets
21955         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
21956         additions in the Makefile.
21957         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
21958         by Automake.
21959         (.NOTPARALLEL): Only disable parallel builds if multiple targets
21960         are listed on the command line and at least one of them is
21961         listed in $(ALL_RECURSIVE_TARGETS).
21962
21963 2009-03-14  Bruno Haible  <bruno@clisp.org>
21964
21965         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
21966         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
21967         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
21968         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
21969         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
21970         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
21971         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
21972         unistr/u8-uctomb.
21973         * modules/unistr/u8-strchr (Depends-on): Likewise.
21974         * modules/unistr/u8-strrchr (Depends-on): Likewise.
21975         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
21976         unistr/u16-uctomb.
21977         * modules/unistr/u16-strchr (Depends-on): Likewise.
21978         * modules/unistr/u16-strrchr (Depends-on): Likewise.
21979
21980 2009-03-12  Bruno Haible  <bruno@clisp.org>
21981
21982         Work around select() bug on Interix 3.5.
21983         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
21984         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
21985         * m4/select.m4: New file.
21986         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
21987         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
21988         * modules/select (Files): Add m4/select.m4.
21989         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
21990         * modules/nanosleep (Depends-on): Add select.
21991         * modules/poll (Depends-on): Likewise.
21992         * doc/posix-functions/select.texi: Mention the Interix bug.
21993         Reported by Markus Duft <mduft@gentoo.org>.
21994
21995         * lib/select.c: Renamed from lib/winsock-select.c.
21996         * modules/select (Files): Add lib/select.c, remove
21997         lib/winsock-select.c.
21998         (configure.ac): Update.
21999
22000 2009-03-12  Jim Meyering  <meyering@redhat.com>
22001
22002         avoid gcc warnings about unused macro definitions
22003         * lib/readtokens.c (STREQ): Remove unused definition.
22004         * lib/xmalloc.c (SIZE_MAX): Likewise.
22005         * lib/openat-die.c (N_): Likewise.
22006         * lib/mountlist.c (SIZE_MAX): Remove definition.
22007         Instead, include <stdint.h>.
22008         * lib/readutmp.c: Likewise.
22009         * modules/readutmp (Depends-on): Add stdint.
22010         * modules/mountlist (Depends-on): Add stdint.
22011         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
22012
22013 2009-03-10  Bruno Haible  <bruno@clisp.org>
22014
22015         Tests for module 'mbmemcasecoll'.
22016         * modules/mbmemcasecoll-tests: New file.
22017         * tests/test-mbmemcasecoll1.sh: New file.
22018         * tests/test-mbmemcasecoll2.sh: New file.
22019         * tests/test-mbmemcasecoll3.sh: New file.
22020         * tests/test-mbmemcasecoll.c: New file.
22021
22022         New module 'mbmemcasecoll'.
22023         * lib/mbmemcasecoll.h: New file.
22024         * lib/mbmemcasecoll.c: New file.
22025         * modules/mbmemcasecoll: New file.
22026
22027         * tests/test-mbmemcasecmp.h: New file, extracted from
22028         tests/test-mbmemcasecmp.c.
22029         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
22030         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
22031         (main): Update.
22032         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
22033
22034 2009-03-09  Bruno Haible  <bruno@clisp.org>
22035
22036         Tests for module 'mbmemcasecmp'.
22037         * modules/mbmemcasecmp-tests: New file.
22038         * tests/test-mbmemcasecmp1.sh: New file.
22039         * tests/test-mbmemcasecmp2.sh: New file.
22040         * tests/test-mbmemcasecmp3.sh: New file.
22041         * tests/test-mbmemcasecmp.c: New file.
22042
22043         New module 'mbmemcasecmp'.
22044         * lib/mbmemcasecmp.h: New file.
22045         * lib/mbmemcasecmp.c: New file.
22046         * modules/mbmemcasecmp: New file.
22047
22048 2009-03-09  Bruno Haible  <bruno@clisp.org>
22049
22050         Tests for module 'unicase/ulc-casecoll'.
22051         * modules/unicase/ulc-casecoll-tests: New file.
22052         * tests/unicase/test-ulc-casecoll1.sh: New file.
22053         * tests/unicase/test-ulc-casecoll2.sh: New file.
22054         * tests/unicase/test-ulc-casecoll.c: New file.
22055
22056         New module 'unicase/ulc-casecoll'.
22057         * lib/unicase.h (ulc_casecoll): New declaration.
22058         * lib/unicase/ulc-casecoll.c: New file.
22059         * modules/unicase/ulc-casecoll: New file.
22060
22061         New module 'unicase/ulc-casexfrm'.
22062         * lib/unicase.h (ulc_casexfrm): New declaration.
22063         * lib/unicase/ulc-casexfrm.c: New file.
22064         * modules/unicase/ulc-casexfrm: New file.
22065
22066 2009-03-09  Bruno Haible  <bruno@clisp.org>
22067
22068         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
22069         invocations.
22070
22071         * m4/mbscasecmp.m4: Remove file.
22072         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
22073         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
22074
22075         * m4/mbscasestr.m4: Remove file.
22076         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
22077         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
22078
22079         * m4/mbschr.m4: Remove file.
22080         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
22081         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
22082
22083         * m4/mbscspn.m4: Remove file.
22084         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
22085         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
22086
22087         * m4/mbslen.m4: Remove file.
22088         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
22089         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
22090
22091         * m4/mbsncasecmp.m4: Remove file.
22092         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
22093         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
22094
22095         * m4/mbsnlen.m4: Remove file.
22096         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
22097         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
22098
22099         * m4/mbspbrk.m4: Remove file.
22100         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
22101         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
22102
22103         * m4/mbspcasecmp.m4: Remove file.
22104         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
22105         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
22106
22107         * m4/mbsrchr.m4: Remove file.
22108         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
22109         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
22110
22111         * m4/mbssep.m4: Remove file.
22112         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
22113         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
22114
22115         * m4/mbsspn.m4: Remove file.
22116         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
22117         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
22118
22119         * m4/mbsstr.m4: Remove file.
22120         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
22121         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
22122
22123         * m4/mbstok_r.m4: Remove file.
22124         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
22125         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
22126
22127         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
22128
22129         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
22130         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
22131
22132         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
22133
22134 2009-03-08  Bruno Haible  <bruno@clisp.org>
22135
22136         Tests for module 'unicase/ulc-casecmp'.
22137         * modules/unicase/ulc-casecmp-tests: New file.
22138         * tests/unicase/test-ulc-casecmp1.sh: New file.
22139         * tests/unicase/test-ulc-casecmp2.sh: New file.
22140         * tests/unicase/test-ulc-casecmp.c: New file.
22141
22142         New module 'unicase/ulc-casecmp'.
22143         * lib/unicase.h (ulc_casecmp): New declaration.
22144         * lib/unicase/ulc-casecmp.c: New file.
22145         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
22146         'const SRC_UNIT *'.
22147         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
22148         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
22149         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
22150         * modules/unicase/ulc-casecmp: New file.
22151
22152         Tests for module 'unicase/u32-is-cased'.
22153         * modules/unicase/u32-is-cased-tests: New file.
22154         * tests/unicase/test-u32-is-cased.c: New file.
22155
22156         Tests for module 'unicase/u16-is-cased'.
22157         * modules/unicase/u16-is-cased-tests: New file.
22158         * tests/unicase/test-u16-is-cased.c: New file.
22159
22160         Tests for module 'unicase/u8-is-cased'.
22161         * modules/unicase/u8-is-cased-tests: New file.
22162         * tests/unicase/test-u8-is-cased.c: New file.
22163         * tests/unicase/test-is-cased.h: New file.
22164
22165         New module 'unicase/u32-is-cased'.
22166         * lib/unicase/u32-is-cased.c: New file.
22167         * modules/unicase/u32-is-cased: New file.
22168
22169         New module 'unicase/u16-is-cased'.
22170         * lib/unicase/u16-is-cased.c: New file.
22171         * modules/unicase/u16-is-cased: New file.
22172
22173         New module 'unicase/u8-is-cased'.
22174         * lib/unicase/u8-is-cased.c: New file.
22175         * lib/unicase/u-is-cased.h: New file.
22176         * modules/unicase/u8-is-cased: New file.
22177
22178         Tests for module 'unicase/u32-is-casefolded'.
22179         * modules/unicase/u32-is-casefolded-tests: New file.
22180         * tests/unicase/test-u32-is-casefolded.c: New file.
22181
22182         Tests for module 'unicase/u16-is-casefolded'.
22183         * modules/unicase/u16-is-casefolded-tests: New file.
22184         * tests/unicase/test-u16-is-casefolded.c: New file.
22185
22186         Tests for module 'unicase/u8-is-casefolded'.
22187         * modules/unicase/u8-is-casefolded-tests: New file.
22188         * tests/unicase/test-u8-is-casefolded.c: New file.
22189         * tests/unicase/test-is-casefolded.h: New file.
22190
22191         New module 'unicase/u32-is-casefolded'.
22192         * lib/unicase/u32-is-casefolded.c: New file.
22193         * modules/unicase/u32-is-casefolded: New file.
22194
22195         New module 'unicase/u16-is-casefolded'.
22196         * lib/unicase/u16-is-casefolded.c: New file.
22197         * modules/unicase/u16-is-casefolded: New file.
22198
22199         New module 'unicase/u8-is-casefolded'.
22200         * lib/unicase/u8-is-casefolded.c: New file.
22201         * modules/unicase/u8-is-casefolded: New file.
22202
22203         Tests for module 'unicase/u32-is-titlecase'.
22204         * modules/unicase/u32-is-titlecase-tests: New file.
22205         * tests/unicase/test-u32-is-titlecase.c: New file.
22206
22207         Tests for module 'unicase/u16-is-titlecase'.
22208         * modules/unicase/u16-is-titlecase-tests: New file.
22209         * tests/unicase/test-u16-is-titlecase.c: New file.
22210
22211         Tests for module 'unicase/u8-is-titlecase'.
22212         * modules/unicase/u8-is-titlecase-tests: New file.
22213         * tests/unicase/test-u8-is-titlecase.c: New file.
22214         * tests/unicase/test-is-titlecase.h: New file.
22215
22216         New module 'unicase/u32-is-titlecase'.
22217         * lib/unicase/u32-is-titlecase.c: New file.
22218         * modules/unicase/u32-is-titlecase: New file.
22219
22220         New module 'unicase/u16-is-titlecase'.
22221         * lib/unicase/u16-is-titlecase.c: New file.
22222         * modules/unicase/u16-is-titlecase: New file.
22223
22224         New module 'unicase/u8-is-titlecase'.
22225         * lib/unicase/u8-is-titlecase.c: New file.
22226         * modules/unicase/u8-is-titlecase: New file.
22227
22228         Tests for module 'unicase/u32-is-lowercase'.
22229         * modules/unicase/u32-is-lowercase-tests: New file.
22230         * tests/unicase/test-u32-is-lowercase.c: New file.
22231
22232         Tests for module 'unicase/u16-is-lowercase'.
22233         * modules/unicase/u16-is-lowercase-tests: New file.
22234         * tests/unicase/test-u16-is-lowercase.c: New file.
22235
22236         Tests for module 'unicase/u8-is-lowercase'.
22237         * modules/unicase/u8-is-lowercase-tests: New file.
22238         * tests/unicase/test-u8-is-lowercase.c: New file.
22239         * tests/unicase/test-is-lowercase.h: New file.
22240
22241         New module 'unicase/u32-is-lowercase'.
22242         * lib/unicase/u32-is-lowercase.c: New file.
22243         * modules/unicase/u32-is-lowercase: New file.
22244
22245         New module 'unicase/u16-is-lowercase'.
22246         * lib/unicase/u16-is-lowercase.c: New file.
22247         * modules/unicase/u16-is-lowercase: New file.
22248
22249         New module 'unicase/u8-is-lowercase'.
22250         * lib/unicase/u8-is-lowercase.c: New file.
22251         * modules/unicase/u8-is-lowercase: New file.
22252
22253         Tests for module 'unicase/u32-is-uppercase'.
22254         * modules/unicase/u32-is-uppercase-tests: New file.
22255         * tests/unicase/test-u32-is-uppercase.c: New file.
22256
22257         Tests for module 'unicase/u16-is-uppercase'.
22258         * modules/unicase/u16-is-uppercase-tests: New file.
22259         * tests/unicase/test-u16-is-uppercase.c: New file.
22260
22261         Tests for module 'unicase/u8-is-uppercase'.
22262         * modules/unicase/u8-is-uppercase-tests: New file.
22263         * tests/unicase/test-u8-is-uppercase.c: New file.
22264         * tests/unicase/test-is-uppercase.h: New file.
22265
22266         New module 'unicase/u32-is-uppercase'.
22267         * lib/unicase/u32-is-uppercase.c: New file.
22268         * modules/unicase/u32-is-uppercase: New file.
22269
22270         New module 'unicase/u16-is-uppercase'.
22271         * lib/unicase/u16-is-uppercase.c: New file.
22272         * modules/unicase/u16-is-uppercase: New file.
22273
22274         New module 'unicase/u8-is-uppercase'.
22275         * lib/unicase/u8-is-uppercase.c: New file.
22276         * modules/unicase/u8-is-uppercase: New file.
22277
22278         New module 'unicase/u32-is-invariant'.
22279         * lib/unicase/u32-is-invariant.c: New file.
22280         * modules/unicase/u32-is-invariant: New file.
22281
22282         New module 'unicase/u16-is-invariant'.
22283         * lib/unicase/u16-is-invariant.c: New file.
22284         * modules/unicase/u16-is-invariant: New file.
22285
22286         New module 'unicase/u8-is-invariant'.
22287         * lib/unicase/u8-is-invariant.c: New file.
22288         * lib/unicase/invariant.h: New file.
22289         * lib/unicase/u-is-invariant.h: New file.
22290         * modules/unicase/u8-is-invariant: New file.
22291
22292         Tests for module 'unicase/u32-casecoll'.
22293         * modules/unicase/u32-casecoll-tests: New file.
22294         * tests/unicase/test-u32-casecoll.c: New file.
22295
22296         Tests for module 'unicase/u16-casecoll'.
22297         * modules/unicase/u16-casecoll-tests: New file.
22298         * tests/unicase/test-u16-casecoll.c: New file.
22299
22300         Tests for module 'unicase/u8-casecoll'.
22301         * modules/unicase/u8-casecoll-tests: New file.
22302         * tests/unicase/test-u8-casecoll.c: New file.
22303
22304         New module 'unicase/u32-casecoll'.
22305         * lib/unicase/u32-casecoll.c: New file.
22306         * modules/unicase/u32-casecoll: New file.
22307
22308         New module 'unicase/u16-casecoll'.
22309         * lib/unicase/u16-casecoll.c: New file.
22310         * modules/unicase/u16-casecoll: New file.
22311
22312         New module 'unicase/u8-casecoll'.
22313         * lib/unicase/u8-casecoll.c: New file.
22314         * lib/unicase/u-casecoll.h: New file.
22315         * modules/unicase/u8-casecoll: New file.
22316
22317         New module 'unicase/u32-casexfrm'.
22318         * lib/unicase/u32-casexfrm.c: New file.
22319         * modules/unicase/u32-casexfrm: New file.
22320
22321         New module 'unicase/u16-casexfrm'.
22322         * lib/unicase/u16-casexfrm.c: New file.
22323         * modules/unicase/u16-casexfrm: New file.
22324
22325         New module 'unicase/u8-casexfrm'.
22326         * lib/unicase/u8-casexfrm.c: New file.
22327         * lib/unicase/u-casexfrm.h: New file.
22328         * modules/unicase/u8-casexfrm: New file.
22329
22330         Tests for module 'unicase/u32-casecmp'.
22331         * modules/unicase/u32-casecmp-tests: New file.
22332         * tests/unicase/test-u32-casecmp.c: New file.
22333
22334         Tests for module 'unicase/u16-casecmp'.
22335         * modules/unicase/u16-casecmp-tests: New file.
22336         * tests/unicase/test-u16-casecmp.c: New file.
22337
22338         Tests for module 'unicase/u8-casecmp'.
22339         * modules/unicase/u8-casecmp-tests: New file.
22340         * tests/unicase/test-u8-casecmp.c: New file.
22341         * tests/unicase/test-casecmp.h: New file.
22342
22343         New module 'unicase/u32-casecmp'.
22344         * lib/unicase/u32-casecmp.c: New file.
22345         * modules/unicase/u32-casecmp: New file.
22346
22347         New module 'unicase/u16-casecmp'.
22348         * lib/unicase/u16-casecmp.c: New file.
22349         * modules/unicase/u16-casecmp: New file.
22350
22351         New module 'unicase/u8-casecmp'.
22352         * lib/unicase/u8-casecmp.c: New file.
22353         * lib/unicase/u-casecmp.h: New file.
22354         * modules/unicase/u8-casecmp: New file.
22355
22356         Tests for module 'unicase/u32-casefold'.
22357         * modules/unicase/u32-casefold-tests: New file.
22358         * tests/unicase/test-u32-casefold.c: New file.
22359
22360         Tests for module 'unicase/u16-casefold'.
22361         * modules/unicase/u16-casefold-tests: New file.
22362         * tests/unicase/test-u16-casefold.c: New file.
22363
22364         Tests for module 'unicase/u8-casefold'.
22365         * modules/unicase/u8-casefold-tests: New file.
22366         * tests/unicase/test-u8-casefold.c: New file.
22367
22368         New module 'unicase/u32-casefold'.
22369         * lib/unicase/u32-casefold.c: New file.
22370         * modules/unicase/u32-casefold: New file.
22371
22372         New module 'unicase/u16-casefold'.
22373         * lib/unicase/u16-casefold.c: New file.
22374         * modules/unicase/u16-casefold: New file.
22375
22376         New module 'unicase/u8-casefold'.
22377         * lib/unicase/u8-casefold.c: New file.
22378         * lib/unicase/u-casefold.h: New file.
22379         * modules/unicase/u8-casefold: New file.
22380
22381         New module 'unicase/tocasefold'.
22382         * lib/unicase/casefold.h: New file.
22383         * lib/unicase/tocasefold.c: New file.
22384         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
22385         * modules/unicase/tocasefold: New file.
22386
22387         Tests for module 'unicase/u32-totitle'.
22388         * modules/unicase/u32-totitle-tests: New file.
22389         * tests/unicase/test-u32-totitle.c: New file.
22390
22391         Tests for module 'unicase/u16-totitle'.
22392         * modules/unicase/u16-totitle-tests: New file.
22393         * tests/unicase/test-u16-totitle.c: New file.
22394
22395         Tests for module 'unicase/u8-totitle'.
22396         * modules/unicase/u8-totitle-tests: New file.
22397         * tests/unicase/test-u8-totitle.c: New file.
22398
22399         New module 'unicase/u32-totitle'.
22400         * lib/unicase/u32-totitle.c: New file.
22401         * modules/unicase/u32-totitle: New file.
22402
22403         New module 'unicase/u16-totitle'.
22404         * lib/unicase/u16-totitle.c: New file.
22405         * modules/unicase/u16-totitle: New file.
22406
22407         New module 'unicase/u8-totitle'.
22408         * lib/unicase/u8-totitle.c: New file.
22409         * lib/unicase/u-totitle.h: New file.
22410         * modules/unicase/u8-totitle: New file.
22411
22412         Tests for module 'unicase/u32-tolower'.
22413         * modules/unicase/u32-tolower-tests: New file.
22414         * tests/unicase/test-u32-tolower.c: New file.
22415
22416         Tests for module 'unicase/u16-tolower'.
22417         * modules/unicase/u16-tolower-tests: New file.
22418         * tests/unicase/test-u16-tolower.c: New file.
22419
22420         Tests for module 'unicase/u8-tolower'.
22421         * modules/unicase/u8-tolower-tests: New file.
22422         * tests/unicase/test-u8-tolower.c: New file.
22423
22424         New module 'unicase/u32-tolower'.
22425         * lib/unicase/u32-tolower.c: New file.
22426         * modules/unicase/u32-tolower: New file.
22427
22428         New module 'unicase/u16-tolower'.
22429         * lib/unicase/u16-tolower.c: New file.
22430         * modules/unicase/u16-tolower: New file.
22431
22432         New module 'unicase/u8-tolower'.
22433         * lib/unicase/u8-tolower.c: New file.
22434         * modules/unicase/u8-tolower: New file.
22435
22436         Tests for module 'unicase/u32-toupper'.
22437         * modules/unicase/u32-toupper-tests: New file.
22438         * tests/unicase/test-u32-toupper.c: New file.
22439
22440         Tests for module 'unicase/u16-toupper'.
22441         * modules/unicase/u16-toupper-tests: New file.
22442         * tests/unicase/test-u16-toupper.c: New file.
22443
22444         Tests for module 'unicase/u8-toupper'.
22445         * modules/unicase/u8-toupper-tests: New file.
22446         * tests/unicase/test-u8-toupper.c: New file.
22447
22448         New module 'unicase/u32-toupper'.
22449         * lib/unicase/u32-toupper.c: New file.
22450         * modules/unicase/u32-toupper: New file.
22451
22452         New module 'unicase/u16-toupper'.
22453         * lib/unicase/u16-toupper.c: New file.
22454         * modules/unicase/u16-toupper: New file.
22455
22456         New module 'unicase/u8-toupper'.
22457         * lib/unicase/u8-toupper.c: New file.
22458         * modules/unicase/u8-toupper: New file.
22459
22460         New module 'unicase/u32-casemap'.
22461         * lib/unicase/u32-casemap.c: New file.
22462         * modules/unicase/u32-casemap: New file.
22463
22464         New module 'unicase/u16-casemap'.
22465         * lib/unicase/u16-casemap.c: New file.
22466         * modules/unicase/u16-casemap: New file.
22467
22468         New module 'unicase/u8-casemap'.
22469         * lib/unicase/unicasemap.h: New file.
22470         * lib/unicase/u8-casemap.c: New file.
22471         * lib/unicase/u-casemap.h: New file.
22472         * modules/unicase/u8-casemap: New file.
22473
22474         New module 'unicase/special-casing'.
22475         * lib/unicase/special-casing.h: New file.
22476         * lib/unicase/special-casing.c: New file.
22477         * lib/unicase/special-casing-table.gperf: New file, generated by
22478         gen-uni-tables.c.
22479         * modules/unicase/special-casing: New file.
22480
22481         Tests for module 'unicase/locale-language'.
22482         * modules/unicase/locale-language-tests: New file.
22483         * tests/unicase/test-locale-language.sh: New file.
22484         * tests/unicase/test-locale-language.c: New file.
22485
22486         New module 'unicase/locale-language'.
22487         * lib/unicase/locale-language.c: New file.
22488         * lib/unicase/locale-languages.gperf: New file.
22489         * modules/unicase/locale-language: New file.
22490
22491         Generate more tables for case conversion and case folding.
22492         * lib/gen-uni-tables.c (SCC_*): New enum items.
22493         (struct special_casing_rule): New type.
22494         (casing_rules, num_casing_rules, allocated_casing_rules): New
22495         variables.
22496         (add_casing_rule, fill_casing_rules): New functions.
22497         (struct casefold_rule): New type.
22498         (casefolding_rules, num_casefolding_rules,
22499         allocated_casefolding_rules): New variables.
22500         (fill_casefolding_rules): New function.
22501         (unicode_casefold): New variable.
22502         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
22503         sort_casing_rules, output_casing_rules): New functions.
22504         (main): Accept to more arguments: SpecialCasing.txt and
22505         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
22506         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
22507         Output mapping for casefolding.
22508
22509         * lib/unicase.h: Include stdbool.h, uninorm.h.
22510         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
22511         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
22512         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
22513         arguments.
22514         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
22515         resultp arguments.
22516         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
22517         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
22518         resultp arguments.
22519         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
22520         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
22521         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
22522         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
22523         declarations.
22524         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
22525
22526 2009-03-08  Bruno Haible  <bruno@clisp.org>
22527
22528         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
22529         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
22530         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
22531         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
22532
22533 2009-03-07  Bruno Haible  <bruno@clisp.org>
22534
22535         Adjust u*_normcmp, u*_normcoll API.
22536         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
22537         u16_normcoll, u32_normcoll): Change failure conventions.
22538         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
22539         errno and return -1.
22540         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
22541
22542 2009-03-07  Bruno Haible  <bruno@clisp.org>
22543
22544         Tests for module 'uninorm/u32-normcoll'.
22545         * modules/uninorm/u32-normcoll-tests: New file.
22546         * tests/uninorm/test-u32-normcoll.c: New file.
22547
22548         Tests for module 'uninorm/u16-normcoll'.
22549         * modules/uninorm/u16-normcoll-tests: New file.
22550         * tests/uninorm/test-u16-normcoll.c: New file.
22551
22552         Tests for module 'uninorm/u8-normcoll'.
22553         * modules/uninorm/u8-normcoll-tests: New file.
22554         * tests/uninorm/test-u8-normcoll.c: New file.
22555
22556 2009-03-07  Bruno Haible  <bruno@clisp.org>
22557
22558         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
22559         tests/uninorm/test-u32-normcmp.c.
22560         * tests/uninorm/test-u32-normcmp.c: Include it.
22561         (test_nonascii): New function, extracted from main. Add some more
22562         tests.
22563         (main): Invoke test_ascii and test_nonascii.
22564         * modules/uninorm/u32-normcmp-tests (Files): Add
22565         tests/uninorm/test-u32-normcmp.h.
22566         (Depends-on): Remove uninorm/u32-normcmp.
22567
22568         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
22569         tests/uninorm/test-u16-normcmp.c.
22570         * tests/uninorm/test-u16-normcmp.c: Include it.
22571         (test_nonascii): New function, extracted from main. Add some more
22572         tests.
22573         (main): Invoke test_ascii and test_nonascii.
22574         * modules/uninorm/u16-normcmp-tests (Files): Add
22575         tests/uninorm/test-u16-normcmp.h.
22576         (Depends-on): Remove uninorm/u16-normcmp.
22577
22578         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
22579         tests/uninorm/test-u8-normcmp.c.
22580         * tests/uninorm/test-u8-normcmp.c: Include it.
22581         (test_nonascii): New function, extracted from main. Add some more
22582         tests.
22583         (main): Invoke test_ascii and test_nonascii.
22584         * modules/uninorm/u8-normcmp-tests (Files): Add
22585         tests/uninorm/test-u8-normcmp.h.
22586         (Depends-on): Remove uninorm/u8-normcmp.
22587
22588 2009-03-07  Bruno Haible  <bruno@clisp.org>
22589
22590         New module 'uninorm/u32-normcoll'.
22591         * lib/uninorm/u32-normcoll.c: New file.
22592         * modules/uninorm/u32-normcoll: New file.
22593
22594         New module 'uninorm/u16-normcoll'.
22595         * lib/uninorm/u16-normcoll.c: New file.
22596         * modules/uninorm/u16-normcoll: New file.
22597
22598         New module 'uninorm/u8-normcoll'.
22599         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
22600         declarations.
22601         * lib/uninorm/u8-normcoll.c: New file.
22602         * lib/uninorm/u-normcoll.h: New file.
22603         * modules/uninorm/u8-normcoll: New file.
22604
22605         New module 'uninorm/u32-normxfrm'.
22606         * lib/uninorm/u32-normxfrm.c: New file.
22607         * modules/uninorm/u32-normxfrm: New file.
22608
22609         New module 'uninorm/u16-normxfrm'.
22610         * lib/uninorm/u16-normxfrm.c: New file.
22611         * modules/uninorm/u16-normxfrm: New file.
22612
22613         New module 'uninorm/u8-normxfrm'.
22614         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
22615         declarations.
22616         * lib/uninorm/u8-normxfrm.c: New file.
22617         * lib/uninorm/u-normxfrm.h: New file.
22618         * modules/uninorm/u8-normxfrm: New file.
22619
22620 2009-03-07  Bruno Haible  <bruno@clisp.org>
22621
22622         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
22623         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
22624         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
22625
22626 2009-03-07  Bruno Haible  <bruno@clisp.org>
22627
22628         New module 'memxfrm'.
22629         * lib/memxfrm.h: New file.
22630         * lib/memxfrm.c: New file.
22631         * modules/memxfrm: New file.
22632
22633 2009-03-07  Bruno Haible  <bruno@clisp.org>
22634
22635         New module 'memcmp2'.
22636         * lib/memcmp2.h: New file.
22637         * lib/memcmp2.c: New file.
22638         * modules/memcmp2: New file.
22639
22640 2009-03-07  Bruno Haible  <bruno@clisp.org>
22641
22642         Tests for module 'uninorm/decomposing-form'.
22643         * modules/uninorm/decomposing-form-tests: New file.
22644         * tests/uninorm/test-decomposing-form.c: New file.
22645
22646         New module 'uninorm/decomposing-form'.
22647         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
22648         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
22649         Add 'decomposing_variant' field.
22650         * lib/uninorm/decomposing-form.c: New file.
22651         * lib/uninorm/nfc.c (uninorm_nfc): Update.
22652         * lib/uninorm/nfd.c (uninorm_nfd): Update.
22653         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
22654         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
22655         * modules/uninorm/decomposing-form: New file.
22656         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
22657         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
22658
22659 2009-03-07  Bruno Haible  <bruno@clisp.org>
22660
22661         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
22662         strings.
22663
22664 2009-03-06  Bruno Haible  <bruno@clisp.org>
22665
22666         Tests for module 'uninorm/u32-normcmp'.
22667         * tests/uninorm/test-u32-normcmp.c: New file.
22668         * modules/uninorm/u32-normcmp-tests: New file.
22669
22670         Tests for module 'uninorm/u16-normcmp'.
22671         * tests/uninorm/test-u16-normcmp.c: New file.
22672         * modules/uninorm/u16-normcmp-tests: New file.
22673
22674         Tests for module 'uninorm/u8-normcmp'.
22675         * tests/uninorm/test-u8-normcmp.c: New file.
22676         * modules/uninorm/u8-normcmp-tests: New file.
22677
22678         New module 'uninorm/u32-normcmp'.
22679         * lib/uninorm/u32-normcmp.c: New file.
22680         * modules/uninorm/u32-normcmp: New file.
22681
22682         New module 'uninorm/u16-normcmp'.
22683         * lib/uninorm/u16-normcmp.c: New file.
22684         * modules/uninorm/u16-normcmp: New file.
22685
22686         New module 'uninorm/u8-normcmp'.
22687         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
22688         declarations.
22689         * lib/uninorm/u8-normcmp.c: New file.
22690         * lib/uninorm/u-normcmp.h: New file.
22691         * modules/uninorm/u8-normcmp: New file.
22692
22693 2009-03-06  Bruno Haible  <bruno@clisp.org>
22694
22695         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
22696         Reported by Eric Blake.
22697
22698 2009-03-06  Eric Blake  <ebb9@byu.net>
22699             Bruno Haible  <bruno@clisp.org>
22700
22701         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
22702         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
22703         condition.
22704         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
22705         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
22706         condition.
22707         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
22708
22709 2009-03-06  Eric Blake  <ebb9@byu.net>
22710
22711         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
22712         to avoid compiler warnings.
22713         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
22714
22715 2009-03-05  Bruno Haible  <bruno@clisp.org>
22716
22717         * tests/test-ftell.c (main): Disable test beyond end of file on
22718         FreeMiNT.
22719         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
22720
22721 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
22722
22723         * lib/filevercmp.c: Move hidden files up in ordering.
22724         * tests/test-filevercmp.c: Add tests for hidden files.
22725
22726 2009-03-04  Bruno Haible  <bruno@clisp.org>
22727
22728         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
22729         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
22730         AM_CFLAGS.
22731         Reported by Simon Josefsson.
22732
22733 2009-03-03  Bruno Haible  <bruno@clisp.org>
22734
22735         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
22736         Reported by Simon Josefsson.
22737
22738         * doc/ld-version-script.texi: Update node reference.
22739
22740 2009-03-03  Bruno Haible  <bruno@clisp.org>
22741
22742         * modules/visibility (License): Change to 'unlimited'.
22743         Suggested by Simon Josefsson.
22744
22745 2009-03-03  Jim Meyering  <meyering@redhat.com>
22746
22747         unlinkdir: cannot_unlink_dir may modify process state
22748         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
22749         it's neither thread-safe nor appropriate for use in a library.
22750
22751 2009-03-03  Eric Blake  <ebb9@byu.net>
22752
22753         test-closein: silence test under Darwin
22754         * tests/test-closein.sh: Ignore stderr from cat, since we don't
22755         care if it dies from EPIPE or EBADF.
22756
22757 2009-03-03  Bruno Haible  <bruno@clisp.org>
22758
22759         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
22760         earlier.
22761         * doc/visibility.texi: Fix @node and @section.
22762
22763 2009-03-03  Simon Josefsson  <simon@josefsson.org>
22764
22765         * doc/gnulib.texi: Link to sections for ld version script and
22766         visibility.
22767         * doc/visibility.texi: Add @node and @section.
22768         * modules/ld-version-script: New module.
22769         * m4/ld-version-script.m4: New file.
22770         * doc/ld-version-script.texi: New file.
22771
22772 2009-03-02  David Lutterkort  <lutter@redhat.com>
22773
22774         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
22775         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
22776
22777 2009-03-02  Bruno Haible  <bruno@clisp.org>
22778
22779         * doc/visibility.texi: Mention libtool's -export-symbols option.
22780
22781 2009-03-02  Jim Meyering  <meyering@redhat.com>
22782
22783         announce-gen: new option: --no-print-checksums
22784         * build-aux/announce-gen (usage): Describe it.
22785         (print_checksums): Print a newline here, not in the [*] footnote.
22786         (main): Honor it.
22787
22788 2009-03-01  Bruno Haible  <bruno@clisp.org>
22789
22790         Use socklen_t in the native Windows replacements prototypes.
22791         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
22792         instead of 'int'.
22793         * lib/getsockopt.c (rpl_getsockopt): Likewise.
22794         * lib/setsockopt.c (rpl_setsockopt): Likewise.
22795         * modules/getsockopt (Depends-on): Add socklen.
22796         * modules/setsockopt (Depends-on): Add socklen.
22797
22798 2009-03-01  Bruno Haible  <bruno@clisp.org>
22799
22800         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
22801         least 4.2.
22802
22803 2009-03-01  Eric Blake  <ebb9@byu.net>
22804             Bruno Haible  <bruno@clisp.org>
22805
22806         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
22807         error messages.
22808         * lib/wait-process.c (wait_subprocess): Omit error message about
22809         deadly signal sent to the child of termsigp != NULL.
22810
22811 2009-03-01  Eric Blake  <ebb9@byu.net>
22812
22813         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
22814
22815 2009-03-01  Bruno Haible  <bruno@clisp.org>
22816
22817         Avoid a gcc warning.
22818         * tests/test-sched.c (b): Make global.
22819         Reported by Eric Blake.
22820
22821 2009-01-19  Martin Lambers  <marlam@marlam.de>
22822
22823         Provide POSIX semantics for socket timeout options on W32.
22824         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
22825         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
22826         * modules/setsockopt: Depend on sys_time module for struct timeval.
22827         * modules/getsockopt: Depend on sys_time module for struct timeval.
22828
22829 2009-03-01  Simon Josefsson  <simon@josefsson.org>
22830
22831         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
22832         __USE_GNU, for consistency with netdb.in.h.
22833         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
22834
22835 2009-03-01  Bruno Haible  <bruno@clisp.org>
22836
22837         More support for FreeMiNT.
22838         * lib/fseeko.c (rpl_fseeko): Complete last commit.
22839         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
22840
22841 2009-03-01  Bruno Haible  <bruno@clisp.org>
22842
22843         More support for FreeMiNT.
22844         * lib/fpurge.c (fpurge): Correct last commit.
22845         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
22846
22847 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22848
22849         Fix unportable awk script in vc-list-files.
22850         * build-aux/vc-list-files: In the replacement awk script, use
22851         substr with a second argument of 1, not zero.
22852         Report by Simon Josefsson.
22853
22854 2009-02-28  Bruno Haible  <bruno@clisp.org>
22855
22856         More support for FreeMiNT.
22857         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
22858         to FreeMiNT today.
22859         * lib/fwriting.c (fwriting): Likewise.
22860         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
22861
22862 2009-02-28  Bruno Haible  <bruno@clisp.org>
22863
22864         * tests/test-freadseek.c (main): Disable test beyond end of file on
22865         FreeMiNT.
22866         * tests/test-ftello.c (main): Likewise.
22867         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
22868
22869 2009-02-28  Bruno Haible  <bruno@clisp.org>
22870
22871         Add tentative support for FreeMiNT.
22872         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
22873         * lib/fpurge.c (fpurge): Likewise.
22874         * lib/freadable.c (freadable): Likewise.
22875         * lib/freading.c (freading): Likewise.
22876         * lib/freadptr.c (freadptr): Likewise.
22877         * lib/freadseek.c (freadptrinc): Likewise.
22878         * lib/fseeko.c (rpl_fseeko): Likewise.
22879         * lib/fseterr.c (fseterr): Likewise.
22880         * lib/fwritable.c (fwritable): Likewise.
22881         * lib/fwriting.c (fwriting): Likewise.
22882         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
22883         Hourihane.
22884         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
22885
22886 2009-02-28  Bruno Haible  <bruno@clisp.org>
22887
22888         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
22889         SIGCHLD.
22890         Reported by Jim Meyering.
22891
22892 2009-02-28  Bruno Haible  <bruno@clisp.org>
22893
22894         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
22895         Mention the results of these tests on various platforms.
22896         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
22897         order.
22898         * doc/posix-functions/printf.texi: Likewise.
22899         * doc/posix-functions/snprintf.texi: Likewise.
22900         * doc/posix-functions/sprintf.texi: Likewise.
22901         * doc/posix-functions/vfprintf.texi: Likewise.
22902         * doc/posix-functions/vprintf.texi: Likewise.
22903         * doc/posix-functions/vsnprintf.texi: Likewise.
22904         * doc/posix-functions/vsprintf.texi: Likewise.
22905         * doc/glibc-functions/obstack_printf.texi: Likewise.
22906         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
22907
22908 2009-02-28  Bruno Haible  <bruno@clisp.org>
22909
22910         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
22911         Reported by Loïc Minier <lool@dooz.org>.
22912
22913 2009-02-27  Bruno Haible  <bruno@clisp.org>
22914
22915         * gnulib-tool (func_import): Make the sed expression used to create the
22916         sed script for updating the .gitignore file POSIX compliant.
22917         Reported by Eric Blake.
22918
22919 2009-02-27  Bruno Haible  <bruno@clisp.org>
22920
22921         * gnulib-tool (sed): Don't alias as "sed --posix".
22922         Reported by Eric Blake.
22923
22924 2009-02-27  Bruno Haible  <bruno@clisp.org>
22925
22926         Avoid test link errors.
22927         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
22928         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
22929         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
22930         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
22931         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
22932
22933 2009-02-27  Bruno Haible  <bruno@clisp.org>
22934
22935         Avoid spurious "(cached)" in configure output.
22936         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
22937         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
22938         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
22939         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
22940         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
22941         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
22942         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
22943         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
22944         Reported by Eric Blake.
22945
22946 2009-02-27  Eric Blake  <ebb9@byu.net>
22947
22948         printf: fix regression in previous patch
22949         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
22950
22951 2009-02-27  Bruno Haible  <bruno@clisp.org>
22952
22953         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
22954         value.
22955         * lib/stdint.in.h: Likewise.
22956         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
22957
22958 2009-02-27  Eric Blake  <ebb9@byu.net>
22959
22960         doc: mention more functions added in cygwin 1.7.0
22961         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
22962         addition.
22963         * doc/posix-functions/open_wmemstream.texi: Likewise.
22964         * doc/posix-functions/wcsnlen.texi: Likewise.
22965         * doc/posix-functions/wcsnrtombs.texi: Likewise.
22966         * doc/posix-functions/wcstod.texi: Likewise.
22967         * doc/posix-functions/wcstof.texi: Likewise.
22968         * doc/posix-functions/wcstoimax.texi: Likewise.
22969         * doc/posix-functions/wcstok.texi: Likewise.
22970         * doc/posix-functions/wcstoumax.texi: Likewise.
22971
22972         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
22973         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
22974         * doc/posix-functions/fprintf.texi: Update.
22975         * doc/posix-functions/printf.texi: Update.
22976         * doc/posix-functions/snprintf.texi: Update.
22977         * doc/posix-functions/sprintf.texi: Update.
22978         * doc/posix-functions/vfprintf.texi: Update.
22979         * doc/posix-functions/vprintf.texi: Update.
22980         * doc/posix-functions/vsnprintf.texi: Update.
22981         * doc/posix-functions/vsprintf.texi: Update.
22982         * doc/glibc-functions/obstack_printf.texi: Update.
22983         * doc/glibc-functions/obstack_vprintf.texi: Update.
22984
22985 2009-02-26  Eric Blake  <ebb9@byu.net>
22986
22987         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
22988         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
22989         compilation bug by using runtime conversion.
22990         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
22991         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
22992         * modules/ceill-tests (Files): Use nan.h.
22993         * modules/floorl-tests (Files): Likewise.
22994         * modules/frexpl-tests (Files): Likewise.
22995         * modules/isnanl-tests (Files): Likewise.
22996         * modules/ldexpl-tests (Files): Likewise.
22997         * modules/roundl-tests (Files): Likewise.
22998         * modules/truncl-tests (Files): Likewise.
22999         * tests/test-ceill.c (main): Use a working NaN.
23000         * tests/test-floorl.c (main): Likewise.
23001         * tests/test-frexpl.c (main): Likewise.
23002         * tests/test-isnan.c (test_long_double): Likewise.
23003         * tests/test-isnanl.h (main): Likewise.
23004         * tests/test-ldexpl.h (main): Likewise.
23005         * tests/test-roundl.h (main): Likewise.
23006         * tests/test-truncl.h (main): Likewise.
23007         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
23008
23009 2009-02-26  Eric Blake  <ebb9@byu.net>
23010             Bruno Haible  <bruno@clisp.org>
23011
23012         Work around a *printf bug with %ls on Solaris.
23013         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
23014         precision is specified, sprintf stops converting the wide string
23015         argument when the number of bytes that have been produced by this
23016         conversion equals or exceeds the precision.
23017         * doc/posix-functions/fprintf.texi: Update.
23018         * doc/posix-functions/printf.texi: Update.
23019         * doc/posix-functions/snprintf.texi: Update.
23020         * doc/posix-functions/sprintf.texi: Update.
23021         * doc/posix-functions/vfprintf.texi: Update.
23022         * doc/posix-functions/vprintf.texi: Update.
23023         * doc/posix-functions/vsnprintf.texi: Update.
23024         * doc/posix-functions/vsprintf.texi: Update.
23025         * doc/glibc-functions/obstack_printf.texi: Update.
23026         * doc/glibc-functions/obstack_vprintf.texi: Update.
23027
23028 2009-02-26  Eric Blake  <ebb9@byu.net>
23029
23030         stdlib: favor compiler check of random.h
23031         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
23032         to avoid an ObjC random.h installed by Swarm.
23033
23034 2009-02-26  Bruno Haible  <bruno@clisp.org>
23035
23036         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
23037         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
23038         Reported by Gary V. Vaughan <gary@gnu.org>.
23039
23040 2009-02-26  Bruno Haible  <bruno@clisp.org>
23041
23042         Fix *printf behaviour regarding the %ls directive.
23043         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
23044         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
23045         NEED_PRINTF_DIRECTIVE_LS.
23046         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
23047         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
23048         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
23049         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
23050         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
23051         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
23052         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
23053         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
23054         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
23055         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
23056         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
23057         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
23058         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
23059         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
23060         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
23061         * doc/posix-functions/fprintf.texi: Update.
23062         * doc/posix-functions/printf.texi: Update.
23063         * doc/posix-functions/snprintf.texi: Update.
23064         * doc/posix-functions/sprintf.texi: Update.
23065         * doc/posix-functions/vfprintf.texi: Update.
23066         * doc/posix-functions/vprintf.texi: Update.
23067         * doc/posix-functions/vsnprintf.texi: Update.
23068         * doc/posix-functions/vsprintf.texi: Update.
23069         * doc/glibc-functions/obstack_printf.texi: Update.
23070         * doc/glibc-functions/obstack_vprintf.texi: Update.
23071         Reported by Eric Blake.
23072
23073 2009-02-25  Bruno Haible  <bruno@clisp.org>
23074
23075         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
23076         with known value.
23077         Reported by Gary V. Vaughan <gary@gnu.org>.
23078
23079 2009-02-25  Bruno Haible  <bruno@clisp.org>
23080
23081         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
23082         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
23083         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
23084         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
23085         Reported by Gary V. Vaughan <gary@gnu.org>.
23086
23087 2009-02-25  Bruno Haible  <bruno@clisp.org>
23088
23089         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
23090         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
23091         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
23092         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
23093         Reported by Gary V. Vaughan <gary@gnu.org>.
23094
23095 2009-02-25  Eric Blake  <ebb9@byu.net>
23096
23097         tests: skip fseek/ftell tests if ungetc is broken
23098         * m4/ungetc.m4: New file.
23099         * modules/fseek-tests: Split test, so ungetc dependency is
23100         separate from rest of test.
23101         * modules/fseeko-tests: Likewise.
23102         * modules/ftell-tests: Likewise.
23103         * modules/ftello-tests: Likewise.
23104         * tests/test-fseek.c (main): Isolate ungetc dependency.
23105         * tests/test-fseeko.c (main): Likewise.
23106         * tests/test-ftell.c (main): Likewise.
23107         * tests/test-ftello.c (main): Likewise.
23108         * tests/test-fseek2.sh: New file.
23109         * tests/test-fseeko2.sh: Likewise.
23110         * tests/test-ftell2.sh: Likewise.
23111         * tests/test-ftello2.sh: Likewise.
23112
23113 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
23114
23115         test-getaddrinfo: fix usage of skip return code 77
23116         * tests/test-gettaddrinfo.c: Return skip code 77 only
23117         for first occurance of skip (4x77 is not 77)
23118
23119 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
23120
23121         strtod: avoid C99 decl-after-statement
23122         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
23123
23124 2009-02-24  Eric Blake  <ebb9@byu.net>
23125
23126         strtod: detect HP-UX 11.31 bug
23127         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
23128         Reported by Gary V. Vaughan.
23129
23130 2009-02-23  Bruno Haible  <bruno@clisp.org>
23131
23132         Fix invalid read past end of memory block.
23133         * lib/vasnprintf.c (DCHAR_SET): Define.
23134         (local_wcslen): Define only when needed.
23135         (local_strnlen, local_wcsnlen): New functions.
23136         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
23137         directives that involve a conversion ourselves.
23138         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
23139         wcsnlen, mbrtowc, wcrtomb.
23140         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
23141         * tests/test-vasprintf-posix.c (test_function): Likewise.
23142         * tests/test-snprintf-posix.h (test_function): Likewise.
23143         * tests/test-sprintf-posix.h (test_function): Likewise.
23144         Reported by Ben Pfaff <blp@cs.stanford.edu>.
23145
23146 2009-02-22  Bruno Haible  <bruno@clisp.org>
23147
23148         Implement new clarified decomposition of Hangul syllables.
23149         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
23150         of type LTV, return only a pairwise decomposition.
23151         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
23152         Likewise.
23153         * tests/uninorm/test-decomposition.c (main): Updated expected result.
23154         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
23155         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
23156
23157 2009-02-22  Bruno Haible  <bruno@clisp.org>
23158
23159         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
23160         zero-length results and shrink excess allocated memory.
23161         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
23162         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
23163         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
23164         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
23165         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
23166         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
23167         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
23168         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
23169         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
23170         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
23171         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
23172         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
23173
23174 2009-02-21  Bruno Haible  <bruno@clisp.org>
23175
23176         * doc/gnulib.texi: Include safe-alloc.texi earlier.
23177         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
23178         spaces after a period. Put a space between a macro name and its
23179         argument list. Trivial rewordings.
23180         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
23181         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
23182         (main): Return 0 explicitly.
23183
23184 2009-02-21  Bruno Haible  <bruno@clisp.org>
23185
23186         Tests for module 'uninorm/filter'.
23187         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
23188         * modules/uninorm/filter-tests: New file.
23189
23190         New module 'uninorm/filter'.
23191         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
23192         uninorm_filter_flush, uninorm_filter_free): New declarations.
23193         * lib/uninorm/uninorm-filter.c: New file.
23194         * modules/uninorm/filter: New file.
23195
23196 2009-02-21  Bruno Haible  <bruno@clisp.org>
23197
23198         Tests for module 'uninorm/nfkc'.
23199         * tests/uninorm/test-nfkc.c: New file.
23200         * tests/uninorm/test-u8-nfkc.c: New file.
23201         * tests/uninorm/test-u16-nfkc.c: New file.
23202         * tests/uninorm/test-u32-nfkc.c: New file.
23203         * tests/uninorm/test-u32-nfkc-big.sh: New file.
23204         * tests/uninorm/test-u32-nfkc-big.c: New file.
23205         * modules/uninorm/nfkc-tests: New file.
23206
23207         New module 'uninorm/nfkc'.
23208         * lib/uninorm/nfkc.c: New file.
23209         * modules/uninorm/nfkc: New file.
23210
23211         Tests for module 'uninorm/nfkd'.
23212         * tests/uninorm/test-nfkd.c: New file.
23213         * tests/uninorm/test-u8-nfkd.c: New file.
23214         * tests/uninorm/test-u16-nfkd.c: New file.
23215         * tests/uninorm/test-u32-nfkd.c: New file.
23216         * tests/uninorm/test-u32-nfkd-big.sh: New file.
23217         * tests/uninorm/test-u32-nfkd-big.c: New file.
23218         * modules/uninorm/nfkd-tests: New file.
23219
23220         New module 'uninorm/nfkd'.
23221         * lib/uninorm/nfkd.c: New file.
23222         * modules/uninorm/nfkd: New file.
23223
23224         Tests for module 'uninorm/nfc'.
23225         * tests/uninorm/test-nfc.c: New file.
23226         * tests/uninorm/test-u8-nfc.c: New file.
23227         * tests/uninorm/test-u16-nfc.c: New file.
23228         * tests/uninorm/test-u32-nfc.c: New file.
23229         * tests/uninorm/test-u32-nfc-big.sh: New file.
23230         * tests/uninorm/test-u32-nfc-big.c: New file.
23231         * modules/uninorm/nfc-tests: New file.
23232
23233         New module 'uninorm/nfc'.
23234         * lib/uninorm/nfc.c: New file.
23235         * modules/uninorm/nfc: New file.
23236
23237         Tests for module 'uninorm/nfd'.
23238         * tests/uninorm/test-nfd.c: New file.
23239         * tests/uninorm/test-u8-nfd.c: New file.
23240         * tests/uninorm/test-u16-nfd.c: New file.
23241         * tests/uninorm/test-u32-nfd.c: New file.
23242         * tests/uninorm/test-u32-nfd-big.sh: New file.
23243         * tests/uninorm/test-u32-nfd-big.c: New file.
23244         * tests/uninorm/test-u32-normalize-big.h: New file.
23245         * tests/uninorm/test-u32-normalize-big.c: New file.
23246         * tests/uninorm/NormalizationTest.txt: New file, created from
23247         Unicode 5.1.0 NormalizationTest.txt.
23248         * modules/uninorm/nfd-tests: New file.
23249
23250         New module 'uninorm/nfd'.
23251         * lib/uninorm/nfd.c: New file.
23252         * modules/uninorm/nfd: New file.
23253
23254         New module 'uninorm/u32-normalize'.
23255         * lib/uninorm/u32-normalize.c: New file.
23256         * modules/uninorm/u32-normalize: New file.
23257
23258         New module 'uninorm/u16-normalize'.
23259         * lib/uninorm/u16-normalize.c: New file.
23260         * modules/uninorm/u16-normalize: New file.
23261
23262         New module 'uninorm/u8-normalize'.
23263         * lib/uninorm/u8-normalize.c: New file.
23264         * lib/uninorm/normalize-internal.h: New file.
23265         * lib/uninorm/u-normalize-internal.h: New file.
23266         * modules/uninorm/u8-normalize: New file.
23267
23268         New module 'uninorm/decompose-internal'.
23269         * lib/uninorm/decompose-internal.c: New file.
23270         * modules/uninorm/decompose-internal: New file.
23271
23272         Tests for module 'uninorm/composition'.
23273         * tests/uninorm/test-composition.c: New file.
23274         * modules/uninorm/composition-tests: New file.
23275
23276         New module 'uninorm/composition'.
23277         * lib/uninorm/composition.c: New file.
23278         * lib/uninorm/composition-table.gperf: New file, generated by
23279         gen-uni-tables.
23280         * modules/uninorm/composition: New file.
23281
23282         Tests for module 'uninorm/compat-decomposition'.
23283         * tests/uninorm/test-compat-decomposition.c: New file.
23284         * modules/uninorm/compat-decomposition-tests: New file.
23285
23286         New module 'uninorm/compat-decomposition'.
23287         * lib/uninorm/decompose-internal.h: New file.
23288         * lib/uninorm/compat-decomposition.c: New file.
23289         * modules/uninorm/compat-decomposition: New file.
23290
23291         Tests for module 'uninorm/canonical-decomposition'.
23292         * tests/uninorm/test-canonical-decomposition.c: New file.
23293         * modules/uninorm/canonical-decomposition-tests: New file.
23294
23295         New module 'uninorm/canonical-decomposition'.
23296         * lib/uninorm/canonical-decomposition.c: New file.
23297         * modules/uninorm/canonical-decomposition: New file.
23298
23299         Tests for module 'uninorm/decomposition'.
23300         * tests/uninorm/test-decomposition.c: New file.
23301         * modules/uninorm/decomposition-tests: New file.
23302
23303         New module 'uninorm/decomposition'.
23304         * lib/uninorm/decomposition.c: New file.
23305         * modules/uninorm/decomposition: New file.
23306
23307         New module 'uninorm/decomposition-table'.
23308         * lib/uninorm/decomposition-table.h: New file.
23309         * lib/uninorm/decomposition-table.c: New file.
23310         * lib/uninorm/decomposition-table1.h: New file, generated by
23311         gen-uni-tables.
23312         * lib/uninorm/decomposition-table2.h: New file, generated by
23313         gen-uni-tables.
23314         * modules/uninorm/decomposition-table: New file.
23315
23316         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
23317         (UC_DECOMP_*): New enumeration items.
23318         (get_decomposition): New function.
23319         (struct decomp_table): New type.
23320         (output_decomposition, output_decomposition_tables): New functions.
23321         (unicode_composition_exclusions): New variable.
23322         (fill_composition_exclusions, debug_output_composition_tables): New
23323         functions.
23324         (main): Accept one more argument. Invoke fill_composition_exclusions.
23325         Output decomposition and composition tables.
23326
23327         New module 'uninorm/base'.
23328         * lib/uninorm.h: New file.
23329         * lib/unictype.h: Update comment.
23330         * modules/uninorm/base: New file.
23331
23332 2009-02-21  David Lutterkort  <lutter@redhat.com>
23333
23334         Tests for module 'safe-alloc'.
23335         * tests/test-safe-alloc.c: New file.
23336         * modules/safe-alloc-tests: New file.
23337
23338         New module 'safe-alloc'.
23339         * lib/safe-alloc.h: New file.
23340         * lib/safe-alloc.c: New file.
23341         * m4/safe-alloc.m4: New file.
23342         * modules/safe-alloc: New file.
23343         * doc/safe-alloc.texi: New file.
23344         * doc/gnulib.texi: Include it.
23345         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
23346         safe-alloc.
23347
23348 2009-02-18  Bruno Haible  <bruno@clisp.org>
23349
23350         Fix link error on non-glibc systems.
23351         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
23352         variable.
23353         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
23354
23355 2009-02-18  Jim Meyering  <meyering@redhat.com>
23356
23357         fts: avoid used-uninitialized error due to recent change
23358         * lib/fts.c (fts_read): Guard uses of the new member,
23359         parent->fts_n_dirs_remaining, since it's not relevant for
23360         the parent of a directory specified on the command-line.
23361
23362 2009-02-17  James Youngman  <jay@gnu.org>
23363             Bruno Haible  <bruno@clisp.org>
23364
23365         * m4/include_next.m4: Reformulate comment.
23366
23367 2009-02-16  Jim Meyering  <meyering@redhat.com>
23368
23369         fts: add #if guards so that the fts_lgpl module still builds
23370         * lib/fts.c: Guard just-added hash-table-using parts with
23371         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
23372         Reported by Simon Josefsson.
23373
23374 2009-02-15  Bruno Haible  <bruno@clisp.org>
23375
23376         * modules/array-mergesort-tests: New file.
23377         * tests/test-array-mergesort.c: New file.
23378
23379         New module 'array-mergesort'.
23380         * modules/array-mergesort: New file.
23381         * lib/array-mergesort.h: New file.
23382
23383 2009-02-15  Bruno Haible  <bruno@clisp.org>
23384
23385         Fix 2009-02-07 commit.
23386         * lib/gen-uni-tables.c (output_predicate, output_category,
23387         output_combclass, output_bidi_category, output_decimal_digit,
23388         output_digit, output_numeric, output_mirror, output_scripts,
23389         output_ident_category, output_simple_mapping): Fix format directives.
23390         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
23391
23392 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
23393
23394         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
23395         fixes are available from IBM.
23396
23397 2009-02-13  Jim Meyering  <meyering@redhat.com>
23398
23399         fts: arrange not to stat non-directories in more cases
23400         This makes GNU find (when it doesn't need to stat each file)
23401         *much* more efficient at traversing reiserfs file systems.
23402         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
23403         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
23404         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
23405         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
23406         (leaf_optimization_applies): New function.
23407         (LCO_hash, LCO_compare): New helper functions.
23408         (link_count_optimize_ok): New function.
23409         (fts_stat): Initialize new member (if dir).
23410         (fts_read): Decrement parent's fts_n_dirs_remaining count if
23411         we've just stat'ed a directory.  Skip the stat call when possible.
23412         ---
23413         Note this AFS-related exchange:
23414         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
23415         and note find's pioctl call in find/fstype.c.
23416         But that is necessary only if you want to enable the
23417         optimization for AFS, and for now, I don't.
23418
23419         fts: move a function definition "up" (no semantic change)
23420         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
23421         "up" to precede upcoming use of a related function.
23422
23423 2009-02-11  Jim Meyering  <meyering@redhat.com>
23424
23425         fts: correct internal computation of nlinks (optimization-related)
23426         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
23427         whether the current entry is a directory, so don't test it.
23428
23429 2009-02-10  Bruno Haible  <bruno@clisp.org>
23430
23431         Tests for module 'uniwbrk/ulc-wordbreaks'.
23432         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
23433         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
23434         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
23435
23436         Tests for module 'uniwbrk/u32-wordbreaks'.
23437         * modules/uniwbrk/u32-wordbreaks-tests: New file.
23438         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
23439
23440         Tests for module 'uniwbrk/u16-wordbreaks'.
23441         * modules/uniwbrk/u16-wordbreaks-tests: New file.
23442         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
23443
23444         Tests for module 'uniwbrk/u8-wordbreaks'.
23445         * modules/uniwbrk/u8-wordbreaks-tests: New file.
23446         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
23447
23448 2009-02-10  Bruno Haible  <bruno@clisp.org>
23449
23450         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
23451         property.
23452         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
23453         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
23454         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
23455
23456 2009-02-10  Simon Josefsson  <simon@josefsson.org>
23457
23458         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
23459         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
23460
23461 2009-02-10  Bruno Haible  <bruno@clisp.org>
23462
23463         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
23464         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
23465         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
23466         * lib/unilbrk/u8-possible-linebreaks.c: Update.
23467         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
23468         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
23469
23470 2009-02-09  Simon Josefsson  <simon@josefsson.org>
23471
23472         * lib/sockets.h (gl_fd_to_handle): New function.
23473
23474         * tests/test-sockets.c: Call gl_fd_to_handle.
23475
23476 2009-02-09  Bruno Haible  <bruno@clisp.org>
23477
23478         * doc/havelib.texi: Document the conventions on bi-arch systems.
23479
23480 2009-02-08  Bruno Haible  <bruno@clisp.org>
23481
23482         Document the AC_LIB_LINKFLAGS macro.
23483         * doc/havelib.texi: New file, mostly written on 2005-05-24.
23484         * doc/gnulib.texi: Include it.
23485
23486 2009-02-08  Bruno Haible  <bruno@clisp.org>
23487
23488         Fix wrong order of sections, compared to TOC.
23489         * doc/gnulib.texi: Include relocatable-maint.texi after the
23490         "Regular expressions" node, not before.
23491
23492 2009-02-08  Bruno Haible  <bruno@clisp.org>
23493
23494         Tests for module 'unicase/totitle'.
23495         * modules/unicase/totitle-tests: New file.
23496
23497         Tests for module 'unicase/tolower'.
23498         * modules/unicase/tolower-tests: New file.
23499
23500         Tests for module 'unicase/toupper'.
23501         * modules/unicase/toupper-tests: New file.
23502         * tests/unicase/test-mapping-part1.h: New file.
23503         * tests/unicase/test-mapping-part2.h: New file.
23504
23505         New module 'unicase/totitle'.
23506         * modules/unicase/totitle: New file.
23507         * lib/unicase/totitle.c: New file.
23508
23509         New module 'unicase/tolower'.
23510         * modules/unicase/tolower: New file.
23511         * lib/unicase/tolower.c: New file.
23512
23513         New module 'unicase/toupper'.
23514         * modules/unicase/toupper: New file.
23515         * lib/unicase/toupper.c: New file.
23516         * lib/unicase/simple-mapping.h: New file.
23517
23518         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
23519         (mapping_table): New structure.
23520         (output_simple_mapping): New function.
23521         (main): Invoke output_simple_mapping_test and output_simple_mapping.
23522         * modules/gen-uni-tables (Description): Update.
23523         * lib/unicase/toupper.h: New file, automatically generated by
23524         gen-uni-tables.
23525         * lib/unicase/tolower.h: New file, automatically generated by
23526         gen-uni-tables.
23527         * lib/unicase/totitle.h: New file, automatically generated by
23528         gen-uni-tables.
23529         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
23530         gen-uni-tables.
23531         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
23532         gen-uni-tables.
23533         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
23534         gen-uni-tables.
23535
23536         New module 'unicase/base'.
23537         * modules/unicase/base: New file.
23538         * lib/unicase.h: New file.
23539
23540 2009-02-08  Bruno Haible  <bruno@clisp.org>
23541
23542         New module 'uniwbrk/ulc-wordbreaks'.
23543         * modules/uniwbrk/ulc-wordbreaks: New file.
23544         * lib/uniwbrk/ulc-wordbreaks.c: New file.
23545
23546         New module 'uniwbrk/u32-wordbreaks'.
23547         * modules/uniwbrk/u32-wordbreaks: New file.
23548         * lib/uniwbrk/u32-wordbreaks.c: New file.
23549
23550         New module 'uniwbrk/u16-wordbreaks'.
23551         * modules/uniwbrk/u16-wordbreaks: New file.
23552         * lib/uniwbrk/u16-wordbreaks.c: New file.
23553
23554         New module 'uniwbrk/u8-wordbreaks'.
23555         * modules/uniwbrk/u8-wordbreaks: New file.
23556         * lib/uniwbrk/u8-wordbreaks.c: New file.
23557         * lib/uniwbrk/u-wordbreaks.h: New file.
23558
23559         New module 'uniwbrk/table'.
23560         * modules/uniwbrk/table: New file.
23561         * lib/uniwbrk/wbrktable.h: New file.
23562         * lib/uniwbrk/wbrktable.c: New file.
23563
23564         New module 'uniwbrk/wordbreak-property'.
23565         * modules/uniwbrk/wordbreak-property: New file.
23566         * lib/uniwbrk/wordbreak-property.c: New file.
23567
23568         * lib/gen-uni-tables.c (WBP_*): New enum items.
23569         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
23570         (unicode_org_wbp): New variable.
23571         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
23572         New functions.
23573         (wbp_table): New structure.
23574         (output_wbp, output_wbrk_tables): New functions.
23575         (main): Accept additional argument. Invoke fill_org_wbp,
23576         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
23577         output_wbrk_tables.
23578         * modules/gen-uni-tables (Description): Update.
23579         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
23580         gen-uni-tables.
23581
23582         New module 'uniwbrk/base'.
23583         * modules/uniwbrk/base: New file.
23584         * lib/uniwbrk.h: New file.
23585
23586 2009-02-08  Bruno Haible  <bruno@clisp.org>
23587
23588         Update to Unicode 5.1.0.
23589         * lib/gen-uni-tables.c (is_property_alphabetic): Include
23590         U+2185..U+2188.
23591         (is_property_default_ignorable_code_point): Don't include characters
23592         of category Cc or Cs and not-a-characters.
23593         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
23594         U+0D79, U+109E, U+109F, U+A60C.
23595         * lib/unictype/bidi_of.h: Regenerated.
23596         * lib/unictype/blocks.h: Regenerated.
23597         * lib/unictype/categ_C.h: Regenerated.
23598         * lib/unictype/categ_Cf.h: Regenerated.
23599         * lib/unictype/categ_Cn.h: Regenerated.
23600         * lib/unictype/categ_L.h: Regenerated.
23601         * lib/unictype/categ_Ll.h: Regenerated.
23602         * lib/unictype/categ_Lm.h: Regenerated.
23603         * lib/unictype/categ_Lo.h: Regenerated.
23604         * lib/unictype/categ_Lu.h: Regenerated.
23605         * lib/unictype/categ_M.h: Regenerated.
23606         * lib/unictype/categ_Mc.h: Regenerated.
23607         * lib/unictype/categ_Me.h: Regenerated.
23608         * lib/unictype/categ_Mn.h: Regenerated.
23609         * lib/unictype/categ_N.h: Regenerated.
23610         * lib/unictype/categ_Nd.h: Regenerated.
23611         * lib/unictype/categ_Nl.h: Regenerated.
23612         * lib/unictype/categ_No.h: Regenerated.
23613         * lib/unictype/categ_P.h: Regenerated.
23614         * lib/unictype/categ_Pd.h: Regenerated.
23615         * lib/unictype/categ_Pe.h: Regenerated.
23616         * lib/unictype/categ_Pf.h: Regenerated.
23617         * lib/unictype/categ_Pi.h: Regenerated.
23618         * lib/unictype/categ_Po.h: Regenerated.
23619         * lib/unictype/categ_Ps.h: Regenerated.
23620         * lib/unictype/categ_S.h: Regenerated.
23621         * lib/unictype/categ_Sk.h: Regenerated.
23622         * lib/unictype/categ_Sm.h: Regenerated.
23623         * lib/unictype/categ_So.h: Regenerated.
23624         * lib/unictype/categ_of.h: Regenerated.
23625         * lib/unictype/combining.h: Regenerated.
23626         * lib/unictype/ctype_alnum.h: Regenerated.
23627         * lib/unictype/ctype_alpha.h: Regenerated.
23628         * lib/unictype/ctype_graph.h: Regenerated.
23629         * lib/unictype/ctype_lower.h: Regenerated.
23630         * lib/unictype/ctype_print.h: Regenerated.
23631         * lib/unictype/ctype_punct.h: Regenerated.
23632         * lib/unictype/ctype_upper.h: Regenerated.
23633         * lib/unictype/decdigit.h: Regenerated.
23634         * lib/unictype/digit.h: Regenerated.
23635         * lib/unictype/mirror.h: Regenerated.
23636         * lib/unictype/numeric.h: Regenerated.
23637         * lib/unictype/pr_alphabetic.h: Regenerated.
23638         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
23639         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
23640         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
23641         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
23642         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
23643         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
23644         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
23645         * lib/unictype/pr_combining.h: Regenerated.
23646         * lib/unictype/pr_dash.h: Regenerated.
23647         * lib/unictype/pr_decimal_digit.h: Regenerated.
23648         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
23649         * lib/unictype/pr_deprecated.h: Regenerated.
23650         * lib/unictype/pr_diacritic.h: Regenerated.
23651         * lib/unictype/pr_extender.h: Regenerated.
23652         * lib/unictype/pr_format_control.h: Regenerated.
23653         * lib/unictype/pr_grapheme_base.h: Regenerated.
23654         * lib/unictype/pr_grapheme_extend.h: Regenerated.
23655         * lib/unictype/pr_grapheme_link.h: Regenerated.
23656         * lib/unictype/pr_id_continue.h: Regenerated.
23657         * lib/unictype/pr_id_start.h: Regenerated.
23658         * lib/unictype/pr_ideographic.h: Regenerated.
23659         * lib/unictype/pr_ignorable_control.h: Regenerated.
23660         * lib/unictype/pr_lowercase.h: Regenerated.
23661         * lib/unictype/pr_math.h: Regenerated.
23662         * lib/unictype/pr_numeric.h: Regenerated.
23663         * lib/unictype/pr_other_alphabetic.h: Regenerated.
23664         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
23665         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
23666         * lib/unictype/pr_other_id_continue.h: Regenerated.
23667         * lib/unictype/pr_other_lowercase.h: Regenerated.
23668         * lib/unictype/pr_other_math.h: Regenerated.
23669         * lib/unictype/pr_punctuation.h: Regenerated.
23670         * lib/unictype/pr_sentence_terminal.h: Regenerated.
23671         * lib/unictype/pr_soft_dotted.h: Regenerated.
23672         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
23673         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
23674         * lib/unictype/pr_unified_ideograph.h: Regenerated.
23675         * lib/unictype/pr_uppercase.h: Regenerated.
23676         * lib/unictype/pr_xid_continue.h: Regenerated.
23677         * lib/unictype/pr_xid_start.h: Regenerated.
23678         * lib/unictype/pr_zero_width.h: Regenerated.
23679         * lib/unictype/scripts.h: Regenerated.
23680         * lib/unictype/scripts_byname.gperf: Regenerated.
23681         * lib/unictype/sy_java_ident.h: Regenerated.
23682         * lib/unilbrk/lbrkprop1.h: Regenerated.
23683         * lib/unilbrk/lbrkprop2.h: Regenerated.
23684         * tests/unictype/test-categ_C.c: Regenerated.
23685         * tests/unictype/test-categ_Cf.c: Regenerated.
23686         * tests/unictype/test-categ_Cn.c: Regenerated.
23687         * tests/unictype/test-categ_L.c: Regenerated.
23688         * tests/unictype/test-categ_Ll.c: Regenerated.
23689         * tests/unictype/test-categ_Lm.c: Regenerated.
23690         * tests/unictype/test-categ_Lo.c: Regenerated.
23691         * tests/unictype/test-categ_Lu.c: Regenerated.
23692         * tests/unictype/test-categ_M.c: Regenerated.
23693         * tests/unictype/test-categ_Mc.c: Regenerated.
23694         * tests/unictype/test-categ_Me.c: Regenerated.
23695         * tests/unictype/test-categ_Mn.c: Regenerated.
23696         * tests/unictype/test-categ_N.c: Regenerated.
23697         * tests/unictype/test-categ_Nd.c: Regenerated.
23698         * tests/unictype/test-categ_Nl.c: Regenerated.
23699         * tests/unictype/test-categ_No.c: Regenerated.
23700         * tests/unictype/test-categ_P.c: Regenerated.
23701         * tests/unictype/test-categ_Pd.c: Regenerated.
23702         * tests/unictype/test-categ_Pe.c: Regenerated.
23703         * tests/unictype/test-categ_Pf.c: Regenerated.
23704         * tests/unictype/test-categ_Pi.c: Regenerated.
23705         * tests/unictype/test-categ_Po.c: Regenerated.
23706         * tests/unictype/test-categ_Ps.c: Regenerated.
23707         * tests/unictype/test-categ_S.c: Regenerated.
23708         * tests/unictype/test-categ_Sk.c: Regenerated.
23709         * tests/unictype/test-categ_Sm.c: Regenerated.
23710         * tests/unictype/test-categ_So.c: Regenerated.
23711         * tests/unictype/test-ctype_alnum.c: Regenerated.
23712         * tests/unictype/test-ctype_alpha.c: Regenerated.
23713         * tests/unictype/test-ctype_graph.c: Regenerated.
23714         * tests/unictype/test-ctype_lower.c: Regenerated.
23715         * tests/unictype/test-ctype_print.c: Regenerated.
23716         * tests/unictype/test-ctype_punct.c: Regenerated.
23717         * tests/unictype/test-ctype_upper.c: Regenerated.
23718         * tests/unictype/test-decdigit.h: Regenerated.
23719         * tests/unictype/test-digit.h: Regenerated.
23720         * tests/unictype/test-numeric.h: Regenerated.
23721         * tests/unictype/test-pr_alphabetic.c: Regenerated.
23722         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
23723         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
23724         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
23725         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
23726         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
23727         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
23728         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
23729         * tests/unictype/test-pr_combining.c: Regenerated.
23730         * tests/unictype/test-pr_dash.c: Regenerated.
23731         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
23732         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
23733         * tests/unictype/test-pr_deprecated.c: Regenerated.
23734         * tests/unictype/test-pr_diacritic.c: Regenerated.
23735         * tests/unictype/test-pr_extender.c: Regenerated.
23736         * tests/unictype/test-pr_format_control.c: Regenerated.
23737         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
23738         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
23739         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
23740         * tests/unictype/test-pr_id_continue.c: Regenerated.
23741         * tests/unictype/test-pr_id_start.c: Regenerated.
23742         * tests/unictype/test-pr_ideographic.c: Regenerated.
23743         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
23744         * tests/unictype/test-pr_lowercase.c: Regenerated.
23745         * tests/unictype/test-pr_math.c: Regenerated.
23746         * tests/unictype/test-pr_numeric.c: Regenerated.
23747         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
23748         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
23749         Regenerated.
23750         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
23751         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
23752         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
23753         * tests/unictype/test-pr_other_math.c: Regenerated.
23754         * tests/unictype/test-pr_punctuation.c: Regenerated.
23755         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
23756         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
23757         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
23758         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
23759         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
23760         * tests/unictype/test-pr_uppercase.c: Regenerated.
23761         * tests/unictype/test-pr_xid_continue.c: Regenerated.
23762         * tests/unictype/test-pr_xid_start.c: Regenerated.
23763         * tests/unictype/test-pr_zero_width.c: Regenerated.
23764
23765         Update to Unicode 5.1.0.
23766         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
23767         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
23768         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
23769         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
23770         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
23771         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
23772         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
23773         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
23774         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
23775         (nonspacing_table_ind): Update.
23776         * tests/uniwidth/test-uc_width2.sh: Update expected result.
23777
23778         Update to Unicode 5.1.0.
23779         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
23780         code transform.
23781         * lib/uniname/uniname.c (unicode_character_name,
23782         unicode_name_character): Add the range 0x1Fxxx to the code transform.
23783         * lib/uniname/uninames.h: Regenerated.
23784         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
23785
23786 2009-02-07  Bruno Haible  <bruno@clisp.org>
23787
23788         Merge gen-ctype and gen-lbrk into a single program.
23789         * lib/gen-uni-tables.c: New file, incorporating
23790         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
23791         Add directory prefixes to the names of the generated files.
23792         * lib/unictype/gen-ctype.c: Remove file.
23793         * lib/unilbrk/gen-lbrk.c: Remove file.
23794         * modules/gen-uni-tables: New file.
23795         * modules/unictype/gen-ctype: Remove file.
23796         * modules/unilbrk/gen-lbrk: Remove file.
23797
23798 2009-02-07  Bruno Haible  <bruno@clisp.org>
23799
23800         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
23801
23802         New module 'unistr/u32-strcoll'.
23803         * modules/unistr/u32-strcoll: New file.
23804         * lib/unistr/u32-strcoll.c: New file.
23805
23806         New module 'unistr/u16-strcoll'.
23807         * modules/unistr/u16-strcoll: New file.
23808         * lib/unistr/u16-strcoll.c: New file.
23809
23810         New module 'unistr/u8-strcoll'.
23811         * modules/unistr/u8-strcoll: New file.
23812         * lib/unistr/u8-strcoll.c: New file.
23813         * lib/unistr/u-strcoll.h: New file.
23814
23815 2009-02-07  Bruno Haible  <bruno@clisp.org>
23816
23817         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
23818         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
23819         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
23820         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
23821         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
23822         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
23823
23824 2009-02-07  Bruno Haible  <bruno@clisp.org>
23825
23826         Make 64-bit clean.
23827         * lib/unictype/gen-ctype.c (output_predicate, output_category,
23828         output_combclass, output_bidi_category, output_decimal_digit,
23829         output_digit, output_numeric, output_mirror, output_scripts,
23830         output_ident_category): Use proper width specifier in format strings.
23831
23832 2009-02-07  Bruno Haible  <bruno@clisp.org>
23833
23834         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
23835         failure behaviour.
23836
23837 2009-02-07  Jim Meyering  <meyering@redhat.com>
23838
23839         regex: avoid compilation failure with upcoming gcc-4.4
23840         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
23841         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
23842         "... error: integer overflow in preprocessor expression".
23843
23844 2009-02-05  Ben Pfaff  <blp@gnu.org>
23845
23846         Fix link errors on Windows when close module is used.
23847         * modules/close: Add $(LIB_CLOSE) to Link section.
23848         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
23849         $(LIB_CLOSE) on Windows.
23850
23851 2009-02-05  Jim Meyering  <meyering@redhat.com>
23852
23853         still avoid unused-parameter warnings, but do it cleanly
23854         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
23855         (get_fs_usage): Cast to void instead.
23856         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
23857         (dev_from_mount_options, read_file_system_list): Cast to void.
23858         Prompted by Bruno Haible.
23859
23860 2009-02-04  Jim Meyering  <meyering@redhat.com>
23861
23862         fsusage.c: correct copyright year
23863         * lib/fsusage.c: Reflect year in which the change is pushed into
23864
23865         avoid misc. warnings
23866         * lib/fsusage.c (UNUSED_PARAM): Define.
23867         (get_fs_usage): Mark parameter "disk" as unused.
23868         * lib/getugroups.c (getgrent): Use "void" in prototype.
23869         * lib/mountlist.c: Mark unused parameters.
23870         (read_file_system_list): Declare a local with "const".
23871         * lib/nanosleep.c (getnow): Declare static.
23872         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
23873
23874         dirfd: set errno upon failure
23875         * lib/dirfd.c: Include <errno.h>.
23876         Set errno to ENOTSUP when returning -1.
23877         * modules/dirfd (Depends-on): Add errno.
23878         Suggested by John Kodis <kodis@comcast.net>.
23879
23880 2009-02-01  Bruno Haible  <bruno@clisp.org>
23881
23882         Don't assume sizeof (long) >= sizeof (void *).
23883         * lib/memcmp.c: Include stdint.h.
23884         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
23885         srcp2 to 'const byte *'.
23886         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
23887         types to uintptr_t.
23888         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
23889         * modules/memcmp (Depends-on): Add stdint.
23890         Reported by Ozkan Sezer <sezeroz@gmail.com>.
23891
23892 2009-01-30  Eric Blake  <ebb9@byu.net>
23893
23894         fix more require-before-expand issues
23895         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
23896         expand, AC_PROG_AWK.
23897         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
23898
23899 2009-01-28  Eric Blake  <ebb9@byu.net>
23900
23901         version-etc: use consistent URL formatting
23902         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
23903         Improve formatting.  Use fputs for string without %.
23904
23905 2009-01-28  Jim Meyering  <meyering@redhat.com>
23906
23907         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
23908         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
23909         "underquoted definition of NAME" from autoconf-2.59.
23910
23911 2009-01-28  Bruno Haible  <bruno@clisp.org>
23912
23913         * doc/gnulib.texi: Add "Obsolete modules" to index.
23914
23915 2009-01-28  Jim Meyering  <meyering@redhat.com>
23916
23917         useless-if-before-free: recognize more variants
23918         * build-aux/useless-if-before-free: Also recognize e.g.,
23919         if (NULL != p) free (p);
23920
23921 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
23922
23923         test-getaddrinfo: skip (don't fail) this test when there's no network
23924         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
23925         on the presumption that it means you lack network access.
23926
23927 2009-01-26  Jim Meyering  <meyering@redhat.com>
23928
23929         fflush: avoid warnings on modern systems
23930         * lib/fflush.c (rpl_fflush): Move declarations of locals,
23931         pos and result, into scopes where they're used.
23932
23933 2009-01-26  Eric Blake  <ebb9@byu.net>
23934
23935         Silence warning reintroduced by recent extensions patch.
23936         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
23937         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
23938         autoconf.
23939
23940         Backport improved autoconf semantics of AC_DEFUN_ONCE.
23941         * m4/00gnulib.m4: New file.
23942         * gnulib-tool (func_get_filelist): Always use it.
23943         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
23944         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
23945
23946 2009-01-25  Bruno Haible  <bruno@clisp.org>
23947
23948         Make test-quotearg work on MacOS X and AIX.
23949         * tests/test-quotearg.sh: New file.
23950         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
23951         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
23952         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
23953         include <libintl.h>.
23954         (fake_locale): Remove variable.
23955         (gettext, dgettext, dcgettext): Remove functions.
23956         (main): Instead of setting a fake locale, set a real locale. Call
23957         textdomain and bindtextdomain.
23958         * modules/quotearg-tests (Files): Add the new files.
23959         (Depends-on): Add gettext, setenv, unsetenv.
23960         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
23961         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
23962         Augment TESTS_ENVIRONMENT.
23963
23964 2009-01-25  Bruno Haible  <bruno@clisp.org>
23965
23966         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
23967         fr_FR.ISO8859-1 locale on MacOS X.
23968         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
23969         ja_JP.eucJP locale on MacOS X.
23970         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
23971         zh_CN.GB18030 locale on MacOS X.
23972
23973 2009-01-25  Bruno Haible  <bruno@clisp.org>
23974
23975         Avoid link errors on MacOS X 10.3.
23976         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
23977         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
23978
23979 2009-01-25  Bruno Haible  <bruno@clisp.org>
23980
23981         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
23982         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
23983         * modules/pipe (Files): Remove m4/posix_spawn.m4.
23984         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
23985         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
23986         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
23987         posix_spawnattr_init, posix_spawnattr_setsigmask,
23988         posix_spawnattr_setflags, posix_spawnattr_destroy.
23989
23990         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
23991         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
23992         * modules/execute (Files): Remove m4/posix_spawn.m4.
23993         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
23994         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
23995         posix_spawnattr_init, posix_spawnattr_setsigmask,
23996         posix_spawnattr_setflags, posix_spawnattr_destroy.
23997
23998 2009-01-25  Bruno Haible  <bruno@clisp.org>
23999
24000         * lib/glthread/threadlib.c: Include <stdlib.h>.
24001
24002 2009-01-25  Bruno Haible  <bruno@clisp.org>
24003
24004         * lib/glthread/threadlib.c (dummy): New declaration.
24005
24006 2009-01-25  Bruno Haible  <bruno@clisp.org>
24007
24008         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
24009         multibyte characters also for the GB18030 encoding. Don't crash when
24010         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
24011
24012 2009-01-25  Bruno Haible  <bruno@clisp.org>
24013
24014         Avoid redefining 'struct random_data' on OSF/1 5.1.
24015         * lib/stdlib.in.h: Include <random.h> if it exists.
24016         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
24017         HAVE_RANDOM_H. Include <random.h> when testing whether
24018         'struct random_data' exists.
24019         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
24020
24021 2009-01-25  Bruno Haible  <bruno@clisp.org>
24022
24023         Don't install charset.alias on MacOS X >= 10.3.
24024         * lib/localcharset.c (DARWIN7): New macro.
24025         (get_charset_aliases): Hardcode the result for Darwin7.
24026         * modules/localcharset (install-exec-local): Don't install
24027         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
24028
24029 2009-01-25  Bruno Haible  <bruno@clisp.org>
24030
24031         Don't install charset.alias on mingw and Cygwin.
24032         * modules/localcharset (install-exec-local): Don't install
24033         charset.alias on mingw and Cygwin, if the file does not yet exist.
24034         The result for these platforms is hardcoded in localcharset.c.
24035
24036 2009-01-25  Bruno Haible  <bruno@clisp.org>
24037
24038         Make it possible again to use AC_GNU_SOURCE together with gnulib.
24039         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
24040         before requiring AC_USE_SYSTEM_EXTENSIONS.
24041
24042 2009-01-25  Jim Meyering  <meyering@redhat.com>
24043
24044         c-strtod: avoid warnings
24045         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
24046         "assignment discards qualifiers from pointer target type" warnings.
24047
24048 2009-01-24  Bruno Haible  <bruno@clisp.org>
24049
24050         Add support for non-UTF-8 locales on MacOS X.
24051         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
24052         canonical encodings. For Darwin 7 and newer, don't map traditional
24053         encodings to UTF-8.
24054         Reported by Vincent Lefevre <vincent@vinc17.org>
24055         at <http://savannah.gnu.org/bugs/?25235>.
24056
24057 2009-01-24  Bruno Haible  <bruno@clisp.org>
24058
24059         * doc/gnulib.texi (Obsolete modules): New section.
24060         Reported by Mike Frysinger <vapier@gentoo.org>.
24061
24062 2009-01-24  Bruno Haible  <bruno@clisp.org>
24063
24064         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
24065         (%.dvi): New rule.
24066
24067 2009-01-24  Bruno Haible  <bruno@clisp.org>
24068
24069         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
24070         Reported by Eric Blake.
24071
24072 2009-01-24  Bruno Haible  <bruno@clisp.org>
24073
24074         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
24075         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
24076         Reported by Gary V. Vaughan <gary@gnu.org>.
24077
24078 2009-01-24  Bruno Haible  <bruno@clisp.org>
24079
24080         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
24081
24082 2009-01-23  Bruno Haible  <bruno@clisp.org>
24083
24084         Make c-strtod, c-strtold usable in libraries.
24085         * lib/c-strtod.c: Include string.h instead of xalloc.h.
24086         (C_STRTOD): Call strdup instead of xstrdup.
24087         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
24088         * modules/c-strtold (Depends-on): Likewise.
24089         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
24090         * NEWS: Mention the change.
24091         Reported by Michael Gold <mgold@ncf.ca>.
24092
24093 2009-01-23  Jim Meyering  <meyering@redhat.com>
24094
24095         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
24096         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
24097         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
24098
24099 2009-01-23  Simon Josefsson  <simon@josefsson.org>
24100
24101         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
24102         GNU CoreUtils.
24103         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
24104         * modules/version-etc (Description): Update.
24105
24106 2009-01-22  Bruno Haible  <bruno@clisp.org>
24107
24108         Cache the C locale object.
24109         * lib/c-strtod.c (c_locale_cache): New variable.
24110         (c_locale): New function.
24111         (C_STRTOD): Use it, and don't call freelocale.
24112         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
24113         Suggested by Paolo Bonzini.
24114
24115 2009-01-21  Bruno Haible  <bruno@clisp.org>
24116
24117         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
24118         conditions other than overflow.
24119
24120 2009-01-21  Bruno Haible  <bruno@clisp.org>
24121
24122         * lib/c-strtod.c: Include errno.h.
24123         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
24124         value from STRTOD_L and STRTOD.
24125
24126 2009-01-21  Bruno Haible  <bruno@clisp.org>
24127         and Jim Meyering  <meyering@redhat.com>
24128
24129         nanosleep: skip configure test (fail it) for apple universal builds
24130         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
24131         universal builds, assume that nanosleep does not work.
24132         * modules/nanosleep (Depends-on): Add multiarch.
24133
24134         mktime: skip configure test (fail it) for apple universal builds
24135         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
24136         universal builds, assume that mktime does not work.
24137         * modules/mktime (Depends-on): Add multiarch.
24138
24139 2009-01-21  Eric Blake  <ebb9@byu.net>
24140
24141         multiarch: avoid expand-before-require warning
24142         * modules/multiarch (configure.ac): Require, rather than expand,
24143         gl_MULTIARCH.
24144         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
24145         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
24146         enforce that all clients require it.  Partial reversion of
24147         2008-12-29 patch.
24148
24149         error: avoid expand-before-require warning
24150         * modules/errno (configure.ac): Require, rather than expand,
24151         gl_HEADER_ERRNO_H.
24152         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
24153         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
24154         enforce that all clients require it.
24155
24156         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
24157         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
24158         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
24159         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
24160
24161 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
24162
24163         Revert:
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-20  Bruno Haible  <bruno@clisp.org>
24170
24171         Make the 'link' module link on Windows NT 4.
24172         * lib/link.c (_WIN32_WINNT): Don't define.
24173         (CreateHardLinkFuncType): New type.
24174         (CreateHardLinkFunc, initialized): New variables.
24175         (initialize): New function.
24176         (link): Invoke CreateHardLink indirectly through the function pointer.
24177
24178 2009-01-20  Bruno Haible  <bruno@clisp.org>
24179
24180         Fix compilation failure on mingw.
24181         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
24182
24183 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
24184
24185         * doc/c-strtod.texi: Mention a couple of restrictions.
24186
24187 2009-01-20  Jim Meyering  <meyering@redhat.com>
24188
24189         gettimeofday: move more declarations out of functions
24190         * lib/gettimeofday.c: Move extern declarations of tzset and
24191         gmtime out of containing functions.  Prompted by Bruno Haible.
24192
24193 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
24194
24195         regex: do not depend on obsolete modules.
24196         * modules/regex: Remove memcmp and memmove.
24197
24198 2009-01-19  Bruno Haible  <bruno@clisp.org>
24199
24200         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
24201         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
24202         gl_BIGENDIAN, not AC_C_BIGENDIAN.
24203         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
24204         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
24205
24206 2009-01-19  Bruno Haible  <bruno@clisp.org>
24207
24208         * tests/test-link.c: Include <errno.h>.
24209         (main): Exit with code 77 when a hard link cannot be created due to
24210         the file system.
24211         * tests/test-link.sh: Skip test when a hard link cannot be created due
24212         to the file system.
24213         Suggested by Eric Blake.
24214
24215 2009-01-19  Martin Lambers  <marlam@marlam.de>
24216
24217         * modules/link-tests: New file.
24218         * tests/test-link.sh: New file.
24219         * tests/test-link.c: New file.
24220
24221 2009-01-19  Eric Blake  <ebb9@byu.net>
24222
24223         doc: mention another function added in cygwin 1.7.0
24224         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
24225         Another new function in cygwin 1.7.
24226
24227 2009-01-19  Bruno Haible  <bruno@clisp.org>
24228
24229         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
24230         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
24231         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
24232         gl_BIGENDIAN, not AC_C_BIGENDIAN.
24233         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
24234         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
24235         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
24236         * m4/md4.m4 (gl_MD4): Likewise.
24237         * m4/md5.m4 (gl_MD5): Likewise.
24238         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
24239         * m4/sha1.m4 (gl_SHA1): Likewise.
24240         * m4/sha256.m4 (gl_SHA256): Likewise.
24241         * m4/sha512.m4 (gl_SHA512): Likewise.
24242
24243 2009-01-19  Bruno Haible  <bruno@clisp.org>
24244
24245         * modules/uniname/uniname-tests (Depends-on): Add progname.
24246         * tests/uniname/test-uninames.c: Include progname.h.
24247         (main): Call set_program_name.
24248
24249         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
24250         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
24251         (main): Call set_program_name.
24252
24253         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
24254         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
24255         (main): Call set_program_name.
24256
24257         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
24258         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
24259         (main): Call set_program_name.
24260
24261         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
24262         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
24263         (main): Call set_program_name.
24264
24265         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
24266         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
24267         (main): Call set_program_name.
24268
24269         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
24270         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
24271         (main): Call set_program_name.
24272
24273         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
24274         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
24275         (main): Call set_program_name.
24276
24277         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
24278         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
24279         (main): Call set_program_name.
24280
24281 2009-01-19  Eric Blake  <ebb9@byu.net>
24282
24283         test-unistd: test previous patch
24284         * tests/test-unistd.c: Test *_FILENO macros.
24285
24286         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
24287         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
24288         Guarantee a definition.
24289         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
24290         * modules/unistd-safer (Depends-on): Add dependency on unistd.
24291         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
24292         * lib/dup-safer.c (STDERR_FILENO): Likewise.
24293         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
24294         Likewise.
24295         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
24296         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
24297         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
24298         Likewise.
24299         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
24300         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
24301         (STDERR_FILENO): Likewise.
24302         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
24303         (STDERR_FILENO): Likewise.
24304         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
24305         (STDERR_FILENO): Likewise.
24306         Reported by Elbert Pol.
24307
24308 2009-01-19  Eric Blake  <ebb9@byu.net>
24309
24310         doc: mention more functions added in cygwin 1.7.0
24311         * doc/posix-functions/abort.texi (abort): Update wording related
24312         to cygwin.
24313         * doc/posix-functions/daylight.texi (daylight): Likewise.
24314         * doc/posix-functions/optarg.texi (optarg): Likewise.
24315         * doc/posix-functions/optarg.texi (opterr): Likewise.
24316         * doc/posix-functions/optarg.texi (optind): Likewise.
24317         * doc/posix-functions/optarg.texi (optopt): Likewise.
24318         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
24319         worked in 1.5.x, and was withdrawn in 1.7.
24320         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
24321         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
24322         cygwin versions.
24323         * doc/posix-functions/perror.texi (perror): Likewise.
24324         * doc/posix-functions/printf.texi (printf): Likewise.
24325         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
24326         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
24327         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
24328         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
24329         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
24330         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
24331         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
24332         Likewise.
24333         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
24334         Likewise.
24335         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
24336         this function.
24337         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
24338         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
24339         Likewise.
24340         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
24341         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
24342         * doc/posix-functions/confstr.texi (confstr): Likewise.
24343         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
24344         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
24345         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
24346         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
24347         * doc/posix-functions/fputws.texi (fputws): Likewise.
24348         * doc/posix-functions/fwide.texi (fwide): Likewise.
24349         * doc/posix-functions/getwc.texi (getwc): Likewise.
24350         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
24351         * doc/posix-functions/putwc.texi (putwc): Likewise.
24352         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
24353         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
24354         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
24355         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
24356         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
24357         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
24358         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
24359         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
24360         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
24361         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
24362         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
24363
24364 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
24365
24366         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
24367         * lib/ioctl.c: Include <sys/ioctl.h>.
24368
24369 2009-01-19  Simon Josefsson  <simon@josefsson.org>
24370
24371         * modules/getdate-tests (Depends-on): Add progname.
24372         * tests/test-getdate.c: Use progname module, to avoid link errors
24373         on non-glibc systems.
24374
24375 2009-01-18  Simon Josefsson  <simon@josefsson.org>
24376
24377         * modules/filenamecat-tests (Depends-on): Add progname.
24378         * modules/fstrcmp-tests (Depends-on): Likewise.
24379
24380         * tests/test-filenamecat.c: Use progname module, to avoid link
24381         errors on non-glibc systems.
24382         * tests/test-fstrcmp.c: Likewise.
24383
24384 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
24385
24386         gettimeofday: avoid warning: nested extern declaration of 'localtime'
24387         * lib/gettimeofday.c: Move extern declaration out of function.
24388
24389 2009-01-18  Bruno Haible  <bruno@clisp.org>
24390
24391         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
24392         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
24393         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
24394
24395 2009-01-18  Bruno Haible  <bruno@clisp.org>
24396
24397         * lib/strftime.c (MEMPCPY): Remove unused macro.
24398         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
24399
24400 2009-01-18  Martin Lambers  <marlam@marlam.de>
24401
24402         New module 'link'.
24403         * lib/unistd.in.h (link): New declaration.
24404         * lib/link.c: New file.
24405         * m4/link.m4: New file.
24406         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
24407         HAVE_LINK.
24408         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
24409         * modules/link: New file.
24410         * doc/posix-functions/link.texi: Mention the new module.
24411
24412 2009-01-18  Bruno Haible  <bruno@clisp.org>
24413
24414         * tests/test-avltree_list.c (main): Call set_program_name.
24415         * tests/test-avltree_oset.c (main): Likewise.
24416         * tests/test-obstack-printf.c: Include progname.h.
24417         (main): Call set_program_name.
24418         * tests/test-quotearg.c: Include progname.h.
24419         (main): Call set_program_name.
24420         * tests/test-xmemdup0.c: Include progname.h.
24421         (main): Call set_program_name.
24422
24423 2009-01-18  Bruno Haible  <bruno@clisp.org>
24424
24425         New module 'alphasort'.
24426         * lib/dirent.in.h (alphasort): New declaration.
24427         * lib/alphasort.c: New file, from glibc with modifications.
24428         * m4/alphasort.m4: New file.
24429         * modules/alphasort: New file.
24430         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
24431         HAVE_ALPHASORT.
24432         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
24433         HAVE_ALPHASORT.
24434         * doc/posix-functions/alphasort.texi: Mention the new module and the
24435         portability problems.
24436
24437 2009-01-18  Bruno Haible  <bruno@clisp.org>
24438
24439         New module 'scandir'.
24440         * lib/dirent.in.h (scandir): New declaration.
24441         * lib/scandir.c: New file, from glibc with modifications.
24442         * m4/scandir.m4: New file.
24443         * modules/scandir: New file.
24444         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
24445         HAVE_SCANDIR.
24446         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
24447         HAVE_SCANDIR.
24448         * doc/posix-functions/scandir.texi: Mention the new module and the
24449         portability problems.
24450
24451 2009-01-17  Bruno Haible  <bruno@clisp.org>
24452
24453         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
24454         Update documentation.
24455         (func_remove_suffix): Escape all dots in the suffix. Update
24456         documentation.
24457         (func_filter_filelist): Update documentation.
24458         Reported by Ralf Wildenhues.
24459
24460 2009-01-17  Bruno Haible  <bruno@clisp.org>
24461
24462         * modules/dprintf-posix-tests: New file.
24463         * tests/test-dprintf-posix.sh: New file.
24464         * tests/test-dprintf-posix.c: New file.
24465
24466         New modules 'dprintf', 'dprintf-posix'.
24467         * lib/stdio.in.h (dprintf): New declaration.
24468         * lib/dprintf.c: New file.
24469         * m4/dprintf.m4: New file.
24470         * m4/dprintf-posix.m4: New file.
24471         * modules/dprintf: New file.
24472         * modules/dprintf-posix: New file.
24473         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
24474         HAVE_DPRINTF, REPLACE_DPRINTF.
24475         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
24476         HAVE_DPRINTF, REPLACE_DPRINTF.
24477         * doc/posix-functions/dprintf.texi: Mention the new modules.
24478
24479 2009-01-17  Bruno Haible  <bruno@clisp.org>
24480
24481         * modules/vdprintf-posix-tests: New file.
24482         * tests/test-vdprintf-posix.sh: New file.
24483         * tests/test-vdprintf-posix.c: New file.
24484
24485         New modules 'vdprintf', 'vdprintf-posix'.
24486         * lib/stdio.in.h (vdprintf): New declaration.
24487         * lib/vdprintf.c: New file.
24488         * m4/vdprintf.m4: New file.
24489         * m4/vdprintf-posix.m4: New file.
24490         * modules/vdprintf: New file.
24491         * modules/vdprintf-posix: New file.
24492         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
24493         HAVE_VDPRINTF, REPLACE_VDPRINTF.
24494         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
24495         HAVE_VDPRINTF, REPLACE_VDPRINTF.
24496         * doc/posix-functions/vdprintf.texi: Mention the new modules.
24497
24498 2009-01-17  Bruno Haible  <bruno@clisp.org>
24499
24500         Fix replacement of fopen on mingw.
24501         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
24502         mingw.
24503
24504 2009-01-17  Bruno Haible  <bruno@clisp.org>
24505
24506         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
24507         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
24508
24509 2009-01-17  Bruno Haible  <bruno@clisp.org>
24510
24511         Avoid test-fflush2.sh failure on mingw.
24512         * tests/test-fflush2.c: Include binary-io.h.
24513         (main): Put standard input into binary mode.
24514         * modules/fflush-tests (Depends-on): Add binary-io.
24515
24516 2009-01-17  Bruno Haible  <bruno@clisp.org>
24517
24518         * lib/wchar.in.h: In another particular situation, include only the
24519         system's <wchar.h> file.
24520         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
24521         Reported by Albert Chin-A-Young <china@thewrittenword.com>
24522         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
24523
24524 2009-01-17  Bruno Haible  <bruno@clisp.org>
24525
24526         Support for stripping executables in --enable-relocatable.
24527         * build-aux/install-reloc: Expect one more argument, or an environment
24528         variable RELOC_STRIP_PROG. If set, strip the destination program and
24529         its wrapper.
24530         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
24531         RELOC_STRIP_PROG.
24532         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
24533         to set RELOCATABLE_STRIP.
24534         * NEWS: Mention the new Makefile requirement.
24535
24536 2009-01-17  Bruno Haible  <bruno@clisp.org>
24537
24538         * build-aux/install-reloc: Remove debugging information left over by
24539         C compiler on MacOS X.
24540
24541 2009-01-17  Bruno Haible  <bruno@clisp.org>
24542
24543         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
24544         * lib/progreloc.c (find_executable): Fix type of pointer passed to
24545         _NSGetExecutablePath.
24546
24547 2009-01-16  Jim Meyering  <meyering@redhat.com>
24548
24549         strerror: avoid warnings about discarding "const"
24550         * lib/strerror.c (rpl_strerror): Instead of returning a const
24551         string from each and every "case", use a variable, and add a single
24552         cast after the switch.
24553
24554 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
24555
24556         * lib/arpa_inet.in.h: Add extern "C" block for C++.
24557
24558 2009-01-16  Bruno Haible  <bruno@clisp.org>
24559
24560         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
24561         array initializer syntax that also works in C++ mode.
24562         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
24563
24564 2009-01-16  Jim Meyering  <meyering@redhat.com>
24565
24566         poll: suppress a warning
24567         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
24568         to ignore "...unsigned expression < 0 is always false" warnings.
24569
24570 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
24571
24572         poll: remove declarations of unused variables
24573         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
24574         sockbuf and optlen.
24575
24576 2009-01-15  Bruno Haible  <bruno@clisp.org>
24577
24578         Make fflush-after-ungetc POSIX compliant on BSD systems.
24579         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
24580         (clear_ungetc_buffer): Implement also for other systems.
24581         (rpl_fflush): On glibc systems, invoke
24582         clear_ungetc_buffer_preserving_position. Otherwise, invoke
24583         clear_ungetc_buffer after fetching the stream's position, not before.
24584
24585 2009-01-15  Bruno Haible  <bruno@clisp.org>
24586
24587         Make fflush-after-ungetc POSIX compliant on glibc systems.
24588         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
24589         after ungetc.
24590         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
24591         (rpl_fflush): On glibc systems, simply call the system's fflush
24592         function after clearing the ungetc buffer.
24593         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
24594         Instead, lseek only to the end of file, then use the system's fseeko
24595         for the rest. On glibc systems, reset the EOF indicator bit.
24596
24597 2009-01-15  Jim Meyering  <meyering@redhat.com>
24598
24599         openmp.m4: revert quote-adding change, for portability to older autoconf
24600         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
24601         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
24602         Simon Josefsson noticed the problem when using autoconf-2.61.
24603
24604 2009-01-15  Bruno Haible  <bruno@clisp.org>
24605
24606         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
24607         * tests/test-fflush2.c (ASSERT): Always fail.
24608         (main): Add two tests for fflush() after ungetc(), taking into account
24609         the Austin Group's clarification.
24610         Suggested by Eric Blake.
24611
24612 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
24613
24614         mktime.m4: remove K&R-style function prototypes
24615         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
24616         for the Sun C++ compiler.
24617
24618 2009-01-14  Bruno Haible  <bruno@clisp.org>
24619
24620         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
24621         while including <wchar.h>.
24622         * lib/wchar.in.h: In two particular situations on HP-UX, include only
24623         the system's <wchar.h> file.
24624         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
24625
24626 2009-01-14  Bruno Haible  <bruno@clisp.org>
24627
24628         * m4/csharp.m4: Don't mention gettext on the serial number line.
24629         * m4/csharpexec.m4: Likewise.
24630         * m4/eaccess.m4: Likewise.
24631         * m4/javaexec.m4: Likewise.
24632         * m4/sig_atomic_t.m4: Likewise.
24633         * m4/tmpdir.m4: Likewise.
24634         * m4/intldir.m4: Bump gettext version.
24635         * m4/lib-ld.m4: Likewise.
24636
24637 2009-01-14  Bruno Haible  <bruno@clisp.org>
24638
24639         * lib/progname.c (set_program_name): Add more comments.
24640         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
24641
24642 2009-01-14  Simon Josefsson  <simon@josefsson.org>
24643
24644         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
24645         were sys/stat.h does not define it.
24646
24647 2009-01-14  Jim Meyering  <meyering@redhat.com>
24648
24649         many *.m4 files: improve m4 quoting
24650         99% of this change was performed by running the following commands:
24651         git ls-files | grep '\.m4$' | xargs perl -pi \
24652           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
24653           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
24654           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
24655           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
24656         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
24657         The remainder were to add Copyright dates, increment serial numbers,
24658         undo some changes in comments, exclude m4/intl.m4, and add quotes
24659         around the "1" in ",1" where the unusual spacing prohibited the
24660         above regexps from doing the job.  For more details, see
24661         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
24662         * m4/acl.m4: Modified.
24663         * m4/afs.m4: Likewise.
24664         * m4/alloca.m4: Likewise.
24665         * m4/argp.m4: Likewise.
24666         * m4/argz.m4: Likewise.
24667         * m4/atexit.m4: Likewise.
24668         * m4/bison-i18n.m4: Likewise.
24669         * m4/bison.m4: Likewise.
24670         * m4/byteswap.m4: Likewise.
24671         * m4/c-stack.m4: Likewise.
24672         * m4/c-strtod.m4: Likewise.
24673         * m4/calloc.m4: Likewise.
24674         * m4/canonicalize-lgpl.m4: Likewise.
24675         * m4/chown.m4: Likewise.
24676         * m4/clock_time.m4: Likewise.
24677         * m4/codeset.m4: Likewise.
24678         * m4/copy-file.m4: Likewise.
24679         * m4/csharp.m4: Likewise.
24680         * m4/csharpcomp.m4: Likewise.
24681         * m4/csharpexec.m4: Likewise.
24682         * m4/d-ino.m4: Likewise.
24683         * m4/d-type.m4: Likewise.
24684         * m4/dirfd.m4: Likewise.
24685         * m4/double-slash-root.m4: Likewise.
24686         * m4/eaccess.m4: Likewise.
24687         * m4/eealloc.m4: Likewise.
24688         * m4/environ.m4: Likewise.
24689         * m4/errno_h.m4: Likewise.
24690         * m4/euidaccess.m4: Likewise.
24691         * m4/execute.m4: Likewise.
24692         * m4/fatal-signal.m4: Likewise.
24693         * m4/fchdir.m4: Likewise.
24694         * m4/fcntl_h.m4: Likewise.
24695         * m4/fileblocks.m4: Likewise.
24696         * m4/filenamecat.m4: Likewise.
24697         * m4/findprog.m4: Likewise.
24698         * m4/flexmember.m4: Likewise.
24699         * m4/fnmatch.m4: Likewise.
24700         * m4/fopen.m4: Likewise.
24701         * m4/fpending.m4: Likewise.
24702         * m4/fprintf-posix.m4: Likewise.
24703         * m4/free.m4: Likewise.
24704         * m4/frexp.m4: Likewise.
24705         * m4/frexpl.m4: Likewise.
24706         * m4/fsusage.m4: Likewise.
24707         * m4/ftruncate.m4: Likewise.
24708         * m4/gc-camellia.m4: Likewise.
24709         * m4/gc-random.m4: Likewise.
24710         * m4/gc.m4: Likewise.
24711         * m4/getaddrinfo.m4: Likewise.
24712         * m4/getcwd-abort-bug.m4: Likewise.
24713         * m4/getcwd-path-max.m4: Likewise.
24714         * m4/getdate.m4: Likewise.
24715         * m4/getdomainname.m4: Likewise.
24716         * m4/getgroups.m4: Likewise.
24717         * m4/gethostname.m4: Likewise.
24718         * m4/gethrxtime.m4: Likewise.
24719         * m4/getline.m4: Likewise.
24720         * m4/getloadavg.m4: Likewise.
24721         * m4/getndelim2.m4: Likewise.
24722         * m4/getpass.m4: Likewise.
24723         * m4/gettext.m4: Likewise.
24724         * m4/gettime.m4: Likewise.
24725         * m4/gettimeofday.m4: Likewise.
24726         * m4/gnulib-common.m4: Likewise.
24727         * m4/group-member.m4: Likewise.
24728         * m4/host-os.m4: Likewise.
24729         * m4/iconv.m4: Likewise.
24730         * m4/iconv_open.m4: Likewise.
24731         * m4/inet_ntop.m4: Likewise.
24732         * m4/inet_pton.m4: Likewise.
24733         * m4/inline.m4: Likewise.
24734         * m4/intldir.m4: Likewise.
24735         * m4/intlmacosx.m4: Likewise.
24736         * m4/intmax.m4: Likewise.
24737         * m4/intmax_t.m4: Likewise.
24738         * m4/inttypes.m4: Likewise.
24739         * m4/inttypes_h.m4: Likewise.
24740         * m4/inttypes-pri.m4: Likewise.
24741         * m4/isapipe.m4: Likewise.
24742         * m4/isnand.m4: Likewise.
24743         * m4/isnanf.m4: Likewise.
24744         * m4/isnanl.m4: Likewise.
24745         * m4/javacomp.m4: Likewise.
24746         * m4/javaexec.m4: Likewise.
24747         * m4/jm-winsz1.m4: Likewise.
24748         * m4/jm-winsz2.m4: Likewise.
24749         * m4/lchown.m4: Likewise.
24750         * m4/lcmessage.m4: Likewise.
24751         * m4/ldexpl.m4: Likewise.
24752         * m4/lib-ld.m4: Likewise.
24753         * m4/lib-link.m4: Likewise.
24754         * m4/libsigsegv.m4: Likewise.
24755         * m4/link-follow.m4: Likewise.
24756         * m4/localcharset.m4: Likewise.
24757         * m4/locale-fr.m4: Likewise.
24758         * m4/locale-ja.m4: Likewise.
24759         * m4/locale-tr.m4: Likewise.
24760         * m4/locale-zh.m4: Likewise.
24761         * m4/lock.m4: Likewise.
24762         * m4/longlong.m4: Likewise.
24763         * m4/ls-mntd-fs.m4: Likewise.
24764         * m4/lstat.m4: Likewise.
24765         * m4/malloc.m4: Likewise.
24766         * m4/mathl.m4: Likewise.
24767         * m4/mbrtowc.m4: Likewise.
24768         * m4/mbstate_t.m4: Likewise.
24769         * m4/mbswidth.m4: Likewise.
24770         * m4/memchr.m4: Likewise.
24771         * m4/memcmp.m4: Likewise.
24772         * m4/memcpy.m4: Likewise.
24773         * m4/memmem.m4: Likewise.
24774         * m4/memmove.m4: Likewise.
24775         * m4/mempcpy.m4: Likewise.
24776         * m4/memrchr.m4: Likewise.
24777         * m4/memset.m4: Likewise.
24778         * m4/minmax.m4: Likewise.
24779         * m4/mkdir-slash.m4: Likewise.
24780         * m4/mkdtemp.m4: Likewise.
24781         * m4/mktime.m4: Likewise.
24782         * m4/mmap-anon.m4: Likewise.
24783         * m4/mountlist.m4: Likewise.
24784         * m4/nanosleep.m4: Likewise.
24785         * m4/nls.m4: Likewise.
24786         * m4/nocrash.m4: Likewise.
24787         * m4/open.m4: Likewise.
24788         * m4/openat.m4: Likewise.
24789         * m4/openmp.m4: Likewise.
24790         * m4/pathmax.m4: Likewise.
24791         * m4/perl.m4: Likewise.
24792         * m4/physmem.m4: Likewise.
24793         * m4/pipe.m4: Likewise.
24794         * m4/po.m4: Likewise.
24795         * m4/poll.m4: Likewise.
24796         * m4/posixtm.m4: Likewise.
24797         * m4/posixver.m4: Likewise.
24798         * m4/printf-frexp.m4: Likewise.
24799         * m4/printf-frexpl.m4: Likewise.
24800         * m4/printf-posix.m4: Likewise.
24801         * m4/printf-posix-rpl.m4: Likewise.
24802         * m4/printf.m4: Likewise.
24803         * m4/progtest.m4: Likewise.
24804         * m4/putenv.m4: Likewise.
24805         * m4/readline.m4: Likewise.
24806         * m4/readlink.m4: Likewise.
24807         * m4/readutmp.m4: Likewise.
24808         * m4/realloc.m4: Likewise.
24809         * m4/regex.m4: Likewise.
24810         * m4/relocatable.m4: Likewise.
24811         * m4/relocatable-lib.m4: Likewise.
24812         * m4/rename-dest-slash.m4: Likewise.
24813         * m4/rename.m4: Likewise.
24814         * m4/rmdir-errno.m4: Likewise.
24815         * m4/rmdir.m4: Likewise.
24816         * m4/roundf.m4: Likewise.
24817         * m4/roundl.m4: Likewise.
24818         * m4/rpmatch.m4: Likewise.
24819         * m4/save-cwd.m4: Likewise.
24820         * m4/selinux-selinux-h.m4: Likewise.
24821         * m4/setenv.m4: Likewise.
24822         * m4/settime.m4: Likewise.
24823         * m4/sig2str.m4: Likewise.
24824         * m4/sig_atomic_t.m4: Likewise.
24825         * m4/signalblocking.m4: Likewise.
24826         * m4/signbit.m4: Likewise.
24827         * m4/sigpipe.m4: Likewise.
24828         * m4/sockets.m4: Likewise.
24829         * m4/sockpfaf.m4: Likewise.
24830         * m4/st_dm_mode.m4: Likewise.
24831         * m4/stat-time.m4: Likewise.
24832         * m4/stdbool.m4: Likewise.
24833         * m4/stdint.m4: Likewise.
24834         * m4/stdint_h.m4: Likewise.
24835         * m4/stpcpy.m4: Likewise.
24836         * m4/stpncpy.m4: Likewise.
24837         * m4/strcase.m4: Likewise.
24838         * m4/strchrnul.m4: Likewise.
24839         * m4/strcspn.m4: Likewise.
24840         * m4/strdup.m4: Likewise.
24841         * m4/strftime.m4: Likewise.
24842         * m4/strndup.m4: Likewise.
24843         * m4/strnlen.m4: Likewise.
24844         * m4/strpbrk.m4: Likewise.
24845         * m4/strptime.m4: Likewise.
24846         * m4/strsep.m4: Likewise.
24847         * m4/strtod.m4: Likewise.
24848         * m4/strtoimax.m4: Likewise.
24849         * m4/strtok_r.m4: Likewise.
24850         * m4/strtol.m4: Likewise.
24851         * m4/strtoll.m4: Likewise.
24852         * m4/strtoul.m4: Likewise.
24853         * m4/strtoull.m4: Likewise.
24854         * m4/strtoumax.m4: Likewise.
24855         * m4/strverscmp.m4: Likewise.
24856         * m4/threadlib.m4: Likewise.
24857         * m4/timegm.m4: Likewise.
24858         * m4/tm_gmtoff.m4: Likewise.
24859         * m4/tmpdir.m4: Likewise.
24860         * m4/tmpfile.m4: Likewise.
24861         * m4/tzset.m4: Likewise.
24862         * m4/uintmax_t.m4: Likewise.
24863         * m4/unlinkdir.m4: Likewise.
24864         * m4/unlocked-io.m4: Likewise.
24865         * m4/uptime.m4: Likewise.
24866         * m4/userspec.m4: Likewise.
24867         * m4/utimbuf.m4: Likewise.
24868         * m4/utime.m4: Likewise.
24869         * m4/utimes-null.m4: Likewise.
24870         * m4/utimes.m4: Likewise.
24871         * m4/vararrays.m4: Likewise.
24872         * m4/vasnprintf.m4: Likewise.
24873         * m4/vfprintf-posix.m4: Likewise.
24874         * m4/vprintf-posix.m4: Likewise.
24875         * m4/wait-process.m4: Likewise.
24876         * m4/wchar_t.m4: Likewise.
24877         * m4/wint_t.m4: Likewise.
24878         * m4/write-any-file.m4: Likewise.
24879         * m4/yield.m4: Likewise.
24880
24881 2009-01-13  Bruno Haible  <bruno@clisp.org>
24882
24883         Avoid test-copy-file.sh failures when ACL support insufficient.
24884         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
24885         TESTS_ENVIRONMENT.
24886         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
24887         Reported by Jim Meyering.
24888
24889 2009-01-13  Bruno Haible  <bruno@clisp.org>
24890
24891         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
24892         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
24893         * modules/unistdio/u8-printf-parse (Files): Likewise.
24894         * modules/unistdio/u32-printf-parse (Files): Likewise.
24895         * modules/unistdio/ulc-printf-parse (Files): Likewise.
24896
24897 2009-01-13  Simon Josefsson  <simon@josefsson.org>
24898
24899         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
24900         and m4/inttypes_h.m4 too.
24901
24902 2009-01-12  Eric Blake  <ebb9@byu.net>
24903
24904         tests: IRIX 6.2 cc can't compile -0.0 into .data
24905         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
24906         rather than at compile-time.
24907         * tests/test-floorl.c (minus_zero): Likewise.
24908         * tests/test-frexpl.c (minus_zero): Likewise.
24909         * tests/test-isnan.c (minus_zerol): Likewise.
24910         * tests/test-isnanl.h (minus_zero): Likewise.
24911         * tests/test-ldexpl.c (minus_zero): Likewise.
24912         * tests/test-roundl.c (minus_zero): Likewise.
24913         * tests/test-signbit.c (minus_zerol): Likewise.
24914         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
24915         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
24916         * tests/test-truncl.c (minus_zero): Likewise.
24917         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
24918         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
24919         Reported by Tom G. Christensen and Nelson H. F. Beebe.
24920
24921 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
24922
24923         regex: fix glibc bug 9697
24924         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
24925         handling.
24926
24927 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
24928
24929         regex: fix glibc bug 697
24930         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
24931         being NULL also if there are no backreferences.
24932
24933 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
24934
24935         regex: merge glibc changes
24936         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
24937         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
24938         re_string_skip_chars, re_string_reconstruct): Likewise.
24939         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
24940
24941 2009-01-07  Jim Meyering  <meyering@redhat.com>
24942
24943         poll: filter through cppi
24944         * lib/poll.c: Indent cpp directives to reflect nesting.
24945
24946 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
24947
24948         poll: don't return uninitialized
24949         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
24950
24951 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
24952
24953         avoid compile failure on AIX 6.1
24954         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
24955         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
24956
24957 2009-01-04  Jim Meyering  <meyering@redhat.com>
24958
24959         remove duplicate inclusion of <stdio.h>
24960         * tests/test-fprintf-posix.c: Likewise.
24961         * tests/test-printf-posix.c: Likewise.
24962         * tests/test-snprintf-posix.c: Likewise.
24963         * tests/test-sprintf-posix.c: Likewise.
24964         * tests/test-vasprintf-posix.c: Likewise.
24965         * tests/test-vfprintf-posix.c: Likewise.
24966         * tests/test-vprintf-posix.c: Likewise.
24967         * tests/test-vsnprintf-posix.c: Likewise.
24968         * tests/test-vsprintf-posix.c: Likewise.
24969
24970 2009-01-03  Jim Meyering  <meyering@redhat.com>
24971
24972         gnulib-tool: fix sed-based filtering
24973         * gnulib-tool (func_filter_filelist): Remove extra backslash
24974         in sed_fff_filter definition.
24975
24976 2009-01-02  Jim Meyering  <meyering@redhat.com>
24977
24978         strftime: avoid compilation failure on Solaris 2.6
24979         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
24980         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
24981         Don't #define mbrlen or mbsinit, since now they're guaranteed to
24982         be available.  Reported by Tom G. Christensen.  Details in
24983         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
24984
24985 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24986             Bruno Haible  <bruno@clisp.org>
24987
24988         Speed up gnulib-tool by doing more string processing through shell
24989         built-ins.
24990         * gnulib-tool (fast_func_append): New variable.
24991         (func_remove_prefix, func_remove_suffix): New functions.
24992         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
24993         (func_filter_filelist): New function.
24994         (func_get_dependencies): Use func_remove_suffix instead of sed.
24995         (func_get_automake_snippet): Use func_filter_filelist instead of a
24996         subshell and sed invocation.
24997
24998 2009-01-01  Bruno Haible  <bruno@clisp.org>
24999
25000         Fix a security bug.
25001         * gnulib-tool (func_import, import, update): Don't allow the characters
25002         '"', '$', '`', '\' in macro arguments that become part of commands that
25003         are evaluated.
25004
25005 2009-01-01  Bruno Haible  <bruno@clisp.org>
25006
25007         * gnulib-tool (func_reset_sigpipe): Add more comments.
25008
25009 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25010
25011         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
25012         func_emit_tests_Makefile_am, func_import): Abort loops early if we
25013         already know the answer.
25014
25015 2009-01-01  Jim Meyering  <meyering@redhat.com>
25016
25017         * lib/version-etc.c (version_etc_va): Update copyright year.
25018
25019 2008-12-30  Bruno Haible  <bruno@clisp.org>
25020
25021         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
25022         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
25023         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
25024
25025 2008-12-29  Eric Blake  <ebb9@byu.net>
25026
25027         multiarch: avoid autoconf AC_REQUIRE bug
25028         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
25029         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
25030         2.63 and older.
25031         Reported by Bruno Haible, and analyzed in
25032         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
25033
25034 2008-12-29  Bruno Haible  <bruno@clisp.org>
25035
25036         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
25037         files in subdirectories correctly.
25038         Reported by Ralf Wildenhues.
25039
25040 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25041
25042         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
25043         rather than 'join FILE -', for Solaris join.
25044
25045 2008-12-29  Bruno Haible  <bruno@clisp.org>
25046
25047         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
25048         quoting.
25049         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
25050         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
25051         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
25052         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
25053         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
25054         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
25055         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
25056         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
25057         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
25058         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
25059         * m4/nls.m4 (AM_NLS): Likewise.
25060         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
25061         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
25062         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
25063         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
25064         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
25065         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
25066         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
25067         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
25068         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
25069         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
25070         * m4/xsize.m4 (gl_XSIZE): Likewise.
25071         Suggested by Jim Meyering.
25072
25073 2008-11-17  Bruce Korb  <bkorb@gnu.org>
25074
25075         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
25076         * lib/parse-duration.c: use a switch instead of cascading if's.
25077
25078 2008-12-29  Eric Blake  <ebb9@byu.net>
25079
25080         wchar.h: supply WEOF on Irix 5.3
25081         * lib/wchar.in.h (wint_t): Also supply WEOF.
25082         * lib/wctype.in.h (wint_t): Likewise.
25083         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
25084         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
25085         Reported by Tom G. Christensen.
25086
25087 2008-12-26  Bruno Haible  <bruno@clisp.org>
25088
25089         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
25090         i486, i586, i686.
25091
25092 2008-12-26  Bruno Haible  <bruno@clisp.org>
25093
25094         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
25095
25096 2008-12-26  Bruno Haible  <bruno@clisp.org>
25097
25098         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
25099         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
25100         not __STDC_CONSTANT_MACROS.
25101         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
25102
25103 2008-12-25  Bruno Haible  <bruno@clisp.org>
25104
25105         Add support for universal builds to vasnprintf.
25106         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
25107         universal builds, guess no.
25108         * modules/vasnprintf-posix (Depends-on): Add multiarch.
25109         * modules/vasprintf-posix (Depends-on): Likewise.
25110         * modules/fprintf-posix (Depends-on): Likewise.
25111         * modules/vfprintf-posix (Depends-on): Likewise.
25112         * modules/snprintf-posix (Depends-on): Likewise.
25113         * modules/vsnprintf-posix (Depends-on): Likewise.
25114         * modules/sprintf-posix (Depends-on): Likewise.
25115         * modules/vsprintf-posix (Depends-on): Likewise.
25116         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
25117         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
25118         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
25119         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
25120         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
25121         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
25122         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
25123
25124         Add support for universal builds to <inttypes.h>.
25125         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
25126         _SCNu64_PREFIX): In Apple
25127         universal builds, define directly, using _LP64.
25128         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
25129         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
25130         * modules/inttypes (Depends-on): Add multiarch.
25131         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
25132
25133         Add support for universal builds to <stdint.h>.
25134         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
25135         universal builds, define directly, using _LP64.
25136         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
25137         Apple universal builds, don't test for the size and suffix of ptrdiff_t
25138         and size_t.
25139         * modules/stdint (Depends-on): Add multiarch.
25140         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
25141
25142         New module 'multiarch'.
25143         * modules/multiarch: New file.
25144         * m4/multiarch.m4: New file.
25145
25146 2008-12-25  Bruno Haible  <bruno@clisp.org>
25147
25148         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
25149
25150 2008-12-25  Bruno Haible  <bruno@clisp.org>
25151
25152         * modules/btowc (License): Relicense under LGPLv2+.
25153         * modules/mbsinit (License): Likewise.
25154         * modules/mbrtowc (License): Likewise.
25155         * modules/wcrtomb (License): Likewise.
25156         * modules/streq (License): Likewise.
25157         Reported by David Lutterkort <lutter@redhat.com>.
25158
25159 2008-12-23  Bruno Haible  <bruno@clisp.org>
25160
25161         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
25162
25163 2008-12-23  Bruno Haible  <bruno@clisp.org>
25164
25165         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
25166         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
25167         GETADDRINFO_LIB, not in LIBS.
25168         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
25169         * modules/canon-host (Link): Likewise.
25170         * NEWS: Mention the change.
25171         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
25172         GETADDRINFO_LIB.
25173
25174 2008-12-22  Bruno Haible  <bruno@clisp.org>
25175
25176         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
25177         * doc/posix-functions/iswalpha_l.texi: Likewise.
25178         * doc/posix-functions/iswblank_l.texi: Likewise.
25179         * doc/posix-functions/iswcntrl_l.texi: Likewise.
25180         * doc/posix-functions/iswctype_l.texi: Likewise.
25181         * doc/posix-functions/iswdigit_l.texi: Likewise.
25182         * doc/posix-functions/iswgraph_l.texi: Likewise.
25183         * doc/posix-functions/iswlower_l.texi: Likewise.
25184         * doc/posix-functions/iswprint_l.texi: Likewise.
25185         * doc/posix-functions/iswpunct_l.texi: Likewise.
25186         * doc/posix-functions/iswspace_l.texi: Likewise.
25187         * doc/posix-functions/iswupper_l.texi: Likewise.
25188         * doc/posix-functions/iswxdigit_l.texi: Likewise.
25189         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
25190         * doc/posix-functions/open_wmemstream.texi: Likewise.
25191         * doc/posix-functions/swscanf.texi: Likewise.
25192         * doc/posix-functions/towctrans_l.texi: Likewise.
25193         * doc/posix-functions/towlower.texi: Likewise.
25194         * doc/posix-functions/towlower_l.texi: Likewise.
25195         * doc/posix-functions/towupper.texi: Likewise.
25196         * doc/posix-functions/towupper_l.texi: Likewise.
25197         * doc/posix-functions/vfwprintf.texi: Likewise.
25198         * doc/posix-functions/vfwscanf.texi: Likewise.
25199         * doc/posix-functions/vswscanf.texi: Likewise.
25200         * doc/posix-functions/vwprintf.texi: Likewise.
25201         * doc/posix-functions/vwscanf.texi: Likewise.
25202         * doc/posix-functions/wcpcpy.texi: Likewise.
25203         * doc/posix-functions/wcpncpy.texi: Likewise.
25204         * doc/posix-functions/wcscasecmp.texi: Likewise.
25205         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
25206         * doc/posix-functions/wcscoll_l.texi: Likewise.
25207         * doc/posix-functions/wcsdup.texi: Likewise.
25208         * doc/posix-functions/wcsncasecmp.texi: Likewise.
25209         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
25210         * doc/posix-functions/wcsnlen.texi: Likewise.
25211         * doc/posix-functions/wcsnrtombs.texi: Likewise.
25212         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
25213         * doc/posix-functions/wctrans_l.texi: Likewise.
25214         * doc/posix-functions/wctype_l.texi: Likewise.
25215         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
25216         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
25217         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
25218         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
25219         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
25220         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
25221         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
25222         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
25223         * doc/glibc-functions/wcschrnul.texi: Likewise.
25224         * doc/glibc-functions/wcsftime_l.texi: Likewise.
25225         * doc/glibc-functions/wcstod_l.texi: Likewise.
25226         * doc/glibc-functions/wcstof_l.texi: Likewise.
25227         * doc/glibc-functions/wcstol_l.texi: Likewise.
25228         * doc/glibc-functions/wcstold_l.texi: Likewise.
25229         * doc/glibc-functions/wcstoll_l.texi: Likewise.
25230         * doc/glibc-functions/wcstoq.texi: Likewise.
25231         * doc/glibc-functions/wcstoul_l.texi: Likewise.
25232         * doc/glibc-functions/wcstoull_l.texi: Likewise.
25233         * doc/glibc-functions/wcstouq.texi: Likewise.
25234         * doc/glibc-functions/wmempcpy.texi: Likewise.
25235
25236 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
25237             Eric Blake  <ebb9@byu.net>
25238             Paolo Bonzini  <bonzini@gnu.org>
25239             Bruno Haible  <bruno@clisp.org>
25240
25241         Make c-stack work on Haiku.
25242         * lib/c-stack.c (SA_ONSTACK): Define fallback.
25243         (c_stack_action): Use SA_ONSTACK flag.
25244
25245 2008-12-22  Bruno Haible  <bruno@clisp.org>
25246
25247         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
25248
25249 2008-12-22  Bruno Haible  <bruno@clisp.org>
25250
25251         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
25252         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
25253         being overridden.
25254         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
25255         New macros.
25256         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
25257         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
25258         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
25259         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
25260
25261 2008-12-22  Bruno Haible  <bruno@clisp.org>
25262
25263         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
25264         from test code.
25265
25266 2008-12-22  Eric Blake  <ebb9@byu.net>
25267
25268         Avoid gcc warnings on cygwin.
25269         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
25270         Avoid unused variable.
25271         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
25272         Likewise.
25273
25274 2008-12-22  Bruno Haible  <bruno@clisp.org>
25275
25276         Remove HAVE_MBRTOWC conditionals.
25277         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
25278         (mbscasecmp): Assume mbrtowc function.
25279         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
25280         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
25281         * lib/mbschr.c: Include mbuiter.h unconditionally.
25282         (mbschr): Assume mbrtowc function.
25283         * lib/mbscspn.c: Include mbuiter.h unconditionally.
25284         (mbscspn): Assume mbrtowc function.
25285         * lib/mbslen.c: Include mbuiter.h unconditionally.
25286         (mbslen): Assume mbrtowc function.
25287         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
25288         (mbsncasecmp): Assume mbrtowc function.
25289         * lib/mbsnlen.c: Include mbiter.h unconditionally.
25290         (mbsnlen): Assume mbrtowc function.
25291         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
25292         (mbspbrk): Assume mbrtowc function.
25293         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
25294         (mbspcasecmp): Assume mbrtowc function.
25295         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
25296         (mbsrchr): Assume mbrtowc function.
25297         * lib/mbssep.c: Include mbuiter.h unconditionally.
25298         (mbssep): Assume mbrtowc function.
25299         * lib/mbsspn.c: Include mbuiter.h unconditionally.
25300         (mbsspn): Assume mbrtowc function.
25301         * lib/mbsstr.c: Include mbuiter.h unconditionally.
25302         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
25303         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
25304         (mbstok_r): Assume mbrtowc function.
25305         * lib/propername.c: Include mbuiter.h unconditionally.
25306         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
25307         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
25308         (trim2): Assume mbrtowc function.
25309         * lib/mbswidth.c (mbsinit): Remove fallback definition.
25310         (mbsnwidth): Assume mbrtowc function.
25311         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
25312         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
25313         fallback definitions.
25314         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
25315
25316 2008-12-22  Bruno Haible  <bruno@clisp.org>
25317
25318         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
25319
25320 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
25321
25322         * modules/regex: Request emulations for the mb*/wc* functions we need.
25323         * m4/regex.m4: Don't look for those functions here.
25324         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
25325
25326 2008-12-22  Bruno Haible  <bruno@clisp.org>
25327
25328         * modules/fnmatch (Depends-on): Remove duplicated dependency.
25329
25330 2008-12-21  Bruno Haible  <bruno@clisp.org>
25331
25332         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
25333         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
25334         (Include): Remove conditionalization.
25335         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
25336         (Include): Remove conditionalization.
25337         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
25338         (Include): Remove conditionalization.
25339         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
25340         * m4/mbfile.m4 (gl_MBFILE): Likewise.
25341         * NEWS: Mention the change.
25342         Reported by Alan Hourihane <alanh@fairlite.co.uk>
25343         via Sergey Poznyakoff <gray@gnu.org.ua>.
25344
25345 2008-12-21  Bruno Haible  <bruno@clisp.org>
25346
25347         * MODULES.html.sh (Extended multibyte and wide character utilities
25348         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
25349         wcrtomb, wcsrtombs.
25350         (Support for systems lacking POSIX:2008): Add accept, bind, close,
25351         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
25352         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
25353         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
25354
25355 2008-12-21  Bruno Haible  <bruno@clisp.org>
25356
25357         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
25358
25359 2008-12-21  Bruno Haible  <bruno@clisp.org>
25360
25361         * modules/wcsnrtombs-tests: New file.
25362         * tests/test-wcsnrtombs1.sh: New file.
25363         * tests/test-wcsnrtombs2.sh: New file.
25364         * tests/test-wcsnrtombs3.sh: New file.
25365         * tests/test-wcsnrtombs4.sh: New file.
25366         * tests/test-wcsnrtombs.c: New file.
25367
25368         New module 'wcsnrtombs'.
25369         * lib/wchar.in.h (wcsnrtombs): New declaration.
25370         * lib/wcsnrtombs.c: New file.
25371         * lib/wcsrtombs-state.c: New file.
25372         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
25373         (internal_state): Remove variable.
25374         * m4/wcsnrtombs.m4: New file.
25375         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
25376         compilation units.
25377         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
25378         HAVE_WCSNRTOMBS.
25379         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
25380         HAVE_WCSNRTOMBS.
25381         * modules/wcsnrtombs: New file.
25382         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
25383         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
25384
25385 2008-12-21  Bruno Haible  <bruno@clisp.org>
25386
25387         * modules/wcsrtombs-tests: New file.
25388         * tests/test-wcsrtombs1.sh: New file.
25389         * tests/test-wcsrtombs2.sh: New file.
25390         * tests/test-wcsrtombs3.sh: New file.
25391         * tests/test-wcsrtombs4.sh: New file.
25392         * tests/test-wcsrtombs.c: New file.
25393
25394         New module 'wcsrtombs'.
25395         * lib/wchar.in.h (wcsrtombs): New declaration.
25396         * lib/wcsrtombs.c: New file.
25397         * m4/wcsrtombs.m4: New file.
25398         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
25399         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
25400         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
25401         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
25402         * modules/wcsrtombs: New file.
25403         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
25404         bugs.
25405
25406 2008-12-21  Bruno Haible  <bruno@clisp.org>
25407
25408         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
25409         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
25410         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
25411         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
25412         if not correct.
25413         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
25414         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
25415         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
25416         m4/locale-zh.m4, m4/codeset.m4.
25417         * doc/posix-functions/wcrtomb.texi: Document the bug.
25418
25419 2008-12-21  Bruno Haible  <bruno@clisp.org>
25420
25421         Work around a btowc() bug on IRIX 6.5.
25422         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
25423         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
25424         REPLACE_WTOBC if not.
25425         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
25426         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
25427         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
25428
25429 2008-12-21  Bruno Haible  <bruno@clisp.org>
25430
25431         * modules/wcrtomb-tests: New file.
25432         * tests/test-wcrtomb.sh: New file.
25433         * tests/test-wcrtomb.c: New file.
25434
25435         New module 'wcrtomb'.
25436         * lib/wchar.in.h (wcrtomb): New declaration.
25437         * lib/wcrtomb.c: New file.
25438         * m4/wcrtomb.m4: New file.
25439         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
25440         HAVE_WCRTOMB.
25441         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
25442         HAVE_WCRTOMB.
25443         * modules/wcrtomb: New file.
25444         * doc/posix-functions/wcrtomb.texi: Mention the new module.
25445
25446 2008-12-21  Bruno Haible  <bruno@clisp.org>
25447
25448         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
25449         * modules/mbsrtowcs (Files): Likewise.
25450         * modules/wctob (Files): Likewise.
25451         * modules/c-strcase-tests (Files): Likewise.
25452         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
25453         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
25454         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
25455         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
25456         * modules/vasnprintf-posix-tests (Files): Likewise.
25457
25458 2008-12-21  William Pursell  <bill.pursell@gmail.com>
25459
25460         gitlog-to-changelog: pass all command-line arguments to git-log
25461         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
25462         it is sometimes convenient to filter the commits in various ways.
25463         gitlog-to-changelog only allows --since to specify a start date,
25464         but git-log itself supports many other filtering mechanisms.
25465         At the moment, I want to filter by branch name.  Rather than
25466         adding a --branch option to gitlog-to-changelog, it seems more
25467         flexible to simply pass all options directly to git-log and let
25468         git do the work.  Notice that this effectively makes --since a
25469         redundant option for gitlog-to-changelog, but removing it would
25470         require current usage to change since calls would then require
25471         an additional '--'.
25472
25473 2008-12-21  Bruno Haible  <bruno@clisp.org>
25474
25475         * modules/mbsnrtowcs-tests: New file.
25476         * tests/test-mbsnrtowcs1.sh: New file.
25477         * tests/test-mbsnrtowcs2.sh: New file.
25478         * tests/test-mbsnrtowcs3.sh: New file.
25479         * tests/test-mbsnrtowcs4.sh: New file.
25480         * tests/test-mbsnrtowcs.c: New file.
25481
25482         New module 'mbsnrtowcs'.
25483         * lib/wchar.in.h (mbsnrtowcs): New declaration.
25484         * lib/mbsnrtowcs.c: New file.
25485         * lib/mbsrtowcs-state.c: New file.
25486         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
25487         (internal_state): Remove variable.
25488         * m4/mbsnrtowcs.m4: New file.
25489         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
25490         compilation units.
25491         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
25492         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
25493         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
25494         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
25495         * modules/mbsnrtowcs: New file.
25496         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
25497         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
25498         portability problem.
25499
25500 2008-12-21  Bruno Haible  <bruno@clisp.org>
25501
25502         Work around mbsrtowcs bug.
25503         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
25504         (gl_FUNC_MBSRTOWCS): Invoke it.
25505         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
25506         m4/locale-zh.m4.
25507         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
25508
25509 2008-12-21  Bruno Haible  <bruno@clisp.org>
25510
25511         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
25512
25513 2008-12-21  Bruno Haible  <bruno@clisp.org>
25514
25515         Update doc for AIX.
25516         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
25517         16-bit wchar_t type.
25518         * doc/posix-functions/btowc.texi: Likewise.
25519         * doc/posix-functions/fgetwc.texi: Likewise.
25520         * doc/posix-functions/fgetws.texi: Likewise.
25521         * doc/posix-functions/fputwc.texi: Likewise.
25522         * doc/posix-functions/fputws.texi: Likewise.
25523         * doc/posix-functions/fwide.texi: Likewise.
25524         * doc/posix-functions/fwprintf.texi: Likewise.
25525         * doc/posix-functions/fwscanf.texi: Likewise.
25526         * doc/posix-functions/getwchar.texi: Likewise.
25527         * doc/posix-functions/getwc.texi: Likewise.
25528         * doc/posix-functions/iswalnum.texi: Likewise.
25529         * doc/posix-functions/iswalpha.texi: Likewise.
25530         * doc/posix-functions/iswblank.texi: Likewise.
25531         * doc/posix-functions/iswcntrl.texi: Likewise.
25532         * doc/posix-functions/iswctype.texi: Likewise.
25533         * doc/posix-functions/iswdigit.texi: Likewise.
25534         * doc/posix-functions/iswgraph.texi: Likewise.
25535         * doc/posix-functions/iswlower.texi: Likewise.
25536         * doc/posix-functions/iswprint.texi: Likewise.
25537         * doc/posix-functions/iswpunct.texi: Likewise.
25538         * doc/posix-functions/iswspace.texi: Likewise.
25539         * doc/posix-functions/iswupper.texi: Likewise.
25540         * doc/posix-functions/iswxdigit.texi: Likewise.
25541         * doc/posix-functions/mbrtowc.texi: Likewise.
25542         * doc/posix-functions/mbsrtowcs.texi: Likewise.
25543         * doc/posix-functions/mbstowcs.texi: Likewise.
25544         * doc/posix-functions/mbtowc.texi: Likewise.
25545         * doc/posix-functions/putwchar.texi: Likewise.
25546         * doc/posix-functions/putwc.texi: Likewise.
25547         * doc/posix-functions/swprintf.texi: Likewise.
25548         * doc/posix-functions/tolower.texi: Likewise.
25549         * doc/posix-functions/toupper.texi: Likewise.
25550         * doc/posix-functions/towctrans.texi: Likewise.
25551         * doc/posix-functions/ungetwc.texi: Likewise.
25552         * doc/posix-functions/vswprintf.texi: Likewise.
25553         * doc/posix-functions/wcrtomb.texi: Likewise.
25554         * doc/posix-functions/wcscat.texi: Likewise.
25555         * doc/posix-functions/wcschr.texi: Likewise.
25556         * doc/posix-functions/wcscmp.texi: Likewise.
25557         * doc/posix-functions/wcscoll.texi: Likewise.
25558         * doc/posix-functions/wcscpy.texi: Likewise.
25559         * doc/posix-functions/wcscspn.texi: Likewise.
25560         * doc/posix-functions/wcsftime.texi: Likewise.
25561         * doc/posix-functions/wcslen.texi: Likewise.
25562         * doc/posix-functions/wcsncat.texi: Likewise.
25563         * doc/posix-functions/wcsncmp.texi: Likewise.
25564         * doc/posix-functions/wcsncpy.texi: Likewise.
25565         * doc/posix-functions/wcspbrk.texi: Likewise.
25566         * doc/posix-functions/wcsrchr.texi: Likewise.
25567         * doc/posix-functions/wcsrtombs.texi: Likewise.
25568         * doc/posix-functions/wcsspn.texi: Likewise.
25569         * doc/posix-functions/wcsstr.texi: Likewise.
25570         * doc/posix-functions/wcstod.texi: Likewise.
25571         * doc/posix-functions/wcstof.texi: Likewise.
25572         * doc/posix-functions/wcstoimax.texi: Likewise.
25573         * doc/posix-functions/wcstok.texi: Likewise.
25574         * doc/posix-functions/wcstold.texi: Likewise.
25575         * doc/posix-functions/wcstoll.texi: Likewise.
25576         * doc/posix-functions/wcstol.texi: Likewise.
25577         * doc/posix-functions/wcstombs.texi: Likewise.
25578         * doc/posix-functions/wcstoull.texi: Likewise.
25579         * doc/posix-functions/wcstoul.texi: Likewise.
25580         * doc/posix-functions/wcstoumax.texi: Likewise.
25581         * doc/posix-functions/wcswidth.texi: Likewise.
25582         * doc/posix-functions/wcsxfrm.texi: Likewise.
25583         * doc/posix-functions/wctob.texi: Likewise.
25584         * doc/posix-functions/wctomb.texi: Likewise.
25585         * doc/posix-functions/wctrans.texi: Likewise.
25586         * doc/posix-functions/wctype.texi: Likewise.
25587         * doc/posix-functions/wcwidth.texi: Likewise.
25588         * doc/posix-functions/wmemchr.texi: Likewise.
25589         * doc/posix-functions/wmemcmp.texi: Likewise.
25590         * doc/posix-functions/wmemcpy.texi: Likewise.
25591         * doc/posix-functions/wmemmove.texi: Likewise.
25592         * doc/posix-functions/wmemset.texi: Likewise.
25593         * doc/posix-functions/wprintf.texi: Likewise.
25594         * doc/posix-functions/wscanf.texi: Likewise.
25595
25596 2008-12-21  Bruno Haible  <bruno@clisp.org>
25597
25598         Update doc for HP-UX 11.11.
25599         * doc/posix-functions/btowc.texi: Clarify that the function is missing
25600         in HP-UX version 11.00, not in all versions of HP-UX 11.
25601         * doc/posix-functions/fwide.texi: Likewise.
25602         * doc/posix-functions/fwprintf.texi: Likewise.
25603         * doc/posix-functions/fwscanf.texi: Likewise.
25604         * doc/posix-functions/inet_ntop.texi: Likewise.
25605         * doc/posix-functions/inet_pton.texi: Likewise.
25606         * doc/posix-functions/mbrlen.texi: Likewise.
25607         * doc/posix-functions/mbrtowc.texi: Likewise.
25608         * doc/posix-functions/mbsinit.texi: Likewise.
25609         * doc/posix-functions/mbsrtowcs.texi: Likewise.
25610         * doc/posix-functions/swprintf.texi: Likewise.
25611         * doc/posix-functions/swscanf.texi: Likewise.
25612         * doc/posix-functions/towctrans.texi: Likewise.
25613         * doc/posix-functions/vfwprintf.texi: Likewise.
25614         * doc/posix-functions/vswprintf.texi: Likewise.
25615         * doc/posix-functions/vwprintf.texi: Likewise.
25616         * doc/posix-functions/wcrtomb.texi: Likewise.
25617         * doc/posix-functions/wcsrtombs.texi: Likewise.
25618         * doc/posix-functions/wcsstr.texi: Likewise.
25619         * doc/posix-functions/wctob.texi: Likewise.
25620         * doc/posix-functions/wctrans.texi: Likewise.
25621         * doc/posix-functions/wmemchr.texi: Likewise.
25622         * doc/posix-functions/wmemcmp.texi: Likewise.
25623         * doc/posix-functions/wmemcpy.texi: Likewise.
25624         * doc/posix-functions/wmemmove.texi: Likewise.
25625         * doc/posix-functions/wmemset.texi: Likewise.
25626         * doc/posix-functions/wprintf.texi: Likewise.
25627         * doc/posix-functions/wscanf.texi: Likewise.
25628
25629 2008-12-21  Bruno Haible  <bruno@clisp.org>
25630
25631         Work around a portability problem.
25632         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
25633         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
25634
25635 2008-12-20  Bruno Haible  <bruno@clisp.org>
25636
25637         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
25638         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
25639         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
25640         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
25641         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
25642
25643         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
25644         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
25645         set.
25646         (GNULIB_defined_mbstate_t): New macro.
25647         (mbsinit): Redefine if REPLACE_MBSINIT is set.
25648         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
25649         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
25650         reuses the system's mbrtowc function but works around the bugs.
25651         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
25652         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
25653         macros.
25654         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
25655         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
25656         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
25657         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
25658         REPLACE_MBSINIT if mbsinit needs to be overridden.
25659         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
25660         REPLACE_MBSINIT, REPLACE_MBRTOWC.
25661         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
25662         REPLACE_MBSINIT, REPLACE_MBRTOWC.
25663         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
25664         m4/locale-zh.m4.
25665         (Depends): Add mbsinit.
25666         * modules/mbsinit (Depends): Add mbrtowc.
25667         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
25668
25669 2008-12-20  Bruno Haible  <bruno@clisp.org>
25670
25671         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
25672         so that there are no conversion errors on AIX.
25673         * tests/test-mbsrtowcs.c (main): LIkewise.
25674
25675 2008-12-20  Bruno Haible  <bruno@clisp.org>
25676
25677         Work around wctob bug on Solaris <= 9.
25678         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
25679         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
25680         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
25681         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
25682         * modules/wctob (Files): Add m4/locale-fr.m4.
25683         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
25684
25685 2008-12-20  Bruno Haible  <bruno@clisp.org>
25686
25687         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
25688         /dev/null.
25689         * tests/test-select-in.sh: Likewise.
25690         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25691
25692 2008-12-20  Bruno Haible  <bruno@clisp.org>
25693
25694         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
25695         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
25696         Cygwin 1.5.x.
25697
25698 2008-12-20  Bruno Haible  <bruno@clisp.org>
25699
25700         Ensure mbstate_t is defined on HP-UX 11.11.
25701         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
25702         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
25703         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
25704         AC_USE_SYSTEM_EXTENSIONS.
25705         * modules/fnmatch (Depends-on): Add extensions.
25706         * modules/mbrlen (Depends-on): Likewise.
25707         * modules/mbrtowc (Depends-on): Likewise.
25708         * modules/mbsinit (Depends-on): Likewise.
25709         * modules/mbsrtowcs (Depends-on): Likewise.
25710         * modules/mbswidth (Depends-on): Likewise.
25711         * modules/quotearg (Depends-on): Likewise.
25712         * modules/strftime (Depends-on): Likewise.
25713
25714 2008-12-20  Bruno Haible  <bruno@clisp.org>
25715
25716         Ensure wctob is declared on IRIX 6.5.
25717         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
25718         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
25719         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
25720         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
25721         of HAVE_WCTOB.
25722         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
25723         HAVE_WCTOB.
25724         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
25725
25726 2008-12-19  Bruno Haible  <bruno@clisp.org>
25727
25728         * modules/mbsrtowcs-tests: New file.
25729         * tests/test-mbsrtowcs1.sh: New file.
25730         * tests/test-mbsrtowcs2.sh: New file.
25731         * tests/test-mbsrtowcs3.sh: New file.
25732         * tests/test-mbsrtowcs4.sh: New file.
25733         * tests/test-mbsrtowcs.c: New file.
25734
25735         New module 'mbsrtowcs'.
25736         * lib/wchar.in.h (mbsrtowcs): New declaration.
25737         * lib/mbsrtowcs.c: New file.
25738         * m4/mbsrtowcs.m4: New file.
25739         * modules/mbsrtowcs: New file.
25740         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
25741         HAVE_MBSRTOWCS.
25742         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
25743         HAVE_MBSRTOWCS.
25744         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
25745
25746 2008-12-19  Bruno Haible  <bruno@clisp.org>
25747
25748         New module 'mbrlen'.
25749         * lib/wchar.in.h (mbrlen): New declaration.
25750         * lib/mbrlen.c: New file.
25751         * m4/mbrlen.m4: New file.
25752         * modules/mbrlen: New file.
25753         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
25754         HAVE_MBRLEN.
25755         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
25756         HAVE_MBRLEN.
25757         * doc/posix-functions/mbrlen.texi: Document the new module.
25758
25759 2008-12-19  Bruno Haible  <bruno@clisp.org>
25760
25761         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
25762         * modules/mbrtowc (Depends-on): Add verify.
25763         Suggested by Paul Eggert.
25764
25765 2008-12-18  Bruno Haible  <bruno@clisp.org>
25766
25767         * modules/mbsinit-tests: New file.
25768         * tests/test-mbsinit.sh: New file.
25769         * tests/test-mbsinit.c: New file.
25770
25771 2008-12-18  Bruno Haible  <bruno@clisp.org>
25772
25773         * modules/mbrtowc-tests: New file.
25774         * tests/test-mbrtowc1.sh: New file.
25775         * tests/test-mbrtowc2.sh: New file.
25776         * tests/test-mbrtowc3.sh: New file.
25777         * tests/test-mbrtowc4.sh: New file.
25778         * tests/test-mbrtowc.c: New file.
25779
25780         New module 'mbrtowc'.
25781         * lib/wchar.in.h (mbstate_t): Override when the system does not have
25782         mbsinit and mbrtowc.
25783         (mbrtowc): New declaration.
25784         * lib/mbrtowc.c: New file.
25785         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
25786         * modules/mbrtowc: New file.
25787         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
25788         HAVE_MBRTOWC.
25789         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
25790         HAVE_MBRTOWC.
25791         * doc/posix-functions/mbrtowc.texi: Document the new module.
25792
25793 2008-12-18  Bruno Haible  <bruno@clisp.org>
25794
25795         New module 'wctob'.
25796         * lib/wchar.in.h (wctob): New declaration.
25797         * lib/wctob.c: New file.
25798         * m4/wctob.m4: New file.
25799         * modules/wctob: New file.
25800         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
25801         HAVE_WCTOB.
25802         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
25803         * doc/posix-functions/wctob.texi: Document the new module.
25804
25805 2008-12-18  Bruno Haible  <bruno@clisp.org>
25806
25807         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
25808         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
25809
25810 2008-12-18  Simon Josefsson  <simon@josefsson.org>
25811
25812         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
25813         G. Christensen" <tgc@jupiterrise.com>.
25814
25815         * lib/flock.c: Need to include errno.h.  Reported by "Tom
25816         G. Christensen" <tgc@jupiterrise.com>.
25817
25818         * lib/flock.c: Need to include string.h.  Reported by "Tom
25819         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
25820         <ebb9@byu.net>.
25821
25822 2008-12-18  Bruno Haible  <bruno@clisp.org>
25823
25824         * m4/locale-ja.m4: New file, from GNU gettext.
25825
25826 2008-12-17  Bruno Haible  <bruno@clisp.org>
25827
25828         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
25829         Suggested by Eric Blake.
25830
25831 2008-12-17  Bruno Haible  <bruno@clisp.org>
25832
25833         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
25834
25835 2008-12-17  Bruno Haible  <bruno@clisp.org>
25836
25837         * lib/mbsinit.c: Include verify.h. Verify an assumption.
25838         * modules/mbsinit (Depends-on): Add verify.
25839         Suggested by Paul Eggert.
25840
25841 2008-12-17  Bruno Haible  <bruno@clisp.org>
25842
25843         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
25844         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
25845         gl_FUNC_MBRTOWC.
25846         * m4/mbiter.m4 (gl_MBITER): LIkewise.
25847         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
25848         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
25849         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
25850         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
25851         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
25852         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
25853         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
25854         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
25855         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
25856         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
25857         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
25858         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
25859         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
25860         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
25861         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
25862         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
25863         * modules/trim (configure.ac): Likewise.
25864
25865 2008-12-17  Bruno Haible  <bruno@clisp.org>
25866
25867         * modules/btowc-tests: New file.
25868         * tests/test-btowc1.sh: New file.
25869         * tests/test-btowc2.sh: New file.
25870         * tests/test-btowc.c: New file.
25871
25872         New module 'btowc'.
25873         * lib/wchar.in.h (btowc): New declaration.
25874         * lib/btowc.c: New file.
25875         * m4/btowc.m4: New file.
25876         * modules/btowc: New file.
25877         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
25878         HAVE_BTOWC.
25879         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
25880         * doc/posix-functions/btowc.texi: Document the new module.
25881
25882 2008-12-17  Bruno Haible  <bruno@clisp.org>
25883
25884         New module 'mbsinit'.
25885         * lib/wchar.in.h (mbsinit): New declaration.
25886         * lib/mbsinit.c: New file.
25887         * m4/mbsinit.m4: New file.
25888         * modules/mbsinit: New file.
25889         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
25890         HAVE_MBSINIT.
25891         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
25892         HAVE_MBSINIT.
25893         * doc/posix-functions/mbsinit.texi: Document the new module.
25894
25895 2008-12-16  Bruno Haible  <bruno@clisp.org>
25896
25897         * lib/unistd.in.h: Add comment.
25898         * tests/test-environ.c: Don't include <stdlib.h>.
25899
25900 2008-12-16  Bruno Haible  <bruno@clisp.org>
25901
25902         * lib/parse-duration.h (parse_duration): Document return value
25903         convention.
25904         * lib/parse-duration.c: Include specification header first. Add
25905         comments.
25906         (_): Remove macro.
25907         (parse_year_month_day, parse_hour_minute_second): Move side effects
25908         outside of strchr call.
25909         (parse_non_iso8601): Move side effects outside of isspace call.
25910         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
25911         call.
25912
25913 2008-12-16  Bruno Haible  <bruno@clisp.org>
25914
25915         * tests/test-parse-duration.sh: Produce no output when the test
25916         succeeds.
25917
25918 2008-12-16  Bruno Haible  <bruno@clisp.org>
25919
25920         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
25921         expressions.
25922
25923 2008-12-15  Bruno Haible  <bruno@clisp.org>
25924
25925         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
25926         * doc/glibc-functions/flistxattr.texi: Likewise.
25927         * doc/glibc-functions/fopencookie.texi: Likewise.
25928         * doc/glibc-functions/fremovexattr.texi: Likewise.
25929         * doc/glibc-functions/fsetxattr.texi: Likewise.
25930         * doc/glibc-functions/getxattr.texi: Likewise.
25931         * doc/glibc-functions/lgetxattr.texi: Likewise.
25932         * doc/glibc-functions/listxattr.texi: Likewise.
25933         * doc/glibc-functions/llistxattr.texi: Likewise.
25934         * doc/glibc-functions/lremovexattr.texi: Likewise.
25935         * doc/glibc-functions/lsetxattr.texi: Likewise.
25936         * doc/glibc-functions/removexattr.texi: Likewise.
25937         * doc/glibc-functions/setxattr.texi: Likewise.
25938         * doc/posix-functions/open_memstream.texi: Likewise.
25939
25940 2008-12-15  Eric Blake  <ebb9@byu.net>
25941
25942         Update doc for cygwin 1.7.
25943         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
25944         functions.
25945         * doc/posix-functions/fchmodat.texi: Likewise.
25946         * doc/posix-functions/fchownat.texi: Likewise.
25947         * doc/posix-functions/fdopendir.texi: Likewise.
25948         * doc/posix-functions/fmemopen.texi: Likewise.
25949         * doc/posix-functions/freeaddrinfo.texi: Likewise.
25950         * doc/posix-functions/fstatat.texi: Likewise.
25951         * doc/posix-functions/futimens.texi: Likewise.
25952         * doc/posix-functions/gai_strerror.texi: Likewise.
25953         * doc/posix-functions/getaddrinfo.texi: Likewise.
25954         * doc/posix-functions/getnameinfo.texi: Likewise.
25955         * doc/posix-functions/if_freenameindex.texi: Likewise.
25956         * doc/posix-functions/if_indextoname.texi: Likewise.
25957         * doc/posix-functions/if_nameindex.texi: Likewise.
25958         * doc/posix-functions/if_nametoindex.texi: Likewise.
25959         * doc/posix-functions/insque.texi: Likewise.
25960         * doc/posix-functions/linkat.texi: Likewise.
25961         * doc/posix-functions/llrint.texi: Likewise.
25962         * doc/posix-functions/llrintf.texi: Likewise.
25963         * doc/posix-functions/llrintl.texi: Likewise.
25964         * doc/posix-functions/lockf.texi: Likewise.
25965         * doc/posix-functions/lrintl.texi: Likewise.
25966         * doc/posix-functions/mkdirat.texi: Likewise.
25967         * doc/posix-functions/mkfifoat.texi: Likewise.
25968         * doc/posix-functions/mknodat.texi: Likewise.
25969         * doc/posix-functions/mq_close.texi: Likewise.
25970         * doc/posix-functions/mq_getattr.texi: Likewise.
25971         * doc/posix-functions/mq_notify.texi: Likewise.
25972         * doc/posix-functions/mq_open.texi: Likewise.
25973         * doc/posix-functions/mq_receive.texi: Likewise.
25974         * doc/posix-functions/mq_send.texi: Likewise.
25975         * doc/posix-functions/mq_setattr.texi: Likewise.
25976         * doc/posix-functions/mq_timedreceive.texi: Likewise.
25977         * doc/posix-functions/mq_timedsend.texi: Likewise.
25978         * doc/posix-functions/mq_unlink.texi: Likewise.
25979         * doc/posix-functions/open_memstream.texi: Likewise.
25980         * doc/posix-functions/openat.texi: Likewise.
25981         * doc/posix-functions/posix_fadvise.texi: Likewise.
25982         * doc/posix-functions/posix_fallocate.texi: Likewise.
25983         * doc/posix-functions/posix_madvise.texi: Likewise.
25984         * doc/posix-functions/posix_memalign.texi: Likewise.
25985         * doc/posix-functions/posix_openpt.texi: Likewise.
25986         * doc/posix-functions/readlinkat.texi: Likewise.
25987         * doc/posix-functions/remque.texi: Likewise.
25988         * doc/posix-functions/renameat.texi: Likewise.
25989         * doc/posix-functions/rintl.texi: Likewise.
25990         * doc/posix-functions/sem_unlink.texi: Likewise.
25991         * doc/posix-functions/shm_open.texi: Likewise.
25992         * doc/posix-functions/shm_unlink.texi: Likewise.
25993         * doc/posix-functions/signgam.texi: Likewise.
25994         * doc/posix-functions/sigset.texi: Likewise.
25995         * doc/posix-functions/stpcpy.texi: Likewise.
25996         * doc/posix-functions/stpncpy.texi: Likewise.
25997         * doc/posix-functions/strerror.texi: Likewise.
25998         * doc/posix-functions/strtod.texi: Likewise.
25999         * doc/posix-functions/symlinkat.texi: Likewise.
26000         * doc/posix-functions/unlinkat.texi: Likewise.
26001         * doc/posix-functions/utimensat.texi: Likewise.
26002         * doc/glibc-functions/bindresvport.texi: Likewise.
26003         * doc/glibc-functions/dn_expand.texi: Likewise.
26004         * doc/glibc-functions/exp10.texi: Likewise.
26005         * doc/glibc-functions/exp10f.texi: Likewise.
26006         * doc/glibc-functions/fgetxattr.texi: Likewise.
26007         * doc/glibc-functions/flistxattr.texi: Likewise.
26008         * doc/glibc-functions/fopencookie.texi: Likewise.
26009         * doc/glibc-functions/freeifaddrs.texi: Likewise.
26010         * doc/glibc-functions/fremovexattr.texi: Likewise.
26011         * doc/glibc-functions/fsetxattr.texi: Likewise.
26012         * doc/glibc-functions/getifaddrs.texi: Likewise.
26013         * doc/glibc-functions/getxattr.texi: Likewise.
26014         * doc/glibc-functions/lgetxattr.texi: Likewise.
26015         * doc/glibc-functions/listxattr.texi: Likewise.
26016         * doc/glibc-functions/llistxattr.texi: Likewise.
26017         * doc/glibc-functions/lremovexattr.texi: Likewise.
26018         * doc/glibc-functions/lsetxattr.texi: Likewise.
26019         * doc/glibc-functions/pow10.texi: Likewise.
26020         * doc/glibc-functions/pow10f.texi: Likewise.
26021         * doc/glibc-functions/rcmd_af.texi: Likewise.
26022         * doc/glibc-functions/removexattr.texi: Likewise.
26023         * doc/glibc-functions/res_init.texi: Likewise.
26024         * doc/glibc-functions/res_mkquery.texi: Likewise.
26025         * doc/glibc-functions/res_query.texi: Likewise.
26026         * doc/glibc-functions/res_querydomain.texi: Likewise.
26027         * doc/glibc-functions/res_send.texi: Likewise.
26028         * doc/glibc-functions/rresvport_af.texi: Likewise.
26029         * doc/glibc-functions/setxattr.texi: Likewise.
26030         * doc/glibc-functions/strcasestr.texi: Likewise.
26031
26032 2008-12-15  Bruno Haible  <bruno@clisp.org>
26033
26034         Fix compilation error on OSF/1 4.0.
26035         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
26036         <sys/time.h>, simply delegate to the system header.
26037         Reported by Daniel Richard G. <oss@teragram.com>.
26038
26039 2008-12-15  Bruno Haible  <bruno@clisp.org>
26040
26041         * doc/posix-functions/openat.texi: Mention the 'openat' module.
26042         * doc/posix-functions/fchmodat.texi: Likewise.
26043         * doc/posix-functions/fchownat.texi: Likewise.
26044         * doc/posix-functions/fdopendir.texi: Likewise.
26045         * doc/posix-functions/fstatat.texi: Likewise.
26046         * doc/posix-functions/mkdirat.texi: Likewise.
26047         * doc/posix-functions/unlinkat.texi: Likewise.
26048
26049 2008-12-14  Bruno Haible  <bruno@clisp.org>
26050
26051         Update doc for POSIX:2008.
26052         * doc/posix-functions/faccessat.texi: New file.
26053         * doc/posix-functions/fchmodat.texi: New file.
26054         * doc/posix-functions/fchownat.texi: New file.
26055         * doc/posix-functions/fdopendir.texi: New file.
26056         * doc/posix-functions/fstatat.texi: New file.
26057         * doc/posix-functions/futimens.texi: New file.
26058         * doc/posix-functions/linkat.texi: New file.
26059         * doc/posix-functions/mkdirat.texi: New file.
26060         * doc/posix-functions/mkfifoat.texi: New file.
26061         * doc/posix-functions/mknodat.texi: New file.
26062         * doc/posix-functions/open_wmemstream.texi: New file.
26063         * doc/posix-functions/openat.texi: New file.
26064         * doc/posix-functions/psiginfo.texi: New file.
26065         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
26066         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
26067         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
26068         * doc/posix-functions/readlinkat.texi: New file.
26069         * doc/posix-functions/renameat.texi: New file.
26070         * doc/posix-functions/strerror_l.texi: New file.
26071         * doc/posix-functions/symlinkat.texi: New file.
26072         * doc/posix-functions/unlinkat.texi: New file.
26073         * doc/posix-functions/utimensat.texi: New file.
26074         * doc/gnulib.texi (Function Substitutes): Add these subsections.
26075
26076 2008-12-14  Bruno Haible  <bruno@clisp.org>
26077
26078         Update doc for POSIX:2008.
26079         * doc/posix-functions/alphasort.texi: Renamed from
26080         doc/glibc-functions/alphasort.texi.
26081         * doc/posix-functions/dirfd.texi: Renamed from
26082         doc/glibc-functions/dirfd.texi.
26083         * doc/posix-functions/dprintf.texi: Renamed from
26084         doc/glibc-functions/dprintf.texi.
26085         * doc/posix-functions/duplocale.texi: Renamed from
26086         doc/glibc-functions/duplocale.texi.
26087         * doc/posix-functions/fexecve.texi: Renamed from
26088         doc/glibc-functions/fexecve.texi.
26089         * doc/posix-functions/fmemopen.texi: Renamed from
26090         doc/glibc-functions/fmemopen.texi.
26091         * doc/posix-functions/freelocale.texi: Renamed from
26092         doc/glibc-functions/freelocale.texi.
26093         * doc/posix-functions/getdate_err.texi: Renamed from
26094         doc/glibc-functions/getdate_err.texi.
26095         * doc/posix-functions/isalnum_l.texi: Renamed from
26096         doc/glibc-functions/isalnum_l.texi.
26097         * doc/posix-functions/isalpha_l.texi: Renamed from
26098         doc/glibc-functions/isalpha_l.texi.
26099         * doc/posix-functions/isblank_l.texi: Renamed from
26100         doc/glibc-functions/isblank_l.texi.
26101         * doc/posix-functions/iscntrl_l.texi: Renamed from
26102         doc/glibc-functions/iscntrl_l.texi.
26103         * doc/posix-functions/isdigit_l.texi: Renamed from
26104         doc/glibc-functions/isdigit_l.texi.
26105         * doc/posix-functions/isgraph_l.texi: Renamed from
26106         doc/glibc-functions/isgraph_l.texi.
26107         * doc/posix-functions/islower_l.texi: Renamed from
26108         doc/glibc-functions/islower_l.texi.
26109         * doc/posix-functions/isprint_l.texi: Renamed from
26110         doc/glibc-functions/isprint_l.texi.
26111         * doc/posix-functions/ispunct_l.texi: Renamed from
26112         doc/glibc-functions/ispunct_l.texi.
26113         * doc/posix-functions/isspace_l.texi: Renamed from
26114         doc/glibc-functions/isspace_l.texi.
26115         * doc/posix-functions/isupper_l.texi: Renamed from
26116         doc/glibc-functions/isupper_l.texi.
26117         * doc/posix-functions/iswalnum_l.texi: Renamed from
26118         doc/glibc-functions/iswalnum_l.texi.
26119         * doc/posix-functions/iswalpha_l.texi: Renamed from
26120         doc/glibc-functions/iswalpha_l.texi.
26121         * doc/posix-functions/iswblank_l.texi: Renamed from
26122         doc/glibc-functions/iswblank_l.texi.
26123         * doc/posix-functions/iswcntrl_l.texi: Renamed from
26124         doc/glibc-functions/iswcntrl_l.texi.
26125         * doc/posix-functions/iswctype_l.texi: Renamed from
26126         doc/glibc-functions/iswctype_l.texi.
26127         * doc/posix-functions/iswdigit_l.texi: Renamed from
26128         doc/glibc-functions/iswdigit_l.texi.
26129         * doc/posix-functions/iswgraph_l.texi: Renamed from
26130         doc/glibc-functions/iswgraph_l.texi.
26131         * doc/posix-functions/iswlower_l.texi: Renamed from
26132         doc/glibc-functions/iswlower_l.texi.
26133         * doc/posix-functions/iswprint_l.texi: Renamed from
26134         doc/glibc-functions/iswprint_l.texi.
26135         * doc/posix-functions/iswpunct_l.texi: Renamed from
26136         doc/glibc-functions/iswpunct_l.texi.
26137         * doc/posix-functions/iswspace_l.texi: Renamed from
26138         doc/glibc-functions/iswspace_l.texi.
26139         * doc/posix-functions/iswupper_l.texi: Renamed from
26140         doc/glibc-functions/iswupper_l.texi.
26141         * doc/posix-functions/iswxdigit_l.texi: Renamed from
26142         doc/glibc-functions/iswxdigit_l.texi.
26143         * doc/posix-functions/isxdigit_l.texi: Renamed from
26144         doc/glibc-functions/isxdigit_l.texi.
26145         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
26146         doc/glibc-functions/mbsnrtowcs.texi.
26147         * doc/posix-functions/mkdtemp.texi: Renamed from
26148         doc/glibc-functions/mkdtemp.texi.
26149         * doc/posix-functions/newlocale.texi: Renamed from
26150         doc/glibc-functions/newlocale.texi.
26151         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
26152         doc/glibc-functions/nl_langinfo_l.texi.
26153         * doc/posix-functions/open_memstream.texi: Renamed from
26154         doc/glibc-functions/open_memstream.texi.
26155         * doc/posix-functions/opterr.texi: Renamed from
26156         doc/glibc-functions/opterr.texi.
26157         * doc/posix-functions/optind.texi: Renamed from
26158         doc/glibc-functions/optind.texi.
26159         * doc/posix-functions/optopt.texi: Renamed from
26160         doc/glibc-functions/optopt.texi.
26161         * doc/posix-functions/psignal.texi: Renamed from
26162         doc/glibc-functions/psignal.texi.
26163         * doc/posix-functions/scandir.texi: Renamed from
26164         doc/glibc-functions/scandir.texi.
26165         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
26166         doc/glibc-functions/sched_get_priority_min.texi.
26167         * doc/posix-functions/signgam.texi: Renamed from
26168         doc/glibc-functions/signgam.texi.
26169         * doc/posix-functions/stpcpy.texi: Renamed from
26170         doc/glibc-functions/stpcpy.texi.
26171         * doc/posix-functions/stpncpy.texi: Renamed from
26172         doc/glibc-functions/stpncpy.texi.
26173         * doc/posix-functions/strcasecmp_l.texi: Renamed from
26174         doc/glibc-functions/strcasecmp_l.texi.
26175         * doc/posix-functions/strcoll_l.texi: Renamed from
26176         doc/glibc-functions/strcoll_l.texi.
26177         * doc/posix-functions/strfmon_l.texi: Renamed from
26178         doc/glibc-functions/strfmon_l.texi.
26179         * doc/posix-functions/strftime_l.texi: Renamed from
26180         doc/glibc-functions/strftime_l.texi.
26181         * doc/posix-functions/strncasecmp_l.texi: Renamed from
26182         doc/glibc-functions/strncasecmp_l.texi.
26183         * doc/posix-functions/strndup.texi: Renamed from
26184         doc/glibc-functions/strndup.texi.
26185         * doc/posix-functions/strnlen.texi: Renamed from
26186         doc/glibc-functions/strnlen.texi.
26187         * doc/posix-functions/strsignal.texi: Renamed from
26188         doc/glibc-functions/strsignal.texi.
26189         * doc/posix-functions/strxfrm_l.texi: Renamed from
26190         doc/glibc-functions/strxfrm_l.texi.
26191         * doc/posix-functions/timer_gettime.texi: Renamed from
26192         doc/glibc-functions/timer_gettime.texi.
26193         * doc/posix-functions/tolower_l.texi: Renamed from
26194         doc/glibc-functions/tolower_l.texi.
26195         * doc/posix-functions/toupper_l.texi: Renamed from
26196         doc/glibc-functions/toupper_l.texi.
26197         * doc/posix-functions/towctrans_l.texi: Renamed from
26198         doc/glibc-functions/towctrans_l.texi.
26199         * doc/posix-functions/towlower_l.texi: Renamed from
26200         doc/glibc-functions/towlower_l.texi.
26201         * doc/posix-functions/towupper_l.texi: Renamed from
26202         doc/glibc-functions/towupper_l.texi.
26203         * doc/posix-functions/uselocale.texi: Renamed from
26204         doc/glibc-functions/uselocale.texi.
26205         * doc/posix-functions/vdprintf.texi: Renamed from
26206         doc/glibc-functions/vdprintf.texi.
26207         * doc/posix-functions/wcpcpy.texi:
26208         Renamed from doc/glibc-functions/wcpcpy.texi.
26209         * doc/posix-functions/wcpncpy.texi: Renamed from
26210         doc/glibc-functions/wcpncpy.texi.
26211         * doc/posix-functions/wcscasecmp.texi: Renamed from
26212         doc/glibc-functions/wcscasecmp.texi.
26213         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
26214         doc/glibc-functions/wcscasecmp_l.texi.
26215         * doc/posix-functions/wcscoll_l.texi: Renamed from
26216         doc/glibc-functions/wcscoll_l.texi.
26217         * doc/posix-functions/wcsdup.texi: Renamed from
26218         doc/glibc-functions/wcsdup.texi.
26219         * doc/posix-functions/wcsncasecmp.texi: Renamed from
26220         doc/glibc-functions/wcsncasecmp.texi.
26221         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
26222         doc/glibc-functions/wcsncasecmp_l.texi.
26223         * doc/posix-functions/wcsnlen.texi: Renamed from
26224         doc/glibc-functions/wcsnlen.texi.
26225         * doc/posix-functions/wcsnrtombs.texi: Renamed from
26226         doc/glibc-functions/wcsnrtombs.texi.
26227         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
26228         doc/glibc-functions/wcsxfrm_l.texi.
26229         * doc/posix-functions/wctrans_l.texi: Renamed from
26230         doc/glibc-functions/wctrans_l.texi.
26231         * doc/posix-functions/wctype_l.texi: Renamed from
26232         doc/glibc-functions/wctype_l.texi.
26233         * doc/gnulib.texi (Function Substitutes): Add these subsections.
26234         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
26235         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
26236         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
26237         these subsections.
26238         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
26239         Remove sections.
26240
26241 2008-12-14  Bruno Haible  <bruno@clisp.org>
26242
26243         Update doc for POSIX:2008.
26244         * doc/posix-functions/*.texi: Update URL of POSIX specification.
26245
26246 2008-12-14  Bruno Haible  <bruno@clisp.org>
26247
26248         Update doc for POSIX:2008.
26249         * doc/pastposix-functions/bcmp.texi: Renamed from
26250         doc/posix-functions/bcmp.texi.
26251         * doc/pastposix-functions/bcopy.texi: Renamed from
26252         doc/posix-functions/bcopy.texi.
26253         * doc/pastposix-functions/bsd_signal.texi: Renamed from
26254         doc/posix-functions/bsd_signal.texi.
26255         * doc/pastposix-functions/bzero.texi: Renamed from
26256         doc/posix-functions/bzero.texi.
26257         * doc/pastposix-functions/ecvt.texi: Renamed from
26258         doc/posix-functions/ecvt.texi.
26259         * doc/pastposix-functions/fcvt.texi: Renamed from
26260         doc/posix-functions/fcvt.texi.
26261         * doc/pastposix-functions/ftime.texi: Renamed from
26262         doc/posix-functions/ftime.texi.
26263         * doc/pastposix-functions/gcvt.texi: Renamed from
26264         doc/posix-functions/gcvt.texi.
26265         * doc/pastposix-functions/getcontext.texi: Renamed from
26266         doc/posix-functions/getcontext.texi.
26267         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
26268         doc/posix-functions/gethostbyaddr.texi.
26269         * doc/pastposix-functions/gethostbyname.texi: Renamed from
26270         doc/posix-functions/gethostbyname.texi.
26271         * doc/pastposix-functions/getwd.texi: Renamed from
26272         doc/posix-functions/getwd.texi.
26273         * doc/pastposix-functions/h_errno.texi: Renamed from
26274         doc/posix-functions/h_errno.texi.
26275         * doc/pastposix-functions/index.texi: Renamed from
26276         doc/posix-functions/index.texi.
26277         * doc/pastposix-functions/makecontext.texi: Renamed from
26278         doc/posix-functions/makecontext.texi.
26279         * doc/pastposix-functions/mktemp.texi: Renamed from
26280         doc/posix-functions/mktemp.texi.
26281         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
26282         doc/posix-functions/pthread_attr_getstackaddr.texi.
26283         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
26284         doc/posix-functions/pthread_attr_setstackaddr.texi.
26285         * doc/pastposix-functions/rindex.texi: Renamed from
26286         doc/posix-functions/rindex.texi.
26287         * doc/pastposix-functions/scalb.texi: Renamed from
26288         doc/posix-functions/scalb.texi.
26289         * doc/pastposix-functions/setcontext.texi: Renamed from
26290         doc/posix-functions/setcontext.texi.
26291         * doc/pastposix-functions/swapcontext.texi: Renamed from
26292         doc/posix-functions/swapcontext.texi.
26293         * doc/pastposix-functions/ualarm.texi: Renamed from
26294         doc/posix-functions/ualarm.texi.
26295         * doc/pastposix-functions/usleep.texi: Renamed from
26296         doc/posix-functions/usleep.texi.
26297         * doc/pastposix-functions/vfork.texi: Renamed from
26298         doc/posix-functions/vfork.texi.
26299         * doc/pastposix-functions/wcswcs.texi: Renamed from
26300         doc/posix-functions/wcswcs.texi.
26301         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
26302         (Function Substitutes): Update.
26303
26304 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26305
26306         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
26307         m4/strerror.m4.
26308
26309 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26310             Bruno Haible  <bruno@clisp.org>
26311
26312         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
26313
26314 2008-12-13  Bruno Haible  <bruno@clisp.org>
26315
26316         * modules/strtoull (Depends-on): Remove unistd.
26317
26318 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26319
26320         * modules/strtoull (Depends-on): Add stdlib.
26321
26322 2008-12-11  Simon Josefsson  <simon@josefsson.org>
26323
26324         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
26325
26326 2008-12-10  Jim Meyering  <meyering@redhat.com>
26327
26328         gl_ASSERT: don't say assertions are disabled when they're not
26329         * m4/assert.m4 (gl_ASSERT): Do not make configure report
26330         "checking whether to enable assertions... no", when they are in
26331         fact enabled.  This is solely a bug in the output of configure.
26332         In spite of saying "no", NDEBUG was not defined in that case.
26333         Also, as noted by Eric Blake, leave assertions enabled upon
26334         --enable-assert=INVALID.
26335
26336 2008-12-10  Bruno Haible  <bruno@clisp.org>
26337
26338         Change MODULES.html to refer to POSIX:2008 where possible.
26339         * MODULES.html.sh (POSIX2008_URL): New variable.
26340         (posix_headers): Remove sys/timeb, ucontext.
26341         (posix2001_headers): New variable.
26342         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
26343         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
26344         index, makecontext, mktemp, pthread_attr_getstackaddr,
26345         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
26346         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
26347         (posix2001_functions): New variable.
26348         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
26349         otherwise.
26350
26351 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26352
26353         add missing include to parse-duration.c
26354         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
26355         * modules/parse-duration (Depends-on): Add xalloc.
26356
26357         fix sed script reading maint.mk
26358         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
26359         (syntax-check-rules): Use it.
26360
26361 2008-12-09  Bruno Haible  <bruno@clisp.org>
26362
26363         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
26364         MacOS X 10.4/PowerPC.
26365         Reported by Simon Josefsson.
26366
26367 2008-12-08  Jim Meyering  <meyering@redhat.com>
26368
26369         work around mingw's lack of some S_IF definitions
26370         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
26371         Reported by Simon Josefsson.
26372
26373 2008-12-08  Bruno Haible  <bruno@clisp.org>
26374
26375         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
26376         applied to variables. Needed on MacOS X 10.4/PowerPC.
26377         Reported by Simon Josefsson.
26378
26379 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
26380         and Eric Blake  <ebb9@byu.net>
26381
26382         assert: honor --enable-assert
26383         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
26384         order to honor --enable-assert, rather than treating it as a
26385         synonym for --disable-assert.
26386
26387 2008-12-08  Jim Meyering  <meyering@redhat.com>
26388
26389         * lib/posixtm.c: Remove now-useless declaration of mktime.
26390
26391         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
26392
26393 2008-12-07  Bruno Haible  <bruno@clisp.org>
26394
26395         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
26396         test_once): Mark functions as static.
26397         * tests/test-tls.c (test_tls): Likewise.
26398
26399 2008-12-07  Bruno Haible  <bruno@clisp.org>
26400
26401         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
26402         iconv_register_autodetect.
26403
26404 2008-12-07  Jim Meyering  <meyering@redhat.com>
26405
26406         posixtm.c: avoid a warning
26407         * lib/posixtm.c (posixtime): Don't initialize tm0.
26408         It's no longer needed to placate gcc4's -Wuninitialized,
26409         and the attempt to placate would elicit a new warning.
26410
26411         unicodeio.c: mark unused parameters
26412         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
26413         (fallback_failure_callback): Likewise.
26414
26415 2008-12-07  Bruno Haible  <bruno@clisp.org>
26416
26417         * gnulib-tool (func_create_testdir): When building the tests
26418         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
26419         Reported by Simon Josefsson.
26420
26421 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26422
26423         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
26424
26425 2008-12-06  Bruno Haible  <bruno@clisp.org>
26426
26427         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
26428         Suggested by Eric Blake.
26429
26430 2008-12-06  Bruno Haible  <bruno@clisp.org>
26431
26432         Fix a c-stack test failure on MacOS X.
26433         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
26434         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
26435         handler for SIGBUS as well.
26436         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
26437         install a signal handler for SIGBUS as well.
26438         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
26439
26440 2008-12-06  Bruno Haible  <bruno@clisp.org>
26441
26442         Advocacy documentation.
26443         * doc/gnulib-intro.texi (Benefits): New section.
26444         * doc/gnulib.texi: Update.
26445
26446 2008-12-06  Bruno Haible  <bruno@clisp.org>
26447
26448         Document the 'manywarnings' module.
26449         * doc/manywarnings.texi: New file.
26450         * doc/gnulib.texi: Include it.
26451
26452 2008-12-05  Eric Blake  <ebb9@byu.net>
26453
26454         tests: silence some gcc warnings
26455         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
26456         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
26457         type mismatches.
26458
26459 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26460             Bruno Haible  <bruno@clisp.org>
26461
26462         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
26463
26464 2008-11-29  Jim Meyering  <meyering@redhat.com>
26465
26466         unicodeio.c: mark unused parameters
26467         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
26468         (fallback_failure_callback): Likewise.
26469
26470         fts: fix a thinko
26471         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
26472         (set_stat_type): Return S_IF*-valued "type" directly.
26473         Prompted by James Youngman's spotting a related bug.
26474         Confirmed by further testing through find.
26475
26476         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
26477         * lib/fts.c (D_TYPE): Define.
26478         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
26479         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
26480         (s_ifmt_shift_bits): New function.
26481         (set_stat_type): New function.
26482         (fts_build): When not calling fts_stat, call set_stat_type
26483         to propagate dirent.d_type info to fts_read caller.
26484         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
26485         fts_statp->st_mode type information may be valid.
26486
26487 2008-11-28  Simon Josefsson  <simon@josefsson.org>
26488
26489         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
26490         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
26491         <sds@gnu.org>.
26492
26493 2008-11-20  Bruno Haible  <bruno@clisp.org>
26494
26495         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
26496         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
26497         INCLUDE_NEXT.
26498         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
26499         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
26500         * modules/math (Makefile.am): Substitute
26501         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
26502         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
26503
26504 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
26505             Bruno Haible  <bruno@clisp.org>
26506
26507         * lib/stdint.in.h: Define all type macros so that their expansion is
26508         a single typedef'ed token. Fixes a compilation failure in Boost which
26509         does "using ::int8_t;".
26510
26511 2008-11-18  Simon Josefsson  <simon@josefsson.org>
26512
26513         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
26514         gl_MANYWARN_ALL_GCC.
26515         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
26516         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
26517         * modules/manywarnings: New file.
26518         * MODULES.html.sh: Mention manywarnings module.
26519
26520 2008-11-18  Bruno Haible  <bruno@clisp.org>
26521
26522         * doc/gnulib-tool.texi (Unit tests): New section.
26523
26524 2008-11-18  Simon Josefsson  <simon@josefsson.org>
26525
26526         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
26527         paths like 'lib/po/foo.po'.
26528
26529 2008-11-17  Simon Josefsson  <simon@josefsson.org>
26530
26531         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
26532         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
26533
26534 2008-11-17  Simon Josefsson  <simon@josefsson.org>
26535
26536         * m4/warnings.m4: Use CPPFLAGS to really check whether the
26537         parameter works.
26538
26539 2008-11-17  Simon Josefsson  <simon@josefsson.org>
26540
26541         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
26542
26543 2008-11-17  Bruce Korb  <bkorb@gnu.org>
26544
26545         * modules/parse-duration-tests: New file.
26546         * tests/test-parse-duration.sh: New file.
26547         * tests/test-parse-duration.c: New file.
26548
26549         New module 'parse-duration'.
26550         * lib/parse-duration.h: New file.
26551         * lib/parse-duration.c: New file.
26552         * modules/parse-duration: New file.
26553
26554 2008-11-17  Bruno Haible  <bruno@clisp.org>
26555
26556         * tests/test-select-out.sh: Comment out the first pipe test.
26557         Reported by Simon Josefsson.
26558
26559 2008-11-17  Bruno Haible  <bruno@clisp.org>
26560
26561         * modules/getaddrinfo (Depends-on): Add servent, hostent.
26562         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
26563         gl_HOSTENT.
26564
26565 2008-11-17  Bruno Haible  <bruno@clisp.org>
26566
26567         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
26568         -lnetwork and -lnet. Needed for Haiku and BeOS.
26569
26570 2008-11-16  Bruno Haible  <bruno@clisp.org>
26571
26572         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
26573
26574 2008-11-16  Bruno Haible  <bruno@clisp.org>
26575
26576         Avoid test failure on Haiku.
26577         * tests/test-fsync.c: Include <errno.h>.
26578         (main): Don't require that fsync (0) fails.
26579
26580 2008-11-15  Bruno Haible  <bruno@clisp.org>
26581
26582         New module 'hostent'.
26583         * modules/hostent: New file.
26584         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
26585
26586 2008-11-15  Bruno Haible  <bruno@clisp.org>
26587
26588         New module 'servent'.
26589         * modules/servent: New file.
26590         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
26591
26592 2008-11-15  Bruno Haible  <bruno@clisp.org>
26593
26594         Avoid generating same test program with two different rules.
26595         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
26596         test-frexp to test-frexp-nolibm.
26597         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
26598         test-frexpl to test-frexpl-nolibm.
26599
26600 2008-11-15  Bruno Haible  <bruno@clisp.org>
26601
26602         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
26603         $(FREXPL_LIBM).
26604
26605 2008-11-15  Bruno Haible  <bruno@clisp.org>
26606
26607         * lib/netdb.in.h: Activate the definitions also when the system's
26608         <netdb.h> has 'struct addrinfo'.
26609         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
26610         EAI_OVERFLOW or AI_NUMERICSERV.
26611         * doc/posix-headers/netdb.texi: Document the problem.
26612
26613 2008-11-15  Bruno Haible  <bruno@clisp.org>
26614
26615         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
26616
26617         Make the 'sched' module work on platforms where <sched.h> exists but
26618         is incomplete (such as Haiku).
26619         * lib/sched.in.h; Include the system's <sched.h> if it exists.
26620         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
26621         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
26622         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
26623         HAVE_STRUCT_SCHED_PARAM.
26624         * modules/sched (Depends-on): Add include_next.
26625         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
26626         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
26627         * doc/posix-headers/sched.texi: Document the issue.
26628
26629 2008-11-13  Jim Meyering  <meyering@redhat.com>
26630
26631         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
26632         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
26633         test would fail due to the difference in the Report bugs to ...
26634         line.  The expected address is empty, "<>", while the actual
26635         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
26636
26637 2008-11-12  Bruno Haible  <bruno@clisp.org>
26638
26639         lstat: don't compile lstat.c on systems lacking lstat
26640         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
26641         which don't have lstat; this is handled by lib/sys_stat.in.h already.
26642         Reported by Daniel P. Berrange via Jim Meyering.
26643
26644 2008-11-12  Jim Meyering  <meyering@redhat.com>
26645
26646         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
26647
26648 2008-11-12  Simon Josefsson  <simon@josefsson.org>
26649
26650         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
26651         instead.
26652
26653 2008-11-12  Bruno Haible  <bruno@clisp.org>
26654
26655         * lib/unicodeio.c: Include unistr.h.
26656         (utf8_wctomb): Remove function.
26657         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
26658
26659 2008-11-12  Simon Josefsson  <simon@josefsson.org>
26660
26661         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
26662         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
26663         <bruno@clisp.org>.
26664         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
26665
26666 2008-11-12  Simon Josefsson  <simon@josefsson.org>
26667
26668         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
26669         * doc/gnulib.texi: Add section for warnings.
26670
26671 2008-11-11  Bruno Haible  <bruno@clisp.org>
26672
26673         * lib/sockets.h: Add a comment.
26674
26675 2008-11-11  Karl Berry  <karl@gnu.org>
26676
26677         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
26678
26679 2008-11-11  Eric Blake  <ebb9@byu.net>
26680
26681         fdl.texi: avoid git symlinks
26682         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
26683
26684 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
26685
26686         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
26687
26688 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
26689
26690         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
26691         (gl_WARN_ADD): Substitute $2 if literal.
26692
26693 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
26694
26695         * m4/warning.m4: Remove.
26696
26697 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
26698
26699         * m4/warnings.m4: Almost complete rewrite. :-)
26700
26701 2008-11-10  Simon Josefsson  <simon@josefsson.org>
26702
26703         * modules/warnings: New module.
26704         * m4/warnings.m4: New file.
26705         * MODULES.html.sh: Mention warnings module.
26706         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
26707         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26708
26709 2008-11-10  Eric Blake  <ebb9@byu.net>
26710
26711         fdl.texi: make a symlink to the latest version
26712         * doc/standards.texi: Revert today's earlier change.
26713         * doc/fdl-1.2.texi: Rename from old fdl.texi...
26714         * doc/fdl.texi: ...and replace this with a symlink to the newer
26715         fdl-1.3.texi.
26716
26717 2008-11-10  Bruno Haible  <bruno@clisp.org>
26718
26719         * tests/test-select-fd.c (main): Accept the result file name as fourth
26720         argument.
26721         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
26722         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
26723
26724 2008-11-10  Bruno Haible  <bruno@clisp.org>
26725
26726         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
26727         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
26728         as autoconf-substituted macros.
26729         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
26730         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
26731         gl_NETDB_H_DEFAULTS. Set these variables.
26732         * modules/netdb (Makefile.am): Substitute these variables.
26733
26734 2008-11-10  Eric Blake  <ebb9@byu.net>
26735
26736         standards.texi: include correct file for FDL 1.3
26737         * doc/standards.texi (GNU Free Documentation License): Change
26738         include file to pull in FDL 1.3, not 1.2.
26739
26740         fdl.texi: revert accidental change to license
26741         * doc/fdl.texi: This is FDL 1.2, not 1.3.
26742
26743 2008-11-10  Bruno Haible  <bruno@clisp.org>
26744
26745         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
26746         cross-compiling guesses also when the native compile gives no result.
26747
26748 2008-11-10  Bruno Haible  <bruno@clisp.org>
26749
26750         * lib/spawni.c (__spawni): Force variable into the stack.
26751
26752 2008-11-10  Bruno Haible  <bruno@clisp.org>
26753
26754         Add support for Haiku.
26755         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
26756         glibc and BeOS, but also on Haiku.
26757         * lib/fpurge.c (fpurge): Likewise.
26758         * lib/freadable.c (freadable): Likewise.
26759         * lib/freadahead.c (freadahead): Likewise.
26760         * lib/freading.c (freading): Likewise.
26761         * lib/freadptr.c (freadptr): Likewise.
26762         * lib/freadseek.c (freadptrinc): Likewise.
26763         * lib/fseeko.c (rpl_fseeko): Likewise.
26764         * lib/fseterr.c (fseterr): Likewise.
26765         * lib/fwritable.c (fwritable): Likewise.
26766         * lib/fwriting.c (fwriting): Likewise.
26767         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
26768
26769 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
26770
26771         * lib/config.charset: Treat Haiku like BeOS.
26772
26773 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
26774
26775         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
26776         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
26777
26778 2008-11-08  Bruno Haible  <bruno@clisp.org>
26779
26780         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
26781         AC_CACHE_CHECK.
26782
26783 2008-11-08  Bruno Haible  <bruno@clisp.org>
26784
26785         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
26786
26787 2008-11-08  Bruno Haible  <bruno@clisp.org>
26788
26789         * tests/test-select-fd.c: New file.
26790         * tests/test-select-in.sh: New file.
26791         * tests/test-select-out.sh: New file.
26792         * tests/test-select-stdin.c: New file.
26793         * modules/select-tests (Files): Add the new files.
26794         (Depends-on): Add gettimeofday.
26795         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
26796         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
26797         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
26798
26799 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
26800             Bruno Haible  <bruno@clisp.org>
26801
26802         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
26803
26804 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
26805
26806         * build-aux/pmccabe2html: Added support for C++ source files.
26807
26808 2008-11-05  Ben Pfaff  <blp@gnu.org>
26809
26810         Fix lib/close.c build on Windows.
26811         * modules/close (Files): Add lib/w32sock.h.
26812
26813 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
26814
26815         Accept Bison's NEWS format.
26816         * build-aux/announce-gen (print_news_deltas): Tweak
26817         $re_prefix.
26818
26819 2008-11-04  Bruno Haible  <bruno@clisp.org>
26820
26821         * modules/random_r (Maintainer): Add glibc.
26822
26823 2008-11-04  Simon Josefsson  <simon@josefsson.org>
26824
26825         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
26826         by karl@freefriends.org (Karl Berry).
26827         * doc/alloca.texi: Likewise.
26828         * doc/c-ctype.texi: Likewise.
26829         * doc/c-strcase.texi: Likewise.
26830         * doc/c-strcaseeq.texi: Likewise.
26831         * doc/c-strcasestr.texi: Likewise.
26832         * doc/c-strstr.texi: Likewise.
26833         * doc/c-strtod.texi: Likewise.
26834         * doc/c-strtold.texi: Likewise.
26835         * doc/ctime.texi: Likewise.
26836         * doc/error.texi: Likewise.
26837         * doc/fdl.texi: Likewise.
26838         * doc/gcd.texi: Likewise.
26839         * doc/getdate.texi: Likewise.
26840         * doc/gnulib-intro.texi: Likewise.
26841         * doc/gnulib-tool.texi: Likewise.
26842         * doc/gnulib.texi: Likewise.
26843         * doc/inet_ntoa.texi: Likewise.
26844         * doc/maintain.texi: Likewise.
26845         * doc/make-stds.texi: Likewise.
26846         * doc/quote.texi: Likewise.
26847         * doc/regexprops-generic.texi: Likewise.
26848         * doc/standards.texi: Likewise.
26849         * doc/verify.texi: Likewise.
26850         * doc/visibility.texi: Likewise.
26851         * doc/gnulib.texi (GNU Free Documentation License): Include
26852         fdl-1.3.texi instead of fdl.texi.
26853
26854 2008-11-04  Simon Josefsson  <simon@josefsson.org>
26855
26856         * doc/fdl-1.3.texi: New file, from
26857         <http://www.gnu.org/licenses/fdl-1.3.texi>.
26858         * modules/fdl-1.3: Add.
26859         * MODULES.html.sh: Add fdl-1.3.
26860
26861 2008-11-03  Bruno Haible  <bruno@clisp.org>
26862
26863         Make determination of absolute name of header file work with AIX xlc.
26864         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
26865         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
26866         preprocessing.
26867         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
26868         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
26869
26870 2008-11-03  Simon Josefsson  <simon@josefsson.org>
26871
26872         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
26873         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
26874         <ludo@gnu.org>.
26875
26876 2008-11-02  Bruno Haible  <bruno@clisp.org>
26877
26878         Mark 'strpbrk' obsolete.
26879         * modules/strpbrk (Status, Notice): New sections.
26880         * modules/strtok_r (Depends-on): Add strpbrk.
26881
26882 2008-11-02  Bruno Haible  <bruno@clisp.org>
26883
26884         Mark 'strdup' obsolete.
26885         * modules/strdup (Status, Notice): New sections.
26886         * modules/findprog (Depends-on): Add strdup.
26887         * modules/getaddrinfo (Depends-on): Likewise.
26888         * modules/localename (Depends-on): Likewise.
26889         * modules/relocatable-lib (Depends-on): Likewise.
26890         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
26891         * modules/relocatable-prog (Depends-on): Likewise.
26892         * modules/trim (Depends-on): Likewise.
26893         * modules/unictype/gen-ctype (Depends-on): Likewise.
26894         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
26895
26896 2008-11-02  Bruno Haible  <bruno@clisp.org>
26897
26898         Mark 'strcspn' obsolete.
26899         * modules/strcspn (Status, Notice): New sections.
26900
26901 2008-11-02  Bruno Haible  <bruno@clisp.org>
26902
26903         Mark 'rmdir' obsolete.
26904         * modules/rmdir (Status, Notice): New sections.
26905         * modules/clean-temp (Depends-on): Add rmdir.
26906         * modules/openat (Depends-on): Likewise.
26907
26908 2008-11-02  Bruno Haible  <bruno@clisp.org>
26909
26910         Mark 'raise' obsolete.
26911         * modules/raise (Status, Notice): New sections.
26912         (Include): Specify <signal.h>.
26913         * modules/stdio (Depends-on): Add raise.
26914         * modules/write (Depends-on): Likewise.
26915
26916 2008-11-02  Bruno Haible  <bruno@clisp.org>
26917
26918         Mark 'memset' obsolete.
26919         * modules/memset (Status, Notice): New sections.
26920
26921 2008-11-02  Bruno Haible  <bruno@clisp.org>
26922
26923         Mark 'memmove' obsolete.
26924         * modules/memmove (Status, Notice): New sections.
26925         * modules/argp (Depends-on): Add memmove.
26926         * modules/argz (Depends-on): Likewise.
26927         * modules/canonicalize (Depends-on): Likewise.
26928         * modules/canonicalize-lgpl (Depends-on): Likewise.
26929         * modules/fts (Depends-on): Likewise.
26930         * modules/getcwd (Depends-on): Likewise.
26931         * modules/human (Depends-on): Likewise.
26932         * modules/regex (Depends-on): Likewise.
26933         * modules/striconveh (Depends-on): Likewise.
26934         * modules/trim (Depends-on): Likewise.
26935         * modules/unistr/u8-move (Depends-on): Likewise.
26936         * modules/unistr/u16-move (Depends-on): Likewise.
26937         * modules/unistr/u32-move (Depends-on): Likewise.
26938
26939 2008-11-02  Bruno Haible  <bruno@clisp.org>
26940
26941         Mark 'memcpy' obsolete.
26942         * modules/memcpy (Status, Notice): New sections.
26943
26944 2008-11-02  Bruno Haible  <bruno@clisp.org>
26945
26946         Mark 'memcmp' obsolete.
26947         * modules/memcmp (Status, Notice): New sections.
26948         * modules/argmatch (Depends-on): Add memchr.
26949         * modules/backupfile (Depends-on): Likewise.
26950         * modules/c-strcasestr (Depends-on): Likewise.
26951         * modules/crypto/des (Depends-on): Likewise.
26952         * modules/csharpcomp (Depends-on): Likewise.
26953         * modules/fnmatch (Depends-on): Likewise.
26954         * modules/git-merge-changelog (Depends-on): Likewise.
26955         * modules/isnand (Depends-on): Likewise.
26956         * modules/isnand-nolibm (Depends-on): Likewise.
26957         * modules/isnanf (Depends-on): Likewise.
26958         * modules/isnanf-nolibm (Depends-on): Likewise.
26959         * modules/isnanl (Depends-on): Likewise.
26960         * modules/isnanl-nolibm (Depends-on): Likewise.
26961         * modules/mbchar (Depends-on): Likewise.
26962         * modules/memcoll (Depends-on): Likewise.
26963         * modules/quotearg (Depends-on): Likewise.
26964         * modules/regex (Depends-on): Likewise.
26965         * modules/relocatable-prog (Depends-on): Likewise.
26966         * modules/same (Depends-on): Likewise.
26967         * modules/signbit (Depends-on): Likewise.
26968         * modules/strcasestr-simple (Depends-on): Likewise.
26969         * modules/unictype/gen-ctype (Depends-on): Likewise.
26970         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
26971         * modules/uniname/uniname (Depends-on): Likewise.
26972         * modules/unistr/u8-cmp (Depends-on): Likewise.
26973
26974 2008-11-02  Bruno Haible  <bruno@clisp.org>
26975
26976         Mark 'memchr' obsolete.
26977         * modules/memchr (Status, Notice): New sections.
26978         * modules/argp (Depends-on): Add memchr.
26979         * modules/base64 (Depends-on): Likewise.
26980         * modules/c-strcasestr (Depends-on): Likewise.
26981         * modules/chdir-long (Depends-on): Likewise.
26982         * modules/fnmatch (Depends-on): Likewise.
26983         * modules/getsubopt (Depends-on): Likewise.
26984         * modules/git-merge-changelog (Depends-on): Likewise.
26985         * modules/glob (Depends-on): Likewise.
26986         * modules/strcasestr-simple (Depends-on): Likewise.
26987         * modules/strnlen (Depends-on): Likewise.
26988
26989 2008-11-02  Bruno Haible  <bruno@clisp.org>
26990
26991         Mark 'atexit' obsolete.
26992         * modules/atexit (Status, Notice): New sections.
26993         * modules/chdir-long (Depends-on): Add atexit.
26994         * modules/wait-process (Depends-on): Likewise.
26995
26996 2008-11-02  Bruno Haible  <bruno@clisp.org>
26997
26998         * gnulib-tool: New option --with-obsolete.
26999         (func_usage): Document it.
27000         (func_modules_transitive_closure): Drop obsolete dependencies if
27001         incobsolete is not true.
27002         (func_import): Read and save the incobsolete variable to the cache.
27003
27004 2008-11-02  Bruno Haible  <bruno@clisp.org>
27005
27006         * modules/TEMPLATE-EXTENDED: New field 'Status'.
27007         * gnulib-tool: New option --extract-status.
27008         (func_usage): Document it.
27009         (sed_extract_prog): Recognize it.
27010         (func_get_status): New function.
27011
27012 2008-10-30  Simon Josefsson  <simon@josefsson.org>
27013
27014         * modules/sockets (License): Change from LGPL to LGPLv2+.
27015
27016 2008-10-28  Simon Josefsson  <simon@josefsson.org>
27017
27018         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
27019
27020 2008-10-28  Simon Josefsson  <simon@josefsson.org>
27021
27022         * MODULES.html.sh (Support for systems lacking POSIX:2001):
27023         Mention times and sys_times.
27024         * modules/sys_times, modules/sys_times-tests: New modules.
27025         * modules/times, modules/times-tests: Likewise
27026         * m4/sys_times_h.m4: New file.
27027         * lib/sys_times.in.h: Likewise
27028         * lib/times.c: Likewise.
27029         * tests/test-sys_times.c: Likewise.
27030         * tests/test-times.c: Likewise.
27031         * doc/posix-headers/sys_times.texi: Update.
27032         * doc/posix-functions/times.texi: Update.
27033
27034 2008-10-28  Jim Meyering  <meyering@redhat.com>
27035
27036         * modules/tempname (Depends-on): Add lstat.
27037
27038         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
27039
27040 2008-10-28  Simon Josefsson  <simon@josefsson.org>
27041
27042         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
27043         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
27044         using idiom used elsewhere in gnulib.
27045
27046 2008-10-27  Jim Meyering  <meyering@redhat.com>
27047
27048         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
27049
27050 2008-10-27  Simon Josefsson  <simon@josefsson.org>
27051
27052         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
27053         TESTS_ENVIRONMENT, for shell scripts that needs to call built
27054         programs.
27055         * tests/test-argp-2.sh: Use $EXEEXT when needed.
27056
27057 2008-10-27  Simon Josefsson  <simon@josefsson.org>
27058
27059         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
27060
27061 2008-10-27  Bruno Haible  <bruno@clisp.org>
27062
27063         * tests/test-lstat.c: Include <stdio.h>.
27064
27065 2008-10-27  Simon Josefsson  <simon@josefsson.org>
27066
27067         * modules/lstat-tests: New module.
27068         * tests/test-lstat.c: New file.
27069
27070 2008-10-26  Jim Meyering  <meyering@redhat.com>
27071
27072         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
27073
27074 2008-10-26  Simon Josefsson  <simon@josefsson.org>
27075             Bruno Haible  <bruno@clisp.org>
27076
27077         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
27078         * modules/configmake (Include): Add a note that the include must come
27079         after all system headers.
27080         * lib/javaversion.c: Include configmake.h after all other includes.
27081
27082 2008-10-26  Bruno Haible  <bruno@clisp.org>
27083
27084         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
27085         HAVE_STRUCT_RANDOM_DATA to 1.
27086         (gl_STDLIB_H): Simplify.
27087
27088 2008-10-26  Simon Josefsson  <simon@josefsson.org>
27089
27090         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
27091         substitute HAVE_STRUCT_RANDOM_DATA.
27092         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
27093         random_data.
27094         * modules/stdlib (Makefile.am): Substitute
27095         HAVE_STRUCT_RANDOM_DATA.
27096
27097 2008-10-26  Simon Josefsson  <simon@josefsson.org>
27098
27099         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
27100         * doc/gnulib-intro.texi (Copyright): Likewise.
27101
27102 2008-10-26  Simon Josefsson  <simon@josefsson.org>
27103
27104         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
27105         findings.
27106
27107 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
27108             Bruno Haible  <bruno@clisp.org>
27109
27110         * lib/unistd.in.h: Include <winsock2.h>.
27111         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
27112         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
27113         Provide dummy declarations.
27114         (gethostname): Override.
27115         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
27116         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
27117         gl_PREREQ_SYS_H_WINSOCK2.
27118         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
27119         * doc/posix-functions/gethostname.texi: More details.
27120
27121 2008-10-25  Bruno Haible  <bruno@clisp.org>
27122
27123         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
27124         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
27125         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
27126
27127         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
27128         here ...
27129         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
27130         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
27131         gl_UNISTD_H_DEFAULTS.
27132
27133 2008-10-25  Eric Blake  <ebb9@byu.net>
27134
27135         signbit: avoid spurious compiler failure
27136         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
27137         declarations inside function.
27138
27139 2008-10-24  Simon Josefsson  <simon@josefsson.org>
27140             Bruno Haible  <bruno@clisp.org>
27141
27142         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
27143         * modules/random_r (Depends-on): Add stdint.
27144
27145 2008-10-24  Bruno Haible  <bruno@clisp.org>
27146
27147         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
27148         Eggert.
27149         * modules/strerror (License): Likewise.
27150
27151 2008-10-24  Jim Meyering  <meyering@redhat.com>
27152
27153         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
27154         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
27155
27156 2008-10-24  Eric Blake  <ebb9@byu.net>
27157
27158         getgroups: fix compilation when getgroups is available
27159         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
27160         but with <config.h> override of getgroups disabled.
27161
27162 2008-10-24  Simon Josefsson  <simon@josefsson.org>
27163
27164         * doc/gnulib.texi (Header files): Add note about C++ problems.
27165         Explained by Bruno Haible <bruno@clisp.org>.
27166
27167 2008-10-23  Bruno Haible  <bruno@clisp.org>
27168
27169         Define a dummy SA_NODEFER macro on Interix.
27170         * lib/signal.in.h (SA_NODEFER): Define fallback.
27171         Reported by Aleksey Cheusov <cheusov@tut.by> via
27172         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
27173
27174 2008-10-23  Bruno Haible  <bruno@clisp.org>
27175
27176         * modules/freadahead (License): Change to LGPLv2+.
27177         Suggested by Simon Josefsson.
27178
27179 2008-10-23  Jim Meyering  <meyering@redhat.com>
27180
27181         random_r: new module
27182         * modules/random_r: New file.
27183         * m4/random_r.m4: New file.
27184         * lib/random_r.c: New file, from glibc.
27185         * modules/random_r-tests: New file.
27186         * tests/test-random_r.c: New file.
27187         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
27188          Declare.
27189         (RAND_MAX): Define.
27190         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
27191         * modules/stdlib: Substitute them, too.
27192         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
27193         * doc/glibc-functions/initstate_r.texi: Mention the new module.
27194         * doc/glibc-functions/random_r.texi: Likewise.
27195         * doc/glibc-functions/setstate_r.texi: Likewise.
27196         * doc/glibc-functions/srandom_r.texi: Likewise.
27197         * config/srclist.txt: Mention it.
27198
27199 2008-10-23  David Lutterkort  <lutter@redhat.com>
27200
27201         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
27202         link requirement
27203
27204 2008-10-23  Jim Meyering  <meyering@redhat.com>
27205
27206         selinux-h: mark parameters of stub functions as intentionally unused
27207         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
27208         * lib/se-context.in.h: Likewise.
27209
27210 2008-10-22  Simon Josefsson  <simon@josefsson.org>
27211
27212         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
27213
27214 2008-10-22  Simon Josefsson  <simon@josefsson.org>
27215
27216         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
27217
27218 2008-10-22  Eric Blake  <ebb9@byu.net>
27219
27220         glthread/thread: avoid compiler warning
27221         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
27222         Add unreachable abort to silence compiler.
27223
27224 2008-10-22  Eric Blake  <ebb9@byu.net>
27225
27226         netdb: also supply struct addrinfo for cygwin 1.5.x
27227         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
27228         older cygwin.
27229         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
27230         cygwin.
27231         * doc/posix-headers/netdb.texi (netdb.h): Document this.
27232
27233 2008-10-22  Bruno Haible  <bruno@clisp.org>
27234
27235         * users.txt: Update entry about pspp.
27236
27237 2008-10-21  Bruno Haible  <bruno@clisp.org>
27238
27239         Simplification.
27240         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
27241         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
27242
27243         Simplification.
27244         * lib/ioctl.c (ioctl): Don't undefine.
27245         * lib/socket.c (socket): Don't undefine.
27246
27247         Remove unused module indicator macros.
27248         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
27249         GNULIB_$1 as a C macro.
27250
27251         * doc/posix-functions/close.texi: Undo last change.
27252         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
27253         Windows platforms.
27254
27255 2008-10-21  Bruno Haible  <bruno@clisp.org>
27256
27257         Add gethostname() declaration to <unistd.h>.
27258         * lib/unistd.in.h (gethostname): New declaration.
27259         * lib/gethostname.c: Include <unistd.h>.
27260         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
27261         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
27262         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
27263         and HAVE_GETHOSTNAME.
27264         * modules/gethostname (Depends-on): Add unistd.
27265         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
27266         (Include): Specify <unistd.h>.
27267         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
27268         HAVE_GETHOSTNAME.
27269         * tests/test-gethostname.c: Include <unistd.h> first.
27270
27271 2008-10-21  Bruno Haible  <bruno@clisp.org>
27272
27273         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
27274         * modules/select-tests (Depends-on): Likewise.
27275         Reported by Simon Josefsson.
27276
27277 2008-10-21  Simon Josefsson  <simon@josefsson.org>
27278
27279         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
27280         * lib/accept.c: New file, based on winsock.c.
27281         * lib/bind.c: New file, based on winsock.c.
27282         * lib/connect.c: New file, based on winsock.c.
27283         * lib/getpeername.c: New file, based on winsock.c.
27284         * lib/getsockname.c: New file, based on winsock.c.
27285         * lib/getsockopt.c: New file, based on winsock.c.
27286         * lib/ioctl.c: New file, based on winsock.c.
27287         * lib/listen.c: New file, based on winsock.c.
27288         * lib/recv.c: New file, based on winsock.c.
27289         * lib/recvfrom.c: New file, based on winsock.c.
27290         * lib/send.c: New file, based on winsock.c.
27291         * lib/sendto.c: New file, based on winsock.c.
27292         * lib/setsockopt.c: New file, based on winsock.c.
27293         * lib/shutdown.c: New file, based on winsock.c.
27294         * lib/socket.c: New file, based on winsock.c.
27295         * lib/w32sock.h: New file, based on winsock.c.
27296         * lib/winsock.c: Remove file.
27297         * modules/accept: Likewise.
27298         * modules/bind: Likewise.
27299         * modules/connect: Likewise.
27300         * modules/getpeername: Likewise.
27301         * modules/getsockname: Likewise.
27302         * modules/getsockopt: Likewise.
27303         * modules/ioctl: Likewise.
27304         * modules/listen: Likewise.
27305         * modules/recv: Likewise.
27306         * modules/recvfrom: Likewise.
27307         * modules/send: Likewise.
27308         * modules/sendto: Likewise.
27309         * modules/setsockopt: Likewise.
27310         * modules/shutdown: Likewise.
27311         * modules/socket: Use socket.c instead of winsock.c.
27312         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
27313         * doc/posix-functions/accept.texi: Doc fix.
27314         * doc/posix-functions/bind.texi: Doc fix.
27315         * doc/posix-functions/close.texi: Doc fix.
27316         * doc/posix-functions/connect.texi: Doc fix.
27317         * doc/posix-functions/getpeername.texi: Doc fix.
27318         * doc/posix-functions/getsockname.texi: Doc fix.
27319         * doc/posix-functions/getsockopt.texi: Doc fix.
27320         * doc/posix-functions/ioctl.texi: Doc fix.
27321         * doc/posix-functions/listen.texi: Doc fix.
27322         * doc/posix-functions/recv.texi: Doc fix.
27323         * doc/posix-functions/recvfrom.texi: Doc fix.
27324         * doc/posix-functions/send.texi: Doc fix.
27325         * doc/posix-functions/sendto.texi: Doc fix.
27326         * doc/posix-functions/setsockopt.texi: Doc fix.
27327         * doc/posix-functions/shutdown.texi: Doc fix.
27328         * doc/posix-functions/socket.texi: Doc fix.
27329
27330 2008-10-20  Bruno Haible  <bruno@clisp.org>
27331
27332         Take into account the role of SIGABRT_COMPAT on Windows 2008.
27333         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
27334         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
27335         as an alias for SIGABRT.
27336         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
27337         (sigaction): Map it to SIGABRT.
27338         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
27339
27340 2008-10-20  Bruno Haible  <bruno@clisp.org>
27341
27342         * lib/fts.c: Don't include lstat.h.
27343         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
27344
27345         Move the lstat() declaration to <sys/stat.h>.
27346         * lib/lstat.h: Remove file.
27347         * lib/sys_stat.in.h: Add special invocation convention.
27348         (lstat): New declaration.
27349         * lib/lstat.c (orig_lstat): New function.
27350         (rpl_lstat): Use orig_lstat instead of lstat.
27351         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
27352         AC_C_INLINE. Set REPLACE_LSTAT.
27353         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
27354         and REPLACE_LSTAT.
27355         * modules/lstat (Files): Remove lib/lstat.h.
27356         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
27357         (Include): Specify <sys/stat.h> instead of lstat.h.
27358         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
27359         REPLACE_LSTAT.
27360         * NEWS: Mention the change.
27361
27362 2008-10-20  Bruno Haible  <bruno@clisp.org>
27363
27364         * modules/posix_spawn-tests: New file.
27365         * tests/test-posix_spawn3.c: New file.
27366
27367 2008-10-20  Bruno Haible  <bruno@clisp.org>
27368
27369         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
27370         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
27371         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
27372         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
27373         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
27374
27375 2008-10-20  Bruno Haible  <bruno@clisp.org>
27376
27377         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
27378         of posix_spawn on AIX 5.3.
27379
27380 2008-10-20  Bruno Haible  <bruno@clisp.org>
27381
27382         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
27383
27384 2008-10-20  Bruno Haible  <bruno@clisp.org>
27385
27386         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
27387         of AC_LANG_PROGRAM.
27388
27389 2008-10-20  Simon Josefsson  <simon@josefsson.org>
27390
27391         * lib/netdb.in.h: Don't define GNU specific constants until they
27392         are supported or needed.  Reported by Bruno Haible
27393         <bruno@clisp.org>.
27394
27395 2008-10-20  Simon Josefsson  <simon@josefsson.org>
27396
27397         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
27398
27399 2008-10-20  Simon Josefsson  <simon@josefsson.org>
27400
27401         * lib/getaddrinfo.h: Remove file.
27402         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
27403         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
27404         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
27405         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
27406         * modules/netdb: Substitute GNULIB_GETADDRINFO.
27407         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
27408         * tests/test-getaddrinfo.c: Likewise.
27409         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
27410         * NEWS: Mention change.
27411
27412 2008-10-19  Bruno Haible  <bruno@clisp.org>
27413
27414         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
27415
27416 2008-10-19  Bruno Haible  <bruno@clisp.org>
27417
27418         * lib/wait-process.c: Include simply <sys/wait.h>.
27419         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
27420         WIFSTOPPED): Remove fallback definitions.
27421         * modules/wait-process (Depends-on): Add sys_wait.
27422
27423         New module 'sys_wait'.
27424         * modules/sys_wait: New file.
27425         * lib/sys_wait.in.h: New file, partially copied from
27426         lib/wait-process.c.
27427         * m4/sys_wait_h.m4: New file.
27428         * doc/posix-headers/sys_wait.texi: Mention the new module.
27429
27430 2008-10-19  Bruno Haible  <bruno@clisp.org>
27431
27432         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
27433
27434 2008-10-19  Bruno Haible  <bruno@clisp.org>
27435
27436         Assume that waitpid() fills an 'int' status, not a 'union wait'.
27437         * lib/wait-process.c (WAIT_T): Remove type.
27438         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
27439         (wait_subprocess): Update.
27440
27441 2008-10-19  Bruno Haible  <bruno@clisp.org>
27442
27443         New module 'atoll'.
27444         * modules/atoll: New file.
27445         * lib/stdlib.in.h (atoll): New declaration.
27446         * lib/atoll.c: New file, from glibc with modifications.
27447         * m4/atoll.m4: New file.
27448         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
27449         HAVE_ATOLL.
27450         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
27451         * doc/posix-functions/atoll.texi: Mention the new module.
27452
27453 2008-10-19  Bruno Haible  <bruno@clisp.org>
27454
27455         Add strtoull() declaration to <stdlib.h>.
27456         * lib/stdlib.in.h (strtoull): New declaration.
27457         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
27458         Set HAVE_STRTOULL.
27459         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
27460         HAVE_STRTOULL.
27461         * modules/strtoull (Depends-on): Add stdlib.
27462         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
27463         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
27464         HAVE_STRTOULL.
27465
27466 2008-10-19  Bruno Haible  <bruno@clisp.org>
27467
27468         Add strtoll() declaration to <stdlib.h>.
27469         * lib/stdlib.in.h (strtoll): New declaration.
27470         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
27471         Set HAVE_STRTOLL.
27472         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
27473         HAVE_STRTOLL.
27474         * modules/strtoll (Depends-on): Add stdlib.
27475         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
27476         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
27477
27478 2008-10-19  Bruno Haible  <bruno@clisp.org>
27479
27480         * modules/bcopy (Depends-on): Add strings.
27481         (Include): Specify <strings.h>.
27482
27483 2008-10-19  Bruno Haible  <bruno@clisp.org>
27484
27485         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
27486
27487 2008-10-19  Bruno Haible  <bruno@clisp.org>
27488
27489         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
27490         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
27491         mingw.
27492
27493 2008-10-19  Bruno Haible  <bruno@clisp.org>
27494
27495         * lib/atanl.c: Don't include isnanl.h.
27496         * lib/cosl.c: Likewise.
27497         * lib/ldexpl.c: Likewise.
27498         * lib/logl.c: Likewise.
27499         * lib/sinl.c: Likewise.
27500         * lib/sqrtl.c: Likewise.
27501         * lib/tanl.c: Likewise.
27502
27503         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
27504         * lib/isnanf.h: Remove file.
27505         * lib/isnand.h: Remove file.
27506         * lib/isnanl.h: Remove file.
27507         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
27508         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
27509         macros.
27510         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
27511         HAVE_ISNANF, don't define it as a C macro.
27512         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
27513         HAVE_ISNAND, don't define it as a C macro.
27514         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
27515         HAVE_ISNANL, don't define it as a C macro.
27516         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
27517         HAVE_ISNAN[FDL].
27518         * modules/isnanf (Files): Remove lib/isnanf.h.
27519         (Depends-on): Add math.
27520         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
27521         (Include): Specify <math.h> instead of isnanf.h.
27522         * modules/isnand (Files): Remove lib/isnand.h.
27523         (Depends-on): Add math.
27524         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
27525         (Include): Specify <math.h> instead of isnand.h.
27526         * modules/isnanl (Files): Remove lib/isnanl.h.
27527         (Depends-on): Add math.
27528         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
27529         (Include): Specify <math.h> instead of isnanl.h.
27530         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
27531         HAVE_ISNAN[FDL].
27532         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
27533         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
27534         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
27535         * NEWS: Mention the change.
27536
27537 2008-10-18  Bruno Haible  <bruno@clisp.org>
27538
27539         Add getusershell(), setusershell(), endusershell() declarations to
27540         <unistd.h>.
27541         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
27542         declarations.
27543         * lib/getusershell.c: Include unistd.h.
27544         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
27545         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
27546         HAVE_GETUSERSHELL.
27547         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
27548         and HAVE_GETUSERSHELL.
27549         * modules/getusershell (Depends-on): Add unistd, extensions.
27550         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
27551         (Include): Specify <unistd.h>.
27552         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
27553         HAVE_GETUSERSHELL.
27554
27555 2008-10-18  Bruno Haible  <bruno@clisp.org>
27556
27557         Add a getloadavg() declaration to <stdlib.h>.
27558         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
27559         getloadavg declaration.
27560         (getloadavg): New declaration.
27561         * lib/getloadavg.c: Include <stdlib.h> first.
27562         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
27563         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
27564         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
27565         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
27566         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
27567         * modules/getloadavg (Depends-on): Add stdlib, extensions.
27568         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
27569         (Include): Specify <stdlib.h>.
27570         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
27571         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
27572
27573 2008-10-18  Bruno Haible  <bruno@clisp.org>
27574
27575         * lib/dirchownmod.c: Don't include lchmod.h.
27576
27577         Move the lchmod() declaration to <sys/stat.h>.
27578         * lib/lchmod.h: Remove file.
27579         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
27580         (lchmod): New declaration, moved here from lib/lchown.h.
27581         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
27582         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
27583         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
27584         and HAVE_LCHMOD.
27585         * modules/lchmod (Files): Remove lib/lchmod.h.
27586         (Depends-on): Add sys_stat, extensions.
27587         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
27588         (Include): Specify <sys/stat.h> instead of lchmod.h.
27589         * modules/sys_stat (Depends-on): Add link-warning.
27590         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
27591         definition of GL_LINK_WARNING.
27592         * NEWS: Mention the change.
27593
27594 2008-10-18  Bruno Haible  <bruno@clisp.org>
27595
27596         * lib/fchdir.c: Don't include dirfd.h.
27597         * lib/fts.c: Likewise.
27598         * lib/getcwd.c: Likewise.
27599         * lib/glob.c: Likewise.
27600
27601         Move the dirfd() declaration to <dirent.h>.
27602         * lib/dirfd.h: Remove file.
27603         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
27604         (dirfd): New declaration.
27605         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
27606         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
27607         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
27608         HAVE_DECL_DIRFD.
27609         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
27610         HAVE_DECL_DIRFD.
27611         * modules/dirfd (Files): Remove lib/dirfd.h.
27612         (Depends-on): Add dirent, extensions.
27613         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
27614         (Include): Specify <dirent.h> instead of dirfd.h.
27615         * modules/dirent (Depends-on): Add link-warning.
27616         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
27617         definition of GL_LINK_WARNING.
27618         * NEWS: Mention the change.
27619
27620 2008-10-18  Bruno Haible  <bruno@clisp.org>
27621
27622         Move the euidaccess() declaration to <unistd.h>.
27623         * lib/euidaccess.h: Remove file.
27624         * lib/unistd.in.h (euidaccess): New declaration.
27625         * lib/euidaccess.c: Don't include euidaccess.h.
27626         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
27627         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
27628         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
27629         and HAVE_EUIDACCESS.
27630         * modules/euidaccess (Files): Remove lib/euidaccess.h.
27631         (Depends-on): Add unistd.
27632         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
27633         (Include): Specify <unistd.h> instead of euidaccess.h.
27634         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
27635         HAVE_EUIDACCESS.
27636         * NEWS: Mention the change.
27637
27638 2008-10-18  Bruno Haible  <bruno@clisp.org>
27639
27640         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
27641
27642         Move the getdomainname() declaration to <unistd.h>.
27643         * lib/getdomainname.h: Remove file.
27644         * lib/unistd.in.h (getdomainname): New declaration.
27645         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
27646         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
27647         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
27648         HAVE_GETDOMAINNAME.
27649         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27650         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
27651         * modules/getdomainname (Files): Remove lib/getdomainname.h.
27652         (Depends-on): Add unistd, extensions.
27653         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
27654         (Includes): Specify <unistd.h> instead of getdomainname.h.
27655         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
27656         HAVE_GETDOMAINNAME.
27657         * NEWS: Mention the change.
27658
27659 2008-10-18  Bruno Haible  <bruno@clisp.org>
27660
27661         * modules/dirent: New file.
27662         * m4/dirent_h.m4: New file.
27663         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
27664         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
27665         * modules/fchdir (Files): Remove lib/dirent.in.h.
27666         (Depends-on): Add dirent.
27667         (Makefile.am): Move rules to modules/dirent.
27668         * doc/posix-headers/dirent.texi: Mention the new module.
27669
27670 2008-10-18  Bruno Haible  <bruno@clisp.org>
27671
27672         Avoid -Wunused-parameter warnings in public gnulib header files.
27673         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
27674         macro.
27675         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
27676
27677 2008-10-18  Bruno Haible  <bruno@clisp.org>
27678
27679         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
27680         * doc/glibc-functions/error.texi: Mention the module 'error'.
27681         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
27682         * doc/glibc-functions/getdomainname.texi: Mention the module
27683         'getdomainname'.
27684         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
27685         * doc/glibc-functions/getpagesize.texi: Mention the module
27686         'getpagesize'.
27687         * doc/glibc-functions/getusershell.texi: Mention the module
27688         'getusershell'.
27689         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
27690         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
27691         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
27692         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
27693         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
27694         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
27695         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
27696         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
27697         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
27698         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
27699         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
27700         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
27701         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
27702         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
27703
27704 2008-10-17  Bruno Haible  <bruno@clisp.org>
27705
27706         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
27707         HP-UX and IRIX, use -0.0L.
27708         * tests/test-ceill.c (minus_zero): Likewise.
27709         * tests/test-floorl.c (minus_zero): Likewise.
27710         * tests/test-frexpl.c (minus_zero): Likewise.
27711         * tests/test-isnan.c (minus_zerol): Likewise.
27712         * tests/test-isnanl.h (minus_zero): Likewise.
27713         * tests/test-ldexpl.c (minus_zero): Likewise.
27714         * tests/test-roundl.c (minus_zero): Likewise.
27715         * tests/test-signbit.c (minus_zerol): Likewise.
27716         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
27717         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
27718         * tests/test-truncl.c (minus_zero): Likewise.
27719         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
27720         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
27721         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
27722         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
27723
27724 2008-10-17  Bruno Haible  <bruno@clisp.org>
27725
27726         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
27727         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
27728         that it gets activated only for gcc >= 3.0.
27729         * lib/dirent.in.h: Likewise.
27730         * lib/errno.in.h: Likewise.
27731         * lib/fcntl.in.h: Likewise.
27732         * lib/float.in.h: Likewise.
27733         * lib/iconv.in.h: Likewise.
27734         * lib/inttypes.in.h: Likewise.
27735         * lib/locale.in.h: Likewise.
27736         * lib/math.in.h: Likewise.
27737         * lib/netdb.in.h: Likewise.
27738         * lib/netinet_in.in.h: Likewise.
27739         * lib/search.in.h: Likewise.
27740         * lib/signal.in.h: Likewise.
27741         * lib/spawn.in.h: Likewise.
27742         * lib/stdarg.in.h: Likewise.
27743         * lib/stdint.in.h: Likewise.
27744         * lib/stdio.in.h: Likewise.
27745         * lib/stdlib.in.h: Likewise.
27746         * lib/string.in.h: Likewise.
27747         * lib/strings.in.h: Likewise.
27748         * lib/sys_file.in.h: Likewise.
27749         * lib/sys_ioctl.in.h: Likewise.
27750         * lib/sys_select.in.h: Likewise.
27751         * lib/sys_socket.in.h: Likewise.
27752         * lib/sys_stat.in.h: Likewise.
27753         * lib/sys_time.in.h: Likewise.
27754         * lib/sysexits.in.h: Likewise.
27755         * lib/time.in.h: Likewise.
27756         * lib/unistd.in.h: Likewise.
27757         * lib/wchar.in.h: Likewise.
27758         * lib/wctype.in.h: Likewise.
27759         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
27760
27761 2008-10-17  Jim Meyering  <meyering@redhat.com>
27762
27763         ignore-value: don't depend on inline module
27764         * modules/ignore-value (Depends-on): Remove 'inline'.
27765         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
27766         Suggestion from Bruno Haible.
27767
27768 2008-10-17  Bruno Haible  <bruno@clisp.org>
27769
27770         New implementation of condition variables for Win32.
27771         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
27772         (gl_linked_waitqueue_t): New type.
27773         (gl_cond_t): Use it.
27774         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
27775         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
27776         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
27777         (glthread_cond_init_func, glthread_cond_wait_func,
27778         glthread_cond_timedwait_func, glthread_cond_signal_func,
27779         glthread_cond_broadcast_func, glthread_cond_destroy_func):
27780         Reimplemented on the basis of gl_linked_waitqueue_t.
27781         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
27782         gl_waitqueue_t.
27783         (gl_rwlock_t): Update.
27784         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
27785
27786 2008-10-17  Simon Josefsson  <simon@josefsson.org>
27787
27788         * modules/recvfrom (Depends-on): Add dependency on getpeername.
27789         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
27790
27791 2008-10-17  Jim Meyering  <meyering@redhat.com>
27792
27793         ignore-value: new module
27794         * modules/ignore-value: New file.
27795         * lib/ignore-value.h: New file.
27796         * MODULES.html.sh (Compiler warning management): New section,
27797         just for this module.  More to come.
27798
27799 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
27800
27801         open-safer.c: avoid 'signed and unsigned in conditional...' warning
27802         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
27803         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
27804
27805 2008-10-16  Jim Meyering  <meyering@redhat.com>
27806
27807         openat-die.c: avoid 'no previous prototype' warning
27808         * lib/openat-die.c: Include "openat.h".
27809         Reported by Reuben Thomas <rrt@sc3d.org>.
27810
27811 2008-10-16  Simon Josefsson  <simon@josefsson.org>
27812
27813         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
27814         * lib/netdb.in.h: Fix typo.
27815         Reported by Bruno Haible  <bruno@clisp.org>
27816
27817         * lib/netdb.in.h: Include sys/socket.h for platforms without
27818         netdb.h, to get structures like hostent on MinGW.
27819         * modules/netdb (Depends-on): Add sys_socket.
27820
27821 2008-10-15  Simon Josefsson  <simon@josefsson.org>
27822
27823         * modules/netdb, modules/netdb-tests: New file.
27824         * m4/netdb_h.m4: New file.
27825         * lib/netdb.in.h: Add, currently just an empty file pending
27826         definitions.
27827         * tests/test-netdb.c: New file.
27828         * doc/posix-headers/netdb.texi: Mention that we replace it if
27829         needed.
27830         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
27831         netdb.
27832
27833 2008-10-15  Simon Josefsson  <simon@josefsson.org>
27834
27835         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
27836         with code.
27837
27838 2008-10-13  Bruno Haible  <bruno@clisp.org>
27839
27840         * lib/glthread/cond.c (glthread_cond_wait_func,
27841         glthread_cond_timedwait_func): Add a comment.
27842
27843 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
27844
27845         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
27846         * tests/test-select.c: Likewise,
27847
27848 2008-10-13  Bruno Haible  <bruno@clisp.org>
27849
27850         * lib/glthread/cond.c (glthread_cond_wait_func,
27851         glthread_cond_timedwait_func): Fix variable name.
27852         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
27853
27854 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
27855
27856         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
27857         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
27858         struct sockaddr.sa_len.
27859         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
27860
27861 2008-10-13  Simon Josefsson  <simon@josefsson.org>
27862
27863         * build-aux/pmccabe2html: Add css and css_url parameters.
27864
27865 2008-10-12  Bruno Haible  <bruno@clisp.org>
27866
27867         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
27868         calling aclx_get.
27869         Reported by Rainer Tammer <tammer@tammer.net>.
27870
27871 2008-10-12  Bruno Haible  <bruno@clisp.org>
27872
27873         Use msvcrt aware primitives for creation/termination of Win32 threads.
27874         * lib/glthread/thread.c: Include <process.h>.
27875         (glthread_create_func): Use _beginthreadex instead of CreateThread.
27876         (wrapper_func): Update signature.
27877         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
27878
27879 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
27880             Bruno Haible  <bruno@clisp.org>
27881
27882         Provide a Win32 implementation of the 'cond' module.
27883         * lib/glthread/cond.h [USE_WIN32]: New implementation.
27884         * lib/glthread/cond.c (glthread_cond_init_func,
27885         glthread_cond_wait_func, glthread_cond_timedwait_func,
27886         glthread_cond_signal_func, glthread_cond_broadcast_func,
27887         glthread_cond_destroy_func) [USE_WIN32]: New functions.
27888         * modules/cond (Dependencies): Add gettimeofday.
27889
27890 2008-10-11  Bruno Haible  <bruno@clisp.org>
27891
27892         Make sleep work on older versions of mingw.
27893         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
27894         only whether it exists.
27895         * doc/posix-functions/sleep.texi: Mention the problem with older
27896         versions of mingw.
27897
27898 2008-10-11  Bruno Haible  <bruno@clisp.org>
27899
27900         New module 'shutdown'.
27901         * modules/shutdown: New file.
27902         * lib/sys_socket.in.h (shutdown): New declaration.
27903         * lib/winsock.c (shutdown): New function.
27904         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
27905         GNULIB_SHUTDOWN.
27906         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
27907         * doc/posix-functions/shutdown.texi: Document the new module.
27908
27909 2008-10-11  Jim Meyering  <meyering@redhat.com>
27910
27911         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
27912
27913 2008-10-11  Bruno Haible  <bruno@clisp.org>
27914
27915         New module 'fclose'.
27916         * modules/fclose: New file.
27917         * lib/stdio.in.h (fclose): New declaration.
27918         * lib/fclose.c: New file.
27919         * m4/fclose.m4: New file.
27920         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
27921         REPLACE_FCLOSE.
27922         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
27923         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
27924         REPLACE_FCLOSE.
27925         * modules/close (Depends-on): fclose.
27926         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
27927
27928 2008-10-11  Bruno Haible  <bruno@clisp.org>
27929
27930         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
27931         set errno and don't call _close.
27932
27933 2008-10-10  Bruno Haible  <bruno@clisp.org>
27934
27935         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
27936         ACL, not afterwards. Fixes test failure on Cygwin.
27937
27938 2008-10-09  Ben Pfaff  <blp@gnu.org>
27939
27940         * build-aux/announce-gen: Fix gnulib version related part of usage
27941         message.  Die with a useful error message if no tarballs are
27942         found.
27943
27944 2008-10-10  Jim Meyering  <meyering@redhat.com>
27945
27946         bootstrap: use git's --depth=N option only if it's supported
27947         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
27948         recognize the --depth option.  Reported by Pádraig Brady.
27949
27950 2008-10-09  Bruno Haible  <bruno@clisp.org>
27951
27952         New module 'ioctl'.
27953         * modules/ioctl: New file.
27954         * lib/sys_socket.in.h (ioctl): Remove declaration.
27955         * lib/winsock.c: Include <sys/ioctl.h>.
27956         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
27957         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
27958         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
27959         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
27960         * doc/posix-functions/ioctl.texi: Mention the new module.
27961
27962 2008-10-09  Bruno Haible  <bruno@clisp.org>
27963
27964         New module 'sys_ioctl'.
27965         * lib/sys_ioctl.in.h: New file.
27966         * m4/sys_ioctl_h.m4: New file.
27967         * modules/sys_ioctl: New file.
27968         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
27969
27970 2008-10-09  Bruno Haible  <bruno@clisp.org>
27971
27972         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
27973         * lib/winsock.c: Include <stdarg.h>.
27974         (rpl_ioctl): Change to second argument 'int' and then varargs.
27975
27976 2008-10-09  Bruno Haible  <bruno@clisp.org>
27977
27978         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
27979         when the sys_socket module is present and the system has <winsock2.h>.
27980
27981 2008-10-09  Bruno Haible  <bruno@clisp.org>
27982
27983         * doc/posix-functions/close.texi: Mention module 'close' instead of
27984         module 'sys_socket'.
27985
27986 2008-10-09  Bruno Haible  <bruno@clisp.org>
27987
27988         * doc/glibc-headers/sys_ioctl.texi: New file.
27989         * doc/gnulib.texi: Include it.
27990
27991 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
27992             Bruno Haible  <bruno@clisp.org>
27993
27994         Combine the two replacements of 'close'.
27995         * lib/sys_socket.in.h (close): Define to a reminder to include
27996         <unistd.h>.
27997         (_gl_close_fd_maybe_socket): New declaration.
27998         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
27999         * lib/winsock.c (close): Remove undefinition.
28000         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
28001         needed for the gnulib module 'close'.
28002         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
28003         define to an error symbol or to a warning, if suitable.
28004         * lib/close.c: Include <sys/socket.h>.
28005         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
28006         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
28007         UNISTD_H_HAVE_WINSOCK2_H.
28008         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
28009         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
28010         UNISTD_H_HAVE_WINSOCK2_H.
28011         * modules/sys_socket (Files): Add m4/unistd_h.m4.
28012         (configure.ac): Set a module indicator.
28013         (Makefile.am): Substitute GNULIB_CLOSE.
28014         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
28015         * modules/poll-tests (Depends-on): Add close.
28016         * modules/select-tests (Depends-on): Likewise.
28017
28018 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
28019             Bruno Haible  <bruno@clisp.org>
28020
28021         New module 'close'.
28022         * modules/close: New file.
28023         * lib/unistd.in.h (close): Move declaration out of the
28024         FCHDIR_REPLACEMENT scope.
28025         (_gl_unregister_fd): New declaration.
28026         * lib/close.c: New file.
28027         * lib/fchdir.c (rpl_close): Remove function.
28028         * m4/close.m4: New file.
28029         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
28030         close.
28031         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
28032         REPLACE_CLOSE.
28033         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
28034         REPLACE_CLOSE.
28035         * modules/fchdir (Depends-on): Add close.
28036
28037 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
28038             Bruno Haible  <bruno@clisp.org>
28039
28040         * lib/fcntl.in.h (open): Simplify conditionals.
28041         (_gl_register_fd): New declaration.
28042         * lib/fchdir.c (rpl_open): Remove function.
28043         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
28044         also.
28045         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
28046         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
28047         open.
28048
28049 2008-10-09  Jim Meyering  <meyering@redhat.com>
28050
28051         GNUmakefile: use the more name-space-friendly "_version"
28052         * top/GNUmakefile (_dummy): Update.
28053         (_version): Rename from "version".
28054
28055 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
28056             Bruno Haible  <bruno@clisp.org>
28057
28058         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
28059         rpl_close.
28060         (_gl_register_fd): New function, extracted from rpl_open.
28061         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
28062         (rpl_open, rpl_opendir): Use _gl_register_fd.
28063
28064 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
28065
28066         Fix organization of 'open' replacement.
28067         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
28068         (gl_FUNC_OPEN): Use it.
28069         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
28070
28071 2008-10-08  Bruno Haible  <bruno@clisp.org>
28072
28073         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
28074
28075 2008-10-08  Simon Josefsson  <simon@josefsson.org>
28076
28077         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
28078         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
28079         listen).
28080
28081 2008-10-08  Eric Blake  <ebb9@byu.net>
28082
28083         GNUmakefile: add 'make version' target
28084         * top/GNUmakefile (_curr-ver): Split version update rules...
28085         (version): ...into a target.
28086
28087 2008-10-07  Bruno Haible  <bruno@clisp.org>
28088
28089         Use a more portable replacement expression for -0.0L.
28090         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
28091         instead of -0.0L. Fix m4 quotation.
28092
28093         * tests/test-signbit.c: Include <float.h>.
28094         (minus_zero): New variable.
28095         (test_signbitl): Use minus_zero instead of -zero.
28096         * modules/signbit-tests (Depends-on): Add float.
28097
28098         * tests/test-ceill.c: Include <float.h>.
28099         (zero): Remove variable.
28100         (minus_zero): New variable.
28101         (main): Use minus_zero instead of -zero.
28102         * modules/ceill-tests (Depends-on): Add float.
28103
28104         * tests/test-floorl.c: Include <float.h>.
28105         (zero): Remove variable.
28106         (minus_zero): New variable.
28107         (main): Use minus_zero instead of -zero.
28108         * modules/floorl-tests (Depends-on): Add float.
28109
28110         * tests/test-roundl.c: Include <float.h>.
28111         (zero): Remove variable.
28112         (minus_zero): New variable.
28113         (main): Use minus_zero instead of -zero.
28114         * modules/roundl-tests (Depends-on): Add float.
28115
28116         * tests/test-truncl.c: Include <float.h>.
28117         (zero): Remove variable.
28118         (minus_zero): New variable.
28119         (main): Use minus_zero instead of -zero.
28120         * modules/truncl-tests (Depends-on): Add float.
28121
28122         * tests/test-frexpl.c (zero): Remove variable.
28123         (minus_zero): New variable.
28124         (main): Use minus_zero instead of -zero.
28125         * modules/frexpl-tests (Depends-on): Add float.
28126
28127         * tests/test-isnan.c (zerol): Remove variable.
28128         (minus_zerol): New variable.
28129         (test_long_double): Use minus_zerol instead of -zerol.
28130         * modules/isnan-tests (Depends-on): Add float.
28131
28132         * tests/test-isnanl.h (zero): Remove variable.
28133         (minus_zero): New variable.
28134         (main): Use minus_zero instead of -zero.
28135         * modules/isnanl-nolibm-tests (Depends-on): Add float.
28136         * modules/isnanl-tests (Depends-on): Add float.
28137
28138         * tests/test-ldexpl.c (zero): Remove variable.
28139         (minus_zero): New variable.
28140         (main): Use minus_zero instead of -zero.
28141         * modules/ldexpl-tests (Depends-on): Add float.
28142
28143         * tests/test-snprintf-posix.h (zerol): Remove variable.
28144         (minus_zerol): New variable.
28145         (test_function): Use minus_zerol instead of -zerol.
28146         * modules/snprintf-posix-tests (Depends-on): Add float.
28147         * modules/vsnprintf-posix-tests (Depends-on): Add float.
28148
28149         * tests/test-sprintf-posix.h (zerol): Remove variable.
28150         (minus_zerol): New variable.
28151         (test_function): Use minus_zerol instead of -zerol.
28152         * modules/sprintf-posix-tests (Depends-on): Add float.
28153         * modules/vsprintf-posix-tests (Depends-on): Add float.
28154
28155         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
28156         (minus_zerol): New variable.
28157         (test_function): Use minus_zerol instead of -zerol.
28158         * modules/vasnprintf-posix-tests (Depends-on): Add float.
28159
28160         * tests/test-vasprintf-posix.c (zerol): Remove variable.
28161         (minus_zerol): New variable.
28162         (test_function): Use minus_zerol instead of -zerol.
28163         * modules/vasprintf-posix-tests (Depends-on): Add float.
28164
28165 2008-10-07  Simon Josefsson  <simon@josefsson.org>
28166
28167         * MODULES.html.sh (Support for building documentation): Mention
28168         pmccabe2html.  Sort entries.
28169
28170         Add pmccabe2html module, from gnupdf.
28171         * build-aux/pmccabe.css: New file.
28172         * build-aux/pmccabe2html: New file.
28173         * m4/pmccabe2html.m4: New file.
28174         * modules/pmccabe2html: New file.
28175
28176 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
28177
28178         flock: new module
28179         * MODULES.html.sh: Add to list of modules.
28180         * lib/flock.c: flock implementation for Windows and Unix systems
28181         which have fcntl.
28182         * doc/glibc-functions/flock.texi: Update documentation.
28183         * lib/sys_file.in.h: <sys/file.h> header file.
28184         * m4/flock.m4: M4 macros.
28185         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
28186         * modules/flock: flock module.
28187         * modules/flock-tests: flock tests module.
28188         * modules/sys_file: sys/file.h module.
28189         * tests/test-flock.c: test suite for flock.
28190
28191 2008-10-06  Jim Meyering  <meyering@redhat.com>
28192
28193         bootstrap: check for LT_INIT more portably still ;-)
28194         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
28195         Spotted by Bruno Haible.
28196
28197 2008-10-06  Eric Blake  <ebb9@byu.net>
28198
28199         test-signbit: avoid tripping Irix cc bug on -0.0L
28200         * tests/test-signbit.c (minus_zerol): Delete, and replace with
28201         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
28202         entire testsuite consistent and avoids an Irix 6.2 bug.
28203
28204 2008-10-05  Bruno Haible  <bruno@clisp.org>
28205             Jim Meyering  <jim@meyering.net>
28206
28207         Add an option for ignoring EPIPE during close_stdout.
28208         * lib/closeout.h: Include <stdbool.h>.
28209         (close_stdout_set_ignore_EPIPE): New declaration.
28210         * lib/closeout.c: Include <stdbool.h>.
28211         (ignore_EPIPE): New variable.
28212         (close_stdout_set_ignore_EPIPE): New function.
28213         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
28214         * lib/close-stream.c (close_stream): Mention the possible EPIPE
28215         failure.
28216         * modules/closeout (Depends-on): Add stdbool.
28217
28218 2008-10-05  Bruno Haible  <bruno@clisp.org>
28219
28220         * modules/accept: New file.
28221         * modules/bind: New file.
28222         * modules/connect: New file.
28223         * modules/getpeername: New file.
28224         * modules/getsockname: New file.
28225         * modules/getsockopt: New file.
28226         * modules/listen: New file.
28227         * modules/recv: New file.
28228         * modules/recvfrom: New file.
28229         * modules/send: New file.
28230         * modules/sendto: New file.
28231         * modules/setsockopt: New file.
28232         * modules/socket: New file.
28233         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
28234         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
28235         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
28236         the particular module is requested. Add a link warning when the
28237         particular module is not requested.
28238         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
28239         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
28240         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
28241         the particular module is requested.
28242         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
28243         gl_SYS_SOCKET_H_DEFAULTS): New macros.
28244         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
28245         * modules/sys_socket (Depends-on): Add link-warning.
28246         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
28247         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
28248         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
28249         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
28250         GL_LINK_WARNING.
28251         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
28252         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
28253         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
28254         * doc/posix-functions/getpeername.texi: Mention the new module
28255         'getpeername'.
28256         * doc/posix-functions/getsockname.texi: Mention the new module
28257         'getsockname'.
28258         * doc/posix-functions/getsockopt.texi: Mention the new module
28259         'getsockopt'.
28260         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
28261         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
28262         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
28263         * doc/posix-functions/send.texi: Mention the new module 'send'.
28264         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
28265         * doc/posix-functions/setsockopt.texi: Mention the new module
28266         'setsockopt'.
28267         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
28268         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
28269         listen, connect, accept.
28270         * modules/select-tests (Depends-on): Likewise.
28271
28272 2008-10-05  Bruno Haible  <bruno@clisp.org>
28273
28274         * lib/winsock.c (strerror): Remove unused #undef.
28275         (rpl_close): Remove unused local variable.
28276
28277         * modules/sys_socket (Depends-on); Add errno.
28278
28279 2008-10-05  Bruno Haible  <bruno@clisp.org>
28280
28281         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
28282         (select): Add a link warning when the 'select' module is not used.
28283         * modules/sys_select (Depends-on): Add link-warning.
28284         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
28285         Suggested by Paolo Bonzini.
28286
28287 2008-10-05  Jim Meyering  <meyering@redhat.com>
28288
28289         bootstrap: check for LT_INIT more portably
28290         * build-aux/bootstrap: Avoid using grep -E, since it's not
28291         portable enough.  Suggestion from Bruno Haible.
28292
28293 2008-10-05  Bruno Haible  <bruno@clisp.org>
28294
28295         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
28296         as being fixed by gnulib.
28297
28298 2008-10-05  Bruno Haible  <bruno@clisp.org>
28299
28300         * modules/select-tests: New file, mostly copied from
28301         modules/sys_select-tests.
28302         * tests/test-select.c: New file, mostly copied from
28303         tests/test-sys_select.c.
28304         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
28305         * modules/sys_select-tests (Depends-on): Remove all dependencies.
28306         (Makefile.am): Remove test_sys_select_LDADD.
28307
28308         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
28309         to an undefined symbol, for an error message.
28310         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
28311         (gl_SYS_SELECT_H_DEFAULTS): New macro.
28312         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
28313         winsock-select.c here.
28314         * modules/sys_select (Files): Remove lib/winsock-select.c.
28315         (Depends-on): Remove alloca.
28316         (Makefile.am): Substitute GNULIB_SELECT.
28317         * modules/select: New file.
28318         * doc/posix-functions/select.texi: Update.
28319
28320 2008-10-05  Bruno Haible  <bruno@clisp.org>
28321
28322         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
28323         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
28324         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
28325         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
28326         getdtablesize.
28327         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
28328         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
28329
28330 2008-10-05  Bruno Haible  <bruno@clisp.org>
28331
28332         * modules/getdtablesize-tests: New file.
28333         * tests/test-getdtablesize.c: New file.
28334
28335         New module 'getdtablesize'.
28336         * lib/unistd.in.h (getdtablesize): New declaration.
28337         * lib/getdtablesize.c: New file.
28338         * m4/getdtablesize.m4: New file.
28339         * modules/getdtablesize: New file.
28340         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
28341         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
28342         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
28343         HAVE_GETDTABLESIZE.
28344         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
28345
28346 2008-10-05  Bruno Haible  <bruno@clisp.org>
28347
28348         * modules/sched (Makefile.am): Fix typo.
28349         Reported by Simon Josefsson.
28350
28351 2008-10-05  Jim Meyering  <meyering@redhat.com>
28352
28353         bootstrap: check for LT_INIT, too
28354         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
28355         are deprecated.  Suggestion from Ralf Wildenhues.
28356
28357 2008-10-05  Bruno Haible  <bruno@clisp.org>
28358
28359         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
28360         overriding them by ours.
28361         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
28362
28363 2008-10-05  Jim Meyering  <meyering@redhat.com>
28364
28365         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
28366         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
28367         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
28368
28369 2008-10-04  Bruno Haible  <bruno@clisp.org>
28370
28371         * modules/dup2 (License): Change to LGPLv2+.
28372         * modules/sleep (License): Likewise.
28373         * modules/perror (License): Likewise.
28374         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
28375         Blake.
28376         * modules/signal (License): Likewise.
28377         * modules/sigprocmask (License): Likewise.
28378         * modules/raise (License): Change to LGPLv2+, with approval by Jim
28379         Meyering.
28380
28381 2008-10-04  Bruno Haible  <bruno@clisp.org>
28382
28383         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
28384         Reported by Rainer Tammer <tammer@tammer.net>.
28385
28386 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
28387             Bruno Haible  <bruno@clisp.org>
28388
28389         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
28390         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
28391         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
28392
28393 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
28394
28395         filevercmp: new module
28396         * lib/filevercmp.h: New function filevercmp comparing version strings.
28397         * lib/filevercmp.c: Implementation of filevercmp function.
28398         * modules/filevercmp: Module metadata.
28399         * tests/test-filevercmp.c: Unit test for new module.
28400         * modules/filevercmp-tests: Unit test metadata.
28401         * MODULES.html.sh: Add filevercmp module.
28402
28403 2008-10-03  Bruno Haible  <bruno@clisp.org>
28404
28405         * lib/c-ctype.h: Add comment.
28406         Reported by Jim Meyering.
28407
28408 2008-10-02  Bruno Haible  <bruno@clisp.org>
28409
28410         * modules/posix_spawn-internal (Depends-on): Add 'open'.
28411
28412 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
28413
28414         * build-aux/bootstrap: Allow renaming bootstrap, and change the
28415         name of bootstrap.conf accordingly.
28416
28417 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
28418
28419         * build-aux/bootstrap: Install git-merge-changelog configuration
28420         items into .gitconfig if needed.
28421
28422 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
28423
28424         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
28425         git repository, and initialize/update it accordingly.
28426
28427 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
28428
28429         * modules/fsync-tests: New file.
28430         * tests/test-fsync.c: New file.
28431
28432         New module 'fsync'.
28433         * lib/fsync.c: New file.
28434         * m4/fsync.m4: New file.
28435         * modules/fsync: New file.
28436         * lib/unistd.in.h (fsync): New declaration.
28437         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
28438         GNULIB_FSYNC and HAVE_FSYNC.
28439         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
28440         * MODULES.html.sh (posix_functions): Add fsync.
28441         * doc/posix-functions/fsync.texi: Mention the new module.
28442
28443 2008-10-02  Jim Meyering  <meyering@redhat.com>
28444
28445         fts.c: sync with similar code from coreutils' remove.c
28446         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
28447         Guard also with "#if defined __linux__", since for now at least,
28448         this code is Linux-kernel-specific.
28449
28450 2008-10-02  Jim Meyering  <meyering@redhat.com>
28451
28452         fts: bug fixes
28453         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
28454         Include <sys/vfs.h>, not <sys/statfs.h>.
28455
28456         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
28457         Include <sys/vfs.h>, not <sys/statfs.h>.
28458
28459 2008-10-01  Bruno Haible  <bruno@clisp.org>
28460
28461         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
28462         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
28463         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
28464         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
28465         * doc/posix-functions/posix_spawnp.texi: Likewise.
28466         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
28467         whether posix_spawn actually works.
28468         * m4/pipe.m4 (gl_PIPE): Likewise.
28469         * modules/execute (Files): Add m4/posix_spawn.m4.
28470         * modules/pipe (Files): Add m4/posix_spawn.m4.
28471         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
28472
28473 2008-10-01  Jim Meyering  <meyering@redhat.com>
28474
28475         remove trailing spaces
28476         * NEWS: Likewise.
28477         * lib/poll.c (poll): Likewise.
28478         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
28479         * lib/winsock.c (rpl_close): Likewise.
28480         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
28481         * modules/yield: Likewise.
28482         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
28483         * tests/test-sys_select.c (connect_to_socket): Likewise.
28484
28485         fts.c: adjust a new interface to be more generally useful
28486         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
28487         (fts_build): Adjust caller.
28488
28489 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28490
28491         * modules/cond-tests: New file.
28492         * tests/test-cond.c: New file.
28493
28494 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28495             Bruno Haible  <bruno@clisp.org>
28496
28497         * modules/cond (Dependencies): Add errno, time.
28498         * lib/glthread/cond.h: Include <time.h>.
28499         (gl_cond_define, gl_cond_define_initialized): Use the same definition
28500         across platforms.
28501
28502 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28503             Bruno Haible  <bruno@clisp.org>
28504
28505         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
28506
28507 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28508             Bruno Haible  <bruno@clisp.org>
28509
28510         * modules/tls-tests (Depends-on): Add thread, yield.
28511         (configure.ac): Remove all checks.
28512         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
28513         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
28514         gl_thread_self): Remove definitions. Include glthread/thread.h and
28515         glthread/yield.h instead.
28516         (test_tls): Pass an additional NULL argument to gl_thread_join.
28517
28518 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28519             Bruno Haible  <bruno@clisp.org>
28520
28521         * modules/lock-tests (Depends-on): Add thread, yield.
28522         (configure.ac): Remove all checks.
28523         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
28524         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
28525         gl_thread_self): Remove definitions. Include glthread/thread.h and
28526         glthread/yield.h instead.
28527         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
28528         additional NULL argument to gl_thread_join.
28529
28530 2008-09-30  Bruno Haible  <bruno@clisp.org>
28531
28532         Fix the Win32 implementation of the 'thread' module.
28533         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
28534         pointer type.
28535         (gl_thread_self): Invoke gl_thread_self_func.
28536         (gl_thread_self_func): New declaration.
28537         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
28538         (do_init_self_key, init_self_key): New functions.
28539         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
28540         Remove some fields.
28541         (running_threads, running_lock): Remove variables.
28542         (get_current_thread_handle): New function.
28543         (gl_thread_self_func, wrapper_func, glthread_create_func,
28544         glthread_join_func, gl_thread_exit_func): Largely rewritten and
28545         simplified.
28546
28547 2008-09-30  Bruno Haible  <bruno@clisp.org>
28548
28549         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
28550         files.
28551
28552 2008-09-30  Jim Meyering  <meyering@redhat.com>
28553
28554         fts.m4: correct the test for statfs.f_type
28555         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
28556         when checking for statfs.f_type.
28557
28558 2008-09-15  Simon Josefsson  <simon@josefsson.org>
28559
28560         tests: avoid some compiler warnings
28561         * tests/test-memchr.c (main): Pass NULL indirectly.
28562         * tests/test-getdate.c (main): Remove unused variable 'ret'.
28563
28564 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
28565
28566         getdate.y: disallow countable dayshifts like "4 yesterday ago"
28567         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
28568         exactly specified dayshifts.
28569         (dayshift): New rule.
28570         (rel): Add dayshift.
28571         (relative_time_table) [tomorrow, yesterday, today, now]:
28572         Use tDAY_SHIFT in place of tDAY_UNIT.
28573         * tests/test-getdate.c: Add tests for now-disallowed countable
28574         dayshifts, e.g., "4 yesterday ago".
28575
28576 2008-09-29  Bruno Haible  <bruno@clisp.org>
28577
28578         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
28579         * tests/test-posix_spawn1.in.sh: Renamed from
28580         tests/test-posix_spawn.in.sh.
28581         * tests/test-posix_spawn2.c: New file.
28582         * tests/test-posix_spawn2.in.sh: New file.
28583         * modules/posix_spawnp-tests (Files): Update.
28584         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
28585
28586 2008-09-29  Bruno Haible  <bruno@clisp.org>
28587
28588         Propagate effects of putenv/setenv/unsetenv to child processes.
28589         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
28590         * lib/pipe.c (create_pipe): Likewise.
28591
28592 2008-09-29  Bruno Haible  <bruno@clisp.org>
28593
28594         Enable use of shell scripts as executables in mingw.
28595         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
28596         run the program as a shell script.
28597         * lib/pipe.c (create_pipe): Likewise.
28598         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
28599         resulting array.
28600
28601 2008-09-29  Eric Blake  <ebb9@byu.net>
28602
28603         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
28604
28605 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
28606
28607         * doc/posix-functions/accept.texi: Update mingw problems.
28608         * doc/posix-functions/bind.texi: Update mingw problems.
28609         * doc/posix-functions/close.texi: Update mingw problems.
28610         * doc/posix-functions/connect.texi: Update mingw problems.
28611         * doc/posix-functions/getpeername.texi: Update mingw problems.
28612         * doc/posix-functions/getsockname.texi: Update mingw problems.
28613         * doc/posix-functions/getsockopt.texi: Update mingw problems.
28614         * doc/posix-functions/ioctl.texi: Update mingw problems.
28615         * doc/posix-functions/listen.texi: Update mingw problems.
28616         * doc/posix-functions/recv.texi: Update mingw problems.
28617         * doc/posix-functions/recvfrom.texi: Update mingw problems.
28618         * doc/posix-functions/select.texi: Update mingw problems.
28619         * doc/posix-functions/send.texi: Update mingw problems.
28620         * doc/posix-functions/sendto.texi: Update mingw problems.
28621         * doc/posix-functions/setsockopt.texi: Update mingw problems.
28622         * doc/posix-functions/socket.texi: Update mingw problems.
28623
28624 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
28625             Bruno Haible  <bruno@clisp.org>
28626
28627         * lib/sys_select.in.h: Include sys/time.h.
28628         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
28629         * modules/sys_select: Depend on sys_time.
28630         * tests/test-sys_select.c: Test that sys/select.h defines struct
28631         timeval fully.
28632
28633 2008-09-29  Bruno Haible  <bruno@clisp.org>
28634
28635         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
28636         * lib/sys_select.in.h: Likewise.
28637
28638 2008-09-29  Bruno Haible  <bruno@clisp.org>
28639
28640         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
28641
28642 2008-09-29  Bruno Haible  <bruno@clisp.org>
28643
28644         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
28645         Set LIBSOCKET instead of augmenting LIBS.
28646         * modules/sockets (Link): New section.
28647         * modules/sockets-tests (test_sockets_LDADD): New variable.
28648         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
28649         * modules/poll-tests (test_poll_LDADD): New variable.
28650         * NEWS: Document the change.
28651
28652 2008-09-29  Bruno Haible  <bruno@clisp.org>
28653
28654         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
28655         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
28656         ARPA_INET_H directly.
28657         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
28658
28659 2008-09-28  Bruno Haible  <bruno@clisp.org>
28660
28661         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
28662         from gl_HEADER_SYS_SOCKET.
28663         (gl_HEADER_SYS_SOCKET): Invoke it.
28664         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
28665
28666 2008-09-28  Bruno Haible  <bruno@clisp.org>
28667
28668         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
28669         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
28670         Needed on OSF/1 4.0.
28671
28672 2008-09-28  Bruno Haible  <bruno@clisp.org>
28673
28674         Override open more carefully.
28675         * lib/open.c (orig_open): New function.
28676         (rpl_open): Use orig_open instead of open.
28677         * lib/fcntl.in.h: Add special invocation convention.
28678         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
28679         (gl_FUNC_OPEN): Invoke it.
28680
28681         Override freopen more carefully.
28682         * lib/freopen.c (orig_freopen): New function.
28683         (rpl_freopen): Use orig_freopen instead of freopen.
28684         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
28685         (gl_FUNC_FREOPEN): Invoke it.
28686
28687         Override fopen more carefully.
28688         * lib/fopen.c (orig_fopen): New function.
28689         (rpl_fopen): Use orig_fopen instead of fopen.
28690         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
28691         (gl_FUNC_FOPEN): Invoke it.
28692         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
28693
28694 2008-09-28  Bruno Haible  <bruno@clisp.org>
28695
28696         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
28697         SIGPIPE.
28698
28699 2008-09-28  Bruno Haible  <bruno@clisp.org>
28700
28701         * tests/test-sigaction.c (handler, main): Disable the check whether
28702         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
28703         glibc systems with LinuxThreads.
28704
28705 2008-09-28  Bruno Haible  <bruno@clisp.org>
28706
28707         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
28708
28709         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
28710         with AIX xlc.
28711         * lib/fcntl.in.h (open): Likewise.
28712         Reported by Rainer Tammer <tammer@tammer.net>.
28713
28714 2008-09-28  Bruno Haible  <bruno@clisp.org>
28715
28716         * modules/posix_spawnp-tests: New file.
28717         * tests/test-posix_spawn.c: New file.
28718         * tests/test-posix_spawn.in.sh: New file.
28719
28720         New module 'posix_spawnp'.
28721         * modules/posix_spawnp: New file.
28722         * lib/spawnp.c: New file, from GNU libc with modifications.
28723         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
28724
28725         New module 'posix_spawn'.
28726         * modules/posix_spawn: New file.
28727         * lib/spawn.c: New file, from GNU libc with modifications.
28728         * doc/posix-functions/posix_spawn.texi: Mention the new module.
28729
28730         New module 'posix_spawnattr_destroy'.
28731         * modules/posix_spawnattr_destroy: New file.
28732         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
28733         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
28734         module.
28735
28736         New module 'posix_spawnattr_setsigmask'.
28737         * modules/posix_spawnattr_setsigmask: New file.
28738         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
28739         modifications.
28740         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
28741         new module.
28742
28743         New module 'posix_spawnattr_getsigmask'.
28744         * modules/posix_spawnattr_getsigmask: New file.
28745         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
28746         modifications.
28747         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
28748         new module.
28749
28750         New module 'posix_spawnattr_setsigdefault'.
28751         * modules/posix_spawnattr_setsigdefault: New file.
28752         * lib/spawnattr_setdefault.c: New file, from GNU libc with
28753         modifications.
28754         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
28755         new module.
28756
28757         New module 'posix_spawnattr_getsigdefault'.
28758         * modules/posix_spawnattr_getsigdefault: New file.
28759         * lib/spawnattr_getdefault.c: New file, from GNU libc with
28760         modifications.
28761         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
28762         new module.
28763
28764         New module 'posix_spawnattr_setschedpolicy'.
28765         * modules/posix_spawnattr_setschedpolicy: New file.
28766         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
28767         modifications.
28768         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
28769         new module.
28770
28771         New module 'posix_spawnattr_getschedpolicy'.
28772         * modules/posix_spawnattr_getschedpolicy: New file.
28773         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
28774         modifications.
28775         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
28776         new module.
28777
28778         New module 'posix_spawnattr_setschedparam'.
28779         * modules/posix_spawnattr_setschedparam: New file.
28780         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
28781         modifications.
28782         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
28783         new module.
28784
28785         New module 'posix_spawnattr_getschedparam'.
28786         * modules/posix_spawnattr_getschedparam: New file.
28787         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
28788         modifications.
28789         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
28790         new module.
28791
28792         New module 'posix_spawnattr_setpgroup'.
28793         * modules/posix_spawnattr_setpgroup: New file.
28794         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
28795         modifications.
28796         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
28797         module.
28798
28799         New module 'posix_spawnattr_getpgroup'.
28800         * modules/posix_spawnattr_getpgroup: New file.
28801         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
28802         modifications.
28803         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
28804         module.
28805
28806         New module 'posix_spawnattr_setflags'.
28807         * modules/posix_spawnattr_setflags: New file.
28808         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
28809         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
28810         module.
28811
28812         New module 'posix_spawnattr_getflags'.
28813         * modules/posix_spawnattr_getflags: New file.
28814         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
28815         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
28816         module.
28817
28818         New module 'posix_spawnattr_init'.
28819         * modules/posix_spawnattr_init: New file.
28820         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
28821         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
28822         module.
28823
28824         New module 'posix_spawn_file_actions_destroy'.
28825         * modules/posix_spawn_file_actions_destroy: New file.
28826         * lib/spawn_faction_destroy.c: New file, from GNU libc with
28827         modifications.
28828         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
28829         the new module.
28830
28831         New module 'posix_spawn_file_actions_addopen'.
28832         * modules/posix_spawn_file_actions_addopen: New file.
28833         * lib/spawn_faction_addopen.c: New file, from GNU libc with
28834         modifications.
28835         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
28836         the new module.
28837
28838         New module 'posix_spawn_file_actions_adddup2'.
28839         * modules/posix_spawn_file_actions_adddup2: New file.
28840         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
28841         modifications.
28842         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
28843         the new module.
28844
28845         New module 'posix_spawn_file_actions_addclose'.
28846         * modules/posix_spawn_file_actions_addclose: New file.
28847         * lib/spawn_faction_addclose.c: New file, from GNU libc with
28848         modifications.
28849         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
28850         the new module.
28851
28852         New module 'posix_spawn_file_actions_init'.
28853         * modules/posix_spawn_file_actions_init: New file.
28854         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
28855         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
28856         new module.
28857
28858         New module 'posix_spawn-internal'.
28859         * modules/posix_spawn-internal: New file.
28860         * lib/spawn_int.h: New file, from GNU libc with modifications.
28861         * lib/spawni.c: New file, from GNU libc with modifications.
28862         * m4/posix_spawn.m4: New file.
28863
28864         New module 'spawn'.
28865         * modules/spawn: New file.
28866         * lib/spawn.in.h: New file, from GNU libc with modifications.
28867         * m4/spawn_h.m4: New file.
28868         * doc/posix-headers/spawn.texi: Mention the new module.
28869
28870 2008-09-28  Bruno Haible  <bruno@clisp.org>
28871
28872         * modules/sched-tests: New file.
28873         * tests/test-sched.c: New file.
28874
28875         New module 'sched'.
28876         * modules/sched: New file.
28877         * lib/sched.in.h: New file.
28878         * m4/sched_h.m4: New file.
28879         * doc/posix-headers/sched.texi: Mention the new module.
28880
28881 2008-09-27  Eric Blake  <ebb9@byu.net>
28882
28883         Fix previous patch, and tweak references to $0.
28884         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
28885         (func_version, func_gnulib_dir): Don't call this program
28886         gnulib-tool.
28887         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
28888         with using $0 in function.
28889         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
28890         (func_fatal_error): Reuse the name the user invoked us with.
28891
28892 2008-09-27  Bruno Haible  <bruno@clisp.org>
28893
28894         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
28895         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
28896         (gl_ICONV_H): Not here.
28897         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
28898         instead of assigning ICONV_H directly.
28899
28900         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
28901         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
28902         WCHAR_H directly.
28903
28904 2008-09-27  Bruno Haible  <bruno@clisp.org>
28905
28906         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
28907         * modules/arpa_inet (Depends-on): Add link-warning.
28908         (Makefile.am): Insert the definition of GL_LINK-WARNING.
28909         * modules/unistd (Makefile.am): Likewise.
28910
28911 2008-09-26  Bruno Haible  <bruno@clisp.org>
28912
28913         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
28914         variables.
28915         (func_version): Essentially copied from gnulib-tool.
28916         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
28917         func_readlink): Copied from gnulib-tool.
28918
28919 2008-09-26  Bruno Haible  <bruno@clisp.org>
28920
28921         * gnulib-tool (func_version): Change directory to $gnulib_dir before
28922         invoking git-version-gen.
28923
28924 2008-09-26  Bruno Haible  <bruno@clisp.org>
28925
28926         * posix-modules: Update to directory names changed on 2008-01-19.
28927         Remove commas in output before splitting into words. No more need to
28928         avoid 'ftruncate' since 2007-02-19.
28929
28930 2008-09-26  Bruno Haible  <bruno@clisp.org>
28931
28932         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
28933
28934 2008-09-26  Bruno Haible  <bruno@clisp.org>
28935
28936         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
28937         * modules/fwriteerror (Depends-on): Add errno.
28938
28939 2008-09-26  Bruno Haible  <bruno@clisp.org>
28940
28941         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
28942         * tests/test-vc-list-files-cvs.sh: Likewise.
28943
28944 2008-09-26  Bruno Haible  <bruno@clisp.org>
28945
28946         * doc/posix-headers/sys_resource.texi: Reorder items.
28947
28948 2008-09-26  Jim Meyering  <meyering@redhat.com>
28949
28950         fts: tweak inode comparison function
28951         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
28952         inode numbers, as documented.
28953
28954         fts: sort dirent entries on inode number before traversing
28955         This avoids a quadratic, seek-related performance penalty when
28956         operating on a directory containing many entries (measurable at 10k;
28957         3.5 hours at 2 million entries with a cold cache) on certain types
28958         of file systems, including ext3 and ext4, but not tmpfs.
28959         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
28960         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
28961         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
28962         (fs_handles_readdir_ordered_dirents_efficiently): New function.
28963         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
28964         (fts_build): Set the stat.st_ino member from D_INO.
28965         If it is likely to be useful, sort dirent entries on inode number.
28966
28967         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
28968         and the struct statfs.f_type member.
28969         * modules/fts (Depends-on): Add d-ino.
28970
28971 2008-09-26  Bruno Haible  <bruno@clisp.org>
28972
28973         * modules/sigpipe-die (Depends-on): Add sigpipe.
28974
28975         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
28976         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
28977         and GNULIB_STDIO_H_SIGPIPE are set.
28978         * lib/stdio-write.c: New file.
28979         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
28980         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
28981         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
28982         REPLACE_STDIO_WRITE_FUNCS.
28983         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
28984         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
28985         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
28986         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
28987         * modules/stdio (Files): Add lib/stdio-write.c.
28988         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
28989         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
28990         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
28991         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
28992         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
28993         REPLACE_FPRINTF_POSIX.
28994         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
28995         REPLACE_PRINTF_POSIX.
28996         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
28997         REPLACE_VFPRINTF_POSIX.
28998         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
28999         REPLACE_VPRINTF_POSIX.
29000         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
29001         SIGPIPE issue.
29002         * doc/posix-functions/fputc.texi: Likewise.
29003         * doc/posix-functions/fputs.texi: Likewise.
29004         * doc/posix-functions/fwrite.texi: Likewise.
29005         * doc/posix-functions/printf.texi: Likewise.
29006         * doc/posix-functions/putc.texi: Likewise.
29007         * doc/posix-functions/putchar.texi: Likewise.
29008         * doc/posix-functions/puts.texi: Likewise.
29009         * doc/posix-functions/vfprintf.texi: Likewise.
29010         * doc/posix-functions/vprintf.texi: Likewise.
29011
29012         * modules/safe-write (Depends-on): Add write.
29013
29014         * modules/sigpipe-tests: New file.
29015         * tests/test-sigpipe.c: New file.
29016         * tests/test-sigpipe.sh: New file.
29017
29018         * modules/write: New file.
29019         * lib/unistd.in.h: Include <sys/types.h>.
29020         (write): New declaration.
29021         * lib/write.c: New file.
29022         * m4/write.m4: New file.
29023         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
29024         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
29025         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
29026         GNULIB_WRITE, REPLACE_WRITE.
29027         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
29028         and the SIGPIPE issue.
29029
29030         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
29031         (raise): New declaration.
29032         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
29033         (ext_signal): New function.
29034         (rpl_raise): New function.
29035         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
29036         GNULIB_SIGNAL_H_SIGPIPE.
29037         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
29038         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
29039
29040         * modules/sigpipe: New file.
29041         * m4/sigpipe.m4: New file.
29042
29043 2008-09-25  Derek Price  <derek@ximbiot.com>
29044             Bruno Haible  <bruno@clisp.org>
29045
29046         * gnulib-tool (func_import): Report all license incompatibilities, not
29047         just the first one.
29048
29049 2008-09-25  Bruno Haible  <bruno@clisp.org>
29050
29051         * gnulib-tool (func_import): When computing the edits, consider not
29052         only the Makefile.ams that exist but also those that will be generated.
29053
29054 2008-09-25  Simon Josefsson  <simon@josefsson.org>
29055
29056         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
29057         fixes gnulib-tool --test warning about duplicate dependency.
29058
29059 2008-09-25  Bruno Haible  <bruno@clisp.org>
29060
29061         * gnulib-tool: Don't ask the user to perform edits in the generated
29062         Makefile.ams.
29063         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
29064         apply to the Makefile.am being generated.
29065         (func_emit_tests_Makefile_am): Execute edits that apply to the
29066         Makefile.am being generated.
29067         (func_import): Setup list of Makefile.am edits before emitting the
29068         Makefile.ams, not at the end.
29069         (func_create_testdir): Update.
29070         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
29071
29072 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29073
29074         * gnulib-tool (func_import): Store the --tests-base option in the
29075         comment in gnulib-cache.m4.
29076
29077 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
29078
29079         * NEWS: Document increased portability that sys_select now provides.
29080
29081         * lib/sys_select.in.h: Install select wrapper.
29082         * lib/sys_socket.in.h: Use more descriptive name when there is no
29083         select wrapper.
29084         * lib/winsock-select.c: New.
29085         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
29086         Require gl_HEADER_SYS_SOCKET.
29087         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
29088         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
29089         * tests/test-sys_select.c: Add functional tests.
29090
29091 2008-09-24  Eric Blake  <ebb9@byu.net>
29092
29093         open, fopen: close fd leak in last patch
29094         * lib/open.c (rpl_open): Close fd before returning error.
29095         * lib/fopen.c (rpl_fopen): Close fd before returning error.
29096         * doc/posix-functions/open.texi (open): Document that Irix also
29097         has the bug.
29098         * doc/posix-functions/fopen.texi (fopen): Likewise.
29099         Reported by Paolo Bonzini.
29100
29101 2008-09-24  Bruno Haible  <bruno@clisp.org>
29102
29103         Ensure that a filename ending in a slash cannot be used to access a
29104         non-directory.
29105         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
29106         to check whether it's really a directory.
29107         * lib/fopen.c: Include fcntl.h, unistd.h.
29108         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
29109         and fdopen().
29110         * modules/fopen (Depends-on): Add unistd.
29111         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
29112         * tests/test-fopen.c (main): Likewise.
29113         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
29114         * doc/posix-functions/fopen.texi: Likewise.
29115         Reported by Eric Blake.
29116
29117 2008-09-23  Eric Blake  <ebb9@byu.net>
29118
29119         c-stack: avoid compiler optimizations when provoking overflow
29120         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
29121         recursion harder to optimize, to ensure a stack overflow occurs.
29122         * tests/test-c-stack.c (recurse): Likewise.
29123         Borrowed from libsigsegv.
29124
29125         c-stack: work around Irix sigaltstack bug
29126         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
29127         whether sigaltstack uses wrong end of stack_t (copied in part from
29128         libsigsegv).
29129         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
29130         Irix bug, without requiring an over-allocation.
29131         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
29132         bug.
29133
29134         fopen: document mingw bug on directories
29135         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
29136         not allowing a stream visiting a directory, even though reading
29137         from such a stream is not portable.
29138
29139 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
29140
29141         * lib/poll.c: Rewrite.
29142         * modules/poll: Depend on alloca.
29143
29144 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
29145
29146         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
29147         instead define prototypes for a full set of wrappers.  Ensure
29148         that Cygwin does not use the compatibility code, which is only
29149         for MinGW.
29150         * lib/winsock.c: New.
29151         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
29152         * modules/sys_socket: Add lib/winsock.c.
29153
29154         * modules/poll-tests: Add errno and perror.
29155         * tests/test-poll.c: Use ioctl, not ioctlsocket.
29156
29157 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
29158
29159         * tests/test-poll.c: Downgrade minimum needed Winsock version.
29160
29161 2008-09-23  Bruno Haible  <bruno@clisp.org>
29162
29163         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
29164         * doc/glibc-functions/*: Likewise.
29165
29166 2008-09-23  Simon Josefsson  <simon@josefsson.org>
29167
29168         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
29169         success.
29170
29171 2008-09-22  Eric Blake  <ebb9@byu.net>
29172             Bruno Haible  <bruno@clisp.org>
29173
29174         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
29175         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
29176         supply %A but mishandle pseudo-NaN.
29177         Reported by Simon Josefsson.
29178
29179 2008-09-21  Bruno Haible  <bruno@clisp.org>
29180
29181         * tests/test-lock.c (main): Tweak skip message.
29182         * tests/test-tls.c (main): Likewise.
29183
29184 2008-09-21  Bruno Haible  <bruno@clisp.org>
29185
29186         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
29187         whether 'struct sigaction' has sa_sigaction here...
29188         (gl_PREREQ_SIG_HANDLER_H): ... not here.
29189         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
29190
29191 2008-09-21  Bruno Haible  <bruno@clisp.org>
29192
29193         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
29194         section.
29195         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
29196         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
29197         the new section.
29198         (Support for obsolete systems lacking POSIX:2001): New section.
29199         (String handling <string.h>): Move strdup to the new section.
29200         Suggested by Simon Josefsson and Paolo Bonzini.
29201
29202 2008-09-21  Bruno Haible  <bruno@clisp.org>
29203
29204         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
29205         exponents in %e and %g results on 'long double'. Needed for mingw's
29206         improved *printf functions.
29207         * tests/test-vasprintf-posix.c (test_function): Likewise.
29208         * tests/test-snprintf-posix.h (test_function): Likewise.
29209         * tests/test-sprintf-posix.h (test_function): Likewise.
29210         Reported by Eric Blake.
29211
29212 2008-09-21  Bruno Haible  <bruno@clisp.org>
29213
29214         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
29215         * tests/test-sprintf-posix.h (test_function): Likewise.
29216
29217 2008-09-21  Bruno Haible  <bruno@clisp.org>
29218
29219         * modules/getpass (Depends-on): Add strdup-posix.
29220
29221         New module 'strdup-posix'.
29222         * modules/strdup-posix: New file.
29223         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
29224         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
29225         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
29226         REPLACE_STRDUP.
29227         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
29228         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
29229         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
29230         strdup-posix.
29231
29232         * modules/strdup (Depends-on): Remove malloc-posix.
29233
29234 2008-09-20  Bruno Haible  <bruno@clisp.org>
29235
29236         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
29237         Wildenhues.
29238
29239 2008-09-20  Bruno Haible  <bruno@clisp.org>
29240
29241         Ensure that wint_t gets defined on IRIX 5.3.
29242         * lib/wchar.in.h (wint_t): Define if not defined by the system.
29243         * lib/wctype.in.h (wint_t): Likewise.
29244         (__wctype_wint_t): Remove type.
29245         (isw*): Use wint_t instead of __wctype_wint_t.
29246         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
29247         * modules/wchar (Files): Add m4/wint_t.m4.
29248         (Makefile.am): Substitute HAVE_WINT_T.
29249         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
29250         * tests/test-wctype.c: Check that wint_t is defined.
29251         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
29252         * doc/posix-headers/wctype.texi: Likewise.
29253         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29254
29255 2008-09-18  Bruno Haible  <bruno@clisp.org>
29256
29257         * gnulib-tool (func_exit): Update comment.
29258
29259 2008-09-18  Simon Josefsson  <simon@josefsson.org>
29260
29261         * modules/getaddrinfo (Depends-on): Remove strdup, this module
29262         assumes strdup exists and does not depend on strdup to return
29263         ENOMEM on out of memory conditions.
29264
29265 2008-09-18  Bruno Haible  <bruno@clisp.org>
29266
29267         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
29268         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
29269         digits for the exponent.
29270
29271 2008-09-18  Jim Meyering  <meyering@redhat.com>
29272             Bruno Haible  <bruno@clisp.org>
29273
29274         * lib/vasnprintf.c (decimal_point_char): Define also if
29275         NEED_PRINTF_INFINITE_LONG_DOUBLE.
29276
29277 2008-09-16  Bruno Haible  <bruno@clisp.org>
29278         and Eric Blake  <ebb9@byu.net>
29279
29280         vasnprintf: support Irix 5.3
29281         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
29282         that mishandle long double infinity.
29283         Reported by Tom G. Christensen.
29284
29285 2008-09-16  Bruno Haible  <bruno@clisp.org>
29286
29287         * doc/glibc-functions/scandir.texi: Mention the function is missing on
29288         Solaris 9.
29289         * doc/glibc-functions/alphasort.texi: Likewise.
29290         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
29291
29292 2008-09-16  Jim Meyering  <meyering@redhat.com>
29293
29294         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
29295         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
29296         a umask modification leak out of a subshell.  Otherwise, the
29297         opensolaris /bin/sh would be accepted and thus cause unwarranted
29298         failures in the coreutils test suite.
29299
29300 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
29301
29302         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
29303         to succeed.
29304
29305 2008-09-16  Jim Meyering  <meyering@redhat.com>
29306
29307         avoid spurious test failure when library is built without ACL support
29308         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
29309         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
29310         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
29311         * tests/test-copy-acl.sh: Likewise.
29312
29313 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29314
29315         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
29316         based on character occurrence counts.
29317
29318 2008-09-15  Eric Blake  <ebb9@byu.net>
29319
29320         tests: avoid some compiler warnings
29321         * tests/test-memchr.c (main): Pass NULL indirectly.
29322         * tests/test-closein.c (main): Avoid unused variable.
29323
29324 2008-09-15  Bruno Haible  <bruno@clisp.org>
29325
29326         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
29327         are missing on OpenBSD 4.0 individually.
29328         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
29329
29330 2008-09-15  Bruno Haible  <bruno@clisp.org>
29331
29332         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
29333         * doc/posix-functions/strerror.texi: Mention also Cygwin.
29334         * doc/posix-functions/perror.texi: Likewise.
29335         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
29336         is missing.
29337         Reported by Eric Blake.
29338
29339         * lib/errno.in.h: Use replacement values >= 2000.
29340         Reported by Eric Blake.
29341
29342 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29343
29344         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
29345         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
29346         limit.
29347         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
29348         compareseq was aborted.
29349
29350 2008-09-14  Bruno Haible  <bruno@clisp.org>
29351
29352         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
29353         yvec_edit_count.
29354         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
29355         (fstrcmp_bounded): Simplify result computation accordingly.
29356
29357 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29358
29359         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
29360         (fstrcmp): Define in terms of fstrcmp_bounded.
29361         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
29362         lower_bound argument.
29363         Return quickly if the result is certainly < lower_bound.
29364         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
29365
29366 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29367
29368         * lib/diffseq.h (EARLY_ABORT): New macro.
29369         (compareseq): Change return type to bool. Return true when EARLY_ABORT
29370         evaluates to true.
29371
29372 2008-09-14  Bruno Haible  <bruno@clisp.org>
29373
29374         * modules/perror-tests: New file.
29375         * tests/test-perror.sh: New file.
29376         * tests/test-perror.c: New file.
29377
29378         New module 'perror'.
29379         * lib/stdio.in.h (perror): New declaration.
29380         * lib/perror.c: New file.
29381         * m4/perror.m4: New file.
29382         * modules/perror: New file.
29383         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
29384         * doc/posix-functions/perror.texi: Mention the perror module.
29385         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
29386         REPLACE_PERROR.
29387         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
29388         REPLACE_PERROR.
29389
29390 2008-09-14  Bruno Haible  <bruno@clisp.org>
29391
29392         * modules/stdio (Makefile.am): Reorder to match the order in
29393         lib/stdio.in.h.
29394         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
29395
29396 2008-09-13  Bruno Haible  <bruno@clisp.org>
29397
29398         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
29399
29400 2008-09-13  Bruno Haible  <bruno@clisp.org>
29401
29402         Extend strerror to cover the added errno values.
29403         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
29404         (rpl_strerror): Provide error messages for the added errno values and
29405         for the WSA* values.
29406         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
29407         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
29408         strerror.
29409         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
29410         * modules/strerror (Depends-on): Add errno.
29411         * doc/posix-functions/strerror.texi: Document the change.
29412         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
29413         and EOVERFLOW.
29414
29415 2008-09-13  Bruno Haible  <bruno@clisp.org>
29416
29417         * modules/EOVERFLOW: Remove file.
29418         * m4/eoverflow.m4: Remove file.
29419         * modules/EOVERFLOW-tests: Remove file.
29420         * tests/test-EOVERFLOW.c: Remove file.
29421         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
29422         * modules/ftell (Depends-on): Likewise.
29423         * modules/getdelim (Depends-on): Likewise.
29424         * modules/getugroups (Depends-on): Likewise.
29425         * modules/poll (Depends-on): Likewise.
29426         * modules/snprintf (Depends-on): Likewise.
29427         * modules/sprintf-posix (Depends-on): Likewise.
29428         * modules/vasnprintf (Depends-on): Likewise.
29429         * modules/vasprintf (Depends-on): Likewise.
29430         * modules/vfprintf-posix (Depends-on): Likewise.
29431         * modules/vsnprintf (Depends-on): Likewise.
29432         * modules/vsprintf-posix (Depends-on): Likewise.
29433         * modules/xvasprintf (Depends-on): Likewise.
29434         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
29435         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
29436         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
29437         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
29438         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
29439         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
29440         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
29441         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
29442         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
29443         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
29444         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
29445         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
29446         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
29447         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
29448         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
29449         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
29450         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
29451         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
29452         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
29453         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
29454         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
29455         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
29456         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
29457         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
29458         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
29459         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
29460         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
29461         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
29462         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
29463         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
29464         * MODULES.html.sh: Remove EOVERFLOW.
29465         * NEWS: Mention the change.
29466
29467 2008-09-13  Bruno Haible  <bruno@clisp.org>
29468
29469         * modules/errno-tests: New file.
29470         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
29471
29472         * lib/errno.in.h: New file.
29473         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
29474         * modules/errno: New file.
29475         * doc/posix-headers/errno.texi: Update documentation.
29476         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
29477
29478 2008-09-13  Bruno Haible  <bruno@clisp.org>
29479
29480         * tests/test-poll.c: Use #if for native Windows, rather than testing
29481         __MSVCRT__.
29482
29483 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29484             Bruno Haible  <bruno@clisp.org>
29485
29486         * lib/glob.c: Don't include <pwd.h> on native Windows.
29487         (WINDOWS32): New macro.
29488         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
29489
29490 2008-09-13  Bruno Haible  <bruno@clisp.org>
29491
29492         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
29493         (ETIMEDOUT): Remove macro.
29494         (glthread_cond_timedwait_multithreaded): New declaration.
29495         (glthread_cond_timedwait): Use it.
29496         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
29497         (glthread_cond_timedwait_multithreaded): New function.
29498
29499 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
29500
29501         * modules/poll-tests: Do not check for io.h.
29502         * tests/test-poll.c: Check for __MSVCRT__ instead.
29503
29504 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
29505
29506         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
29507         * modules/poll-tests: Add inet_pton, stdbool, sockets.
29508         * tests/test-poll.c: Use them.  Use _pipe on Windows.
29509
29510 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
29511
29512         * modules/poll-tests: New.
29513         * tests/test-poll.c: New.
29514
29515 2008-09-12  Eric Blake  <ebb9@byu.net>
29516
29517         frexp: test for NetBSD failure on -0.0
29518         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
29519         not all, bugs from NetBSD 3.0 have been fixed.
29520         * doc/posix-functions/frexp.texi (frexp): Document bug.
29521         Reported by Thomas Klausner.
29522
29523         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
29524         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
29525         literal -0.0.
29526         Reported by Jonathan C. Patschke <jp@centtech.com>.
29527
29528 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29529
29530         * lib/glthread/cond.h: Use dummy implementation also if
29531         USE_WIN32_THREADS.
29532
29533 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29534
29535         * modules/fnmatch-posix (License): Change to LGPLv2+.
29536         * modules/fnmatch-gnu (License): Likewise.
29537
29538 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29539
29540         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
29541
29542 2008-09-11  Jim Meyering  <meyering@redhat.com>
29543
29544         * users.txt: Add gtk-vnc.
29545
29546 2008-09-08  Simon Josefsson  <simon@josefsson.org>
29547
29548         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
29549         rotate amounts.
29550
29551         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
29552         required for 16-bit and 8-bit rotates.
29553         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
29554         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
29555         UINT8_MAX instead of hard-coded constants.
29556         Suggested by Paul Eggert.
29557
29558 2008-09-07  Bruno Haible  <bruno@clisp.org>
29559
29560         * tests/test-striconveh.c (main): Check behaviour when converting from
29561         UTF-7.
29562
29563         Make striconveh work better with stateful encodings.
29564         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
29565         that iconv does not increment the inptr when returning -1/EINVAL.
29566
29567 2008-09-07  Bruno Haible  <bruno@clisp.org>
29568
29569         * build-aux/config.rpath: Update according to libtool-2.2.6.
29570         * build-aux/config.libpath: Likewise.
29571
29572 2008-09-06  Bruno Haible  <bruno@clisp.org>
29573
29574         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
29575         * lib/freadptr.c (freadptr): Likewise.
29576         * lib/freadseek.c (freadptrinc): Likewise.
29577         Reported by Simon Josefsson.
29578
29579 2008-09-06  Bruno Haible  <bruno@clisp.org>
29580
29581         * modules/freadptr (License): Change to LGPLv2+.
29582         * modules/freadseek (License): Likewise.
29583         Suggested by Eric Blake.
29584
29585         * modules/memchr2 (License): Change to LGPLv2+.
29586         Approved by Eric Blake.
29587
29588 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29589             Bruno Haible  <bruno@clisp.org>
29590
29591         Make gnulib-tool work with native 'sed' on AIX.
29592         * gnulib-tool (sed_noop): New variable.
29593         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
29594         func_add_or_update, func_create_testdir): Use it to initialize sed
29595         script variables.
29596         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
29597
29598 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
29599             Bruno Haible  <bruno@clisp.org>
29600
29601         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
29602         also works after #include directives.
29603
29604 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
29605
29606         getdate.y: reject an out-of-range timezone value
29607         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
29608         the range [-24...+24].  When specified with only one or two digits,
29609         * tests/test-getdate.c: Tests for the fix.
29610         * doc/getdate.texi: Document this change.
29611
29612 2008-09-03  Bruno Haible  <bruno@clisp.org>
29613
29614         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
29615
29616 2008-09-02  Simon Josefsson  <simon@josefsson.org>
29617
29618         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
29619         <bruce.korb@gmail.com> with ideas from Ben Pfaff
29620         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
29621         Blake <ebb9@byu.net>.
29622
29623         * tests/test-bitrotate.c: Add more test vectors.
29624
29625 2008-09-02  Eric Blake  <ebb9@byu.net>
29626
29627         vasnprintf-posix: handle large precision via %.*d
29628         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
29629         when handling it ourselves.
29630         * tests/test-vasnprintf-posix.c (test_function): Add test.
29631         * tests/test-snprintf-posix.h (test_function): Likewise.
29632         * tests/test-sprintf-posix.h (test_function): Likewise.
29633         * tests/test-vasprintf-posix.c (test_function): Likewise.
29634         Reported by Alain Guibert.
29635
29636 2008-09-01  Eric Blake  <ebb9@byu.net>
29637
29638         c-stack: make configure-time check more robust
29639         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
29640         successful sigaction call.
29641         Reported by Tom G. Christensen.
29642
29643 2008-09-01  Bruno Haible  <bruno@clisp.org>
29644
29645         New module 'findprog-lgpl'.
29646         * modules/findprog-lgpl: New file.
29647         * lib/findprog-lgpl.c: New file.
29648         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
29649         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
29650         to decide whether to use strdup or xstrdup, concatenated_filename or
29651         xconcatenated_filename.
29652
29653 2008-09-01  Bruno Haible  <bruno@clisp.org>
29654
29655         Split module 'concat-filename' into 'concat-filename' (LGPL) and
29656         'xconcat-filename' (GPL).
29657         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
29658         (License): Change to LGPLv2+.
29659         * modules/xconcat-filename: New file.
29660         * lib/concat-filename.h (concatenated_filename): Change specification.
29661         (xconcatenated_filename): New declaration.
29662         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
29663         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
29664         memory situations.
29665         * lib/xconcat-filename.c: New file.
29666         * NEWS: Mention the change.
29667         * lib/findprog.c: Include concat-filename.h, not filename.h.
29668         (find_in_path): Use xconcatenated_filename instead of
29669         concatenated_filename.
29670         * lib/javacomp.c: Include concat-filename.h, not filename.h.
29671         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
29672         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
29673         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
29674         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
29675         instead of concatenated_filename.
29676         * lib/javaexec.c: Include concat-filename.h, not filename.h.
29677         (execute_java_class): Use xconcatenated_filename instead of
29678         concatenated_filename.
29679         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
29680         * modules/javacomp (Depends-on): Likewise.
29681         * modules/javaexec (Depends-on): Likewise.
29682
29683 2008-09-01  Bruno Haible  <bruno@clisp.org>
29684
29685         Split module 'filename' into 'filename' and 'concat-filename'.
29686         * modules/filename: Keep only lib/filename.h.
29687         (License): Change to LGPLv2+.
29688         * modules/concat-filename: New file, extracted from modules/filename.
29689         * lib/filename.h (concatenated_filename): Remove declaration.
29690         * lib/concat-filename.h: New file, extracted from lib/filename.h.
29691         * lib/concat-filename.c: Include concat-filename.h.
29692         * NEWS: Mention the change.
29693
29694 2008-09-01  Simon Josefsson  <simon@josefsson.org>
29695
29696         * lib/bitrotate.h (rotl8, rotr8): Add.
29697
29698         * modules/bitrotate (configure.ac): Need
29699         AC_REQUIRE([AC_C_INLINE]).
29700         (Description): Mention stdint.h.  Reported by Bruno Haible
29701         <bruno@clisp.org>.
29702
29703         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
29704         Paolo Bonzini <bonzini@gnu.org>.
29705
29706 2008-08-31  Bruno Haible  <bruno@clisp.org>
29707
29708         Assume Solaris specific bi-arch conventions on Solaris systems.
29709         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
29710         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
29711         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
29712         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
29713         like acl_libdirstem.
29714         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
29715         acl_libdirstem.
29716         * NEWS: Mention the change.
29717         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
29718
29719 2008-08-31  Jim Meyering  <meyering@redhat.com>
29720
29721         * lib/strftime.h: Add comments describing the two added arguments.
29722
29723         remove duplicate #include directives
29724         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
29725         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
29726
29727 2008-08-31  Bruno Haible  <bruno@clisp.org>
29728
29729         New module 'sigpipe-die'.
29730         * modules/sigpipe-die: New file.
29731         * lib/sigpipe-die.h: New file.
29732         * lib/sigpipe-die.c: New file.
29733         * MODULES.html.sh (Signal handling): Add sigpipe-die.
29734
29735 2008-08-31  Bruno Haible  <bruno@clisp.org>
29736
29737         Don't override previously installed signal handlers.
29738         * lib/fatal-signal.c (saved_sigactions): New variable.
29739         (uninstall_handlers): Reset the signal to the saved handler, not
29740         to SIG_DFL (except when ignored).
29741         (install_handlers): Save the previous handlers.
29742
29743 2008-08-30  Bruno Haible  <bruno@clisp.org>
29744
29745         * gnulib-tool (func_reset_sigpipe): New function.
29746         (func_get_automake_snippet, func_modules_transitive_closure,
29747         func_import): Invoke it before a join command that reads from stdin,
29748         to avoid "echo: write error: Broken pipe" error messages on stderr.
29749         Reported by Sam Steingold <sds@gnu.org>.
29750
29751 2008-08-30  Bruno Haible  <bruno@clisp.org>
29752
29753         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
29754         Code copied from m4/open.m4.
29755         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
29756         access and the filename ends in a slash. Code copied from lib/open.c.
29757         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
29758         * tests/test-fopen.c (main): Check against bug with trailing slash.
29759
29760 2008-08-29  Bruno Haible  <bruno@clisp.org>
29761
29762         Avoid some "gcc -pedantic" warnings.
29763         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
29764         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
29765         * lib/dirent.in.h: Likewise.
29766         * lib/fcntl.in.h: Likewise.
29767         * lib/float.in.h: Likewise.
29768         * lib/iconv.in.h: Likewise.
29769         * lib/inttypes.in.h: Likewise.
29770         * lib/locale.in.h: Likewise.
29771         * lib/math.in.h: Likewise.
29772         * lib/netinet_in.in.h: Likewise.
29773         * lib/search.in.h: Likewise.
29774         * lib/signal.in.h: Likewise.
29775         * lib/stdarg.in.h: Likewise.
29776         * lib/stdint.in.h: Likewise.
29777         * lib/stdio.in.h: Likewise.
29778         * lib/stdlib.in.h: Likewise.
29779         * lib/string.in.h: Likewise.
29780         * lib/strings.in.h: Likewise.
29781         * lib/sys_select.in.h: Likewise.
29782         * lib/sys_socket.in.h: Likewise.
29783         * lib/sys_stat.in.h: Likewise.
29784         * lib/sys_time.in.h: Likewise.
29785         * lib/sysexits.in.h: Likewise.
29786         * lib/time.in.h: Likewise.
29787         * lib/unistd.in.h: Likewise.
29788         * lib/wchar.in.h: Likewise.
29789         * lib/wctype.in.h: Likewise.
29790         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
29791         * modules/fchdir (Makefile.am): Likewise.
29792         * modules/fcntl (Makefile.am): Likewise.
29793         * modules/float (Makefile.am): Likewise.
29794         * modules/iconv_open (Makefile.am): Likewise.
29795         * modules/inttypes (Makefile.am): Likewise.
29796         * modules/locale (Makefile.am): Likewise.
29797         * modules/math (Makefile.am): Likewise.
29798         * modules/netinet_in (Makefile.am): Likewise.
29799         * modules/search (Makefile.am): Likewise.
29800         * modules/signal (Makefile.am): Likewise.
29801         * modules/stdarg (Makefile.am): Likewise.
29802         * modules/stdint (Makefile.am): Likewise.
29803         * modules/stdio (Makefile.am): Likewise.
29804         * modules/stdlib (Makefile.am): Likewise.
29805         * modules/string (Makefile.am): Likewise.
29806         * modules/strings (Makefile.am): Likewise.
29807         * modules/sys_select (Makefile.am): Likewise.
29808         * modules/sys_socket (Makefile.am): Likewise.
29809         * modules/sys_stat (Makefile.am): Likewise.
29810         * modules/sys_time (Makefile.am): Likewise.
29811         * modules/sysexits (Makefile.am): Likewise.
29812         * modules/time (Makefile.am): Likewise.
29813         * modules/unistd (Makefile.am): Likewise.
29814         * modules/wchar (Makefile.am): Likewise.
29815         * modules/wctype (Makefile.am): Likewise.
29816         Reported by Reuben Thomas <rrt@sc3d.org>.
29817
29818 2008-08-29  Bruno Haible  <bruno@clisp.org>
29819
29820         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
29821         any more.
29822
29823 2008-08-29  Simon Josefsson  <simon@josefsson.org>
29824
29825         * MODULES.html.sh (Misc): Add bitrotate.
29826
29827         * modules/bitrotate: New file.
29828
29829         * lib/bitrotate.h: New file.
29830
29831         * modules/bitrotate-tests: New file.
29832
29833         * tests/test-bitrotate.c: New file.
29834
29835         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
29836         on the bitrotate module.
29837
29838         * lib/arctwo.c: Use new bitrotate module.
29839
29840 2008-08-29  Jim Meyering  <meyering@redhat.com>
29841
29842         bootstrap: merge changes from coreutils
29843         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
29844         of copied files.  Remove a kludge, now that this is fixed.
29845         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
29846         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
29847         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
29848
29849 2008-08-29  Bruno Haible  <bruno@clisp.org>
29850
29851         * MODULES.html.sh: Remove --cvs-urls option.
29852
29853 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
29854
29855         maint.mk: adjust to file name change
29856         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
29857
29858 2008-08-28  Jim Meyering  <meyering@redhat.com>
29859
29860         * modules/getndelim2 (License): Relicense to LGPLv2+.
29861         Approved by Richard Stallman for the version of 1995, and by
29862         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
29863
29864 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
29865
29866         * lib/getdelim.c (flockfile, funlockfile): Make all of them
29867         dummy if one is not available.  Do not touch them if
29868         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
29869         (getc_maybe_unlocked): New.
29870         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
29871
29872 2008-08-26  Eric Blake  <ebb9@byu.net>
29873
29874         doc/INSTALL: resync from autoconf
29875         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
29876         (INSTALL_PRELUDE): Delete; this is done more efficiently by
29877         moving...
29878         * install.texi [!autoconf]: ...here.  Resync from autoconf.
29879         * INSTALL: Regenerate.
29880         * INSTALL.ISO: New file.
29881         * INSTALL.UTF-8: Likewise.
29882
29883 2008-08-26  Jim Meyering  <meyering@redhat.com>
29884
29885         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
29886         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
29887         these definitions conditional, so that they may be overridden, too.
29888
29889 2008-08-26  Bruno Haible  <bruno@clisp.org>
29890
29891         Generate INSTALL file variants with prettier quotes.
29892         * doc/Makefile (INSTALL_PRELUDE): New macro.
29893         (INSTALL): Use it.
29894         (INSTALL.ISO, INSTALL.UTF-8): New rules.
29895
29896 2008-08-26  Bruno Haible  <bruno@clisp.org>
29897
29898         Run makeinfo in an English locale.
29899         * doc/Makefile (MAKEINFO): New variable.
29900
29901 2008-08-26  Bruno Haible  <bruno@clisp.org>
29902
29903         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
29904         Suggested by Eric Blake.
29905
29906 2008-08-25  Bruno Haible  <bruno@clisp.org>
29907
29908         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
29909
29910 2008-08-25  Eric Blake  <ebb9@byu.net>
29911
29912         c-stack: test that stack overflow can be caught
29913         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
29914         that platform allows handling stack overflow; at least OS/2 EMX
29915         has sigaltstack, but crashes before transferring control to
29916         handler on stack overflow.
29917         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
29918         check for HAVE_STACK_OVERFLOW_HANDLING.
29919         Reported by Elbert Pol.
29920
29921 2008-08-25  Bruno Haible  <bruno@clisp.org>
29922
29923         * doc/posix-functions/strftime.texi: Fix description of strftime
29924         module.
29925
29926 2008-08-24  Bruno Haible  <bruno@clisp.org>
29927
29928         * tests/uniwidth/test-uc_width2.c: New file.
29929         * tests/uniwidth/test-uc_width2.sh: New file.
29930         * modules/uniwidth/width-tests (Files): Add the new files.
29931         (TESTS): Add uniwidth/test-uc_width2.sh.
29932         (TESTS_ENVIRONMENT): New variable.
29933         (check_PROGRAMS): Add test-uc_width2.
29934         (test_uc_width2_SOURCES): New variable.
29935
29936         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
29937         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
29938         not 0x00AB.
29939         Reported by Alexander V. Lukyanov <lav@netis.ru>.
29940
29941 2008-08-22  Eric Blake  <ebb9@byu.net>
29942
29943         test-lock, test-tls: mention why a test is skipped
29944         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
29945         skipped.
29946         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
29947
29948         count-one-bits: relax license
29949         * modules/count-one-bits (License): Relicense to LGPLv2+.
29950         Suggested by Ludovic Courtès, approved by Ben Pfaff.
29951
29952 2008-08-22  Andreas Schwab  <schwab@suse.de>
29953
29954         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
29955         Remove spurious space in assignment.
29956
29957 2008-08-21  Simon Josefsson  <simon@josefsson.org>
29958
29959         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
29960         Paul Eggert <eggert@CS.UCLA.EDU>.
29961
29962 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
29963
29964         * modules/gettext: Add m4/threadlib.m4.
29965
29966 2008-08-19  Eric Blake  <ebb9@byu.net>
29967
29968         test-c-stack: fix compilation failure on FreeBSD 5.0
29969         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
29970         headers before <sys/resource.h>.
29971         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
29972         the bug.
29973         Reported by Nelson H. F. Beebe.
29974
29975         strverscmp: migrate from "strverscmp.h" to <string.h>
29976         * modules/string (Makefile.am): Add new hooks.
29977         * modules/strverscmp (Files): Remove strverscmp.h.
29978         (Depends-on): Add string.
29979         (configure.ac): Add indicator.
29980         (Include): Mention new header.
29981         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
29982         defaults.
29983         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
29984         results.
29985         * lib/strverscmp.h: Delete.
29986         * lib/string.in.h (strverscmp): Provide declaration, when needed.
29987         * tests/test-strverscmp.c (includes): Adjust client.
29988         * lib/check-version.c (includes): Likewise.
29989         * NEWS: Document the change.
29990
29991         strverscmp: add unit test
29992         * modules/strverscmp-tests: New file.
29993         * tests/test-strverscmp.c: Likewise.
29994
29995 2008-08-19  Simon Josefsson  <simon@josefsson.org>
29996
29997         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
29998         regarding Windows crypto stuff, from Mono.
29999
30000 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
30001
30002         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
30003         if present, for intel RND.  Return error on failures.
30004
30005 2008-08-18  Ben Pfaff  <blp@gnu.org>
30006
30007         gitlog-to-changelog: give better diagnostic for failed pipe-open
30008         * build-aux/gitlog-to-changelog: Improve error message: suggest
30009         that the version of Git may be too old.
30010
30011 2008-08-18  Simon Josefsson  <simon@josefsson.org>
30012
30013         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
30014         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
30015
30016 2008-08-18  Bruno Haible  <bruno@clisp.org>
30017
30018         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
30019         pthread_in_use().
30020
30021 2008-08-18  Bruno Haible  <bruno@clisp.org>
30022
30023         * lib/glthread/threadlib.c: Include <pthread.h>.
30024
30025 2008-08-18  Bruno Haible  <bruno@clisp.org>
30026
30027         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
30028         glthread_recursive_lock_* macros.
30029         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
30030         Fix syntax error.
30031
30032 2008-08-18  Bruno Haible  <bruno@clisp.org>
30033
30034         * lib/glthread/thread.c: Avoid forcing a context switch right after
30035         thread creation.
30036
30037 2008-08-17  Bruno Haible  <bruno@clisp.org>
30038
30039         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
30040         * lib/glthread/thread.h: Provide Win32 specific implementation.
30041         * modules/thread (Files): Add lib/glthread/thread.c.
30042         (Depends-on): Add lock.
30043         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
30044
30045 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30046
30047         New module 'yield'.
30048         * modules/yield: New file.
30049         * lib/glthread/yield.h: New file.
30050         * m4/yield.m4: New file.
30051         * MODULES.html.sh (Multithreading): Add yield.
30052
30053 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30054
30055         New module 'thread'.
30056         * modules/thread: New file.
30057         * lib/glthread/thread.h: New file.
30058         * m4/thread.m4: New file.
30059         * MODULES.html.sh (Multithreading): Add thread.
30060
30061 2008-08-17  Bruno Haible  <bruno@clisp.org>
30062
30063         * lib/glthread/lock.h: Include <stdlib.h> always.
30064         * lib/glthread/tls.h: Likewise.
30065         * lib/glthread/cond.h: Likewise.
30066
30067 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30068
30069         New module 'cond'.
30070         * modules/cond: New file.
30071         * lib/glthread/cond.h: New file.
30072         * lib/glthread/cond.c: New file.
30073         * m4/cond.m4: New file.
30074         * MODULES.html.sh (Multithreading): Add cond.
30075
30076 2008-08-16  Eric Blake  <ebb9@byu.net>
30077
30078         c-stack: fix regression on Irix 5.3 from 2008-06-21
30079         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
30080         sa_sigaction...
30081         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
30082         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
30083         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
30084         * modules/signal (Makefile.am): Use the value.
30085         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
30086         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
30087         * doc/posix-headers/signal.texi (signal.h): Document this
30088         portability issue.
30089         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
30090         Reported by Tom G. Christensen.
30091
30092 2008-08-17  Bruno Haible  <bruno@clisp.org>
30093
30094         New module 'threadlib'.
30095         * modules/threadlib: New file.
30096         * lib/glthread/threadlib.c: New file, extracted from
30097         lib/glthread/lock.c.
30098         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
30099         functions.
30100         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
30101         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
30102         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
30103         macros.
30104         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
30105         (gl_DISABLE_THREADS): Remove macro.
30106         * modules/lock (Files): Remove build-aux/config.rpath.
30107         (Depends-on): Remove havelib. Add threadlib.
30108         (configure.ac-early): Remove section.
30109         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
30110         * modules/tls (Depends-on): Remove lock. Add threadlib.
30111         (Link): New section, copied from threadlib.
30112         * MODULES.html.sh (Multithreading): Add threadlib.
30113
30114 2008-08-14  Bruno Haible  <bruno@clisp.org>
30115
30116         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
30117         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
30118         glthread_rwlock_unlock, glthread_rwlock_destroy,
30119         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
30120         glthread_recursive_lock_destroy): Define as macros always.
30121         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
30122         glthread_lock_lock.
30123         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
30124         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
30125         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
30126         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
30127         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
30128         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
30129         (glthread_recursive_lock_lock_func): Renamed from
30130         glthread_recursive_lock_lock.
30131         (glthread_recursive_lock_unlock_func): Renamed from
30132         glthread_recursive_lock_unlock.
30133         (glthread_recursive_lock_destroy_func): Renamed from
30134         glthread_recursive_lock_destroy.
30135
30136 2008-08-14  Bruno Haible  <bruno@clisp.org>
30137
30138         * lib/glthread/lock.h: Renamed from lib/lock.h.
30139         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
30140         * lib/glthread/tls.h: Renamed from lib/tls.h.
30141         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
30142         * lib/fstrcmp.c: Update includes.
30143         * lib/strsignal.c: Update includes.
30144         * modules/lock (Files, Makefile.am): Update.
30145         (Include): Change to "glthread/lock.h".
30146         * modules/tls (Files, Makefile.am): Update.
30147         (Include): Change to "glthread/tls.h".
30148         * tests/test-lock.c: Update includes.
30149         * tests/test-tls.c: Update includes.
30150         * NEWS: Mention the renamed header files.
30151
30152 2008-08-11  Jim Meyering  <meyering@redhat.com>
30153
30154         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
30155
30156 2008-08-11  Eric Blake  <ebb9@byu.net>
30157
30158         test-c-stack: avoid C99-ism
30159         * tests/test-c-stack.c (main): Fix whitespace, move declaration
30160         before statement.
30161         Reported by Alain Guibert.
30162
30163 2008-08-10  Jim Meyering  <meyering@redhat.com>
30164
30165         ensure that return value of uinttostr et al are not ignored
30166         * lib/inttostr.h (__GNUC_PREREQ): Define.
30167         (__attribute_warn_unused_result__): Define.
30168         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
30169
30170 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
30171
30172         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
30173         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
30174
30175 2008-08-07  Jim Meyering  <meyering@redhat.com>
30176
30177         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
30178
30179         * modules/mkstemp (License): Relicense under LGPLv2+.
30180         * modules/tempname (License): Likewise.
30181
30182 2008-08-06  Bruno Haible  <bruno@clisp.org>
30183
30184         * lib/poll.c (poll): Further micro-optimization.
30185
30186 2008-08-06  Jim Meyering  <meyering@redhat.com>
30187
30188         inet_pton.c: use locale-independent tolower
30189         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
30190         (inet_pton6): Use c_tolower rather than tolower.
30191         * modules/inet_pton (Depends-on): Add c-ctype.
30192
30193 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
30194
30195         * lib/poll.c (poll): Avoid division when timeout is 0, cache
30196         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
30197
30198 2008-08-06  Jim Meyering  <meyering@redhat.com>
30199
30200         * modules/inet_pton (License): Relicense under LGPLv2+.
30201
30202 2008-08-03  Bruno Haible  <bruno@clisp.org>
30203
30204         Additional non-aborting API for lock and tls.
30205         * lib/lock.h: Include <errno.h>.
30206         (glthread_lock_init): New macro/function.
30207         (gl_lock_init): Define as wrapper around glthread_lock_init.
30208         (glthread_lock_lock): New macro/function.
30209         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
30210         (glthread_lock_unlock): New macro/function.
30211         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
30212         (glthread_lock_destroy): New macro/function.
30213         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
30214         (glthread_rwlock_init): New macro/function.
30215         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
30216         (glthread_rwlock_rdlock): New macro/function.
30217         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
30218         (glthread_rwlock_wrlock): New macro/function.
30219         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
30220         (glthread_rwlock_unlock): New macro/function.
30221         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
30222         (glthread_rwlock_destroy): New macro/function.
30223         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
30224         (glthread_recursive_lock_init): New macro/function.
30225         (gl_recursive_lock_init): Define as wrapper around
30226         glthread_recursive_lock_init.
30227         (glthread_recursive_lock_lock): New macro/function.
30228         (gl_recursive_lock_lock): Define as wrapper around
30229         glthread_recursive_lock_lock.
30230         (glthread_recursive_lock_unlock): New macro/function.
30231         (gl_recursive_lock_unlock): Define as wrapper around
30232         glthread_recursive_lock_unlock.
30233         (glthread_recursive_lock_destroy): New macro/function.
30234         (gl_recursive_lock_destroy): Define as wrapper around
30235         glthread_recursive_lock_destroy.
30236         (glthread_once): New macro/function.
30237         (gl_once): Define as wrapper around glthread_once.
30238         Update function declarations.
30239         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
30240         glthread_rwlock_init. Return error code.
30241         (glthread_rwlock_rdlock_multithreaded): Renamed from
30242         glthread_rwlock_rdlock. Return error code.
30243         (glthread_rwlock_wrlock_multithreaded): Renamed from
30244         glthread_rwlock_wrlock. Return error code.
30245         (glthread_rwlock_unlock_multithreaded): Renamed from
30246         glthread_rwlock_unlock. Return error code.
30247         (glthread_rwlock_destroy_multithreaded): Renamed from
30248         glthread_rwlock_destroy. Return error code.
30249         (glthread_recursive_lock_init_multithreaded): Renamed from
30250         glthread_recursive_lock_init. Return error code.
30251         (glthread_recursive_lock_lock_multithreaded): Renamed from
30252         glthread_recursive_lock_lock. Return error code.
30253         (glthread_recursive_lock_unlock_multithreaded): Renamed from
30254         glthread_recursive_lock_unlock. Return error code.
30255         (glthread_recursive_lock_destroy_multithreaded): Renamed from
30256         glthread_recursive_lock_destroy. Return error code.
30257         (glthread_once_call): Make static.
30258         (glthread_once_multithreaded): Renamed from glthread_once.
30259         * lib/tls.h: Include <errno.h>.
30260         (glthread_tls_key_init): New macro/function.
30261         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
30262         (glthread_tls_set): New macro/function.
30263         (gl_tls_set): Define as wrapper around glthread_tls_set.
30264         (glthread_tls_key_destroy): New macro/function.
30265         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
30266         Update function declarations.
30267         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
30268         glthread_tls_get.
30269         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
30270
30271 2008-08-04  Eric Blake  <ebb9@byu.net>
30272
30273         gnumakefile: use space, not TAB, outside of targets
30274         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
30275
30276 2008-08-02  Jim Meyering  <meyering@redhat.com>
30277
30278         getdate.y: avoid locale-dependent date parsing failure
30279         In Turkish locales, getdate would fail to recognize keywords
30280         containing a lowercase "i".  The solution is not to rely on
30281         locale-sensitive case-conversion.
30282         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
30283         (lookup_word): Use c_toupper in place of toupper.
30284         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
30285         Reported by Vefa Bicakci <bicave@superonline.com> in
30286         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
30287         * modules/getdate (Depends-on): Add c-ctype.
30288
30289 2008-08-02  Bruno Haible  <bruno@clisp.org>
30290
30291         * gnulib-tool (func_import): When updating or creating a .gitignore
30292         file, prepend each added line with a slash, and ignore leading slashes
30293         from the existing lines.
30294         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
30295
30296 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30297
30298         Portability fix for GNU make 3.79.1.
30299         * top/GNUmakefile: Avoid 'else COND', which older GNU make
30300         versions do not understand.
30301
30302 2008-08-01  Bruno Haible  <bruno@clisp.org>
30303
30304         Work around bug of HP-UX 10.20 cc with -0.0 literal.
30305         * tests/test-isnanf.h (zero): New variable.
30306         (main): Avoid literal -0.0f.
30307         * tests/test-isnand.h (zero): New variable.
30308         (main): Avoid literal -0.0.
30309         * tests/test-isnanl.h (zero): New variable.
30310         (main): Avoid literal -0.0L.
30311         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
30312         (test_float, test_double, test_long_double): Avoid literals -0.0f,
30313         -0.0, -0.0L.
30314         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
30315         (test_signbitd): Avoid literal -0.0.
30316         (test_signbitl): Avoid literal -0.0L.
30317         * tests/test-ceilf1.c (zero): New variable.
30318         (main): Avoid literal -0.0f.
30319         * tests/test-ceill.c (zero): New variable.
30320         (main): Avoid literal -0.0L.
30321         * tests/test-floorf1.c (zero): New variable.
30322         (main): Avoid literal -0.0f.
30323         * tests/test-floorl.c (zero): New variable.
30324         (main): Avoid literal -0.0L.
30325         * tests/test-roundf1.c (zero): New variable.
30326         (main): Avoid literal -0.0f.
30327         * tests/test-round1.c (zero): New variable.
30328         (main): Avoid literal -0.0.
30329         * tests/test-roundl.c (zero): New variable.
30330         (main): Avoid literal -0.0L.
30331         * tests/test-truncf1.c (zero): New variable.
30332         (main): Avoid literal -0.0f.
30333         * tests/test-trunc1.c (zero): New variable.
30334         (main): Avoid literal -0.0.
30335         * tests/test-truncl.c (zero): New variable.
30336         (main): Avoid literal -0.0L.
30337         * tests/test-frexp.c (zero): New variable.
30338         (main): Avoid literal -0.0.
30339         * tests/test-frexpl.c (zero): New variable.
30340         (main): Avoid literal -0.0L.
30341         * tests/test-ldexpl.c (zero): New variable.
30342         (main): Avoid literal -0.0L.
30343         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
30344         (zerod, zerol): New variables.
30345         (test_function): Avoid literals -0.0, -0.0L.
30346         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
30347         (zerod, zerol): New variables.
30348         (test_function): Avoid literals -0.0, -0.0L.
30349         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
30350         (zerod, zerol): New variables.
30351         (test_function): Avoid literals -0.0, -0.0L.
30352         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
30353         (zerod, zerol): New variables.
30354         (test_function): Avoid literals -0.0, -0.0L.
30355         * tests/test-strtod.c (zero): New variable.
30356         (main): Avoid literal -0.0.
30357         Reported by Jonathan C. Patschke <jp@centtech.com>.
30358
30359 2008-07-31  Jim Meyering  <meyering@redhat.com>
30360
30361         sha256.h: correct definition of SHA224_DIGEST_SIZE
30362         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
30363         Reported by Paulie Pena IV <paulie4@gmail.com>.
30364         Define as 224 / 8, rather than as a literal.
30365         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
30366         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
30367         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
30368
30369 2008-07-31  Bruno Haible  <bruno@clisp.org>
30370
30371         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
30372         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
30373         Reported by Jonathan Patschke <jp@centtech.com>.
30374
30375 2008-07-31  Bruno Haible  <bruno@clisp.org>
30376
30377         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
30378         Reported by Paolo Bonzini <bonzini@gnu.org>.
30379
30380 2008-07-30  Eric Blake  <ebb9@byu.net>
30381
30382         test-strtod: allow compilation without -lm
30383         * tests/test-strtod.c (main): Avoid link dependence on fabs.
30384         Reported by Dennis Clarke <blastwave@gmail.com>.
30385
30386 2008-07-28  Jim Meyering  <meyering@redhat.com>
30387
30388         bootstrap: work also when there are no .po files in po/
30389         * build-aux/bootstrap (update_po_files): Complete the change
30390         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
30391
30392 2008-07-27  Jim Meyering  <meyering@redhat.com>
30393
30394         * users.txt: Add zile.
30395
30396 2008-07-26  Ben Pfaff  <blp@gnu.org>
30397
30398         Add missing dependencies on new m4/exponent[fdl].m4 files.
30399         * modules/isnanf-nolibm: Add m4/exponentf.m4.
30400         * modules/isnand-nolibm: Add m4/exponentd.m4.
30401         * modules/isnanl-nolibm: Add m4/exponentl.m4.
30402         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
30403         m4/isnan[fdl].m4, because the macros actually used moved.
30404         Reported by Jim Meyering.
30405
30406 2008-07-14  Ben Pfaff  <blp@gnu.org>
30407
30408         Add isinf module.
30409         * lib/isinf.c: New file.
30410         * lib/math.in.h: Define isinf macro if we have decided to replace
30411         it.
30412         * m4/isinf.m4: New file.
30413         * m4/math_h.m4: Initialize and substitute variables for isinf
30414         module.
30415         * modules/isinf: New file.
30416         * modules/isinf-tests: New file.
30417         * modules/math: Add substitutions for new module.
30418         * tests/test-isinf.c: New file.
30419         * doc/posix-functions/isinf.texi: Mention new module.
30420         * MODULES.html.sh: Mention new module.
30421
30422 2008-07-14  Ben Pfaff  <blp@gnu.org>
30423
30424         Factor out some macros for use by additional modules.
30425         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
30426         exponentf.m4.
30427         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
30428         exponentd.m4.
30429         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
30430         file exponentl.m4.
30431         * m4/exponentf.m4: New file.
30432         * m4/exponentd.m4: New file.
30433         * m4/exponentl.m4: New file.
30434         * modules/isnanf: Use new file m4/exponentf.m4.
30435         * modules/isnand: Use new file m4/exponentd.m4.
30436         * modules/isnanl: Use new file m4/exponentl.m4.
30437
30438 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
30439
30440         mktime.c: normalize tp->tm_isdst value to -1/0/1.
30441         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
30442         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
30443         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
30444
30445         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
30446         readlink on platforms without PATH_MAX.
30447
30448 2008-07-21  Eric Blake  <ebb9@byu.net>
30449
30450         Warn, not fail, on stale version.
30451         * top/GNUmakefile (_curr-ver): Tone down previous patch.
30452
30453         Don't allow installation with stale devel version number.
30454         * top/GNUmakefile (_is-install-target): New macro.
30455         (_curr-ver): Forbid installation with stale version number.
30456
30457 2008-07-20  Bruno Haible  <bruno@clisp.org>
30458
30459         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
30460         TESTS_ENVIRONMENT.
30461         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
30462
30463 2008-07-20  Bruno Haible  <bruno@clisp.org>
30464
30465         * lib/c-stack.h (c_stack_action): Add documentation.
30466         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
30467
30468 2008-07-20  Bruno Haible  <bruno@clisp.org>
30469
30470         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
30471         * modules/readlink (License): Likewise.
30472
30473 2008-07-17  Eric Blake  <ebb9@byu.net>
30474
30475         * modules/c-stack (Link): Fix typo.
30476
30477         Make c-stack use libsigsegv, when available.
30478         * modules/c-stack (Depends-on): Add libsigsegv.
30479         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
30480         needed.
30481         * lib/c-stack.c (SIGSTKSZ): Define fallback.
30482         (segv_handler, overflow_handler, c_stack_action)
30483         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
30484         implementation when libsigsegv is available, but only when using
30485         the library is necessary.
30486         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
30487         comment, explaining why XSI check fails on Linux.
30488         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
30489         * tests/test-c-stack2.sh: Tweak skip message.
30490         * NEWS: Document new link-time requirements.
30491
30492 2008-07-16  Eric Blake  <ebb9@byu.net>
30493
30494         c-stack: Expose false positives when not using libsigsegv.
30495         * modules/c-stack-tests (Files): Expand test.
30496         * tests/test-c-stack.c (main): Add means to conditionally trigger
30497         non-overflow SIGSEGV.
30498         * tests/test-c-stack2.sh: New file.
30499
30500 2008-07-14  Bruno Haible  <bruno@clisp.org>
30501
30502         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
30503         Reported by Eric Blake.
30504
30505 2008-07-14  Sam Steingold  <sds@gnu.org>
30506             Bruno Haible  <bruno@clisp.org>
30507
30508         New module libsigsegv.
30509         * modules/libsigsegv: New file.
30510         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
30511         modifications.
30512         * MODULES.html.sh (Signal handling): New section.
30513
30514 2008-07-14  Bruno Haible  <bruno@clisp.org>
30515
30516         * modules/unictype/ctype-* (Description): Add the word "function".
30517         Improves the resulting doc in MODULES.html.
30518
30519 2008-07-12  Ben Pfaff  <blp@gnu.org>
30520
30521         Add longlong module.
30522         * modules/longlong: New file.
30523
30524 2008-07-12  Bruno Haible  <bruno@clisp.org>
30525
30526         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
30527         to empty.
30528
30529 2008-07-10  Ben Pfaff  <blp@gnu.org>
30530
30531         Add isnan module.
30532         * doc/posix-functions/isnan.texi: Mention new module.
30533         * lib/math.in.h: Define isnan macro if we have decided to replace
30534         it.
30535         * m4/isnan.m4: New file.
30536         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
30537         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
30538         also.
30539         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
30540         redundancy.
30541         * m4/math_h.m4: Initialize and substitute variables for isnan
30542         module.
30543         * modules/isnan: New file.
30544         * modules/isnan-tests: New file.
30545         * modules/math: Add substitutions for new module.
30546         * tests/test-isnan.c: New file.
30547         * MODULES.html.sh: Mention new module.
30548
30549 2008-07-10  Ben Pfaff  <blp@gnu.org>
30550
30551         Add isnanf module.
30552         * lib/isnanf.m4: New file.
30553         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
30554         (gl_HAVE_ISNANF_IN_LIBM): New macro.
30555         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
30556         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
30557         * modules/isnanf: New file.
30558         * modules/isnanf-tests: New file.
30559         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
30560         files.
30561         * tests/test-isnanf-nolibm.c: factored most of its contents into
30562         new file tests/test-isnanf.h.
30563         * tests/test-isnanf.h: New file.
30564         * tests/test-isnanf.c: New file.
30565         * MODULES.html.sh: Mention new module.
30566         * doc/glibc-functions/isnanf.texi: Mention new module.
30567
30568 2008-07-10  Ben Pfaff  <blp@gnu.org>
30569
30570         Add isnand module.
30571         * lib/isnand.h: New file.
30572         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
30573         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
30574         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
30575         functionality also.
30576         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
30577         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
30578         (gl_HAVE_ISNAND_IN_LIBM): New macro.
30579         * modules/isnand: New file.
30580         * modules/isnand-tests: New file.
30581         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
30582         files.
30583         * tests/test-isnand-nolibm.c: factored most of its contents into
30584         new file tests/test-isnand.h.
30585         * tests/test-isnand.h: New file.
30586         * tests/test-isnand.c: New file.
30587         * MODULES.html.sh: Mention new module.
30588
30589 2008-07-10  Ben Pfaff  <blp@gnu.org>
30590
30591         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
30592         * lib/isnand.h: Rename lib/isnand-nolibm.h.
30593         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
30594         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
30595         * modules/isnanf-nolibm: Update references to renamed files.
30596         * modules/isnand-nolibm: Likewise.
30597         * modules/isnanf-nolibm-tests: Likewise.
30598         * modules/isnand-nolibm-tests: Likewise.
30599         * lib/frexp.c: Likewise.
30600         * lib/isfinite.c: Likewise.
30601         * lib/signbitd.c: Likewise.
30602         * lib/signbitf.c: Likewise.
30603         * lib/vasnprintf.c: Likewise.
30604         * tests/test-ceilf1.c: Likewise.
30605         * tests/test-ceilf2.c: Likewise.
30606         * tests/test-floorf1.c: Likewise.
30607         * tests/test-floorf2.c: Likewise.
30608         * tests/test-frexp.c: Likewise.
30609         * tests/test-round1.c: Likewise.
30610         * tests/test-round2.c: Likewise.
30611         * tests/test-roundf1.c: Likewise.
30612         * tests/test-strtod.c: Likewise.
30613         * tests/test-trunc1.c: Likewise.
30614         * tests/test-trunc2.c: Likewise.
30615         * tests/test-truncf1.c: Likewise.
30616         * tests/test-truncf2.c: Likewise.
30617         * NEWS: Mention the renamed header files.
30618
30619 2008-07-11  Jim Meyering  <meyering@redhat.com>
30620
30621         vc-list-files: make the last-resort awk code more portable
30622         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
30623         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
30624         does not support it.
30625
30626 2008-07-10  Eric Blake  <ebb9@byu.net>
30627
30628         Work with tar's bootstrap.
30629         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
30630         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
30631         an m4 comment.
30632
30633 2008-07-09  Jim Meyering  <meyering@redhat.com>
30634
30635         posix-shell.m4: fix typo that made this test malfunction
30636         * m4/posix-shell.m4: Remove capitalization in variable name.
30637
30638 2008-07-08  Bruno Haible  <bruno@clisp.org>
30639
30640         * m4/onceonly.m4: Update comments.
30641         Reported by Ben Pfaff <blp@cs.stanford.edu>.
30642
30643 2008-07-04  Jim Meyering  <meyering@redhat.com>
30644
30645         * users.txt: Add vc-dwim.
30646         (bison, coreutils): Use the gitweb URL.
30647
30648 2008-07-03  Jim Meyering  <meyering@redhat.com>
30649
30650         * users.txt: Add libffcall.  From Sam Steingold.
30651
30652 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
30653
30654         getdate.y: do not ignore TZ with relative day, month or year offset
30655         * lib/getdate.y (get_date): Move the tz-handling block to follow the
30656         relative-date-handling, since otherwise, the latter would clobber the
30657         sole output (an updated Start value) of the tz-handling block.
30658         * tests/test-getdate.c: Tests for the fix
30659
30660 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30661
30662         Recognize 'foo_LIBRARIES += libgnu.a'.
30663         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
30664         makefile snippet has already specified an installation location,
30665         also using '+='.
30666
30667 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
30668
30669         getdate.y: factor out common actions
30670         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
30671         Use them in place of open-coded actions.
30672
30673 2008-07-01  Simon Josefsson  <simon@josefsson.org>
30674
30675         Add self-test for getdate module.
30676         * modules/getdate-tests: New file.
30677         * tests/test-getdate.c: New file.
30678
30679 2008-06-29  Bruno Haible  <bruno@clisp.org>
30680
30681         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
30682         .gitignore.
30683         Reported by Sylvain Beucler <beuc@beuc.net>.
30684
30685 2008-06-29  Bruno Haible  <bruno@clisp.org>
30686
30687         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
30688         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
30689
30690 2008-06-29  Bruno Haible  <bruno@clisp.org>
30691
30692         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
30693         EXTRA_DIST.
30694         Reported by Sylvain Beucler <beuc@beuc.net>.
30695
30696 2008-06-26  Jim Meyering  <meyering@redhat.com>
30697
30698         make several modules depend on the "open" module
30699         This provides slightly increased consistency when opening-for-write
30700         the name of a non-directory spelled with a trailing slash.
30701         * modules/chdir-safer: Likewise.
30702         * modules/chown: Likewise.
30703         * modules/clean-temp: Likewise.
30704         * modules/copy-file: Likewise.
30705         * modules/fchdir: Likewise.
30706         * modules/fcntl-safer: Likewise.
30707         * modules/pipe: Likewise.
30708         * modules/utime: Likewise.
30709         Prompted by Eric Blake and Bruno Haible.
30710
30711 2008-06-24  Andreas Schwab  <schwab@suse.de>
30712
30713         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
30714         literals can be used as initializers for global variables.
30715
30716 2008-06-23  Eric Blake  <ebb9@byu.net>
30717
30718         Make gnulib-cache.m4 easier to diff.
30719         * gnulib-tool (func_import): Allow newlines when reading cached
30720         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
30721
30722 2008-06-23  Bruno Haible  <bruno@clisp.org>
30723
30724         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
30725         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
30726         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
30727         m4/signalblocking.m4.
30728         (gl_PREREQ_SIGACTION): Don't invoke it.
30729         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
30730         gl_PREREQ_SIG_HANDLER_H.
30731         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
30732         Don't check for sigaction here.
30733
30734 2008-06-23  Bruno Haible  <bruno@clisp.org>
30735
30736         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
30737         (install_handlers): Don't set the SA_RESETHAND flag.
30738
30739 2008-06-23  Bruno Haible  <bruno@clisp.org>
30740
30741         * m4/sigaction.m4: Comment fixes.
30742         * lib/signal.in.h: Likewise.
30743
30744 2008-06-23  Eric Blake  <ebb9@byu.net>
30745
30746         Fix typo.
30747         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
30748
30749         Avoid SA_ namespace.
30750         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
30751         Reported by Ralf Wildenhues.
30752
30753         Avoid test failure due to SA_RESTORER.
30754         * tests/test-sigaction.c (SA_MASK): New macro.
30755         (main): Avoid failing due to extension flags being set.
30756         Reported by Jim Meyering.
30757
30758         Revert use of sig-handler.h in sigprocmask.c.
30759         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
30760         it requires the existence of struct sigaction.
30761         * lib/sigprocmask.c (handler_t): Restore typedef.
30762         (rpl_signal, old_handlers): Use local type.
30763
30764 2008-06-22  Bruno Haible  <bruno@clisp.org>
30765
30766         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
30767         conditionally.
30768         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
30769
30770 2008-06-22  Bruno Haible  <bruno@clisp.org>
30771
30772         * doc/posix-functions/siginterrupt.texi: Move note.
30773
30774         * lib/signal.in.h (SA_RESTART): New macro.
30775         * lib/sigaction.c: Update comment.
30776
30777         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
30778
30779         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
30780         (gl_PREREQ_SIGPROCMASK): Invoke it.
30781         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
30782
30783         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
30784
30785         * lib/sigprocmask.c: Update a comment.
30786
30787 2008-06-21  Eric Blake  <ebb9@byu.net>
30788
30789         Use sigaction module rather than signal().
30790         * modules/c-stack (Depends-on): Add sigaction.
30791         * modules/fatal-signal (Depends-on): Likewise.
30792         * modules/nanosleep (Depends-on): Likewise.
30793         * modules/sigprocmask (Files): Add sig-handler.h.
30794         * modules/sigaction (Files): Likewise.
30795         * lib/sig-handler.h (get_handler): New file, suggested by Paul
30796         Eggert.
30797         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
30798         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
30799         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
30800         (init_fatal_signals): Likewise.
30801         * lib/nanosleep.c (rpl_nanosleep): Likewise.
30802         (siginterrupt): Delete fallback.
30803         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
30804         instead.
30805         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
30806         siginterrupt.
30807
30808         New module sigaction, for mingw.
30809         * modules/sigaction: New module...
30810         * modules/sigaction-tests: ...and its test.
30811         * m4/sigaction.m4: New file.
30812         * lib/sigaction.c: Likewise.
30813         * tests/test-sigaction.c: Likewise.
30814         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
30815         * modules/signal (Makefile.am): Likewise.
30816         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
30817         needed.
30818         * doc/posix-headers/signal.texi (signal.h): Mention provided
30819         types.
30820         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
30821         that sigaction is preferable.
30822         * doc/posix-functions/sigaction.texi (sigaction): Mention new
30823         module.
30824         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
30825         sigaction.
30826
30827         Improve robustness of sigprocmask by overriding signal.
30828         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
30829         is in use.
30830         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
30831         (SIGKILL, SIGSTOP): Provide fallbacks.
30832         (rpl_signal): Implement.
30833         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
30834         signal can be called inside handlers.
30835
30836         Fix nanosleep module on mingw.
30837         * modules/nanosleep (Depends-on): Add sys_select.
30838         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
30839
30840         Fix licensing of sigprocmask.
30841         * modules/raise (License): Relicense as LGPL.
30842
30843 2008-06-21  Bruno Haible  <bruno@clisp.org>
30844
30845         * lib/propername.c (proper_name_utf8): Don't use the transliterated
30846         result if it contains question marks.
30847         Reported by Michael Geng <linux@michaelgeng.de>.
30848
30849 2008-06-19  Bruno Haible  <bruno@clisp.org>
30850
30851         Fix CVS-ism.
30852         * doc/gnulib.texi: Include updated-stamp.texi.
30853         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
30854         (updated-stamp.texi): New rule.
30855         (gnulib.info): Depend on it.
30856         * doc/.gitignore: Add updated-stamp.texi.
30857         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
30858
30859 2008-06-19  Bruno Haible  <bruno@clisp.org>
30860
30861         * doc/Makefile (gnulib.info): Update and simplify dependencies.
30862         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
30863
30864 2008-06-19  Eric Blake  <ebb9@byu.net>
30865
30866         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
30867         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
30868         Reported by Stepan Kasal.
30869
30870 2008-06-18  Bruno Haible  <bruno@clisp.org>
30871
30872         * lib/fatal-signal.c (init_fatal_signals): Add comment.
30873         Reported by Eric Blake.
30874
30875 2008-06-18  Eric Blake  <ebb9@byu.net>
30876
30877         Work around cygwin 1.5.25 strsignal bug.
30878         * tests/test-strsignal.c: Allow for const char *.
30879         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
30880
30881 2008-06-18  Simon Josefsson  <simon@josefsson.org>
30882
30883         * users.txt: Update URL to article and add author/date
30884         information.
30885
30886 2008-06-17  Bruno Haible  <bruno@clisp.org>
30887
30888         New macro gl_DISABLE_THREADS.
30889         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
30890         if the user did not pass --enable-threads or --disable-threads option.
30891         (gl_DISABLE_THREADS): New macro.
30892         Reported by Eric Blake <ebb9@byu.net>.
30893
30894 2008-06-17  Bruno Haible  <bruno@clisp.org>
30895
30896         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
30897         when the macro ignores it.
30898         Based on a patch by Eric Blake <ebb9@byu.net>.
30899
30900 2008-06-17  Bruno Haible  <bruno@clisp.org>
30901
30902         * modules/tls (License): Change to LGPLv2+.
30903         Reported by Eric Blake.
30904
30905 2008-06-17  Eric Blake  <ebb9@byu.net>
30906
30907         Simplify c-stack prerequisites.
30908         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
30909         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
30910         no longer requires <ucontext.h> to exist.  Optimize setrlimit
30911         check.
30912         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
30913         <sys/resource.h>.
30914
30915         Move c-stack test into testsuite.
30916         * modules/c-stack-tests: New file.
30917         * lib/c-stack.c [DEBUG]: Move test program...
30918         * tests/test-c-stack.c: ...into this new file.  Skip rather than
30919         fail test if sigaltstack is lacking.
30920         * tests/test-c-stack.sh: New driver file.
30921
30922 2008-06-16  Eric Blake  <ebb9@byu.net>
30923
30924         Use raise module consistently.
30925         * modules/fatal-signal (Depends-on): Add raise.
30926         * modules/sigprocmask (Depends-on): Likewise.
30927         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
30928         * lib/sigprocmask.c (sigprocmask): Likewise.
30929         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
30930         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
30931
30932         Fix compliance bug in sigpending.
30933         * lib/sigprocmask.c (sigpending): Return pending array via
30934         parameter, not return value.
30935
30936 2008-06-14  Eric Blake  <ebb9@byu.net>
30937
30938         Improve obstack-printf test code.
30939         * tests/test-obstack-printf.c (test_function): Fix comment, and
30940         simplify usage of obstack_* in macros.  Add a test for coverage.
30941         Reported by Bruno Haible.
30942
30943 2008-06-14  Bruno Haible  <bruno@clisp.org>
30944
30945         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
30946         array size as a constant, not as a const variable.
30947         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
30948         AC_USE_SYSTEM_EXTENSIONS.
30949         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
30950         Test whether the obstack_printf function actually exists.
30951         * modules/obstack-printf (Depends-on): Add extensions.
30952         (Include): Remove obstack.h.
30953         * modules/obstack-printf-posix (Depends-on): Add extensions.
30954         (Include): Remove obstack.h.
30955
30956 2008-06-13  Eric Blake  <ebb9@byu.net>
30957
30958         Add obstack-printf and obstack-printf-posix modules.
30959         * modules/obstack-printf: New file.
30960         * modules/obstack-printf-posix: Likewise.
30961         * MODULES.html.sh (Misc): Mention them.
30962         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
30963         Likewise.
30964         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
30965         Likewise.
30966         * modules/stdio (Makefile.am): Accomodate new modules.
30967         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
30968         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
30969         Declare.
30970         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
30971         functions.
30972         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
30973         (gl_REPLACE_OBSTACK_PRINTF): New macros
30974         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
30975         * tests/test-obstack-printf.c: New file.
30976         * modules/obstack-printf-tests: Likewise.
30977         * modules/obstack-printf-posix-tests: Likewise.
30978
30979 2008-06-11  Bruno Haible  <bruno@clisp.org>
30980
30981         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
30982         * lib/open.c: Include errno.h.
30983         (open): Fail when attempting to write to a file that has a trailing
30984         slash.
30985         * tests/test-open.c (main): Test against trailing slash bug.
30986         * doc/posix-functions/open.texi: Mention the trailing slash bug.
30987
30988 2008-06-10  Bruno Haible  <bruno@clisp.org>
30989
30990         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
30991         for $? to work inside the trap command, with various /bin/sh-s.
30992         * tests/test-vc-list-files-cvs.sh: Likewise.
30993
30994 2008-06-10  Bruno Haible  <bruno@clisp.org>
30995
30996         * lib/acl-internal.h: Don't include gettext.h here.
30997         * lib/set-mode-acl.c: Include gettext.h here.
30998         * lib/copy-acl.c: Likewise.
30999
31000 2008-06-10  Bruno Haible  <bruno@clisp.org>
31001
31002         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
31003         * lib/wait-process.c (wait_subprocess): Likewise.
31004         * lib/execute.h (execute): Add termsigp argument.
31005         * lib/execute.c (execute): Likewise.
31006         * lib/csharpcomp.c (compile_csharp_using_pnet,
31007         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
31008         * lib/csharpexec.c (execute_csharp_using_pnet,
31009         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
31010         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
31011         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
31012         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
31013         is_jikes_present): Update.
31014         * lib/javaexec.c (execute_java_class): Update.
31015         * lib/javaversion.c (execute_and_read_line): Update.
31016         * NEWS: Document the changes.
31017         Reported by Eric Blake.
31018
31019 2008-06-10  Eric Blake  <ebb9@byu.net>
31020
31021         Add missing include.
31022         * tests/test-strstr.c (includes): Add <signal.h>.
31023         * tests/test-strcasestr.c (includes): Likewise.
31024         * tests/test-memmem.c (includes): Likewise.
31025
31026 2008-06-10  Bruno Haible  <bruno@clisp.org>
31027
31028         * lib/wait-process.c (wait_subprocess): Add an assertion.
31029
31030 2008-06-10  Bruno Haible  <bruno@clisp.org>
31031
31032         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
31033
31034 2008-06-10  Bruno Haible  <bruno@clisp.org>
31035
31036         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
31037         using alarm().
31038         * tests/test-strcasestr.c (main): Likewise.
31039         * tests/test-strstr.c (main): Likewise.
31040
31041 2008-06-09  Bruno Haible  <bruno@clisp.org>
31042
31043         Work around the Solaris 10 ACE ACLs ABI change.
31044         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
31045         declare if ACL_NO_TRIVIAL is present.
31046         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
31047         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
31048         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
31049         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
31050         define if ACL_NO_TRIVIAL is present.
31051         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
31052         and use the current ABI.
31053         (file_has_acl): Use same #if condition as elsewhere.
31054         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
31055         in use, and use the current ABI.
31056         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
31057         Reported by Jim Meyering.
31058
31059 2008-06-09  Eric Blake  <ebb9@byu.net>
31060
31061         Work around environments that (stupidly) ignore SIGALRM.
31062         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
31063         before using alarm().
31064         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
31065         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
31066         Reported by Ian Beckwith <ianb@erislabs.net>.
31067
31068         Produce autobuild blurb earlier in log.
31069         * modules/autobuild (configure.ac-early): Move AB_INIT here.
31070
31071 2008-06-09  Jim Meyering  <meyering@redhat.com>
31072         and Ondřej Vašík  <ovasik@redhat.com>
31073
31074         utimens.c: correct kernel bug work-around
31075         Ondřej Vašík found that the invalid return value of 280 indicates
31076         failure, not success, and the kernel bug we're trying to work
31077         around affects not just the utimensat call, but also the fallback
31078         futimens call.
31079         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
31080         not success.
31081         [HAVE_FUTIMENS]: Use the same work-around, here.
31082
31083 2008-06-09  Jim Meyering  <meyering@redhat.com>
31084
31085         add more guards around definition of ACE_-related code
31086         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
31087         ALLOW and ACE_OWNER are also defined.
31088
31089 2008-06-08  Bruno Haible  <bruno@clisp.org>
31090
31091         * lib/acl-internal.h: Add me as co-author.
31092         * lib/file-has-acl.c: Likewise.
31093         * lib/set-mode-acl.c: Likewise.
31094         * lib/copy-acl.c: Likewise.
31095
31096 2008-06-08  Bruno Haible  <bruno@clisp.org>
31097
31098         Add support for AIX ACLs.
31099         * lib/acl-internal.h (acl_nontrivial): New declaration.
31100         * lib/file-has-acl.c (acl_nontrivial): New function.
31101         (file_has_acl): Add implementation using AIX 4 ACL API.
31102         * lib/set-mode-acl.c (qset_acl): Likewise.
31103         * lib/copy-acl.c (qcopy_acl): Likewise.
31104
31105 2008-06-08  Bruno Haible  <bruno@clisp.org>
31106
31107         Add support for HP-UX ACLs.
31108         * lib/acl-internal.h (acl_nontrivial): New declaration.
31109         * lib/file-has-acl.c (acl_nontrivial): New function.
31110         (file_has_acl): Add implementation using HP-UX 11 ACL API.
31111         * lib/set-mode-acl.c (qset_acl): Likewise.
31112         * lib/copy-acl.c (qcopy_acl): Likewise.
31113
31114 2008-06-08  Bruno Haible  <bruno@clisp.org>
31115
31116         Add support for Cygwin ACLs.
31117         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
31118         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
31119         the chmod_or_fchmod call.
31120         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
31121
31122 2008-06-08  Bruno Haible  <bruno@clisp.org>
31123
31124         Fix bug with setuid modes in Solaris 10+ code.
31125         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
31126         succeeded, when the mode contains some special bits.
31127
31128 2008-06-08  Bruno Haible  <bruno@clisp.org>
31129
31130         Add support for Solaris 7..10 ACLs.
31131         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
31132         declarations.
31133         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
31134         functions.
31135         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
31136         * lib/set-mode-acl.c (qset_acl): Likewise.
31137         * lib/copy-acl.c (qcopy_acl): Likewise.
31138
31139 2008-06-08  Bruno Haible  <bruno@clisp.org>
31140
31141         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
31142         declaration.
31143         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
31144         (acl_access_nontrivial): Remove MacOS X case.
31145         (file_has_acl): Use acl_extended_nontrivial.
31146         * lib/copy-acl.c (qcopy_acl): Likewise.
31147
31148 2008-06-08  Bruno Haible  <bruno@clisp.org>
31149
31150         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
31151
31152 2008-06-08  Jim Meyering  <meyering@redhat.com>
31153
31154         * modules/acl (Maintainer): Add Bruno Haible.
31155
31156 2008-06-07  Bruno Haible  <bruno@clisp.org>
31157
31158         Improve support for Tru64 ACLs.
31159         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
31160         ACL on OSF/1.
31161
31162 2008-06-07  Bruno Haible  <bruno@clisp.org>
31163
31164         Add support for MacOS X ACLs.
31165         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
31166         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
31167         * lib/set-mode-acl.c (qset_acl): Likewise.
31168         * lib/copy-acl.c (qcopy_acl): Likewise.
31169
31170 2008-06-07  Bruno Haible  <bruno@clisp.org>
31171
31172         Fix memory leak introduced on 2008-05-22.
31173         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
31174         use.
31175
31176 2008-06-07  Bruno Haible  <bruno@clisp.org>
31177
31178         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
31179         to construct an empty ACL.
31180
31181 2008-06-07  Bruno Haible  <bruno@clisp.org>
31182
31183         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
31184         precisely.
31185         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
31186
31187 2008-06-07  Bruno Haible  <bruno@clisp.org>
31188
31189         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
31190         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
31191
31192 2008-06-07  Bruno Haible  <bruno@clisp.org>
31193
31194         * doc/posix-functions/_setjmp.texi: Explain the use of this function
31195         regardless of POSIX.
31196         * doc/posix-functions/_longjmp.texi: Likewise.
31197         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
31198         SystemV platform in this case.
31199
31200 2008-06-06  Eric Blake  <ebb9@byu.net>
31201
31202         Document abort() bugs.
31203         * doc/posix-functions/abort.texi (abort): Mention anomalies.
31204
31205         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
31206         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
31207         sigsetjmp.
31208         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
31209         siglongjmp, but only as a macro.
31210         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
31211         is obsolete.
31212         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
31213
31214         Tweak documentation to cover cygwin argz bugs.
31215         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
31216         argz bug fix; no code change needed since no cygwin releases
31217         occurred between the last fix and the bug being tested.
31218         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
31219         module and recently fixed cygwin bugs.
31220         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
31221         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
31222         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
31223         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
31224         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
31225         Likewise.
31226         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
31227         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
31228         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
31229         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
31230         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
31231         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
31232         Likewise.
31233
31234         Avoid gcc warning on cygwin.
31235         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
31236         !ACL_NO_TRIVIAL]: Avoid unused variable.
31237
31238 2008-06-05  Eric Blake  <ebb9@byu.net>
31239
31240         Be tolerant of UNKNOWN version in gnulib-tool test dir.
31241         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
31242         git-version-gen fails to come up with a version.
31243         Reported by Simon Josefsson.
31244
31245 2008-06-05  Jim Meyering  <meyering@redhat.com>
31246             Paul Eggert  <eggert@cs.ucla.edu>
31247
31248         utimens.c: work around a probable Linux kernel bug
31249         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
31250         appears to be a kernel bug that causes utimensat to return 280
31251         instead of 0, indicating success.
31252
31253 2008-06-04  Bruno Haible  <bruno@clisp.org>
31254
31255         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
31256         2008-06-01 commit.
31257
31258 2008-06-04  Bruno Haible  <bruno@clisp.org>
31259
31260         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
31261         * lib/file-has-acl.c (acl_access_nontrivial): New function.
31262         (file_has_acl): Use it. Save errno afterwards.
31263         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
31264
31265 2008-06-03  Bruno Haible  <bruno@clisp.org>
31266
31267         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
31268         draft code. Simplify #ifs.
31269         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
31270         Put Solaris code after POSIX-draft code. Fix comments regarding
31271         Solaris 10, HP-UX. Mention Cygwin.
31272         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
31273
31274 2008-06-03  Eric Blake  <ebb9@byu.net>
31275
31276         Provide fallback for older kernels.
31277         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
31278         Provide runtime fallback if kernel lacks support.
31279         Reported by Mike Frysinger.
31280
31281 2008-06-02  Bruno Haible  <bruno@clisp.org>
31282
31283         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
31284         it exists.
31285
31286 2008-06-02  Bruno Haible  <bruno@clisp.org>
31287
31288         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
31289         * lib/copy-acl.c (qcopy_acl): Update comment.
31290
31291 2008-06-02  Bruno Haible  <bruno@clisp.org>
31292
31293         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
31294         like ACL APIs.
31295
31296 2008-06-02  Bruno Haible  <bruno@clisp.org>
31297
31298         * tests/test-file-has-acl.sh: Use different code for Cygwin.
31299         * tests/test-set-mode-acl.sh: Likewise.
31300         * tests/test-copy-acl.sh: Likewise.
31301         * tests/test-copy-file.sh: Likewise.
31302
31303 2008-06-02  Bruno Haible  <bruno@clisp.org>
31304
31305         * tests/test-file-has-acl.sh: Remove unused code.
31306
31307 2008-06-01  Bruno Haible  <bruno@clisp.org>
31308
31309         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
31310         (copy_acl): Just a wrapper around qcopy_acl that emits the error
31311         messages.
31312         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
31313
31314 2008-06-01  Bruno Haible  <bruno@clisp.org>
31315
31316         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
31317         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
31318         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
31319         APIs.
31320         * modules/acl-tests (configure.ac): Remove tests now contained in
31321         m4/acl.m4.
31322
31323 2008-06-02  Jim Meyering  <meyering@redhat.com>
31324
31325         announce-gen: use a better key-server host name
31326         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
31327         it may be more consistently reliable.  Suggested by Werner Koch
31328         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
31329
31330 2008-06-01  Bruno Haible  <bruno@clisp.org>
31331
31332         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
31333         Reported by Voroskoi Andras <voroskoi@gmail.com>.
31334
31335 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
31336
31337         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
31338
31339 2008-06-01  Bruno Haible  <bruno@clisp.org>
31340
31341         New ACL tests.
31342         * tests/test-file-has-acl.sh: New file.
31343         * tests/test-file-has-acl.c: New file.
31344         * tests/test-set-mode-acl.sh: New file.
31345         * tests/test-set-mode-acl.c: New file.
31346         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
31347         * tests/test-copy-acl.c: New file.
31348         * modules/acl-tests: New file, based on modules/copy-file-tests.
31349         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
31350         (Depends-on): Add acl-tests.
31351         (configure.ac): Remove checks.
31352         (Makefile.am): Don't create test-sameacls program here any more.
31353
31354 2008-06-01  Bruno Haible  <bruno@clisp.org>
31355
31356         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
31357         * tests/test-sameacls.c: Include progname.h.
31358         (main): Invoke set_program_name. Portability fixes for MacOS X,
31359         Solaris, HP-UX.
31360
31361 2008-06-01  Bruno Haible  <bruno@clisp.org>
31362
31363         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
31364         function.
31365         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
31366
31367 2008-06-01  Bruno Haible  <bruno@clisp.org>
31368
31369         * modules/rpmatch (Depends-on): Add strdup.
31370
31371 2008-06-01  Bruno Haible  <bruno@clisp.org>
31372
31373         * lib/pipe.c: Include unistd-safer.h.
31374         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
31375         * modules/pipe (Depends-on): Add unistd-safer.
31376
31377 2008-05-30  Simon Josefsson  <simon@josefsson.org>
31378
31379         * modules/autobuild (configure.ac): Call AB_INIT.
31380
31381 2008-05-30  Simon Josefsson  <simon@josefsson.org>
31382
31383         * tests/test-getaddrinfo.c: Don't print debug messages by default.
31384         Suggested by Bruno Haible <bruno@clisp.org>.
31385
31386 2008-05-30  Simon Josefsson  <simon@josefsson.org>
31387
31388         * tests/test-base64.c: Cast size_t to unsigned long when invoking
31389         printf.  Use %lu instead of %d.  Reported by Bruno Haible
31390         <bruno@clisp.org>.
31391
31392 2008-05-29  Eric Blake  <ebb9@byu.net>
31393
31394         Prefer new POSIX 200x interfaces over futimesat.
31395         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
31396         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
31397         when available.
31398         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
31399
31400 2008-05-28  Bruno Haible  <bruno@clisp.org>
31401
31402         * modules/stpcpy (License): Change to LGPLv2+.
31403         Requested by David Lutterkort <dlutter@redhat.com>.
31404
31405 2008-05-27  Bruno Haible  <bruno@clisp.org>
31406
31407         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
31408         current mingw.
31409         Reported by Jose E. Marchesi <jemarch@gnu.org>.
31410
31411 2008-05-27  Bruno Haible  <bruno@clisp.org>
31412
31413         * modules/iconv_open (Link): New section, from module 'iconv'.
31414         * modules/striconv (Link): Likewise.
31415         * modules/striconveh (Link): Likewise.
31416         * modules/xstriconv (Link): Likewise.
31417         * modules/unicodeio (Link): Likewise.
31418         * modules/propername (Link): Likewise.
31419         Reported by Jim Meyering.
31420
31421 2008-05-26  Jim Meyering  <meyering@redhat.com>
31422
31423         sha256: do not artificially restrict buffer length to be < 2^32
31424         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
31425         uint32_t to size_t.
31426         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
31427         to match.
31428
31429         avoid unaligned access errors, e.g., on sparc
31430         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
31431         direct access through a possibly-unaligned uint64* pointer.
31432         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
31433         direct access through a possibly-unaligned uint32* pointer.
31434         Prompted by this patch from Tom "spot" Callaway:
31435         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
31436
31437         sha512.c: fix typo in comment
31438         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
31439
31440 2008-05-25  Bruno Haible  <bruno@clisp.org>
31441
31442         * lib/set-mode-acl.c: Renamed from lib/acl.c.
31443         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
31444         (Makefile.am): Update lib_SOURCES.
31445
31446 2008-05-25  Bruno Haible  <bruno@clisp.org>
31447
31448         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
31449
31450 2008-05-25  Jim Meyering  <meyering@redhat.com>
31451
31452         useless-if-before-free: freed expr may have white-space differences
31453         * build-aux/useless-if-before-free: Recognize cases in which the
31454         freed expression differs from the tested one in embedded white
31455         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
31456         $1 was used, so we can't make any regexp shy.  Improved tests now
31457         detect this.
31458
31459         useless-if-before-free: accept white space in the expression.
31460         * build-aux/useless-if-before-free: For now, any white space
31461         in the expression must be identical in the free argument.
31462
31463         useless-if-before-free: efficiency tweak
31464         * build-aux/useless-if-before-free: Make the expression-matching
31465         regexp "shy".
31466         Make the *outer* regexp shy, not the expr-matching one.
31467
31468         update code-in-comment to accept cast of free arg
31469         * build-aux/useless-if-before-free: Update regexp.
31470
31471 2008-05-25  Bruno Haible  <bruno@clisp.org>
31472
31473         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
31474         * modules/copy-file-tests (Files, Makefile.am): Update.
31475         * tests/test-copy-file.c (func_test_copy): Update.
31476
31477 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
31478
31479         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
31480
31481 2008-05-23  Bruno Haible  <bruno@clisp.org>
31482
31483         Improve support for ACLs on OSF/1.
31484         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
31485         Remove fallback for unknown flavors of ACLs.
31486
31487 2008-05-22  Bruno Haible  <bruno@clisp.org>
31488
31489         Add support for ACLs on OSF/1.
31490         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
31491         replacements.
31492         (acl_free_text): New macro fallback.
31493         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
31494         acl_free.
31495         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
31496         acl_free_text function. Require AC_C_INLINE.
31497
31498 2008-05-22  Bruno Haible  <bruno@clisp.org>
31499
31500         Make copy_acl work on MacOS X 10.5.
31501         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
31502         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
31503         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
31504         If MODE_INSIDE_ACL, don't assume that every system has the same text
31505         representation for ACLs as FreeBSD.
31506         * lib/copy-acl.c (copy_acl): Add support for platforms with
31507         !MODE_INSIDE_ACL.
31508         * lib/file-has-acl.c (file_has_acl): Likewise.
31509         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
31510         FreeBSD, MacOS X, or IRIX, respectively.
31511
31512 2008-05-22  Bruno Haible  <bruno@clisp.org>
31513
31514         * lib/acl.h: Don't include <sys/acl.h>.
31515         (GETACLCNT): Move fallback to lib/acl-internal.h.
31516         * lib/acl-internal.h: Include <sys/acl.h> here.
31517         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
31518
31519 2008-05-22  Bruno Haible  <bruno@clisp.org>
31520
31521         Split off copy_acl function to separate file.
31522         * lib/copy-acl.c: New file, extracted from lib/acl.c.
31523         * lib/acl.c (copy_acl): Moved function to separate file.
31524         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
31525         * modules/acl (Files): Add lib/copy-acl.c.
31526         (Makefiles.am): Augment lib_SOURCES.
31527
31528 2008-05-22  Bruno Haible  <bruno@clisp.org>
31529
31530         * modules/copy-file-tests: New file.
31531         * tests/test-copy-file.sh: New file.
31532         * tests/test-copy-file.c: New file.
31533         * tests/test-copy-file-sameacls.c: New file.
31534
31535 2008-05-22  Eric Blake  <ebb9@byu.net>
31536
31537         Avoid gcc warning.
31538         * tests/test-memcmp.c (main): Pass NULL indirectly.
31539
31540 2008-05-21  Bruno Haible  <bruno@clisp.org>
31541
31542         Add reference doc about ACLs.
31543         * doc/acl-resources.txt: New file.
31544         * doc/acl-cygwin.txt: New file.
31545
31546 2008-05-21  Bruno Haible  <bruno@clisp.org>
31547
31548         Avoid one more warning from gcc.
31549         * lib/vasnprintf.c (IF_LINT): Update comments.
31550         (VASNPRINTF): Use it also for the 'prefix' array initializer.
31551
31552 2008-05-21  Jim Meyering  <meyering@redhat.com>
31553
31554         avoid a warning from gcc
31555         * lib/vasnprintf.c (IF_LINT): Define.
31556         (scale10_round_decimal_long_double):
31557         Use it to avoid a "may be used uninitialized" warning.
31558         (scale10_round_decimal_double): Likewise.
31559
31560 2008-05-21  Simon Josefsson  <simon@josefsson.org>
31561
31562         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
31563         declared.
31564
31565 2008-05-20  Bruno Haible  <bruno@clisp.org>
31566
31567         * tests/test-memcmp.c (main): Test also the sign of the result. Test
31568         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
31569
31570 2008-05-20  Simon Josefsson  <simon@josefsson.org>
31571
31572         * modules/memcmp-tests: New file.
31573         * tests/test-memcmp.c: New file.
31574
31575 2008-05-19  Bruno Haible  <bruno@clisp.org>
31576
31577         * modules/propername (Notice, configure.ac): Put quoted "..." into
31578         --keyword option.
31579         * lib/propername.h: Update comments accordingly.
31580         Reported by Eric Blake.
31581
31582 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
31583
31584         * modules/getpass-gnu (Depends-on): Add fseeko.
31585
31586 2008-05-19  Simon Josefsson  <simon@josefsson.org>
31587
31588         * modules/base64-tests: New file.
31589
31590 2008-05-19  Bo Borgerson <gigabo@gmail.com>
31591
31592         * lib/base64.c (base64_decode_ctx): If a decode context structure
31593         was passed in use it to ignore newlines.  If a context structure
31594         was _not_ passed in, continue to treat newlines as garbage (this
31595         is the historical behavior).  Formerly base64_decode.
31596         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
31597         takes a decode context structure.
31598         * lib/base64.h (base64_decode): Macro for four-argument calls.
31599         (base64_decode_alloc): Likewise.
31600         * lib/base64.c (base64_decode_ctx): If a decode context structure
31601         was passed in use it to ignore newlines.  If a context structure
31602         was _not_ passed in, continue to treat newlines as garbage (this
31603         is the historical behavior).  Formerly base64_decode.
31604         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
31605         takes a decode context structure.
31606         * lib/base64.h (base64_decode): Macro for four-argument calls.
31607         (base64_decode_alloc): Likewise.
31608
31609 2008-05-19  Jim Meyering  <meyering@redhat.com>
31610
31611         avoid a warning from gcc
31612         * lib/trim.c (IF_LINT): Define.
31613         (trim2): Use it to avoid a "may be used uninitialized" warning.
31614
31615         Fix doc typo.
31616         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
31617
31618 2008-05-19  Bruno Haible  <bruno@clisp.org>
31619
31620         * doc/glibc-functions/getpass.texi: Document limits of other
31621         implementations.
31622
31623 2008-05-19  Simon Josefsson  <simon@josefsson.org>
31624             Bruno Haible <bruno@clisp.org>
31625
31626         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
31627
31628 2008-05-18  Bruno Haible  <bruno@clisp.org>
31629
31630         * modules/propername: New file, from GNU gettext.
31631         * lib/propername.h: New file, from GNU gettext.
31632         * lib/propername.c: New file, from GNU gettext.
31633         * MODULES.html.sh (Internationalization functions): Add propername.
31634
31635 2008-05-16  Jim Meyering  <meyering@redhat.com>
31636             Bruno Haible  <bruno@clisp.org>
31637
31638         Avoid some warnings from "gcc -Wshadow".
31639         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
31640
31641 2008-05-15  Eric Blake  <ebb9@byu.net>
31642
31643         Extend previous patch to cygwin 1.7.0.
31644         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
31645         fast implementation in cygwin >= 1.7.0.
31646         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
31647         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
31648
31649 2008-05-15  Bruno Haible  <bruno@clisp.org>
31650
31651         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
31652         implementation in glibc >= 2.9.
31653         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
31654         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
31655
31656 2008-05-15  Bruno Haible  <bruno@clisp.org>
31657
31658         * MODULES.html.sh (Internationalization functions): Remove linebreak.
31659         (Unicode string functions): Add unilbrk/*.
31660         Reported by Karl Berry.
31661
31662 2008-05-15  Eric Blake  <ebb9@byu.net>
31663
31664         Fix violation of <stdbool.h> replacement in regex.
31665         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
31666         * lib/regexec.c (re_search_internal): Likewise.
31667         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
31668
31669 2008-05-15  Jim Meyering  <meyering@redhat.com>
31670
31671         avoid distracting test output when git or cvs is not found
31672         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
31673         * tests/test-vc-list-files-git.sh: Likewise.
31674
31675 2008-05-15  Eric Blake  <ebb9@byu.net>
31676
31677         Glibc finally accepted the memmem speedup code, bugzilla #5514.
31678         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
31679         glibc version.
31680         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
31681         * doc/posix-functions/strstr.texi (strstr): Likewise.
31682         * lib/str-two-way.h (MAX): Sychronize with glibc.
31683
31684 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
31685
31686         * lib/regcomp.c (optimize_utf8): Add a note on why we test
31687         opr.ctx_type.
31688         (calc_first): Initialize constraint field.
31689         (duplicate_node_closure): Use it instead of special casing ANCHORS.
31690         Fix grammar.
31691         (duplicate_node): Merge constraint field for all node types.
31692         (calc_eclosure_iter): Look at constraint field for all node types.
31693         * lib/regex_internal.c (create_cd_newstate): Don't look at
31694         opr.ctx_type.
31695
31696 2008-05-14  Bruno Haible  <bruno@clisp.org>
31697
31698         Help GCC to do better code generation.
31699         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
31700         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
31701         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
31702         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
31703         Declare with attribute 'malloc' if supported.
31704
31705 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
31706
31707         use "echo STR|wc -c" rather than unportable "expr length STR"
31708         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
31709         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
31710
31711 2008-05-14  Jim Meyering  <meyering@redhat.com>
31712
31713         use dd ibs=$n count=1 ... rather than less-portable head -c$n
31714         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
31715         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
31716         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
31717         via Collin Lasse.
31718
31719 2008-05-14  Eric Blake  <ebb9@byu.net>
31720
31721         Avoid quadratic growth in gl_LIBSOURCES.
31722         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
31723         Suggested by Bruno Haible.
31724
31725         Test xmemdup0.
31726         * modules/xmemdup0-tests: New file.
31727         * tests/test-xmemdup0.c: Likewise.
31728
31729 2008-05-13  Eric Blake  <ebb9@byu.net>
31730
31731         Split xmemdup0 into its own module.
31732         * modules/xmemdup0: New file.
31733         * lib/xmemdup0.h: Likewise.
31734         * lib/xmemdup0.c: Likewise.
31735         * MODULES.html.sh (Memory management functions): Add xmemdup0.
31736         * lib/xalloc.h (xmemdup0): Remove.
31737         * lib/xmalloc.c (xmemdup0): Likewise.
31738
31739 2008-05-13  Eric Blake  <ebb9@byu.net>
31740             Bruno Haible  <bruno@clisp.org>
31741
31742         Reduce number of forks required during autoconf.
31743         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
31744         and gl_LIBSOURCES_DIR.
31745         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
31746         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
31747         m4_syscmd per file.
31748         <m4_foreach_w>: Move...
31749         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
31750
31751 2008-05-13  Eric Blake  <ebb9@byu.net>
31752
31753         * gnulib-tool: Fix various comment typos.
31754
31755 2008-05-12  Bruno Haible  <bruno@clisp.org>
31756
31757         Tailor the linebreaking algorithm.
31758         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
31759
31760 2008-05-12  Bruno Haible  <bruno@clisp.org>
31761
31762         Update to Unicode 5.0.0.
31763         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
31764         LBP_JV, LBP_JT. Redistribute values.
31765         (unilbrk_table): Change size.
31766         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
31767         Unicode TR#14 rev. 22.
31768         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
31769         LBP_JV, LBP_JT. Redistribute values.
31770         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
31771         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
31772         Update.
31773         * lib/unilbrk/lbrkprop1.h: Regenerated.
31774         * lib/unilbrk/lbrkprop2.h: Regenerated.
31775         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
31776         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
31777         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
31778         Likewise.
31779         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
31780         Likewise.
31781         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
31782         result.
31783         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
31784         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
31785         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
31786         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
31787         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
31788         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
31789
31790 2008-05-11  Bruno Haible  <bruno@clisp.org>
31791
31792         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
31793
31794 2008-05-11  Bruno Haible  <bruno@clisp.org>
31795
31796         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
31797         * modules/unilbrk/gen-lbrk: New file.
31798
31799 2008-05-11  Bruno Haible  <bruno@clisp.org>
31800
31801         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
31802         * m4/sha512.m4 (gl_SHA512): Likewise.
31803
31804 2008-05-11  Jim Meyering  <meyering@redhat.com>
31805
31806         New modules: crypto/sha256, crypto/sha512 (from coreutils)
31807         * modules/crypto/sha256: New file.
31808         * modules/crypto/sha512: Likewise.
31809         * lib/sha256.c: Likewise.
31810         * lib/sha256.h: Likewise.
31811         * lib/sha512.c: Likewise.
31812         * lib/sha512.h: Likewise.
31813         * lib/u64.h: Likewise.
31814         * m4/sha256.m4: Likewise.
31815         * m4/sha512.m4: Likewise.
31816         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
31817
31818 2008-05-10  Bruno Haible  <bruno@clisp.org>
31819
31820         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
31821         (Input/Output <stdio.h>): Add xprintf.
31822         (Signal handling <signal.h>): Add strsignal.
31823         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
31824         (Core language properties): Add func.
31825         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
31826         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
31827         strings.
31828         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
31829         (Input/output): New section.
31830         (File system functions): Add openat-die, stat-macros.
31831         (Networking functions): Add sockets.
31832         (Unicode string functions): Add unictype/*.
31833         (Support for building libraries and executables): Add gperf.
31834         (Support for building documentation): Add agpl-3.0.
31835         (Misc): Add nocrash.
31836
31837 2008-05-10  Bruno Haible  <bruno@clisp.org>
31838
31839         * modules/unictype/gen-ctype: New file.
31840
31841 2008-05-10  Jim Meyering  <meyering@redhat.com>
31842
31843         Make chdir-safer.c more efficient on a system with no symlinks.
31844         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
31845         also if ELOOP is zero.  Suggested by Bruno Haible.
31846
31847         Make chdir-safer.c slightly safer.
31848         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
31849         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
31850
31851         Avoid compile failure on systems without ELOOP (like mingw).
31852         * lib/chdir-safer.c (ELOOP): Define if not already defined.
31853         Reported by Bruno Haible.
31854
31855 2008-05-10  Bruno Haible  <bruno@clisp.org>
31856
31857         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
31858         (is_utf8_encoding): Use a case-insensitive comparison.
31859         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
31860         streq.
31861
31862 2008-05-10  Bruno Haible  <bruno@clisp.org>
31863
31864         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
31865         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
31866         * lib/unilbrk/ulc-common.h (iconv_string_length,
31867         iconv_string_keeping_offsets): Remove declarations.
31868         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
31869         Don't include <iconv.h>, streq.h, xsize.h.
31870         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
31871         conversion.
31872         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
31873         <iconv.h>, streq.h, xsize.h.
31874         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
31875         conversion.
31876         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
31877         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
31878         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
31879         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
31880
31881 2008-05-10  Bruno Haible  <bruno@clisp.org>
31882
31883         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
31884         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
31885
31886         * modules/unilbrk/u32-width-linebreaks-tests: New file.
31887         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
31888
31889         * modules/unilbrk/u16-width-linebreaks-tests: New file.
31890         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
31891
31892         * modules/unilbrk/u8-width-linebreaks-tests: New file.
31893         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
31894
31895         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
31896         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
31897
31898         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
31899         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
31900
31901         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
31902         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
31903
31904         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
31905         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
31906
31907 2008-05-10  Bruno Haible  <bruno@clisp.org>
31908
31909         Split up 'linebreak' module.
31910         * lib/unilbrk.h: New file, based on lib/linebreak.h.
31911         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
31912         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
31913         modifications.
31914         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
31915         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
31916         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
31917         lib/linebreak.c.
31918         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
31919         lib/linebreak.c.
31920         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
31921         lib/linebreak.c.
31922         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
31923         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
31924         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
31925         lib/linebreak.c.
31926         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
31927         lib/linebreak.c.
31928         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
31929         lib/linebreak.c.
31930         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
31931         lib/linebreak.c.
31932         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
31933         lib/linebreak.c.
31934         * modules/unilbrk/base: New file.
31935         * modules/unilbrk/tables: New file.
31936         * modules/unilbrk/u8-possible-linebreaks: New file.
31937         * modules/unilbrk/u16-possible-linebreaks: New file.
31938         * modules/unilbrk/u32-possible-linebreaks: New file.
31939         * modules/unilbrk/ulc-common: New file.
31940         * modules/unilbrk/ulc-possible-linebreaks: New file.
31941         * modules/unilbrk/u8-width-linebreaks: New file.
31942         * modules/unilbrk/u16-width-linebreaks: New file.
31943         * modules/unilbrk/u32-width-linebreaks: New file.
31944         * modules/unilbrk/ulc-width-linebreaks: New file.
31945         * lib/linebreak.h: Remove file.
31946         * lib/linebreak.c: Remove file.
31947         * m4/linebreak.m4: Remove file.
31948         * modules/linebreak: Remove file.
31949         * NEWS: Mention the changes.
31950
31951 2008-05-09  Eric Blake  <ebb9@byu.net>
31952
31953         Add xmemdup0.
31954         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
31955         implementation.
31956         * lib/xmalloc.c (xmemdup0): New C implementation.
31957
31958 2008-05-08  Bruno Haible  <bruno@clisp.org>
31959
31960         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
31961
31962 2008-05-07  Eric Blake  <ebb9@byu.net>
31963
31964         Support cross-compilation of <wctype.h>.
31965         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
31966         AC_CACHE_CHECK.
31967
31968 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
31969
31970         * build-aux/vc-list-files: Add support for bzr.
31971
31972 2008-05-03  Jim Meyering  <meyering@redhat.com>
31973
31974         avoid failed assertion with tight malloc
31975         * tests/test-getndelim2.c: Correct an off-by-one assertion.
31976
31977 2008-05-03  Simon Josefsson  <simon@josefsson.org>
31978
31979         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
31980         are needed from arpa/inet.h.
31981         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
31982         Reported by Bruno Haible.
31983
31984 2008-05-02  Jim Meyering  <meyering@redhat.com>
31985
31986         avoid compilation error on FreeBSD 6
31987         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
31988
31989 2008-05-01  Jim Meyering  <meyering@redhat.com>
31990
31991         useless-if-before-free: correct --help's exit status description
31992         * build-aux/useless-if-before-free (usage): Like grep, exit 0
31993         for one or more matches, etc.  Reported by Bruno Haible.
31994
31995         vc-list-files: make the stand-alone gnulib test work
31996         * modules/vc-list-files-tests (configure.ac):
31997         Define and AC_SUBST abs_aux_dir.
31998         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
31999         $(abs_top_srcdir) to each script and having each of them
32000         duplicate the work of setting PATH, set PATH here, using
32001         the new variable, abs_aux_dir instead.
32002         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
32003         * tests/test-vc-list-files-git.sh: Likewise.
32004         Reported by Bruno Haible.
32005
32006 2008-05-01  Bruno Haible  <bruno@clisp.org>
32007
32008         * lib/getndelim2.c (getndelim2): Fix newsize computation during
32009         reallocation. Rename 'done' to 'found_delimiter'.
32010
32011 2008-05-01  Jim Meyering  <meyering@redhat.com>
32012
32013         vc-list-files: accommodate /bin/sh like the one from Solaris 10
32014         * build-aux/vc-list-files: Use `...`, not $(...).
32015
32016 2008-04-30  Jim Meyering  <meyering@redhat.com>
32017
32018         add tests for vc-list-files
32019         * modules/vc-list-files-tests: New module.
32020         * tests/test-vc-list-files-cvs.sh: New file.
32021         * tests/test-vc-list-files-git.sh: New file.
32022
32023         avoid a warning from gcc
32024         * lib/getndelim2.c (IF_LINT): Define.
32025         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
32026
32027         vc-list-files: work properly with build-aux/cvsu, too
32028         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
32029         to all cvs-based clauses.
32030
32031         vc-list-files: work properly in the CVS+awk case, too
32032         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
32033
32034         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
32035         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
32036         take more than one file argument, so .  Add quotes, just in case $dir
32037         ever contains a shell meta-character.  Prompted by Soren Hansen in
32038         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
32039
32040 2008-04-29  Eric Blake  <ebb9@byu.net>
32041
32042         Optimize getndelim2 to use block operations when possible.
32043         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
32044         freadseek, and memchr2.
32045         * lib/getndelim2.c (getndelim2): Use them for block reads.
32046
32047 2008-04-29  Bruno Haible  <bruno@clisp.org>
32048
32049         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
32050         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
32051         * modules/inet_ntop (Depends-on): Add extensions.
32052         * modules/inet_pton (Depends-on): Likewise.
32053         Reported by Simon Josefsson.
32054
32055 2008-04-29  Jim Meyering  <meyering@redhat.com>
32056
32057         When the is more than one match in a block, match all of them.
32058         * build-aux/useless-if-before-free: Iterate through each block
32059         until there are no more matches.
32060
32061         Fix broken useless-if-before-free script.
32062         * build-aux/useless-if-before-free: Fix typo: missing "?" after
32063         the expression to match cast of argument to free-like function.
32064
32065 2008-04-29  Eric Blake  <ebb9@byu.net>
32066
32067         Use new header.
32068         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
32069
32070 2008-04-29  Jim Meyering  <meyering@redhat.com>
32071
32072         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
32073         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
32074         by gnulib to exist and to declare e.g., inet_ntop.
32075         Don't include "inet_ntop.h", now removed.
32076
32077         * m4/arpa_inet_h.m4: Remove trailing blanks.
32078
32079 2008-04-29  Eric Blake  <ebb9@byu.net>
32080
32081         Silence valgrind on safe reads beyond potential array bounds.
32082         * lib/rawmemchr.valgrind: New file.
32083         * lib/strchrnul.valgrind: Likewise.
32084         * modules/rawmemchr (Files): Distribute new file.
32085         * modules/strchrnul (Files): Likewise.
32086         Suggested by Bruno Haible.
32087
32088 2008-04-29  Bruno Haible  <bruno@clisp.org>
32089
32090         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
32091         (inet_ntop, inet_pton): Change portability warning's wording.
32092         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
32093         Invoke gl_CHECK_NEXT_HEADERS.
32094         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
32095         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
32096         set ARPA_INET_H.
32097         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
32098         * modules/arpa_inet (Description): No longer only for systems that
32099         lack it.
32100         (Depends-on): Add include_next.
32101         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
32102         HAVE_ARPA_INET_H.
32103
32104 2008-04-29  Jim Meyering  <meyering@redhat.com>
32105
32106         * modules/mkdir (License): Re-license as LGPLv2+.
32107
32108 2008-04-29  Bruno Haible  <bruno@clisp.org>
32109
32110         * modules/rawmemchr (Maintainer): Set to Eric.
32111         * modules/strchrnul (Maintainer): Likewise.
32112
32113 2008-04-29  Simon Josefsson  <simon@josefsson.org>
32114
32115         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
32116         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
32117
32118         * modules/arpa_inet (arpa/inet.h): Use them.
32119
32120 2008-04-28  Eric Blake  <ebb9@byu.net>
32121
32122         Test getndelim2.
32123         * modules/getndelim2-tests: New file.
32124         * tests/test-getndelim2.c: Likewise.
32125         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
32126         stream.
32127         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
32128
32129         * MODULES.html.sh: Document new module.
32130
32131 2008-04-20  Bruno Haible  <bruno@clisp.org>
32132
32133         * lib/c-stack.c (die): Use raise.
32134         * modules/c-stack (Depends-on): Add raise.
32135
32136 2008-04-28  Bruno Haible  <bruno@clisp.org>
32137
32138         Expect rpmatch to be declared.
32139         * lib/yesno.c (rpmatch): Remove declaration.
32140
32141         Declare rpmatch.
32142         * lib/stdlib.in.h (rpmatch): New declaration.
32143         * lib/rpmatch.c: Include <stdlib.h> first.
32144         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
32145         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
32146         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
32147         HAVE_RPMATCH.
32148         * modules/rpmatch (Depends-on): Add stdlib, extensions.
32149         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
32150         (Include): Set to <stdlib.h>.
32151         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
32152         HAVE_RPMATCH.
32153         * NEWS: Document the change.
32154
32155 2008-04-28  Bruno Haible  <bruno@clisp.org>
32156
32157         Change rpmatch to use nl_langinfo when appropriate.
32158         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
32159         (N_): New macro.
32160         (localized_pattern): New function/macro.
32161         (try): Remove match, nomatch arguments. Copy the pattern into safe
32162         memory before caching it.
32163         (rpmatch): Use localized_pattern. Add translator comments.
32164         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
32165         Suggested by Eric Blake.
32166         * modules/rpmatch (Depends-on): Add stdbool.
32167
32168 2008-04-28  Eric Blake  <ebb9@byu.net>
32169
32170         Add rawmemchr module, matching glibc.
32171         * modules/string (Makefile.am): New indicator.
32172         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
32173         * lib/string.in.h (rawmemchr): Declare when appropriate.
32174         * modules/rawmemchr: New file.
32175         * m4/rawmemchr.m4: Likewise.
32176         * lib/rawmemchr.c: Likewise.
32177         * modules/rawmemchr-tests: Likewise.
32178         * tests/test-rawmemchr.c: Likewise.
32179         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
32180         module.
32181         * modules/strchrnul (Depends-on): Add rawmemchr.
32182         * lib/strchrnul.c (strchrnul): Optimize a corner case.
32183
32184         Whitespace cleanup.
32185         * tests/test-strchrnul.c: Reindent.
32186         * lib/strchrnul.c: Likewise.
32187
32188         Optimize and test strchrnul.
32189         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
32190         * modules/strchrnul-tests: New file.
32191         * tests/test-strchrnul.c: Likewise.
32192
32193         Remove intprops dependency.
32194         * modules/memchr (Depends-on): Remove intprops.
32195         * modules/memrchr (Depends-on): Likewise.
32196         * modules/memchr2 (Depends-on): Likewise.
32197         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
32198         * lib/memrchr.c (__memrchr): Likewise.
32199         * lib/memrchr2.c (memchr2): Likewise.
32200         Reported by Simon Josefsson.
32201
32202 2008-04-28  Simon Josefsson  <simon@josefsson.org>
32203
32204         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
32205         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
32206
32207 2008-04-28  Simon Josefsson  <simon@josefsson.org>
32208
32209         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
32210
32211         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
32212
32213         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
32214
32215         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
32216         declarations.
32217         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
32218
32219         * m4/inet_pton.m4: Don't check for header files.
32220
32221         * m4/inet_ntop.m4: Don't check for header files.
32222
32223 2008-04-28  Simon Josefsson  <simon@josefsson.org>
32224
32225         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
32226         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
32227         trigger for cygwin).
32228         Reported by Bruno Haible  <bruno@clisp.org>.
32229
32230 2008-04-28  Bruno Haible  <bruno@clisp.org>
32231
32232         * doc/posix-functions/strdup.texi: Mention mingw problem.
32233
32234 2008-04-27  Bruno Haible  <bruno@clisp.org>
32235
32236         * modules/stat-time-tests (Depends-on): Add sleep.
32237         * tests/test-stat-time.c (force_unlink): New function.
32238         (cleanup): Use it.
32239         (test_mtime): Remove the ctime related tests.
32240         (test_ctime): New function, containing the ctime related tests.
32241         (main): Call test_ctime, except on native Windows platforms.
32242
32243 2008-04-27  Bruno Haible  <bruno@clisp.org>
32244
32245         * lib/rpmatch.c (rpmatch): Add some comments.
32246         Reported by James Youngman <jay@gnu.org>.
32247
32248 2008-04-27  Bruno Haible  <bruno@clisp.org>
32249
32250         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
32251         quiet NaNs.
32252
32253 2008-04-27  Bruno Haible  <bruno@clisp.org>
32254
32255         Make test-yesno.sh work on mingw.
32256         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
32257         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
32258         (main): Set stdin to binary mode.
32259         * modules/yesno-tests (Depends-on): Add binary-io.
32260
32261 2008-04-27  Bruno Haible  <bruno@clisp.org>
32262
32263         Fix 'isfinite' on x86, x86_64, ia64 platforms.
32264         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
32265         argument that lie outside the IEEE 854 domain.
32266         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
32267         (gl_ISFINITE): Use it.
32268         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
32269
32270 2008-04-27  Bruno Haible  <bruno@clisp.org>
32271
32272         Allow local renaming in config.h.
32273         * lib/memrchr.c (memrchr): Don't undefine outside libc.
32274
32275 2008-04-27  Bruno Haible  <bruno@clisp.org>
32276
32277         * lib/memchr.c (__memchr): Change type of 'i'.
32278         * lib/memchr2.c (memchr2): Likewise.
32279
32280 2008-04-26  Eric Blake  <ebb9@byu.net>
32281         and Bruno Haible  <bruno@clisp.org>
32282
32283         Optimize and test memrchr.
32284         * modules/memrchr (Depends-on): Add intprops.
32285         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
32286         * modules/memrchr-tests: New file.
32287         * tests/test-memrchr.c: New file.
32288
32289 2008-04-26  Bruno Haible  <bruno@clisp.org>
32290
32291         Add tentative support for DragonFly BSD.
32292         * lib/stdio-impl.h: Add macros for DragonFly BSD.
32293         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
32294         fp.
32295         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
32296         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
32297         * lib/fpurge.c (fpurge): Likewise.
32298         * lib/freadable.c (freaadable): Likewise.
32299         * lib/freadahead.c (freadahead): Likewise.
32300         * lib/freading.c (freading): Likewise.
32301         * lib/freadptr.c (freadptr): Likewise.
32302         * lib/freadseek.c (freadptrinc): Likewise.
32303         * lib/fseeko.c (fseeko): Likewise.
32304         * lib/fseterr.c (fseterr): Likewise.
32305         * lib/fwritable.c (fwritable): Likewise.
32306         * lib/fwriting.c (fwriting): Likewise.
32307
32308 2008-04-26  Bruno Haible  <bruno@clisp.org>
32309
32310         * lib/stdio-impl.h: New file.
32311         * lib/fbufmode.c: Include stdio-impl.h.
32312         (fbufmode): Use fp_, remove redundant #defines.
32313         * lib/fflush.c: Include stdio-impl.h.
32314         (clear_ungetc_buffer): Remove redundant #defines.
32315         * lib/fpurge.c: Include stdio-impl.h.
32316         (fpurge): Remove redundant #defines.
32317         * lib/freadable.c: Include stdio-impl.h.
32318         (freadable): Remove redundant #defines.
32319         * lib/freadahead.c: Include stdio-impl.h.
32320         (freadahead): Remove redundant #defines.
32321         * lib/freading.c: Include stdio-impl.h.
32322         (freading): Remove redundant #defines.
32323         * lib/freadptr.c: Include stdio-impl.h.
32324         (freadptr): Remove redundant #defines.
32325         * lib/freadseek.c: Include stdio-impl.h.
32326         (freadptrinc): Remove redundant #defines.
32327         * lib/fseeko.c: Include stdio-impl.h.
32328         (rpl_fseeko): Remove redundant #defines.
32329         * lib/fseterr.c: Include stdio-impl.h.
32330         (fseterr): Remove redundant #defines.
32331         * lib/fwritable.c: Include stdio-impl.h.
32332         (fwritable: Remove redundant #defines.
32333         * lib/fwriting.c: Include stdio-impl.h.
32334         (fwriting): Remove redundant #defines.
32335         * modules/fbufmode (Files): Add lib/stdio-impl.h.
32336         * modules/fflush (Files): Likewise.
32337         * modules/fpurge (Files): Likewise.
32338         * modules/freadable (Files): Likewise.
32339         * modules/freadahead (Files): Likewise.
32340         * modules/freading (Files): Likewise.
32341         * modules/freadptr (Files): Likewise.
32342         * modules/freadseek (Files): Likewise.
32343         * modules/fseeko (Files): Likewise.
32344         * modules/fseterr (Files): Likewise.
32345         * modules/fwritable (Files): Likewise.
32346         * modules/fwriting (Files): Likewise.
32347
32348 2008-04-26  Bruno Haible  <bruno@clisp.org>
32349
32350         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
32351         restore_seek_optimization, update_fpos_cache): New functions, extracted
32352         from rpl_fflush.
32353         (rpl_fflush): Use them.
32354         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
32355         (gl_REPLACE_FFLUSH): Use it.
32356
32357 2008-04-26  Bruno Haible  <bruno@clisp.org>
32358
32359         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
32360         on Solaris.
32361         * tests/test-xstrtoimax.sh: Likewise.
32362         * tests/test-xstrtoumax.sh: Likewise.
32363         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
32364
32365 2008-04-26  Bruno Haible  <bruno@clisp.org>
32366
32367         * modules/memchr-tests: New file.
32368         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
32369
32370 2008-04-26  Eric Blake  <ebb9@byu.net>
32371             Bruno Haible  <bruno@clisp.org>
32372
32373         * lib/memchr.c: Include intprops.h.
32374         (__memchr): Optimize parallel detection of matching bytes. Rename local
32375         variables. Add explanatory comments.
32376
32377 2008-04-26  Bruno Haible  <bruno@clisp.org>
32378
32379         Fix module 'memchr', broken since 2000-10-28.
32380         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
32381
32382 2008-04-26  Bruno Haible  <bruno@clisp.org>
32383
32384         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
32385         comments.
32386
32387 2008-04-25  Eric Blake  <ebb9@byu.net>
32388
32389         Use native fstatat on cygwin 1.7.0.
32390         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
32391         first.
32392
32393 2008-04-23  Eric Blake  <ebb9@byu.net>
32394
32395         Improve memchr2 performance.
32396         * lib/memchr2.c (memchr2): Further optimize parallel detection of
32397         NUL bytes.
32398         * modules/memchr2 (Depends-on): Use intprops.h.
32399
32400 2008-04-23  Simon Josefsson  <simon@josefsson.org>
32401
32402         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
32403         an inline function instead of a CPP macro.  Patch by Ben Pfaff
32404         <blp@cs.stanford.edu>.
32405
32406 2008-04-23  Simon Josefsson  <simon@josefsson.org>
32407
32408         * lib/arpa_inet.in.h: New file.
32409
32410         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
32411         (Makefile.am): Sed in substitute header file.
32412
32413         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
32414         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
32415
32416         * modules/inet_ntop (configure.ac): Use
32417         gl_ARPA_INET_MODULE_INDICATOR.
32418
32419         * modules/inet_pton (configure.ac): Use
32420         gl_ARPA_INET_MODULE_INDICATOR.
32421
32422 2008-04-22  Jim Meyering  <meyering@redhat.com>
32423
32424         * modules/verify (License): Re-license as LGPLv2+.
32425
32426 2008-04-22  Simon Josefsson  <simon@josefsson.org>
32427
32428         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
32429         parameter to void* as per POSIX standard (MinGW uses char*).
32430
32431 2008-04-21  Bruno Haible  <bruno@clisp.org>
32432
32433         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
32434         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
32435         Define to replacements if REPLACE_ISWCNTRL is 1.
32436         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
32437         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
32438         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
32439         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
32440         what it fixes.
32441         * doc/posix-functions/iswalpha.texi: Likewise.
32442         * doc/posix-functions/iswblank.texi: Likewise.
32443         * doc/posix-functions/iswcntrl.texi: Likewise.
32444         * doc/posix-functions/iswdigit.texi: Likewise.
32445         * doc/posix-functions/iswgraph.texi: Likewise.
32446         * doc/posix-functions/iswlower.texi: Likewise.
32447         * doc/posix-functions/iswprint.texi: Likewise.
32448         * doc/posix-functions/iswpunct.texi: Likewise.
32449         * doc/posix-functions/iswspace.texi: Likewise.
32450         * doc/posix-functions/iswupper.texi: Likewise.
32451         * doc/posix-functions/iswxdigit.texi: Likewise.
32452         Reported by Alain Guibert.
32453
32454 2008-04-21  Bruno Haible  <bruno@clisp.org>
32455
32456         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
32457         Patch by Alain Guibert.
32458
32459 2008-04-21  Bruno Haible  <bruno@clisp.org>
32460
32461         Fix test failures on mingw.
32462         * tests/test-xstrtol.c (print_no_progname): New function.
32463         (main): Install it in error_print_progname hook.
32464         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
32465         * tests/test-xstrtoimax.sh: Likewise.
32466         * tests/test-xstrtoumax.sh: Likewise.
32467
32468 2008-04-21  Bruno Haible  <bruno@clisp.org>
32469
32470         Fix test failure on mingw.
32471         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
32472
32473 2008-04-21  Bruno Haible  <bruno@clisp.org>
32474
32475         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
32476         Actually assign a value.
32477
32478 2008-04-20  Bruno Haible  <bruno@clisp.org>
32479
32480         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
32481         take 2.
32482         * lib/canonicalize.c (canonicalize_file_name): Elide if the
32483         'canonicalize-lgpl' module is also used.
32484         * lib/canonicalize-lgpl.c: Undo last change.
32485         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
32486
32487 2008-04-20  Bruno Haible  <bruno@clisp.org>
32488
32489         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
32490         config.h. Provide _mkdir based fallback for mingw.
32491         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
32492         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
32493         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
32494         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
32495         rather than defining mkdir in config.h.
32496         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
32497         (gl_SYS_STAT_H_DEFAULTS): New macro.
32498         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
32499         HAVE_IO_H any more.
32500         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
32501         HAVE_DECL_MKDIR and HAVE_IO_H.
32502
32503 2008-04-20  Bruno Haible  <bruno@clisp.org>
32504
32505         * lib/isapipe.c: Port to native Windows platforms.
32506
32507 2008-04-20  Bruno Haible  <bruno@clisp.org>
32508
32509         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
32510
32511 2008-04-21  Eric Blake  <ebb9@byu.net>
32512
32513         Work around preprocessors that don't handle UINTMAX_MAX.
32514         * lib/memchr2.c (memchr2): Avoid embedded #if.
32515         Reported by Alain Guibert, fix suggested by Bruno Haible.
32516
32517 2008-04-21  Simon Josefsson  <simon@josefsson.org>
32518
32519         * doc/posix-functions/strftime.texi (strftime): Explain better
32520         Windows incompatibility.  Suggested by Micah Cowan
32521         <micah@cowan.name>.
32522
32523 2008-04-20  Bruno Haible  <bruno@clisp.org>
32524
32525         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
32526         unistr/u8-mblen.
32527
32528 2008-04-20  Bruno Haible  <bruno@clisp.org>
32529
32530         Fix test failure on platforms with non-GNU iconv.
32531         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
32532         (U_TO_U8): Use it, rather than u16_to_u8.
32533         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
32534         units at the end of the input string.
32535         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
32536
32537 2008-04-20  Bruno Haible  <bruno@clisp.org>
32538
32539         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
32540         when the resulting length is 0.
32541         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
32542
32543 2008-04-20  Bruno Haible  <bruno@clisp.org>
32544
32545         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
32546         works.
32547         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
32548
32549 2008-04-20  Bruno Haible  <bruno@clisp.org>
32550
32551         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
32552         * modules/tsearch-tests (configure.ac): Test for initstate function.
32553
32554 2008-04-20  Bruno Haible  <bruno@clisp.org>
32555
32556         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
32557         for nlink_t if missing.
32558         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
32559
32560 2008-04-19  Bruno Haible  <bruno@clisp.org>
32561
32562         Work around snprintf bug on Linux libc5.
32563         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
32564         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
32565         gl_SNPRINTF_SIZE1.
32566         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
32567         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
32568         that test failed.
32569         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
32570         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
32571         * modules/snprintf (Files): Add m4/printf.m4.
32572         * modules/vsnprintf (Files): Likewise.
32573         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
32574         * doc/posix-functions/vsnprintf.texi: Likewise.
32575
32576 2008-04-19  Bruno Haible  <bruno@clisp.org>
32577
32578         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
32579         from 0.0058 to less than 10^-7.
32580
32581 2008-04-19  Bruno Haible  <bruno@clisp.org>
32582
32583         Fix rounding when a precision is given.
32584         * lib/vasnprintf.c (is_borderline): New function.
32585         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
32586         9...9x.
32587         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
32588         %e, %g.
32589         * tests/test-vasprintf-posix.c (test_function): Likewise.
32590         * tests/test-snprintf-posix.h (test_function): Likewise.
32591         * tests/test-sprintf-posix.h (test_function): Likewise.
32592         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
32593         * tests/test-printf-posix.h (test_function): Likewise.
32594         * tests/test-printf-posix.output: Update.
32595         Reported by John Darrington <john@darrington.wattle.id.au> via
32596         Ben Pfaff <blp@cs.stanford.edu>.
32597
32598 2008-04-18  Simon Josefsson  <simon@josefsson.org>
32599
32600         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
32601         Suggested by Bruno Haible <bruno@clisp.org>.
32602
32603 2008-04-17  Bruno Haible  <bruno@clisp.org>
32604
32605         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
32606         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
32607         implementation.
32608         Patch by Bruce Merry <bmerry@gmail.com>.
32609
32610 2008-04-17  Simon Josefsson  <simon@josefsson.org>
32611
32612         * doc/posix-functions/strftime.texi (strftime): Mention that %e
32613         doesn't work under Windows.
32614
32615 2008-04-16  Bruno Haible  <bruno@clisp.org>
32616
32617         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
32618         New macros.
32619         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
32620         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
32621         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
32622         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
32623         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
32624         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
32625         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
32626         macros.
32627         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
32628         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
32629         Northern Sotho, Uighur.
32630
32631 2008-04-16  Bruno Haible  <bruno@clisp.org>
32632
32633         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
32634         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
32635         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
32636         Reported by Daniel Bergström <daniel@octocode.com>.
32637
32638 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
32639             Bruno Haible  <bruno@clisp.org>
32640
32641         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
32642         function.
32643         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
32644         New functions, mostly extracted from gl_locale_name_default.
32645         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
32646
32647 2008-04-16  Eric Blake  <ebb9@byu.net>
32648
32649         Adjust strtod detection to catch glibc 2.7 bug.
32650         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
32651         Reported by John Gatewood Ham.
32652
32653 2008-04-16  Bruno Haible  <bruno@clisp.org>
32654
32655         Add tentative support for Linux libc5.
32656         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
32657         * lib/fpurge.c (fpurge): Likewise.
32658         * lib/freadable.c (freadable): Likewise.
32659         * lib/freadahead.c (freadahead): Likewise.
32660         * lib/freading.c (freading): Likewise.
32661         * lib/freadptr.c (freadptr): Likewise.
32662         * lib/freadseek.c (freadptrinc): Likewise.
32663         * lib/fseeko.c (rpl_fseeko): Likewise.
32664         * lib/fseterr.c (fseterr): Likewise.
32665         * lib/fwritable.c (fwritable): Likewise.
32666         * lib/fwriting.c (fwriting): Likewise.
32667         Reported by Alain Guibert <alguibert+bts@free.fr>.
32668
32669 2008-04-15  Bruno Haible  <bruno@clisp.org>
32670
32671         * modules/mathl (configure.ac): Define module indicator.
32672
32673 2008-04-15  Bruno Haible  <bruno@clisp.org>
32674
32675         * lib/logl.c (logl): Remove unused variables.
32676
32677 2008-04-15  Bruno Haible  <bruno@clisp.org>
32678
32679         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
32680         fails.
32681
32682 2008-04-15  Bruno Haible  <bruno@clisp.org>
32683
32684         * lib/trim.c (trim2): Fix argument of isspace() macro.
32685
32686 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
32687
32688         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
32689         to 0.
32690         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
32691
32692 2008-04-14  Bruno Haible  <bruno@clisp.org>
32693
32694         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
32695         AC_LANG_PROGRAM argument.
32696         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
32697         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
32698         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
32699         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
32700         * m4/math_h.m4 (gl_MATH_H): Likewise.
32701         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
32702         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
32703         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
32704         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
32705         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
32706         * m4/regex.m4 (gl_REGEX): Likewise.
32707         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
32708         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
32709         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
32710         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
32711         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
32712         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
32713         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
32714         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
32715
32716 2008-04-14  Jim Meyering  <meyering@redhat.com>
32717
32718         test-strtod: fix typos: s/abs/fabs/
32719         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
32720
32721 2008-04-13  Bruno Haible  <bruno@clisp.org>
32722
32723         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
32724         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
32725         module is also used and while not building the reloc-wrapper.
32726
32727 2008-04-13  Bruno Haible  <bruno@clisp.org>
32728
32729         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
32730
32731 2008-04-13  Bruno Haible  <bruno@clisp.org>
32732
32733         Fix AIX compilation failure introduced on 2008-04-02.
32734         * tests/test-frexp.c (exp): Undefine before redefining.
32735         * tests/test-frexpl.c (exp): Likewise.
32736
32737 2008-04-13  Bruno Haible  <bruno@clisp.org>
32738
32739         Work around a HP-UX stdio bug.
32740         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
32741         * tests/test-ftello.c (main): Likewise.
32742         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
32743         * doc/posix-functions/ftello.texi: Likewise.
32744
32745 2008-04-13  Bruno Haible  <bruno@clisp.org>
32746
32747         Make test-signbit pass on HP-UX/hppa.
32748         * tests/test-signbit.c (minus_zerol): New variable.
32749         (test_signbitl): Use it.
32750
32751 2008-04-13  Bruno Haible  <bruno@clisp.org>
32752
32753         Make truncl work on OSF/1 4.0.
32754         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
32755         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
32756         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
32757         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
32758         HAVE_DECL_TRUNCL.
32759         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
32760         HAVE_DECL_TRUNCL.
32761         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
32762
32763 2008-04-13  Bruno Haible  <bruno@clisp.org>
32764
32765         * lib/unictype.h: Remove trailing comma from enumeration definitions.
32766
32767 2008-04-13  Bruno Haible  <bruno@clisp.org>
32768
32769         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
32770         expression, so as to avoid HP-UX 11 cc compiler bug.
32771
32772 2008-04-13  Bruno Haible  <bruno@clisp.org>
32773
32774         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
32775
32776 2008-04-13  Bruno Haible  <bruno@clisp.org>
32777
32778         * lib/git-merge-changelog.c: Remove empty declaration outside of
32779         functions.
32780
32781 2008-04-13  Bruno Haible  <bruno@clisp.org>
32782
32783         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
32784
32785 2008-04-13  Bruno Haible  <bruno@clisp.org>
32786
32787         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
32788         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
32789         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
32790         also if it exists but lacks definitions of the SHUT_* macros.
32791         * modules/sys_socket (Description): Update.
32792         Reported by Elbert Pol <e.pol@chello.nl>.
32793
32794 2008-04-13  Bruno Haible  <bruno@clisp.org>
32795
32796         * lib/localcharset.c (OS2): Don't redefine if already defined.
32797         Reported by Elbert Pol <e.pol@chello.nl>.
32798
32799 2008-04-13  Bruno Haible  <bruno@clisp.org>
32800
32801         * lib/binary-io.h [__EMX__]: Include <io.h>.
32802         Reported by Elbert Pol <e.pol@chello.nl>.
32803
32804 2008-04-12  Bruno Haible  <bruno@clisp.org>
32805
32806         * lib/fpucw.h: Enable the definitions also for x86_64.
32807         Needed for NetBSD/x86_64.
32808         Reported by Thomas Klausner <tk@giga.or.at>.
32809
32810 2008-04-12  Bruno Haible  <bruno@clisp.org>
32811
32812         * tests/test-strtod.c: Include isnand.h.
32813         (main): Use isnand instead of isnan.
32814         Reported by Jim Meyering.
32815
32816 2008-04-12  Bruno Haible  <bruno@clisp.org>
32817
32818         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
32819         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
32820
32821 2008-04-12  Jim Meyering  <meyering@redhat.com>
32822
32823         * m4/math_h.m4 (gl_MATH_H): Fix typos.
32824
32825 2008-04-12  Bruno Haible  <bruno@clisp.org>
32826
32827         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
32828         Reported by Elbert Pol <e.pol@chello.nl>.
32829
32830 2008-04-12  Eric Blake  <ebb9@byu.net>
32831
32832         Work around Solaris 10 math.h bug.
32833         * m4/math_h.m4 (gl_MATH_H): Check for bug.
32834         (gl_MATH_H_DEFAULTS): Set up default.
32835         * modules/math (Makefile.am): Replace new indicators.
32836         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
32837         * tests/test-math.c (main): Test this.
32838         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
32839         * doc/posix-headers/math.texi (math.h): Mention bug.
32840         Reported by Nelson H. F. Beebe and Jim Meyering.
32841
32842 2008-04-11  Bruno Haible  <bruno@clisp.org>
32843
32844         Adapt to future versions of Apple GCC.
32845         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
32846         Reported by Peter O'Gorman <peter@pogma.com>.
32847
32848 2008-04-11  Bruno Haible  <bruno@clisp.org>
32849
32850         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
32851
32852 2008-04-11  Bruno Haible  <bruno@clisp.org>
32853
32854         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
32855
32856         * modules/getaddrinfo-tests (Makefile.am): Define
32857         test_getaddrinfo_LDADD.
32858
32859 2008-04-11  Bruno Haible  <bruno@clisp.org>
32860
32861         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
32862         (init): Fix syntax error.
32863         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
32864         is declared.
32865
32866 2008-04-11  Bruno Haible  <bruno@clisp.org>
32867
32868         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
32869         * modules/glob (Depends-on): Add stdbool.
32870
32871 2008-04-11  Bruno Haible  <bruno@clisp.org>
32872
32873         * lib/trim.c: Include <string.h>.
32874
32875 2008-04-11  Eric Blake  <ebb9@byu.net>
32876
32877         Avoid compile failure on OS/2.
32878         * lib/regex_internal.h (internal_function): Disable optimization
32879         on OS/2 (__EMX__), where it caused compiler error.
32880         Reported by Elbert Pol.
32881
32882 2008-04-11  Bruno Haible  <bruno@clisp.org>
32883
32884         Flush the standard error stream before aborting. Needed on mingw.
32885         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
32886         * tests/test-array_list.c (ASSERT): Likewise.
32887         * tests/test-array_oset.c (ASSERT): Likewise.
32888         * tests/test-avltree_list.c (ASSERT): Likewise.
32889         * tests/test-avltree_oset.c (ASSERT): Likewise.
32890         * tests/test-avltreehash_list.c (ASSERT): Likewise.
32891         * tests/test-binary-io.c (ASSERT): Likewise.
32892         * tests/test-byteswap.c (ASSERT): Likewise.
32893         * tests/test-c-ctype.c (ASSERT): Likewise.
32894         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
32895         * tests/test-c-strcasestr.c (ASSERT): Likewise.
32896         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
32897         * tests/test-c-strstr.c (ASSERT): Likewise.
32898         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
32899         * tests/test-canonicalize.c (ASSERT): Likewise.
32900         * tests/test-carray_list.c (ASSERT): Likewise.
32901         * tests/test-ceilf1.c (ASSERT): Likewise.
32902         * tests/test-ceilf2.c (ASSERT): Likewise.
32903         * tests/test-ceill.c (ASSERT): Likewise.
32904         * tests/test-count-one-bits.c (ASSERT): Likewise.
32905         * tests/test-fbufmode.c (ASSERT): Likewise.
32906         * tests/test-fflush2.c (ASSERT): Likewise.
32907         * tests/test-floorf1.c (ASSERT): Likewise.
32908         * tests/test-floorf2.c (ASSERT): Likewise.
32909         * tests/test-floorl.c (ASSERT): Likewise.
32910         * tests/test-fopen.c (ASSERT): Likewise.
32911         * tests/test-fpending.c (ASSERT): Likewise.
32912         * tests/test-fprintf-posix.c (ASSERT): Likewise.
32913         * tests/test-fpurge.c (ASSERT): Likewise.
32914         * tests/test-freadable.c (ASSERT): Likewise.
32915         * tests/test-freadahead.c (ASSERT): Likewise.
32916         * tests/test-freading.c (ASSERT): Likewise.
32917         * tests/test-freadptr.c (ASSERT): Likewise.
32918         * tests/test-freadptr2.c (ASSERT): Likewise.
32919         * tests/test-freadseek.c (ASSERT): Likewise.
32920         * tests/test-freopen.c (ASSERT): Likewise.
32921         * tests/test-frexp.c (ASSERT): Likewise.
32922         * tests/test-frexpl.c (ASSERT): Likewise.
32923         * tests/test-fseek.c (ASSERT): Likewise.
32924         * tests/test-fseeko.c (ASSERT): Likewise.
32925         * tests/test-fstrcmp.c (ASSERT): Likewise.
32926         * tests/test-ftell.c (ASSERT): Likewise.
32927         * tests/test-ftello.c (ASSERT): Likewise.
32928         * tests/test-func.c (ASSERT): Likewise.
32929         * tests/test-fwritable.c (ASSERT): Likewise.
32930         * tests/test-fwriting.c (ASSERT): Likewise.
32931         * tests/test-getdelim.c (ASSERT): Likewise.
32932         * tests/test-getline.c (ASSERT): Likewise.
32933         * tests/test-i-ring.c (ASSERT): Likewise.
32934         * tests/test-iconv-utf.c (ASSERT): Likewise.
32935         * tests/test-iconv.c (ASSERT): Likewise.
32936         * tests/test-isfinite.c (ASSERT): Likewise.
32937         * tests/test-isnand.c (ASSERT): Likewise.
32938         * tests/test-isnanf.c (ASSERT): Likewise.
32939         * tests/test-isnanl.h (ASSERT): Likewise.
32940         * tests/test-ldexpl.c (ASSERT): Likewise.
32941         * tests/test-linked_list.c (ASSERT): Likewise.
32942         * tests/test-linkedhash_list.c (ASSERT): Likewise.
32943         * tests/test-localename.c (ASSERT): Likewise.
32944         * tests/test-lseek.c (ASSERT): Likewise.
32945         * tests/test-mbscasecmp.c (ASSERT): Likewise.
32946         * tests/test-mbscasestr1.c (ASSERT): Likewise.
32947         * tests/test-mbscasestr2.c (ASSERT): Likewise.
32948         * tests/test-mbscasestr3.c (ASSERT): Likewise.
32949         * tests/test-mbscasestr4.c (ASSERT): Likewise.
32950         * tests/test-mbschr.c (ASSERT): Likewise.
32951         * tests/test-mbscspn.c (ASSERT): Likewise.
32952         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
32953         * tests/test-mbspbrk.c (ASSERT): Likewise.
32954         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
32955         * tests/test-mbsrchr.c (ASSERT): Likewise.
32956         * tests/test-mbsspn.c (ASSERT): Likewise.
32957         * tests/test-mbsstr1.c (ASSERT): Likewise.
32958         * tests/test-mbsstr2.c (ASSERT): Likewise.
32959         * tests/test-mbsstr3.c (ASSERT): Likewise.
32960         * tests/test-memchr2.c (ASSERT): Likewise.
32961         * tests/test-memmem.c (ASSERT): Likewise.
32962         * tests/test-open.c (ASSERT): Likewise.
32963         * tests/test-printf-frexp.c (ASSERT): Likewise.
32964         * tests/test-printf-frexpl.c (ASSERT): Likewise.
32965         * tests/test-printf-posix.c (ASSERT): Likewise.
32966         * tests/test-quotearg.c (ASSERT): Likewise.
32967         * tests/test-rbtree_list.c (ASSERT): Likewise.
32968         * tests/test-rbtree_oset.c (ASSERT): Likewise.
32969         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
32970         * tests/test-round1.c (ASSERT): Likewise.
32971         * tests/test-roundf1.c (ASSERT): Likewise.
32972         * tests/test-roundl.c (ASSERT): Likewise.
32973         * tests/test-signbit.c (ASSERT): Likewise.
32974         * tests/test-sleep.c (ASSERT): Likewise.
32975         * tests/test-snprintf-posix.c (ASSERT): Likewise.
32976         * tests/test-snprintf.c (ASSERT): Likewise.
32977         * tests/test-sprintf-posix.c (ASSERT): Likewise.
32978         * tests/test-stat-time.c (ASSERT): Likewise.
32979         * tests/test-strcasestr.c (ASSERT): Likewise.
32980         * tests/test-strerror.c (ASSERT): Likewise.
32981         * tests/test-striconv.c (ASSERT): Likewise.
32982         * tests/test-striconveh.c (ASSERT): Likewise.
32983         * tests/test-striconveha.c (ASSERT): Likewise.
32984         * tests/test-strsignal.c (ASSERT): Likewise.
32985         * tests/test-strstr.c (ASSERT): Likewise.
32986         * tests/test-strtod.c (ASSERT): Likewise.
32987         * tests/test-trunc1.c (ASSERT): Likewise.
32988         * tests/test-trunc2.c (ASSERT): Likewise.
32989         * tests/test-truncf1.c (ASSERT): Likewise.
32990         * tests/test-truncf2.c (ASSERT): Likewise.
32991         * tests/test-truncl.c (ASSERT): Likewise.
32992         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
32993         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
32994         * tests/test-vasnprintf.c (ASSERT): Likewise.
32995         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
32996         * tests/test-vasprintf.c (ASSERT): Likewise.
32997         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
32998         * tests/test-vprintf-posix.c (ASSERT): Likewise.
32999         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
33000         * tests/test-vsnprintf.c (ASSERT): Likewise.
33001         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
33002         * tests/test-wcwidth.c (ASSERT): Likewise.
33003         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
33004         * tests/test-xprintf-posix.c (ASSERT): Likewise.
33005         * tests/test-xvasprintf.c (ASSERT): Likewise.
33006         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
33007         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
33008         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
33009         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
33010         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
33011         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
33012         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
33013         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
33014         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
33015         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
33016         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
33017         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
33018         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
33019         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
33020         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
33021         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
33022         * tests/unictype/test-block_list.c (ASSERT): Likewise.
33023         * tests/unictype/test-block_of.c (ASSERT): Likewise.
33024         * tests/unictype/test-block_test.c (ASSERT): Likewise.
33025         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
33026         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
33027         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
33028         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
33029         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
33030         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
33031         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
33032         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
33033         * tests/unictype/test-combining.c (ASSERT): Likewise.
33034         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
33035         * tests/unictype/test-digit.c (ASSERT): Likewise.
33036         * tests/unictype/test-mirror.c (ASSERT): Likewise.
33037         * tests/unictype/test-numeric.c (ASSERT): Likewise.
33038         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
33039         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
33040         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
33041         * tests/unictype/test-scripts.c (ASSERT): Likewise.
33042         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
33043         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
33044         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
33045         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
33046         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
33047         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
33048         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
33049         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
33050         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
33051         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
33052         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
33053         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
33054         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
33055         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
33056         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
33057         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
33058         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
33059         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
33060         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
33061         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
33062         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
33063         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
33064         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
33065         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
33066         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
33067         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
33068         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
33069         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
33070         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
33071         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
33072         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
33073         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
33074         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
33075         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
33076         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
33077         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
33078         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
33079         Reported by Eric Blake.
33080
33081 2008-04-11  Bruno Haible  <bruno@clisp.org>
33082
33083         * lib/wchar.in.h: Tweak comment.
33084
33085 2008-04-11  Bruno Haible  <bruno@clisp.org>
33086
33087         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
33088         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
33089         gl_COMMON.
33090         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
33091
33092 2008-04-11  Bruno Haible  <bruno@clisp.org>
33093
33094         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
33095
33096 2008-04-11  Simon Josefsson  <simon@josefsson.org>
33097
33098         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
33099         of attempting to use non-existing /dev/*random.  Based on patch
33100         from Adam Strzelecki <ono@java.pl> in
33101         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
33102
33103 2008-04-08  Bruno Haible  <bruno@clisp.org>
33104
33105         Add tentative support for emx+gcc.
33106         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
33107         * lib/fpurge.c (fpurge): Likewise.
33108         * lib/freadable.c (freadable): Likewise.
33109         * lib/freadahead.c (freadahead): Likewise.
33110         * lib/freading.c (freading): Likewise.
33111         * lib/freadptr.c (freadptr): Likewise.
33112         * lib/freadseek.c (freadptrinc): Likewise.
33113         * lib/fseeko.c (rpl_fseeko): Likewise.
33114         * lib/fseterr.c (fseterr): Likewise.
33115         * lib/fwritable.c (fwritable): Likewise.
33116         * lib/fwriting.c (fwriting): Likewise.
33117         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
33118
33119 2008-04-09  Eric Blake  <ebb9@byu.net>
33120
33121         Avoid some autoconf warnings.
33122         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
33123         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
33124         * m4/afs.m4 (gl_AFS): Likewise.
33125         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
33126         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
33127         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
33128         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
33129         (gl_INTEGER_TYPE_SUFFIX): Likewise.
33130         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
33131         (AC_CHECK_DECLS_ONCE): Likewise.
33132         Rename file...
33133         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
33134         gnulib-tool requires autoconf 2.59 or better.
33135         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
33136
33137 2008-04-08  Eric Blake  <ebb9@byu.net>
33138
33139         Use 'git describe --match' if present (added in git 1.5.5).
33140         * build-aux/git-version-gen: Limit result to tags that match 'v*'
33141         if possible.
33142
33143 2008-04-08  Bruno Haible  <bruno@clisp.org>
33144
33145         Add tentative support for OpenServer.
33146         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
33147         _ptr, _cnt.
33148         * lib/fpurge.c (fpurge): Likewise.
33149         * lib/freadable.c (freadable): Likewise.
33150         * lib/freadahead.c (freadahead): Likewise.
33151         * lib/freading.c (freading): Likewise.
33152         * lib/freadptr.c (freadptr): Likewise.
33153         * lib/freadseek.c (freadptrinc): Likewise.
33154         * lib/fseeko.c (rpl_fseeko): Likewise.
33155         * lib/fseterr.c (fseterr): Likewise.
33156         * lib/fwritable.c (fwritable): Likewise.
33157         * lib/fwriting.c (fwriting): Likewise.
33158         Reported by Roger Cornelius <rac@tenzing.org> and
33159         Brian K. White <brian@aljex.com>.
33160
33161 2008-04-06  Jim Meyering  <meyering@redhat.com>
33162
33163         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
33164
33165 2008-04-06  Bruno Haible  <bruno@clisp.org>
33166
33167         Avoid possible error with non-ASCII bytes in UTF-8 locales.
33168         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
33169         * tests/test-printf-posix.sh: Likewise.
33170         * tests/test-vfprintf-posix.sh: Likewise.
33171         * tests/test-vprintf-posix.sh: Likewise.
33172         * tests/test-xprintf-posix.sh: Likewise.
33173
33174 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33175
33176         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
33177         hide error from 'ls', needed on OS/2.
33178         Report by Elbert Pol <elbert.pol@gmail.com>.
33179
33180 2008-04-04  Eric Blake  <ebb9@byu.net>
33181
33182         Make test-fseeko.c failures meaningful.
33183         * tests/test-fseeko.c: Print line number on failure.
33184         * tests/test-fseek.c: Likewise.
33185         Reported by Nelson H. F. Beebe.
33186
33187         Improve strtod bug detection check.
33188         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
33189         required for Solaris 10.
33190         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
33191
33192 2008-04-04  Bruno Haible  <bruno@clisp.org>
33193
33194         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
33195         by m4/setenv.m4.
33196
33197 2008-04-03  Eric Blake  <ebb9@byu.net>
33198
33199         Ensure sane .version contents.
33200         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
33201         version string.
33202         * build-aux/git-version-gen: Improve documentation.
33203
33204         Make GNU make output nicer.
33205         * top/GNUmakefile [!_have-Makefile]: Add dependency on
33206         MAKECMDGOALS to enforce message for all command line targets.  Set
33207         srcdir for use in maint.mk.
33208
33209         Another maintainer tweak.
33210         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
33211         a target that regenerates version.
33212
33213 2008-04-03  Jim Meyering  <meyering@redhat.com>
33214
33215         vc-list-files: don't cause coreutils "make po-check" failure
33216         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
33217
33218 2008-04-03  Eric Blake  <ebb9@byu.net>
33219
33220         Allow VPATH usage of vc-list-files.
33221         * build-aux/vc-list-files (scriptversion): Add timestamp.
33222         (options): Add --help, --version, -C.
33223         (CVS): Support installed cvsu.
33224
33225 2008-04-02  Bruno Haible  <bruno@clisp.org>
33226
33227         Avoid some "statement with no effect" warnings from gcc.
33228         * tests/test-wctype.c (main): Explicitly ignore unused values.
33229         Reported by Jim Meyering.
33230
33231 2008-04-02  Jim Meyering  <meyering@redhat.com>
33232
33233         Avoid some warnings from "gcc -Wshadow".
33234         * tests/test-frexp.c (exp): Define to a different identifier.
33235         * tests/test-frexpl.c (exp): Likewise.
33236
33237 2008-04-03  Jim Meyering  <meyering@redhat.com>
33238
33239         bootstrap: remove dangling *.[ch] symlinks from lib
33240         * build-aux/bootstrap [dangling symlink removal]: Move find's
33241         -depth option to precede all others, to avoid a warning.
33242         Remove *.[ch] files too, and from "$source_base" (usually lib/).
33243
33244 2008-04-02  Bruno Haible  <bruno@clisp.org>
33245
33246         Avoid some warnings from "gcc -Wshadow".
33247         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
33248         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
33249         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
33250         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
33251         Reported by Jim Meyering.
33252
33253 2008-04-01  Bruno Haible  <bruno@clisp.org>
33254
33255         Fix test to work on IRIX 6.5 with cc.
33256         * tests/test-math.c (numeric_equal): New function.
33257         (main): Use it.
33258
33259 2008-04-01  Bruno Haible  <bruno@clisp.org>
33260
33261         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
33262
33263 2008-04-01  Bruno Haible  <bruno@clisp.org>
33264
33265         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
33266         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
33267         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
33268         (Depends-on): Remove math.
33269
33270         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
33271         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
33272         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
33273         (Depends-on): Remove math.
33274
33275         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
33276         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
33277         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
33278         (Depends-on): Remove math.
33279         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
33280         (Depends-on): Remove math.
33281
33282         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
33283         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
33284         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
33285         (Depends-on): Remove math.
33286         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
33287         (Depends-on): Remove math.
33288
33289         * tests/test-round1.c: Include nan.h.
33290         (main): Use NaNd instead of NAN.
33291         * modules/round-tests (Files): Add tests/nan.h.
33292
33293         * tests/test-trunc1.c: Include nan.h.
33294         (main): Use NaNd instead of NAN.
33295         * modules/trunc-tests (Files): Add tests/nan.h.
33296
33297         * tests/test-roundf1.c: Include nan.h.
33298         (main): Use NaNf instead of NAN.
33299         * modules/roundf-tests (Files): Add tests/nan.h.
33300
33301         * tests/test-truncf1.c: Include nan.h.
33302         (main): Use NaNf instead of NAN.
33303         * modules/truncf-tests (Files): Add tests/nan.h.
33304
33305         * tests/test-ceilf1.c: Include nan.h.
33306         (main): Use NaNf instead of NAN.
33307         * modules/ceilf-tests (Files): Add tests/nan.h.
33308
33309         * tests/test-floorf1.c: Include nan.h.
33310         (main): Use NaNf instead of NAN.
33311         * modules/floorf-tests (Files): Add tests/nan.h.
33312
33313         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
33314         (main): Use NaNf instead of NAN.
33315         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
33316
33317         * tests/test-isnand.c: Include nan.h instead of <math.h>.
33318         (main): Use NaNd instead of NAN.
33319         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
33320
33321         * tests/test-frexp.c: Include nan.h.
33322         (main): Use NaNd instead of NAN.
33323         * modules/frexp-tests (Files): Add tests/nan.h.
33324
33325         * lib/isnan.c: Don't include <math.h>.
33326         (FUNC): Don't use NAN macro.
33327         * modules/isnand-nolibm (Depends-on): Remove math.
33328         * modules/isnanf-nolibm (Depends-on): Remove math.
33329         * modules/isnanl (Depends-on): Remove math.
33330         * modules/isnanl-nolibm (Depends-on): Remove math.
33331
33332         * tests/nan.h: New file.
33333
33334 2008-04-01  Eric Blake  <ebb9@byu.net>
33335
33336         Fix typos.
33337         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
33338         values to be the right type.
33339
33340         For now, cater to gnulib strtod inaccuracies.
33341         * tests/test-strtod.c (main): Allow 1-ulp error on expected
33342         fractional results.  While not as nice from a QoI perspective, it
33343         is a quicker patch than correctly implementing decimal to binary
33344         rounding.
33345
33346 2008-03-31  Eric Blake  <ebb9@byu.net>
33347
33348         Guarantee a definition of NAN.
33349         * lib/math.in.h (NAN): Define if missing.
33350         * tests/test-math.c (main): Test it.
33351         * doc/posix-headers/math.texi (math.h): Document this.
33352         * lib/isnan.c (rpl_isnand): Use it.
33353         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
33354         * tests/test-floorf1.c (NaN): Likewise.
33355         * tests/test-frexp.c (NaN): Likewise.
33356         * tests/test-isnand.c (NaN): Likewise.
33357         * tests/test-isnanf.c (NaN): Likewise.
33358         * tests/test-round1.c (NaN): Likewise.
33359         * tests/test-roundf1.c (NaN): Likewise.
33360         * tests/test-snprintf-posix.h (NaN): Likewise.
33361         * tests/test-sprintf-posix.h (NaN): Likewise.
33362         * tests/test-trunc1.c (NaN): Likewise.
33363         * tests/test-truncf1.c (NaN): Likewise.
33364         * tests/test-vasnprintf-posix.c (NaN): Likewise.
33365         * tests/test-vasprintf-posix.c (NaN): Likewise.
33366         * modules/isnand-nolibm (Depends-on): Add math.
33367         * modules/isnanf-nolibm (Depends-on): Likewise.
33368         * modules/isnanl (Depends-on): Likewise.
33369         * modules/isnanl-nolibm (Depends-on): Likewise.
33370         * modules/snprintf-posix-tests (Depends-on): Likewise.
33371         * modules/sprintf-posix-tests (Depends-on): Likewise.
33372         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
33373         * modules/vsprintf-posix-tests (Depends-on): Likewise.
33374         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
33375         * modules/vasprintf-posix-tests (Depends-on): Likewise.
33376
33377 2008-03-31  Bruno Haible  <bruno@clisp.org>
33378
33379         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
33380         * doc/posix-functions/strtod.texi: Likewise.
33381
33382 2008-03-31  Bruno Haible  <bruno@clisp.org>
33383
33384         * tests/test-strtod.c (main): Don't use C99 syntax.
33385
33386 2008-03-31  Bruno Haible  <bruno@clisp.org>
33387
33388         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
33389         Reported by Eric Blake.
33390
33391 2008-03-31  Jim Meyering  <meyering@redhat.com>
33392
33393         Don't compare actual signbit return values.
33394         * tests/test-strtod.c (main): Rather, compare only their
33395         zero/non-zero nature.
33396
33397 2008-03-31  Eric Blake  <ebb9@byu.net>
33398
33399         More strtod documentation.
33400         * doc/posix-functions/strtod.texi (strtod): Interpret more test
33401         failures as distinct bugs.
33402
33403 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
33404
33405         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
33406         Problem reported by Erik Benada in
33407         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
33408
33409 2008-03-30  Bruno Haible  <bruno@clisp.org>
33410
33411         * tests/test-strtod.c: Add comments about which assertion fails on which
33412         platform.
33413         * doc/posix-functions/strtod.texi: Add info about many more platforms.
33414
33415 2008-03-30  Eric Blake  <ebb9@byu.net>
33416
33417         Test signbit behavior on zeros.
33418         * tests/test-signbit.c (test_signbitf): Add tests for zero.
33419         (test_signbitd, test_signbitl): Likewise.
33420
33421         More strtod touchups.
33422         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
33423         sign of negative underflow, for now.  Use .5, not .1.
33424         * doc/posix-functions/strtod.texi (strtod): Mention these
33425         limitations.
33426         Reported by Jim Meyering.
33427
33428 2008-03-30  Bruno Haible  <bruno@clisp.org>
33429
33430         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
33431         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
33432
33433 2008-03-30  Bruno Haible  <bruno@clisp.org>
33434
33435         Avoid failure when attempting to return empty iconv results on some
33436         platforms.
33437         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
33438         allocation, don't report ENOMEM when the resulting string is empty.
33439
33440 2008-03-30  Bruno Haible  <bruno@clisp.org>
33441
33442         Fix buffer overrun.
33443         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
33444         Don't consider the width for tmp_length. Check count against tmp_length
33445         before doing the padding. Ensure enough allocation during padding.
33446
33447 2008-03-30  Eric Blake  <ebb9@byu.net>
33448
33449         strtod touchups.
33450         * lib/strtod.c (strtod): Avoid compiler warnings.
33451         Reported by Jim Meyering.
33452
33453 2008-03-30  Bruno Haible  <bruno@clisp.org>
33454
33455         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
33456         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
33457         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
33458         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
33459         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
33460         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
33461         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
33462         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
33463
33464         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
33465         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
33466         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
33467         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
33468         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
33469         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
33470         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
33471         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
33472
33473         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
33474         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
33475         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
33476         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
33477         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
33478         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
33479         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
33480         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
33481
33482         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
33483         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
33484
33485         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
33486         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
33487
33488         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
33489         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
33490
33491         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
33492         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
33493         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
33494
33495         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
33496         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
33497         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
33498
33499         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
33500         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
33501         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
33502
33503         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
33504         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
33505         * modules/vasprintf (Depends-on): Add EOVERFLOW.
33506
33507         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
33508         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
33509         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
33510         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
33511         (Depends-on): Add EOVERFLOW.
33512         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
33513         (Depends-on): Add EOVERFLOW.
33514         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
33515         (Depends-on): Add EOVERFLOW.
33516         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
33517         (Depends-on): Add EOVERFLOW.
33518         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
33519         (Depends-on): Add EOVERFLOW.
33520         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
33521         (Depends-on): Add EOVERFLOW.
33522         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
33523         (Depends-on): Add EOVERFLOW.
33524         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
33525         (Depends-on): Add EOVERFLOW.
33526
33527         * lib/sprintf.c (EOVERFLOW): Remove fallback.
33528         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
33529         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
33530
33531         * lib/snprintf.c (EOVERFLOW): Remove fallback.
33532         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
33533         * modules/snprintf (Depends-on): Add EOVERFLOW.
33534
33535         * lib/poll.c (EOVERFLOW): Remove fallback.
33536         * modules/poll (Depends-on): Add EOVERFLOW.
33537
33538         * lib/getugroups.c (EOVERFLOW): Remove fallback.
33539         * modules/getugroups (Depends-on): Add EOVERFLOW.
33540
33541         * lib/getdelim.c (EOVERFLOW): Remove fallback.
33542         * modules/getdelim (Depends-on): Add EOVERFLOW.
33543
33544         * lib/ftell.c (EOVERFLOW): Remove fallback.
33545         * modules/ftell (Depends-on): Add EOVERFLOW.
33546
33547         * lib/fprintf.c (EOVERFLOW): Remove fallback.
33548         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
33549         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
33550
33551         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
33552
33553         * modules/EOVERFLOW-tests: New file.
33554         * tests/test-EOVERFLOW.c: New file.
33555
33556         * modules/EOVERFLOW: New file.
33557         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
33558
33559 2008-03-30  Bruno Haible  <bruno@clisp.org>
33560
33561         Fix bug introduced on 2007-06-10.
33562         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
33563         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
33564
33565 2008-03-30  Bruno Haible  <bruno@clisp.org>
33566
33567         Improve freadseek's efficiency after ungetc.
33568         * lib/freadseek.c: Include freadahead.h.
33569         (freadptrinc): New function, extracted from freadseek.
33570         (freadseek): Use it in a loop. Use freadahead to determine the number
33571         of loop iterations.
33572         * modules/freadseek (Depends-on): Add freadahead.
33573         (configure.ac): Require AC_C_INLINE.
33574
33575 2008-03-30  Bruno Haible  <bruno@clisp.org>
33576
33577         * lib/freadseek.c (freadseek): Don't ignore the return value of
33578         freadptr.
33579
33580 2008-03-29  Eric Blake  <ebb9@byu.net>
33581
33582         Add hex float support.
33583         * modules/strtod (Depends-on): Add c-ctype.
33584         (Link): Mention POW_LIB.
33585         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
33586         whitespace between 'e' and exponent.
33587         * tests/test-strtod.c (main): Enable hex float tests.
33588         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
33589         now provides.
33590
33591         Document various strtod bugs, with some fixes.
33592         * doc/posix-functions/strtod.texi (strtod): Document bugs with
33593         "-0x", "inf", "nan", and hex constants.
33594         * doc/posix-functions/atof.texi (atof): Likewise.
33595         * modules/stdlib (Makefile.am): Support strtod.
33596         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
33597         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
33598         detect additional strtod bugs.
33599         * lib/stdlib.in.h (rpl_strtod): Add declarations.
33600         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
33601         bool where appropriate.  Parse 'inf' and 'nan'.
33602         * tests/test-strtod.c: New file.
33603         * modules/strtod (Depends-on): Add stdbool, stdlib.
33604         (configure.ac): Turn on module indicator.
33605         * modules/strtod-tests: New module.
33606
33607 2008-03-29  Eric Blake  <ebb9@byu.net>
33608
33609         Fix ftell on mingw.
33610         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
33611         * modules/ftell-tests (Depends-on): Add binary-io.
33612         * modules/ftello-tests (Depends-on): Likewise.
33613         * tests/test-ftell.c (main): Enhance test to cover behavior after
33614         ungetc.  Enforce binary mode.
33615         * tests/test-ftello.c (main): Likewise.
33616
33617         Pass test-freadseek on cygwin.
33618         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
33619         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
33620         ungetc buffer.
33621
33622         * tests/test-fflush2.c (main): Fix typo.
33623
33624 2008-03-29  Bruno Haible  <bruno@clisp.org>
33625
33626         * tests/test-fflush2.c (main): Temporarily disable the contents of
33627         this test.
33628         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
33629         Reported by Eric Blake.
33630
33631 2008-03-28  Simon Josefsson  <simon@josefsson.org>
33632
33633         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
33634         (GC_SHA224_DIGEST_SIZE): Add.
33635
33636         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
33637         (gc_hash_digest_length): Likewise.
33638         (gc_hash_buffer): Likewise.
33639
33640 2008-03-25  Bruno Haible  <bruno@clisp.org>
33641
33642         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
33643         detail which gettext release to use.
33644         Reported by Simon Josefsson.
33645
33646 2008-03-26  Jim Meyering  <meyering@redhat.com>
33647
33648         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
33649         * modules/gnumakefile (clean-GNUmakefile): Also, use
33650         test ... && ... || : syntax rather than if-then ... fi.
33651
33652         gnumakefile: Don't double-quote-expand $(VPATH) value.
33653         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
33654
33655 2008-03-24  Eric Blake  <ebb9@byu.net>
33656
33657         Alter GNUmakefile to install into top directory.
33658         * modules/maintainer-makefile: Split, and add dependency...
33659         * modules/gnumakefile: to this new module.
33660         * build-aux/GNUmakefile: Move...
33661         * top/GNUmakefile: ...here.
33662         * build-aux/maint.mk: Move...
33663         * top/maint.mk: ...here.
33664         * MODULES.html.sh (Support for maintaining...): Document new
33665         module.
33666
33667 2008-03-23  Bruno Haible  <bruno@clisp.org>
33668
33669         * gnulib-tool: New options --vc-files, --no-vc-files.
33670         (func_usage): Document them.
33671         (vc_files): New variable.
33672         (func_import): Consider vc_files.
33673         (func_create_testdir): Set vc_files to empty.
33674         Suggested by Jim Meyering and Karl Berry.
33675
33676 2008-03-23  Bruno Haible  <bruno@clisp.org>
33677
33678         Fix regex compilation error on HP-UX 11.
33679         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
33680         * modules/regex (Files): Add m4/mbstate_t.m4.
33681         Reported by Ton Voon <ton.voon@altinity.com>.
33682
33683 2008-03-23  Bruno Haible  <bruno@clisp.org>
33684
33685         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
33686
33687 2008-03-23  Eric Blake  <ebb9@byu.net>
33688             Bruno Haible  <bruno@clisp.org>
33689
33690         Install files from top/ in the destination directory.
33691         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
33692         augmentation also for the files from top/.
33693         (func_import, func_create_testdir): Rewrite file names:
33694         top/filename -> filename.
33695
33696 2008-03-23  Bruno Haible  <bruno@clisp.org>
33697
33698         Tweak "gnulib --version" output.
33699         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
33700
33701 2008-03-23  Bruno Haible  <bruno@clisp.org>
33702
33703         Tweak "gnulib --version" output.
33704         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
33705         rather than contents of ChangeLog, when possible.
33706
33707 2008-03-21  Eric Blake  <ebb9@byu.net>
33708
33709         More --version tweaks.
33710         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
33711         date of last ChangeLog entry.
33712
33713 2008-03-21  Jim Meyering  <meyering@redhat.com>
33714
33715         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
33716
33717 2008-03-20  Eric Blake  <ebb9@byu.net>
33718
33719         VPATH fix.
33720         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
33721
33722 2008-03-20  Simon Josefsson  <simon@josefsson.org>
33723
33724         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
33725         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
33726
33727 2008-03-20  Eric Blake  <ebb9@byu.net>
33728
33729         Sync GNUmakefile with coreutils.
33730         * build-aux/GNUmakefile (have-Makefile): Rename...
33731         (_have-Makefile): ...to this, for namespace consideration.
33732         (GNUmakefile.cfg): Include, if present.
33733         (_autoreconf): Define a default.
33734         (_is-dist-target): New rule for rebuilds to pick up intra-release
33735         version.
33736         (maint-cfg.mk): Rename...
33737         (cfg.mk): ...to this.
33738
33739 2008-03-18  Jim Meyering  <meyering@redhat.com>
33740
33741         New script and module: mktempd
33742         * MODULES.html.sh (maint+release support): Add mktempd.
33743         * build-aux/mktempd: New file.
33744         * modules/mktempd: New file.
33745
33746 2008-03-15  Jim Meyering  <meyering@redhat.com>
33747
33748         Undo last change.
33749         * lib/sha1.c, lib/md5.c: 63 != ~63.
33750         Reported by Andreas Schwab.
33751
33752         sha1.c, md5.c: Hoist a redundant expression.
33753         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
33754         "ctx->buflen" only once, before calling *_process_block.
33755         * lib/md5.c (md5_process_bytes): Likewise.
33756
33757 2008-03-14  Eric Blake  <ebb9@byu.net>
33758
33759         Bump copyright year in files generated by gnulib-tool.
33760         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
33761         gnulib-tool, rather than hard-coding it.
33762
33763         Fix 'gnulib-tool --version' output to work with git.
33764         * gnulib-tool (func_gnulib_dir): New function, extracted from...
33765         (startup): ...here.
33766         (func_version): Use it to invoke git-version-gen, rather than
33767         relying on CVS keyword expansion.  Modernize wording.
33768         (cvsdatestamp, last_checkin_date, version): Kill unused
33769         variables.
33770
33771 2008-03-12  Jim Meyering  <meyering@redhat.com>
33772
33773         Recognize optional cast of the argument to free.
33774         * build-aux/useless-if-before-free: Update regexps.
33775
33776         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
33777
33778 2008-03-11  Bruno Haible  <bruno@clisp.org>
33779
33780         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
33781         by a single package.
33782         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
33783         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
33784         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
33785         Reported by Sam Steingold <sds@gnu.org>.
33786
33787 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
33788
33789         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
33790         repositories.
33791
33792 2008-03-11  Bruno Haible  <bruno@clisp.org>
33793
33794         Avoid conflicts between local macro definitions.
33795         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
33796         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
33797
33798 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
33799             Bruno Haible  <bruno@clisp.org>
33800
33801         Make va_copy work with some version of xlc on AIX 5.1.
33802         * lib/stdarg.in.h: New file.
33803         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
33804         On AIX, use a <stdarg.h> file substitute.
33805         * modules/stdarg (Files): Add lib/stdarg.in.h.
33806         (Depends-on): Add include_next.
33807         (Makefile.am): Build a stdarg.h substitute if requested.
33808         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
33809
33810 2008-03-10  Bruno Haible  <bruno@clisp.org>
33811
33812         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
33813         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
33814         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
33815
33816 2008-03-10  Bruno Haible  <bruno@clisp.org>
33817
33818         * modules/stdlib (Depends-on): Add include_next, remove
33819         absolute-header.
33820
33821 2008-03-09  Bruno Haible  <bruno@clisp.org>
33822
33823         * lib/freadahead.h (freadahead): Document more precisely.
33824         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
33825         the sum of both buffer sizes.
33826         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
33827         * NEWS: Document the change.
33828
33829 2008-03-09  Bruno Haible  <bruno@clisp.org>
33830
33831         Extend freadptr to return also the buffer size.
33832         * lib/freadptr.h (freadptr): Add sizep argument.
33833         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
33834         (freadptr): Add sizep argument. Determine buffer size like freadahead
33835         does.
33836         * tests/test-freadptr.c: Don't include freadahead.h.
33837         (main): Adapt for new calling convention of freadptr.
33838         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
33839         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
33840         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
33841         tests/test-freadptr2.sh.
33842         (Depends): Remove freadahead.
33843         (TESTS): Add test-freadptr2.sh.
33844         (check_PROGRAMS): Add test-freadptr2.
33845
33846 2008-03-09  Bruno Haible  <bruno@clisp.org>
33847
33848         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
33849         Report and solution by Simon Josefsson.
33850
33851 2008-03-06  Bruno Haible  <bruno@clisp.org>
33852
33853         Make fflush after ungetc work on BSD platforms.
33854         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
33855         * tests/test-fflush2.c: New file.
33856         * tests/test-fflush2.sh: New file.
33857         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
33858         tests/test-fflush2.c.
33859         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
33860         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
33861
33862 2008-03-06  Eric Blake  <ebb9@byu.net>
33863
33864         Likewise for ftello.
33865         * modules/ftello (Dependencies): Add extensions.
33866         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
33867
33868 2008-03-06  Bruno Haible  <bruno@clisp.org>
33869
33870         * modules/fseeko (Dependencies): Add extensions.
33871         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
33872         Needed on glibc systems.
33873
33874 2008-03-06  Bruno Haible  <bruno@clisp.org>
33875
33876         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
33877         email address.
33878         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
33879
33880 2008-03-06  Bruno Haible  <bruno@clisp.org>
33881
33882         * users.txt: Add libgnupdf.
33883
33884 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
33885
33886         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
33887         (Header File Substitutes, Function Substitutes,
33888         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
33889         (Build robot for gnulib): Fix typo.
33890
33891 2008-03-06  Bruno Haible  <bruno@clisp.org>
33892
33893         * doc/gnulib-tool.texi (VCS Issues): Small updates.
33894         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
33895
33896 2008-03-06  Bruno Haible  <bruno@clisp.org>
33897
33898         * doc/func.texi: New file, extracted from doc/gnulib.texi.
33899         * doc/gnulib.texi: Include it.
33900
33901 2008-03-06  Simon Josefsson  <simon@josefsson.org>
33902
33903         * modules/func (License): Change license to unlimited; there was
33904         no LGPL parts in the module anyway.
33905
33906 2008-03-06  Simon Josefsson  <simon@josefsson.org>
33907
33908         * modules/__func__: Renamed to modules/func.
33909         * modules/__func__-tests: Renamed to modules/func-tests.
33910         * tests/test-__func__.c: Renamed to tests/test-func.c.
33911         * m4/__func__.m4: Renamed to m4/func.m4.
33912         * doc/gnulib.texi (__func__): Section renamed to func.
33913         Suggested by Eric Blake <ebb9@byu.net>.
33914
33915 2008-03-06  Simon Josefsson  <simon@josefsson.org>
33916
33917         * doc/gnulib.texi (__func__): Use C99 terminology when talking
33918         about __func__.  Make example self-contained.  Suggested by Eric
33919         Blake <ebb9@byu.net>.
33920
33921         * tests/test-__func__.c (main): Avoid extraneous () around __func.
33922         Suggested by Eric Blake <ebb9@byu.net>.
33923
33924 2008-03-06  Simon Josefsson  <simon@josefsson.org>
33925
33926         * modules/__func__: New file.
33927         * modules/__func__-tests: New file.
33928         * tests/test-__func__.c: New file.
33929         * m4/__func__.m4: New file.
33930         * doc/gnulib.texi (__func__): Document __func__ module.
33931
33932 2008-03-05  Simon Josefsson  <simon@josefsson.org>
33933
33934         * modules/byteswap (License): Re-license as LGPLv2+.
33935
33936 2008-03-05  Simon Josefsson  <simon@josefsson.org>
33937
33938         * doc/Makefile: Add pdf target.
33939
33940 2008-03-05  Simon Josefsson  <simon@josefsson.org>
33941
33942         * modules/inline (License): Use 'unlimited', since there are only
33943         *.m4 files in this module.
33944
33945 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
33946             Bruno Haible  <bruno@clisp.org>
33947
33948         Add support for HP C 7.1 on OpenVMS 8.3.
33949         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
33950
33951 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
33952
33953         Update VMS specifics.
33954         * lib/getopt.c [VMS]: Remove include of unixlib.h.
33955
33956 2008-03-02  Jim Meyering  <meyering@redhat.com>
33957
33958         Remove the last dependency on the "free" module.
33959         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
33960         Reported by Bob Proulx.
33961
33962         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
33963
33964         Remove useless "if" tests before free.  Deprecate "free" module.
33965         * doc/posix-functions/free.texi: Mention that this
33966         module is no longer useful.
33967         * modules/free (Notice): Say this module is obsolete.
33968         * modules/readutmp (Depends-on): Remove free.
33969         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
33970         * lib/putenv.c (putenv): Likewise.
33971         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
33972         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
33973         * tests/test-c-strcasestr.c (main): Likewise.
33974         * tests/test-c-strstr.c (main): Likewise.
33975         * tests/test-mbscasestr1.c (main): Likewise.
33976         * tests/test-mbscasestr2.c (main): Likewise.
33977         * tests/test-mbsstr1.c (main): Likewise.
33978         * tests/test-mbsstr2.c (main): Likewise.
33979         * tests/test-memmem.c (main): Likewise.
33980         * tests/test-strcasestr.c (main): Likewise.
33981         * tests/test-striconv.c (main): Likewise.
33982         * tests/test-striconveh.c (main): Likewise.
33983         * tests/test-striconveha.c (main): Likewise.
33984         * tests/test-strstr.c (main): Likewise.
33985
33986         * build-aux/git-version-gen: Adjust a comment and the Usage string.
33987
33988         bootstrap: sync from coreutils again
33989         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
33990
33991 2008-03-01  Jim Meyering  <meyering@redhat.com>
33992
33993         bootstrap: sync from coreutils
33994         * build-aux/bootstrap (update_po_files): Copy a .po file into place
33995         also when the target doesn't exist.
33996
33997 2008-03-01  Eric Blake  <ebb9@byu.net>
33998
33999         Fix bugs in last patch.
34000         * lib/memchr2.c (memchr2): Fix typo.
34001         * tests/test-memchr2.c: Test previous bug, and don't use GNU
34002         extension.
34003         Reported by Bruce Korb.
34004
34005         New module 'memchr2'.
34006         * modules/memchr2: New file.
34007         * modules/memchr2-tests: Likewise.
34008         * lib/memchr2.h: Likewise.
34009         * lib/memchr2.c: Likewise, based on memchr.c.
34010         * tests/test-memchr2.c: New test.
34011         * MODULES.html.sh (String handling): Add memchr2.
34012
34013 2008-02-29  Bruno Haible  <bruno@clisp.org>
34014
34015         * modules/freadseek-tests: New file.
34016         * tests/test-freadseek.sh: New file.
34017         * tests/test-freadseek.c: New file.
34018
34019         New module 'freadseek'.
34020         * modules/freadseek: New file.
34021         * lib/freadseek.h: New file.
34022         * lib/freadseek.c: New file.
34023         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
34024
34025 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
34026
34027         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
34028         wydawca.
34029
34030         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
34031         program_invocation_name and program_invocation_short_name are
34032         present.
34033
34034 2008-02-28  Bruno Haible  <bruno@clisp.org>
34035
34036         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
34037         * tests/test-freadptr.sh: Also test non-seekable stdin.
34038
34039 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
34040
34041         * build-aux/bootstrap (source_base, m4_base)
34042         (doc_base, tests_base): New variables.
34043         (gnulib_tool_options): Do not hardcode base directories, use
34044         the above variables instead.
34045
34046 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
34047
34048         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
34049
34050 2008-02-28  Bruno Haible  <bruno@clisp.org>
34051
34052         * modules/freadptr-tests: New file.
34053         * tests/test-freadptr.sh: New file.
34054         * tests/test-freadptr.c: New file.
34055
34056         New module 'freadptr'.
34057         * modules/freadptr: New file.
34058         * lib/freadptr.h: New file.
34059         * lib/freadptr.c: New file.
34060         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
34061
34062 2008-02-26  Karl Berry  <karl@freefriends.org>
34063
34064         Sync from Libtool:
34065         * libltdl/argz.c (argz_add, argz_count): New functions.
34066         * libltdl/argz.in.h: Declare them.
34067         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
34068
34069 2008-02-22  Bruno Haible  <bruno@clisp.org>
34070
34071         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
34072         is a pointer type.  Needed for HP-UX 10.
34073         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
34074         * doc/posix-functions/gmtime_r.texi: Likewise.
34075         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
34076
34077 2008-02-24  Bruno Haible  <bruno@clisp.org>
34078
34079         * modules/environ-tests: New file.
34080         * tests/test-environ.c: New file.
34081
34082         New module 'environ'.
34083         * modules/environ: New file.
34084         * lib/unistd.in.h (environ): New declaration.
34085         * m4/environ.m4: New file.
34086         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
34087         after use.
34088         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
34089         HAVE_DECL_ENVIRON.
34090         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
34091         HAVE_DECL_ENVIRON.
34092         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
34093         wrong claim that 'environ' is missing on some systems.
34094         * modules/execute (Depends-on): Add environ.
34095         * lib/execute.c (environ): Remove fallback declaration.
34096         * modules/pipe (Depends-on): Add environ.
34097         * lib/pipe.c (environ): Remove fallback declaration.
34098         * modules/setenv (Depends-on): Add environ.
34099         * lib/setenv.c (environ): Remove fallback declaration.
34100         * modules/unsetenv (Depends-on): Add environ.
34101         * lib/unsetenv.c (environ): Remove fallback declaration.
34102         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
34103         m4/environ.m4.
34104         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
34105         (gl_PREREQ_UNSETENV): Likewise.
34106
34107 2008-02-24  Bruno Haible  <bruno@clisp.org>
34108
34109         * doc/posix-functions/environ.texi: Document the MacOS X problem.
34110
34111 2008-02-20  Bob Proulx  <bob@proulx.com>
34112
34113         Enable use of older two part flavor 'git describe'.
34114         * build-aux/git-version-gen: If using the older two part flavor of
34115         git version then recreate the third part now present in the
34116         newer three part flavor of git describe.
34117
34118 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
34119
34120         * lib/fts.c (fts_build): Typo correction to comment.
34121
34122 2008-02-17  Bruno Haible  <bruno@clisp.org>
34123
34124         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
34125         generating no-op conflicts.
34126
34127 2008-02-17  Bruno Haible  <bruno@clisp.org>
34128
34129         Speed up by 10%.
34130         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
34131         result_entries, rather than an index-based loop.
34132
34133 2008-02-17  Bruno Haible  <bruno@clisp.org>
34134
34135         Speed up by 25%.
34136         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
34137         'hashcode_cached'.
34138         (entry_create): New function.
34139         (entry_hashcode): Use the cached hashcode if possible.
34140         (read_changelog_file, try_split_merged_entry): Use entry_create.
34141
34142 2008-02-17  Bruno Haible  <bruno@clisp.org>
34143
34144         Speed up from O(n^2) to O(n) for long ChangeLog files.
34145         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
34146         (read_changelog_file): Change implementation of entries_reversed list
34147         to rbtreehash.
34148         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
34149
34150 2008-02-17  Bruno Haible  <bruno@clisp.org>
34151
34152         New option --split-merged-entry.
34153         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
34154         (find_paragraph_end, try_split_merged_entry): New functions.
34155         (long_options): Add option --split-merged-entry.
34156         (usage): Document option --split-merged-entry.
34157         (main): Implement option --split-merged-entry.
34158         Reported by Eric Blake.
34159
34160 2008-02-17  Bruno Haible  <bruno@clisp.org>
34161
34162         * lib/git-merge-changelog.c: Include c-strstr.h.
34163         (main): Support the "git pull --rebase" situation.
34164         * modules/git-merge-changelog (Depends-on): Add c-strstr.
34165         Reported by Eric Blake.
34166
34167 2008-02-16  Eric Blake  <ebb9@byu.net>
34168
34169         Avoid doubling \ in common case of "c-maybe" quoting style.
34170         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
34171         eliding outer quotes.
34172         * lib/quotearg.h: Document this.
34173         * tests/test-quotearg.c (result_strings, inputs, results_g)
34174         (flag_results, locale_results): Test it by adding a new string to
34175         each test group.
34176         (compare_strings): Test new string.
34177
34178 2008-02-13  Eric Blake  <ebb9@byu.net>
34179
34180         Avoid trigraph quoting in default output.
34181         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
34182         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
34183         unless explicitly requested.
34184         * tests/test-quotearg.c (flag_results, main): Add additional tests.
34185
34186 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
34187
34188         Don't rely on signed integer overflowing to negative value.
34189         * lib/getugroups.c (getugroups): Include <limits.h>.
34190         Instead, compare against INT_MAX, and increment only if the test passes.
34191
34192 2008-02-13  Jim Meyering  <meyering@redhat.com>
34193         and Eric Blake  <ebb9@byu.net>
34194
34195         Avoid shadowing warning and compile errors on Linux.
34196         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
34197         forwarding macros on Linux.
34198         (dcgettext): Define a stub, for Linux.
34199         (results_g, main): Avoid warnings.
34200
34201 2008-02-12  Eric Blake  <ebb9@byu.net>
34202
34203         Silence warning in last patch.
34204         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
34205
34206         Quotearg part 4: add tests, fix c-maybe colon quoting.
34207         * lib/quotearg.h: Improve documentation.
34208         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
34209         escapes when adding outer quotes.  When quoting trigraphs, use
34210         valid C notation.  When quoting NUL, omit extra characters if next
34211         character is not digit.  Alter prototype.
34212         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
34213         callers.
34214         * modules/quotearg-tests: New module.
34215         * tests/test-quotearg.c: New test.
34216
34217 2008-02-07  Eric Blake  <ebb9@byu.net>
34218
34219         Quotearg part 3: add flag to control outer quote elision.
34220         * lib/quotearg.h (c_maybe_quoting_style): New style.
34221         (enum quoting_flags): Better documentation of flags.
34222         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
34223         c-maybe style.
34224         (quotearg_buffer_restyled): Handle new flag to elide outer
34225         quotes.
34226
34227         Quotearg part 2: add flag that can control NUL elision.
34228         * lib/quotearg.h (set_quoting_flags): New prototype.
34229         * lib/quotearg.c (struct quoting_options): Add flag field.
34230         (set_quoting_flags): New function.
34231         (quotearg_buffer_restyled): Add flags parameter.
34232         (quotearg_alloc_mem): Set the flag if length cannot be returned.
34233         (quotearg_n_options): Set the flag, since length cannot be
34234         returned.
34235         (quoting_options_from_style): Default flags correctly.
34236
34237         Quotearg part 1: more wrappers, restore quotearg_char state.
34238         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
34239         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
34240         (quotearg_colon_mem): New wrappers.
34241         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
34242         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
34243         functions.
34244         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
34245         (quotearg_colon_mem): New functions.
34246
34247 2008-02-11  Bruno Haible  <bruno@clisp.org>
34248
34249         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
34250         library in the current directory: it does not work with parallel make.
34251         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34252
34253 2008-02-11  Bruno Haible  <bruno@clisp.org>
34254
34255         * .gitattributes: New file.
34256
34257 2008-02-11  Jim Meyering  <meyering@redhat.com>
34258
34259         useless-if-before-free: Fix reversed exit values.
34260         * build-aux/useless-if-before-free: Use correct values
34261         for EXIT_MATCH and EXIT_NO_MATCH.
34262
34263         * build-aux/useless-if-before-free: Close stdout carefully.
34264
34265 2008-02-10  Bruno Haible  <bruno@clisp.org>
34266
34267         New module 'git-merge-changelog'.
34268         * modules/git-merge-changelog: New file.
34269         * lib/git-merge-changelog.c: New file.
34270
34271 2008-02-10  Jim Meyering  <meyering@redhat.com>
34272
34273         useless-if-before-free: New option: --list (-l).
34274
34275         useless-if-before-free: Don't exit immediately upon open failure.
34276         * build-aux/useless-if-before-free: Exit 2 for errors.
34277         Upon failure to open a file, don't exit immediately.
34278         Rather, just warn and continue with any remaining files.
34279
34280 2008-02-10  Bruno Haible  <bruno@clisp.org>
34281
34282         New abstract list operation 'node_set_value'.
34283         * lib/gl_list.h (gl_list_node_set_value): New function.
34284         (struct gl_list_implementation): New field node_set_value.
34285         * lib/gl_list.c (gl_list_node_set_value): New function.
34286         * lib/gl_array_list.c (gl_array_node_set_value): New function.
34287         (gl_array_list_implementation): Update.
34288         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
34289         (gl_carray_list_implementation): Update.
34290         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
34291         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
34292         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
34293         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
34294         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
34295         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
34296         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
34297         Update.
34298         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
34299         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
34300         (gl_sublist_list_implementation): Update.
34301
34302 2008-02-10  Bruno Haible  <bruno@clisp.org>
34303
34304         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
34305         Needed when ELEMENT is #defined to 'some_type *'.
34306
34307 2008-02-10  Jim Meyering  <meyering@redhat.com>
34308
34309         New script and module: useless-if-before-free
34310         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
34311         * build-aux/useless-if-before-free: New file.
34312         * modules/useless-if-before-free: New file.
34313
34314         * build-aux/gitlog-to-changelog: Use committer date, not author date.
34315
34316         xstrtol_error: Fix typo.
34317         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
34318         s/exit_failure/exit_status/.
34319
34320 2008-02-09  Jim Meyering  <meyering@redhat.com>
34321
34322         New script and module: gitlog-to-changelog
34323         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
34324         * modules/gitlog-to-changelog: New file.
34325         * build-aux/gitlog-to-changelog: New file.
34326
34327 2008-02-08  Jim Meyering  <meyering@redhat.com>
34328
34329         Avoid two "parameter unused" warnings.
34330         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
34331         Mark "st" as used.
34332
34333         Use "git COMMAND", not "git-COMMAND".
34334         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
34335         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
34336         * build-aux/git-version-gen: Use "git status", not "git-status".
34337
34338 2008-02-07  Bruno Haible  <bruno@clisp.org>
34339
34340         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
34341         Avoids a crash on Windows Vista.
34342         Reported by Adam Strzelecki <ono@java.pl> via
34343         Simon Josefsson <simon@josefsson.org>.
34344
34345 2008-02-06  Bruno Haible  <bruno@clisp.org>
34346
34347         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
34348         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
34349         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
34350         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
34351         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
34352         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
34353         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
34354         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
34355         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
34356         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34357         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34358         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34359         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34360         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34361         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34362         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
34363         left-adjust flag.
34364         * tests/test-snprintf-posix.h (test_function): Likewise.
34365         * tests/test-sprintf-posix.h (test_function): Likewise.
34366         * tests/test-vasprintf-posix.c (test_function): Likewise.
34367         * doc/posix-functions/fprintf.texi: Update.
34368         * doc/posix-functions/printf.texi: Update.
34369         * doc/posix-functions/snprintf.texi: Update.
34370         * doc/posix-functions/sprintf.texi: Update.
34371         * doc/posix-functions/vfprintf.texi: Update.
34372         * doc/posix-functions/vprintf.texi: Update.
34373         * doc/posix-functions/vsnprintf.texi: Update.
34374         * doc/posix-functions/vsprintf.texi: Update.
34375         Reported by Peter Fales <psfales@alcatel-lucent.com>.
34376
34377 2008-02-06  Bruno Haible  <bruno@clisp.org>
34378
34379         Fix bug introduced on 2008-01-26.
34380         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
34381
34382 2008-02-06  Bruno Haible  <bruno@clisp.org>
34383
34384         Fix bug introduced on 2007-06-10.
34385         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
34386         !NEED_PRINTF_FLAG_ZERO.
34387
34388 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
34389
34390         getloadavg: use libperfstat on AIX5
34391         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
34392
34393 2008-02-03  Bruno Haible  <bruno@clisp.org>
34394
34395         * lib/diffseq.h: Add comments about required #includes.
34396         Reported by Michael Biggs <gnulib@doubleplum.net>.
34397
34398 2008-02-01  Bruno Haible  <bruno@clisp.org>
34399
34400         * users.txt: Add gnuit.
34401
34402 2008-01-31  Bruno Haible  <bruno@clisp.org>
34403
34404         * lib/md4.c (set_uint32): Mark as inline.
34405         * lib/md5.c (set_uint32): Likewise.
34406         * lib/sha1.c (set_uint32): Likewise.
34407         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
34408         * m4/md5.m4 (gl_MD5): Likewise.
34409         * m4/sha1.m4 (gl_SHA1): Likewise.
34410
34411 2008-01-31  Jim Meyering  <meyering@redhat.com>
34412
34413         Use "sizeof VAR", rather than a literal "4".
34414         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
34415         * lib/md4.c (md4_read_ctx): Likewise.
34416         * lib/sha1.c (sha1_read_ctx): Likewise.
34417
34418 2008-01-31  Simon Josefsson  <simon@josefsson.org>
34419
34420         * tests/test-sha1.c: New file, based on test-md5.c.
34421
34422         * modules/crypto/sha1-tests: New file.
34423
34424 2008-01-31  Simon Josefsson  <simon@josefsson.org>
34425
34426         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
34427
34428 2008-01-31  Jim Meyering  <meyering@redhat.com>
34429
34430         Prefer "sizeof v" over the equivalent "4".
34431         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
34432         * lib/md5.c (set_uint32): Likewise.
34433         * lib/sha1.c (set_uint32): Likewise.
34434
34435 2008-01-31  Simon Josefsson  <simon@josefsson.org>
34436
34437         * lib/sha1.c (set_uint32): Mark function as static.
34438
34439 2008-01-31  Simon Josefsson  <simon@josefsson.org>
34440
34441         md2: clarify comments to say that alignment is not required.
34442         * lib/md2.h: Remove warning about alignment in comment.
34443         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
34444         never been required.
34445
34446 2008-01-31  Simon Josefsson  <simon@josefsson.org>
34447
34448         md4: adapt alignment constraint fix from sha1.
34449         * lib/md4.c (set_uint32): New function, from sha1.c
34450         (md4_read_ctx): Use it.
34451         (md4_finish_ctx): Doc fix.
34452         * lib/md4.h: Doc fix.
34453
34454 2008-01-31  Simon Josefsson  <simon@josefsson.org>
34455
34456         md5: adapt alignment constraint fix from sha1.
34457         * lib/md5.c (set_uint32): New function, from sha1.c
34458         (md5_read_ctx): Use it.
34459         (md5_finish_ctx): Doc fix.
34460         * lib/md5.h: Doc fix.
34461
34462 2008-01-30  Peter Palfrader  <weasel@debian.org>
34463
34464         sha1: remove the result buffer alignment constraint
34465         * lib/sha1.c (set_uint32): New function.
34466         (sha1_read_ctx): Rewrite to remove the result buffer alignment
34467         constraint.
34468         (sha1_finish_ctx): Remove comment warning about alignment constraint.
34469         * lib/sha1.h: Likewise.
34470
34471 2008-01-30  Andreas Schwab  <schwab@suse.de>
34472             Bruno Haible  <bruno@clisp.org>
34473
34474         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
34475         correct definition of LDBL_MIN_EXP.
34476
34477 2008-01-30  Karl Berry  <karl@gnu.org>
34478
34479         * config/srclist-update: try to preserve x bit on updates.
34480         * config/srclistvars.sh: update for karl.
34481
34482 2008-01-29  Jim Meyering  <meyering@redhat.com>
34483
34484         vasnprintf.c: Avoid warning about unused label
34485         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
34486         "overflow" label definition and associated code with the
34487         same cpp condition that guards the sole use of that label.
34488
34489 2008-01-26  Bruno Haible  <bruno@clisp.org>
34490
34491         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
34492         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
34493         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
34494         * lib/isnanl-nolibm.h (isnanl): Likewise.
34495         Reported by Paul Eggert <eggert@cs.ucla.edu>.
34496
34497 2008-01-26  Bruno Haible  <bruno@clisp.org>
34498
34499         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
34500         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
34501
34502 2008-01-26  Bruno Haible  <bruno@clisp.org>
34503
34504         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
34505         GCC >= 4.0 built-in.
34506         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
34507
34508 2008-01-26  Bruno Haible  <bruno@clisp.org>
34509
34510         Rename isnan, applicable to 'double' only, to isnand.
34511         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
34512         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
34513         (configure.ac): Update.
34514         (Include): Replace "isnan.h" with "isnand.h".
34515         * m4/isnand.m4: Renamed from m4/isnan.m4.
34516         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
34517         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
34518         instead of isnan.c.
34519         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
34520         instead of HAVE_ISNAN_IN_LIBC.
34521         (isnand): Renamed from isnan.
34522         * lib/isnand.c: New file.
34523         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
34524         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
34525         (Makefile.am): Update.
34526         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
34527         Include isnand.h instead of isnan.h.
34528         (main): Test isnand instead of isnan.
34529         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
34530         isnan-nolibm.
34531         * modules/frexp (Depends-on): Likewise.
34532         * modules/frexp-tests (Depends-on): Likewise.
34533         * modules/frexp-nolibm (Depends-on): Likewise.
34534         * modules/frexp-nolibm-tests (Depends-on): Likewise.
34535         * modules/isfinite (Depends-on): Likewise.
34536         * modules/round-tests (Depends-on): Likewise.
34537         * modules/signbit (Depends-on): Likewise.
34538         * modules/signbit-tests (Depends-on): Likewise.
34539         * modules/snprintf-posix (Depends-on): Likewise.
34540         * modules/sprintf-posix (Depends-on): Likewise.
34541         * modules/trunc-tests (Depends-on): Likewise.
34542         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
34543         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
34544         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
34545         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
34546         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
34547         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
34548         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
34549         * modules/vasnprintf-posix (Depends-on): Likewise.
34550         * modules/vasprintf-posix (Depends-on): Likewise.
34551         * modules/vfprintf-posix (Depends-on): Likewise.
34552         * modules/vsnprintf-posix (Depends-on): Likewise.
34553         * modules/vsprintf-posix (Depends-on): Likewise.
34554         * lib/frexp.c: Include isnand.h instead of isnan.h.
34555         (ISNAN): Set to isnand instead of isnan.
34556         * lib/isfinite.c: Include isnand.h instead of isnan.h.
34557         (gl_isfinited): Use isnand instead of isnan.
34558         * lib/signbitd.c: Include isnand.h instead of isnan.h.
34559         (gl_signbitd): Use isnand instead of isnan.
34560         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
34561         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
34562         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
34563         (main): Use isnand instead of isnan.
34564         * tests/test-round1.c: Include isnand.h.
34565         (main): Use isnand instead of isnan.
34566         * tests/test-round2.c: Include isnand.h instead of isnan.h.
34567         (ISNAN): Set to isnand instead of isnan.
34568         * tests/test-trunc1.c: Include isnand.h.
34569         (main): Use isnand instead of isnan.
34570         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
34571         (equal): Use isnand instead of isnan.
34572         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
34573         isnand-nolibm.
34574         * NEWS: Mention the change.
34575
34576 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
34577             Bruno Haible  <bruno@clisp.org>
34578
34579         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
34580         the GCC builtins for signbits are present and set
34581         REPLACE_SIGNBIT_USING_GCC if so.
34582         * lib/math.in.h (signbit): Define using GCC builtins if
34583         REPLACE_SIGNBIT_USING_GCC is set.
34584         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
34585         REPLACE_SIGNBIT_USING_GCC.
34586         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
34587
34588 2008-01-25  Jim Meyering  <meyering@redhat.com>
34589
34590         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
34591         * lib/poll.c: Include <config.h>, not "config.h".
34592         * tests/test-getaddrinfo.c: Likewise.
34593
34594 2008-01-25  Simon Josefsson  <simon@josefsson.org>
34595
34596         * modules/sockets-tests: New file.
34597
34598 2008-01-24  Simon Josefsson  <simon@josefsson.org>
34599
34600         * modules/sockets: New module, can be used to call WSA_Startup and
34601         WSA_Cleanup when needed.
34602
34603         * lib/sockets.h, lib/sockets.c: New files.
34604
34605         * m4/sockets.m4: New file.
34606
34607         * tests/test-sockets.c: New file.
34608
34609 2008-01-19  Bruno Haible  <bruno@clisp.org>
34610
34611         * doc/posix-headers: Renamed from doc/headers.
34612         * doc/posix-functions: Renamed from doc/functions.
34613         * doc/gnulib.texi: Update.
34614
34615 2008-01-19  Bruno Haible  <bruno@clisp.org>
34616
34617         * doc/glibc-functions/strcasestr.texi: Include contents of
34618         doc/functions/strcasestr.texi, fixing the list of platforms.
34619         * doc/functions/strcasestr.texi: Remove file.
34620
34621 2008-01-19  Bruno Haible  <bruno@clisp.org>
34622
34623         * doc/glibc-functions/memmem.texi: Include contents of
34624         doc/functions/memmem.texi.
34625         * doc/functions/memmem.texi: Remove file.
34626
34627 2008-01-18  Bruno Haible  <bruno@clisp.org>
34628
34629         * doc/glibc-functions/*.texi: New files.
34630         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
34631         to use the new files.
34632
34633 2008-01-17  Bruno Haible  <bruno@clisp.org>
34634
34635         * tests/test-gethostname.c (main): Fix printf statement.
34636
34637 2008-01-17  Simon Josefsson  <simon@josefsson.org>
34638
34639         * modules/gethostname-tests: New file.
34640
34641         * tests/test-gethostname.c: New file.
34642
34643 2008-01-17  Simon Josefsson  <simon@josefsson.org>
34644
34645         * lib/gethostname.c: Include string.h unconditionally, strncpy is
34646         used by the UNAME case.  Reported by Bruno Haible
34647         <bruno@clisp.org>.
34648
34649 2008-01-17  Eric Blake  <ebb9@byu.net>
34650
34651         Convert c-strcasestr to be more efficient.
34652         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
34653         (Depends-on): Add c-strcase, remove malloca, strnlen.
34654         * tests/test-c-strcasestr.c (main): Enhance test.
34655         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
34656
34657 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
34658
34659         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
34660         Use it in creating po/Makevars.
34661
34662 2008-01-15  Simon Josefsson  <simon@josefsson.org>
34663
34664         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
34665         Applications that requires it should initialize libgcrypt
34666         manually.
34667
34668 2008-01-16  Simon Josefsson  <simon@josefsson.org>
34669
34670         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
34671
34672 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
34673
34674         Fix problem with getdate on mingw32 reported by Simon Josefsson
34675         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
34676         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
34677         tzname", when deciding whether to declare tzname.
34678         * lib/strftime.c (tzname): Likewise.
34679
34680 2008-01-15  Bruno Haible  <bruno@clisp.org>
34681
34682         Work around a MacOS X 10.5 bug in frexpl().
34683         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
34684         * doc/functions/frexpl.texi: Document the bug.
34685         Reported by Elias Pipping <pipping@gentoo.org>.
34686
34687 2008-01-14  Eric Blake  <ebb9@byu.net>
34688
34689         Touch up previous patch.
34690         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
34691         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
34692
34693         Convert strcasestr module to use Two-Way algorithm.
34694         * modules/strcasestr-simple: New module, based on the old
34695         strcasestr, but with Two-Way rather than KMP.
34696         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
34697         * lib/string.in.h (rpl_strcasestr): Declare.
34698         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
34699         performance.
34700         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
34701         * modules/string (Makefile.am): Support strcasestr.
34702         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
34703         * modules/strcasestr-tests (Depends-on): Check for alarm.
34704         * tests/test-strcasestr.c: Augment test.
34705         * lib/str-two-way.h: Clean up stray macro.
34706         * NEWS: Document new module.
34707         * MODULES.html.sh (string handling): Likewise.
34708         * doc/functions/strcasestr.texi: New file.
34709         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
34710         here, since it is not a POSIX function.
34711
34712 2008-01-14  Colin Watson  <cjwatson@debian.org>
34713             Bruno Haible  <bruno@clisp.org>
34714
34715         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
34716         works fine; if not, set REPLACE_STRSIGNAL.
34717         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
34718         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
34719         REPLACE_STRSIGNAL.
34720         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
34721         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
34722         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
34723
34724 2008-01-14  Bruno Haible  <bruno@clisp.org>
34725
34726         * modules/strsignal (Include): Change to <string.h>.
34727
34728 2008-01-14  Colin Watson  <cjwatson@debian.org>
34729
34730         * modules/argp (Notice): Add a notice recommending to change
34731         XGETTEXT_OPTIONS.
34732         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
34733
34734 2008-01-13  Colin Watson  <cjwatson@debian.org>
34735
34736         * modules/strsignal-tests: New file.
34737         * tests/test-strsignal.c: New file.
34738
34739         * lib/strsignal.c: New file, from glibc with modifications.
34740         * lib/siglist.h: New file, from glibc with modifications.
34741         * lib/string.in.h (strsignal): New declaration.
34742         * m4/strsignal.m4: New file.
34743         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
34744         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
34745         * modules/strsignal: New file.
34746         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
34747         HAVE_DECL_STRSIGNAL.
34748
34749 2008-01-13  Bruno Haible  <bruno@clisp.org>
34750
34751         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
34752         locale encoding is not ASCII. Needed for OpenBSD 4.0.
34753         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
34754         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
34755
34756 2008-01-13  Bruno Haible  <bruno@clisp.org>
34757
34758         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
34759         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
34760         * lib/argp.h (__attribute__): Likewise.
34761         * lib/c-stack.c (__attribute__): Likewise.
34762         * lib/error.h (__attribute__): Likewise.
34763         * lib/fts.c (__attribute__): Likewise.
34764         * lib/openat.h (__attribute__): Likewise.
34765         * lib/stdio.in.h (__attribute__): Likewise.
34766         * lib/string.in.h (__attribute__): Likewise.
34767         * lib/utimens.c (__attribute__): Likewise.
34768         * lib/vasnprintf.h (__attribute__): Likewise.
34769         * lib/xalloc.h (__attribute__): Likewise.
34770         * lib/xprintf.h (__attribute__): Likewise.
34771         * lib/xstrtol.h (__attribute__): Likewise.
34772         * lib/xvasprintf.h (__attribute__): Likewise.
34773
34774 2008-01-12  Bruno Haible  <bruno@clisp.org>
34775
34776         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
34777         * doc/glibc-headers/a.out.texi: New file.
34778         * doc/glibc-headers/aliases.texi: New file.
34779         * doc/glibc-headers/alloca.texi: New file.
34780         * doc/glibc-headers/ar.texi: New file.
34781         * doc/glibc-headers/argp.texi: New file.
34782         * doc/glibc-headers/argz.texi: New file.
34783         * doc/glibc-headers/byteswap.texi: New file.
34784         * doc/glibc-headers/crypt.texi: New file.
34785         * doc/glibc-headers/endian.texi: New file.
34786         * doc/glibc-headers/envz.texi: New file.
34787         * doc/glibc-headers/err.texi: New file.
34788         * doc/glibc-headers/error.texi: New file.
34789         * doc/glibc-headers/execinfo.texi: New file.
34790         * doc/glibc-headers/fpu_control.texi: New file.
34791         * doc/glibc-headers/fstab.texi: New file.
34792         * doc/glibc-headers/fts.texi: New file.
34793         * doc/glibc-headers/getopt.texi: New file.
34794         * doc/glibc-headers/ieee754.texi: New file.
34795         * doc/glibc-headers/ifaddrs.texi: New file.
34796         * doc/glibc-headers/libintl.texi: New file.
34797         * doc/glibc-headers/mcheck.texi: New file.
34798         * doc/glibc-headers/mntent.texi: New file.
34799         * doc/glibc-headers/obstack.texi: New file.
34800         * doc/glibc-headers/paths.texi: New file.
34801         * doc/glibc-headers/printf.texi: New file.
34802         * doc/glibc-headers/pty.texi: New file.
34803         * doc/glibc-headers/resolv.texi: New file.
34804         * doc/glibc-headers/shadow.texi: New file.
34805         * doc/glibc-headers/sysexits.texi: New file.
34806         * doc/glibc-headers/ttyent.texi: New file.
34807
34808 2008-01-12  Jim Meyering  <meyering@redhat.com>
34809
34810         announce-gen: emit Gnulib's git-based version string.
34811         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
34812         New option --gnulib-version=V, where V is expected to be
34813         the output of running git describe in the gnulib directory.
34814         (get_tool_versions): Request feedback on xdelta.  I suspect it's
34815         not useful, and plan to stop publishing an xdelta file with each
34816         coreutils release.
34817
34818         * build-aux/announce-gen: Also check for lzma-compressed files.
34819
34820 2008-01-11  Bruno Haible  <bruno@clisp.org>
34821
34822         * tests/test-memmem.c (main): Increase maximum allowed time.
34823         * tests/test-strstr.c (main): Likewise.
34824
34825 2008-01-11  Bruno Haible  <bruno@clisp.org>
34826
34827         * doc/functions/memmem.texi: Add more precisions about platforms.
34828         * doc/functions/strstr.texi: Likewise.
34829
34830 2008-01-10  Eric Blake  <ebb9@byu.net>
34831
34832         * m4/strstr.m4: Delete cruft from copy-n-paste.
34833         Reported by Bruno Haible.
34834
34835 2008-01-10  Bruno Haible  <bruno@clisp.org>
34836
34837         Make c-strstr rely on strstr.
34838         * lib/c-strstr.c: Don't include str-kmp.h.
34839         (c_strstr): Define in terms of strstr.
34840         * modules/c-strstr (Files): Remove lib/str-kmp.h.
34841         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
34842
34843 2008-01-10  Bruno Haible  <bruno@clisp.org>
34844
34845         * doc/gnulib.texi (String Functions in C Locale): New section.
34846         * doc/c-ctype.texi: New file.
34847         * doc/c-strcase.texi: New file.
34848         * doc/c-strcaseeq.texi: New file.
34849         * doc/c-strcasestr.texi: New file.
34850         * doc/c-strstr.texi: New file.
34851         * doc/c-strtod.texi: New file.
34852         * doc/c-strtold.texi: New file.
34853
34854 2008-01-10  Eric Blake  <ebb9@byu.net>
34855
34856         * lib/relocatable.h: Fix a comment.
34857
34858 2008-01-10  Eric Blake  <ebb9@byu.net>
34859
34860         Share two-way algorithm.
34861         * lib/str-two-way.h: New file, merged from...
34862         * lib/memmem.c: ...here...
34863         * lib/strstr.c: ...and here.
34864         * modules/memmem (Files): Use it.
34865         * modules/strstr (Files): Likewise.
34866
34867         Avoid quadratic strstr implementations.
34868         * lib/strstr.c: New file.
34869         * m4/strstr.m4: Likewise.
34870         * modules/strstr: Likewise.
34871         * modules/strstr-tests: Likewise.
34872         * tests/test-strstr.c: Likewise.
34873         * lib/string.in.h (rpl_strstr): Declare.
34874         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
34875         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
34876         * modules/string (Makefile.am): Likewise.
34877         * MODULES.html.sh (string handling): Mention new module.
34878         * doc/functions/strstr.texi (strstr): Document the bug.
34879
34880 2008-01-10  Bruno Haible  <bruno@clisp.org>
34881
34882         * lib/relocatable.h (relocate): State whether result is freshly
34883         allocated or not.
34884         * lib/relocatable.c (relocate): Return a freshly allocated string
34885         instead of a pointer to a privately held string.
34886         Reported by Sylvain Beucler <beuc@gnu.org>.
34887
34888 2008-01-10  Colin Watson  <cjwatson@debian.org>
34889
34890         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
34891         s/S_ISNLK/S_ISLNK/.
34892
34893 2008-01-09  Bruno Haible  <bruno@clisp.org>
34894
34895         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
34896         and other files.
34897         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
34898         if it's only a guess.
34899         * modules/memmem: Simplify by depending on memmem-simple.
34900
34901 2008-01-09  Bruno Haible  <bruno@clisp.org>
34902
34903         Work around OpenBSD 4.0 tdelete() bug.
34904         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
34905         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
34906         macros and don't redefine the enum values.
34907         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
34908         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
34909         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
34910
34911 2008-01-09  Bruno Haible  <bruno@clisp.org>
34912
34913         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
34914         (main): Don't perform the tests if setlocale did not install a UTF-8
34915         locale. Needed on OpenBSD 4.0.
34916         * modules/wcwidth-tests (Depends-on): Add localcharset.
34917
34918 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
34919
34920         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
34921         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
34922         * NEWS: announce this.
34923         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
34924
34925 2008-01-09  Simon Josefsson  <simon@josefsson.org>
34926         and Eric Blake  <ebb9@byu.net>
34927
34928         Add memmem-simple module.
34929         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
34930         (gl_FUNC_MEMMEM): Separate performance from presence checks.
34931         * modules/memmem-simple: New file.
34932         * modules/memmem (Description): Tweak.
34933         * MODULES.html.sh (string handling): Mention new module.
34934         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
34935         addressed by memmem-simple.
34936         * NEWS: Document the difference.
34937
34938 2008-01-09  Eric Blake  <ebb9@byu.net>
34939
34940         Give gcc some memmem optimization hints.
34941         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
34942         (strcasestr): Declare as pure.
34943         * modules/memmem (Maintainer): Claim my implementation.
34944
34945 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34946
34947         Support AIX 6.1 and higher.
34948         * build-aux/config.libpath: Likewise.
34949         * build-aux/config.rpath: Likewise.
34950
34951 2008-01-08  Jim Meyering  <meyering@redhat.com>
34952             Bruno Haible  <bruno@clisp.org>
34953
34954         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
34955         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
34956         Reported by Peter Fales in
34957         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
34958
34959 2008-01-08  Bruno Haible  <bruno@clisp.org>
34960
34961         * modules/unictype/category-of (Depends-on): Add
34962         unictype/category-none.
34963         * modules/unictype/category-and-tests (Depends-on): Add
34964         unictype/category-{L,N,Lu,Nd}.
34965         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
34966         * modules/unictype/category-or-tests (Depends-on): Add
34967         unictype/category-{L,N}.
34968         * modules/unictype/category-name-tests (Depends-on): Add
34969         unictype/category-{Z,Nl}.
34970         Reported by Simon Josefsson.
34971
34972 2008-01-08  Bruno Haible  <bruno@clisp.org>
34973
34974         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
34975         convention better.
34976         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
34977         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
34978         Reported by Peter Miller <millerp@canb.auug.org.au>.
34979
34980 2008-01-08  Eric Blake  <ebb9@byu.net>
34981
34982         Rewrite memmem to guarantee linear complexity without malloc.
34983         * lib/memmem.c (memmem): Use Two-Way rather than
34984         Knuth-Morris-Pratt, to allow O(1) space usage.
34985         (critical_factorization, two_way_short_needle)
34986         (two_way_long_needle): New functions.
34987         (knuth_morris_pratt): Delete.
34988         * modules/memmem (Depends-on): No longer need malloca or stdbool.
34989         Add stdint.
34990         * tests/test-memmem.c (main): Add tests for periodic needle and
34991         sublinear performance.
34992         * doc/functions/memmem.texi (memmem): Document other deficiencies
34993         in cygwin and older glibc.
34994
34995 2008-01-08  Bruno Haible  <bruno@clisp.org>
34996
34997         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
34998         augmentation.
34999
35000 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
35001
35002         Add a configure time option: --disable-acl.
35003         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
35004         AC_ARG_ENABLE(acl).
35005
35006 2008-01-06  Simon Josefsson  <simon@josefsson.org>
35007
35008         * tests/test-localename.c: Don't include obsolete "setenv.h".
35009
35010         * modules/localename-tests (Depends-on): Need unsetenv.
35011
35012 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35013
35014         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
35015
35016 2008-01-06  Colin Watson  <cjwatson@debian.org>
35017
35018         * users.txt: Add man-db.
35019
35020 2008-01-07  Bruno Haible  <bruno@clisp.org>
35021
35022         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
35023         previous section name.
35024
35025 2008-01-07  Bruno Haible  <bruno@clisp.org>
35026
35027         * lib/progname.c (set_program_name): Don't strip off a leading
35028         "lt-" prefix outside a .libs directory.
35029         Suggested by Paul Eggert.
35030
35031 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
35032             Bruno Haible  <bruno@clisp.org>
35033
35034         Improve memory cleanup in 'relocatable' module.
35035         * lib/relocatable.h (compute_curr_prefix): Change return type to
35036         'char *'.
35037         * lib/relocatable.c (compute_curr_prefix): Change return type to
35038         'char *'. Free curr_installdir after use.
35039         (relocate): Free curr_prefix_better after use.
35040         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
35041
35042 2008-01-01  Bruno Haible  <bruno@clisp.org>
35043
35044         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
35045         failure on older glibc systems.
35046         Reported by Peter Fales <psfales@alcatel-lucent.com>.
35047
35048 2008-01-05  Eric Blake  <ebb9@byu.net>
35049
35050         Avoid quadratic system memmem.
35051         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
35052         Reported by Ralf Wildenhues.
35053
35054         Fix memmem test for mingw.
35055         * modules/memmem-tests (configure.ac): Check for alarm.
35056         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
35057         it.
35058         * doc/functions/memmem.texi: New file.
35059         * doc/gnulib.texi (Function Substitutes): Add memmem.
35060         Reported by Bruno Haible.
35061
35062 2008-01-04  Bruno Haible  <bruno@clisp.org>
35063
35064         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
35065         Require gl_HEADER_STRINGS_H_DEFAULTS, not
35066         gl_HEADER_STRING_H_DEFAULTS.
35067
35068 2008-01-04  Eric Blake  <ebb9@byu.net>
35069
35070         Shorten duration of memmem test.
35071         * tests/test-memmem.c (main): Use alarm to declare failure if test
35072         is taking too long.
35073         Reported by Ralf Wildenhues.
35074
35075 2007-12-21  Simon Josefsson  <simon@josefsson.org>
35076
35077         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
35078         string, needed by strerror.
35079
35080 2008-01-03  Colin Watson  <cjwatson@debian.org>
35081             Bruno Haible  <bruno@clisp.org>
35082
35083         * doc/gnulib-tool.texi (Localization): New section.
35084
35085 2008-01-02  Bruno Haible  <bruno@clisp.org>
35086
35087         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
35088         variables to 'unsigned char *' type.
35089         Reported by Paul Eggert.
35090
35091 2008-01-02  Jim Meyering  <jim@meyering.net>
35092
35093         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
35094
35095 2007-12-31  Jim Meyering  <jim@meyering.net>
35096
35097         Avoid use of private FTS type name.
35098         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
35099
35100 2007-12-30  Karl Berry  <karl@gnu.org>
35101
35102         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
35103         work around defect in Texinfo and/or the standalone Info browser.
35104
35105 2007-12-30  Bruno Haible  <bruno@clisp.org>
35106
35107         Unify 5 copies of the KMP code.
35108         * lib/str-kmp.h: New file.
35109         * lib/c-strcasestr.c: Include str-kmp.h.
35110         (knuth_morris_pratt): Remove function.
35111         (c_strcasestr): Update.
35112         * lib/c-strstr.c: Include str-kmp.h.
35113         (knuth_morris_pratt): Remove function.
35114         (c_strcasestr): Update.
35115         * lib/mbscasestr.c: Include str-kmp.h.
35116         (knuth_morris_pratt_unibyte): Remove function.
35117         * lib/mbsstr.c: Include str-kmp.h.
35118         (knuth_morris_pratt_unibyte): Remove function.
35119         * lib/strcasestr.c: Include str-kmp.h.
35120         (knuth_morris_pratt): Remove function.
35121         (strcasestr): Update.
35122         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
35123         * modules/c-strstr (Files): Likewise.
35124         * modules/mbscasestr (Files): Likewise.
35125         * modules/mbsstr (Files): Likewise.
35126         * modules/strcasestr (Files): Likewise.
35127         Suggested by Paul Eggert.
35128
35129 2007-12-30  Bruno Haible  <bruno@clisp.org>
35130
35131         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
35132         defined.
35133
35134 2007-12-30  Bruno Haible  <bruno@clisp.org>
35135
35136         * lib/xmalloca.h: Include xalloc.h.
35137         (xnmalloca): New macro.
35138
35139 2007-12-30  Bruno Haible  <bruno@clisp.org>
35140
35141         * lib/malloca.h (nmalloca): New macro.
35142         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
35143         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
35144         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
35145         knuth_morris_pratt_multibyte): Likewise.
35146         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
35147         knuth_morris_pratt_multibyte): Likewise.
35148         * lib/memmem.c (knuth_morris_pratt): Likewise.
35149         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
35150
35151 2007-12-25  Bruno Haible  <bruno@clisp.org>
35152
35153         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
35154         * lib/glob.c: Don't include openat.h.
35155         (link_exists2_p): Add back the code that deals with the
35156         !GLOB_ALTDIRFUNC case.
35157         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
35158         let it do the filename concatenation.
35159         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
35160         * modules/glob (Depends-on): Remove openat.
35161
35162 2007-12-31  Bruno Haible  <bruno@clisp.org>
35163
35164         * modules/dirfd (License): Change to LGPLv2+.
35165         Approved by Jim Meyering.
35166
35167 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
35168
35169         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
35170         when multiplying M by sizeof (size_t).
35171
35172 2007-12-10  Martin Lambers  <marlam@marlam.de>
35173
35174         Override getpagesize on mingw.
35175         * lib/getpagesize.c: New file.
35176         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
35177         * modules/getpagesize (Files): Add lib/getpagesize.c.
35178         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
35179         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
35180         REPLACE_GETPAGESIZE.
35181         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
35182
35183 2007-12-25  Bruno Haible  <bruno@clisp.org>
35184
35185         * modules/localcharset (Notice): New field.
35186         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
35187         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
35188
35189 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
35190             Bruno Haible  <bruno@clisp.org>
35191
35192         Avoid using the syntax symbol() in formatted documentation.
35193         * MODULES.html.sh (func_module): When replacing symbol() with a
35194         hyperlink, remove the parentheses. Show an error if some remain.
35195         Recognize and render the '...' syntax.
35196         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
35197         Rework. Add paragraph about GCC's inlining.
35198         * doc/alloca.texi: Likewise.
35199         * doc/error.texi: Remove parentheses from symbol reference.
35200         * doc/gnulib-intro.texi: Likewise.
35201         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
35202         * modules/fnmatch (Description): Reword to say "the ... function".
35203         * modules/full-read (Description): Likewise.
35204         * modules/full-write (Description): Likewise.
35205         * modules/safe-read (Description): Likewise.
35206         * modules/safe-write (Description): Likewise.
35207         * modules/strchrnul (Description): Likewise.
35208         * modules/trim (Description): Likewise.
35209         * modules/error (Description): Remove parentheses from symbol
35210         references.
35211         * modules/verror (Description): Likewise.
35212         Reported by Karl Berry.
35213
35214 2007-12-25  Bruno Haible  <bruno@clisp.org>
35215
35216         Fixup after 2007-10-16 commit.
35217         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
35218
35219 2007-12-24  Bruno Haible  <bruno@clisp.org>
35220
35221         Make --enable-relocatable work with DESTDIR.
35222         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
35223         to compute installdir from destprog.
35224         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
35225         also set the RELOC_DESTDIR variable.
35226         Reported by Левашев Иван <octagram@bluebottle.com>.
35227
35228 2007-12-24  Bruno Haible  <bruno@clisp.org>
35229
35230         Fix link error due to xalloc_die().
35231         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
35232         of xreadlink.
35233         * lib/relocwrapper.c: Update comments.
35234         * build-aux/install-reloc: Remove xreadlink.c from file list.
35235         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
35236         xreadlink.c.
35237         Reported by Левашев Иван <octagram@bluebottle.com>.
35238
35239 2007-12-24  Bruno Haible  <bruno@clisp.org>
35240
35241         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
35242         * lib/setenv.h: Remove file.
35243         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
35244         lib/setenv.h.
35245         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
35246         (Depends-on): Add stdlib.
35247         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
35248         gl_FUNC_UNSETENV.
35249         (Include): Replace setenv.h with <stdlib.h>.
35250         * modules/unsetenv: New file.
35251         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
35252         * lib/unsetenv.c: Include <stdlib.h> first.
35253         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
35254         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
35255         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
35256         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
35257         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
35258         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
35259         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
35260         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
35261         * doc/functions/unsetenv.texi: Update.
35262         * modules/xsetenv (Depends-on): Add unsetenv.
35263         * modules/getdate (Depends-on): Likewise.
35264         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
35265         * lib/xsetenv.c: Don't include setenv.h.
35266         * lib/getdate.y: Likewise.
35267         * lib/relocwrapper.c: Likewise.
35268         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
35269         (Depends-on): Add stdlib.
35270         * NEWS: Mention the changes.
35271         Reported by Левашев Иван <octagram@bluebottle.com>.
35272
35273 2007-12-23  Bruno Haible  <bruno@clisp.org>
35274
35275         * lib/memmem.c (memmem): Use lowercase variable names. Tab
35276         indentation.
35277
35278 2007-12-23  Bruno Haible  <bruno@clisp.org>
35279
35280         * lib/c-strcasestr.c: Add more comments.
35281         * lib/c-strstr.c: Likewise.
35282         * lib/mbscasestr.c: Likewise.
35283         * lib/mbsstr.c: Likewise.
35284         * lib/strcasestr.c: Likewise.
35285         * lib/memmem.c: Likewise.
35286
35287 2007-12-23  Bruno Haible  <bruno@clisp.org>
35288
35289         * tests/test-memmem.c: Include <string.h> first.
35290
35291 2007-12-22  Bruno Haible  <bruno@clisp.org>
35292
35293         * gnulib-tool (func_create_testdir): Change $auxdir while generating
35294         the contents of $testsbase.
35295         Reported by Ralf Wildenhues.
35296
35297 2007-12-22  Bruno Haible  <bruno@clisp.org>
35298
35299         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
35300         two variables local_ldadd_before, local_ldadd_last.
35301
35302 2007-12-20  Eric Blake  <ebb9@byu.net>
35303
35304         Work around circular library issue when cross-compiling.
35305         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
35306         that progname.o does not need to pull in rpl_memcmp.
35307
35308 2007-12-19  Eric Blake  <ebb9@byu.net>
35309
35310         Fix memmem to avoid O(n^2) worst-case complexity.
35311         * lib/memmem.c (knuth_morris_pratt): New function.
35312         (memmem): Use it if first few naive iterations fail.
35313         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
35314         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
35315         * modules/memchr (License): Likewise.
35316         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
35317         malloca.
35318         * tests/test-memmem.c: Rewrite, borrowing ideas from
35319         test-mbsstr1.c; the old version wouldn't even compile!
35320         * modules/memmem-tests: New file.
35321         * lib/string.in.h (rpl_memmem): Add declaration.
35322         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
35323         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
35324         REPLACE_MEMMEM.
35325
35326 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
35327
35328         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
35329         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
35330         before any system include files, and undef after them all.  This
35331         should fix a problem on VMS reported by John E. Malmberg in
35332         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
35333
35334 2007-12-17  Eric Blake  <ebb9@byu.net>
35335
35336         Revert addition of verify, for BSD/OS.
35337         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
35338         can't handle large files, for the sake of obsolete platforms.
35339         * modules/fseeko (Depends-on): Remove verify.
35340         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
35341         * doc/functions/ftello.texi (ftello): Likewise.
35342         * doc/functions/fgetpos.texi (fgetpos): Likewise.
35343         Reported by Larry Jones.
35344
35345 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
35346
35347         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
35348         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
35349
35350 2007-12-17  Jim Meyering  <meyering@redhat.com>
35351
35352         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
35353         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
35354         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
35355         * modules/getcwd (Depends-on): Add openat.
35356         Reported by Petr Salinger.
35357
35358 2007-12-17  Bruno Haible  <bruno@clisp.org>
35359
35360         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
35361         avoid a segmentation fault of the configure test on x86_64 systems.
35362
35363 2007-12-15  Jim Meyering  <meyering@redhat.com>
35364
35365         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
35366
35367 2007-12-13  Eric Blake  <ebb9@byu.net>
35368
35369         Another fseek test.
35370         * tests/test-fseek.c (main): Also test ungetc handling.
35371         * tests/test-fseeko.c (main): Likewise.
35372         * modules/fseeko (Depends-on): Add verify.
35373         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
35374         large.
35375         Reported by Larry Jones.
35376
35377         Fix fseeko on mingw.
35378         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
35379         seek.
35380
35381         Beef up fseek tests.
35382         * tests/test-fseek.c (main): Also test eof handling.
35383         * tests/test-fseeko.c (main): Likewise.
35384         Reported by Larry Jones.
35385
35386 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
35387
35388         Fix fseeko on BSD-based platforms.
35389         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
35390         successful seek.
35391
35392 2007-12-12  Eric Blake  <ebb9@byu.net>
35393
35394         Allow circular dependency of separate libtests.a
35395         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
35396         when use_libtests.
35397
35398 2007-12-11  Eric Blake  <ebb9@byu.net>
35399
35400         Fix bug with -0.0L in previous patch.
35401         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
35402         * tests/test-isnan.c (main): Also test on zeroes.
35403         * tests/test-isnanf.c (main): Likewise.
35404         * tests/test-isnanl.h (main): Likewise.
35405
35406         Detect pseudo-denormals on x86 even when cross-compiling.
35407         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
35408         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
35409         invalid bit patterns that happen to satisfy ==.
35410
35411         Avoid link failures with separate libtests.a.
35412         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
35413         last, to satisfy circular dependencies.
35414
35415 2007-12-11  Eric Blake  <ebb9@byu.net>
35416         and Bruno Haible  <bruno@clisp.org>
35417
35418         Fix OpenBSD 4.0 <float.h> handling of long double.
35419         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
35420         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
35421         * doc/headers/float.texi (float.h): Document OpenBSD bug.
35422
35423 2007-12-11  Jim Meyering  <meyering@redhat.com>
35424
35425         * users.txt: Add libvirt.
35426
35427         Support versions of autoconf prior to 2.59c.
35428         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
35429         if it is not already defined.
35430
35431 2007-12-09  Bruno Haible  <bruno@clisp.org>
35432
35433         Let 'gnulib-tool --import' collect sources needed for the tests in
35434         tests/ rather than in lib/.
35435         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
35436         argument. If true, add rules to generate libtests.a, and put libtests.a
35437         into $(LDADD). Consider source files in subdirectories and set
35438         uses_subdirs.
35439         (func_emit_initmacro_start, func_emit_initmacro_end,
35440         func_emit_initmacro_done): Pass all arguments explicitly.
35441         (func_import): Determine two module lists main_modules,
35442         testsrelated_modules. Determine use_libtests. Determine two variables
35443         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
35444         instead of just sed_transform_lib_file. Determine two variables
35445         main_files and testsrelated_files. Compute 'files' as the union of
35446         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
35447         func_add_or_update. In the generated gnulib-comp.m4, collect the
35448         object files for tests/ in different variables than those for lib/.
35449         Substitute LIBTESTS_LIBDEPS.
35450         (func_create_testdir): Combine the uses_subdirs results from
35451         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
35452
35453 2007-12-09  Bruno Haible  <bruno@clisp.org>
35454
35455         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
35456         the build-aux directory.
35457
35458 2007-12-09  Bruno Haible  <bruno@clisp.org>
35459
35460         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
35461         introduced on 2006-09-09.
35462
35463 2007-12-07  Jim Meyering  <meyering@redhat.com>
35464
35465         Let these macros work also with autoconf-2.59.
35466         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
35467         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
35468         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
35469
35470 2007-12-06  Jim Meyering  <meyering@redhat.com>
35471
35472         Avoid a configure-time syntax error in gl_FUNC_ACL.
35473         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
35474         function in each branch, before testing the cache variable.
35475
35476 2007-12-04  Eric Blake  <ebb9@byu.net>
35477
35478         Make scripts executable.
35479         * build-aux/config.guess: Add execute permissions.
35480         * build-aux/config.sub: Likewise.
35481         * build-aux/gendocs.sh: Likewise.
35482
35483         Fix frexp on mingw.
35484         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
35485         cross-compiling.
35486         * doc/functions/frexp.texi (frexp): Document the bug.
35487
35488         Make cygwin fseeko check more reliable.
35489         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
35490         version numbers, rather than unrelated feature check.
35491         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
35492         * doc/functions/ftello.texi (ftello): Likewise.
35493         Reported by Bruno Haible.
35494
35495         * m4/strerror.m4: Bump version number.
35496
35497 2007-12-03  Bruno Haible  <bruno@clisp.org>
35498
35499         * doc/functions/mprotect.texi: Mention the mingw problem.
35500
35501 2007-12-03  Eric Blake  <ebb9@byu.net>
35502
35503         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
35504         REPLACE_STRERROR is initialized before this macro.
35505
35506 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
35507
35508         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
35509         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
35510         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
35511         put -lsec in even for programs other than 'ls'.  This fixes a problem
35512         for gettext reported by Bruno Haible in
35513         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
35514         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
35515         Add support for Solaris 10.  This isn't efficient, but should get the
35516         job done for now.
35517
35518 2007-12-03  James Youngman  <jay@gnu.org>
35519
35520         * doc/regexprops-generic.texi: change "an close-group" to "a
35521         close-group" and "illegal" to "not allowed".
35522
35523 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35524
35525         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
35526         pr_byname.h. Needed for the rare case when the maintainer has done
35527         "make maintainer-clean" in the source directory and then attempts a
35528         build outside the source directory.
35529         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
35530         scripts_byname.h.
35531
35532 2007-12-02  Martin Lambers <marlam@marlam.de>
35533             Bruno Haible  <bruno@clisp.org>
35534
35535         * lib/getpagesize.h: Remove file.
35536         * lib/unistd.in.h: Include declaration of getpagesize here.
35537         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
35538         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
35539         HAVE_SYS_PARAM_H.
35540         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
35541         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
35542         * modules/getpagesize (Files): Remove lib/getpagesize.h.
35543         (Depends-on): Add unistd.
35544         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
35545         (Include): Use <unistd.h> instead of getpagesize.h.
35546         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
35547         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
35548         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
35549         gl_GETPAGESIZE invocation, already handled by module dependency.
35550         * lib/pagealign_alloc.c: Don't include getpagesize.h.
35551
35552 2007-12-02  Bruno Haible  <bruno@clisp.org>
35553
35554         * modules/strings-tests: New file.
35555         * tests/test-strings.c: New file.
35556
35557         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
35558         * lib/strings.in.h: New file.
35559         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
35560         * m4/strings_h.m4: New file.
35561         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
35562         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
35563         * modules/strings: New file.
35564         * modules/string (Makefile.am): Update.
35565         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
35566         Reported by Karl Berry.
35567
35568 2007-12-01  Eric Blake  <ebb9@byu.net>
35569
35570         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
35571         accomodate fix in cygwin 1.5.25.
35572
35573 2007-12-01  Jim Meyering  <meyering@redhat.com>
35574
35575         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
35576         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
35577         that would inhibit utf8-optimization of a regexp containing line-
35578         or buffer-anchors, e.g., `^', `$'.
35579
35580 2007-11-30  Bruno Haible  <bruno@clisp.org>
35581
35582         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
35583         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
35584         glthread_recursive_lock_init.
35585         * lib/lock.c (glthread_recursive_lock_init)
35586         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
35587         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
35588
35589 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
35590
35591         New function qset_acl, like set_acl but with syscall semantics.
35592         * lib/acl.h (qset_acl): New decl.
35593         * lib/acl.c (qset_acl): New function.
35594         (set_acl): Use new function.  Use more-consistent diagnostics.
35595
35596 2007-11-28  Jim Meyering  <meyering@redhat.com>
35597
35598         * modules/physmem (License): Change from GPL to LGPLv2+.
35599
35600 2007-11-26  Bruno Haible  <bruno@clisp.org>
35601
35602         * lib/vasnprintf.c (decode_long_double): Don't abort if the
35603         'long double' type has excess precision.
35604         Reported by Jim Meyering in
35605         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
35606
35607 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35608
35609         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
35610         Sync from <http://gnu.org/licenses>.
35611         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
35612         with license text from same location.
35613         * doc/maintain.texi, doc/standards.texi:  Sync from
35614         <http://savannah.gnu.org/projects/gnustandards>.
35615
35616 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
35617         and Jim Meyering  <meyering@redhat.com>
35618
35619         Adjust getdate' grammar to accept a slightly more regular language.
35620         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
35621         Before, the former was rejected.
35622         * lib/getdate.y (digits_to_date_time): New function, factored
35623         out of ...
35624         (number): ...here.  Just call digits_to_date_time.
35625         (hybrid): New non-terminal to handle an <unsigned number,
35626         signed relative offset> sequence consistently.
35627
35628 2007-11-18  Jim Meyering  <meyering@redhat.com>
35629
35630         Pull my changes from coreutils:
35631         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
35632         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
35633         use of $gnulib_tool_option_extras, so that it's separated from the
35634         preceding argument.
35635
35636         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
35637         * build-aux/bootstrap (cp_mark_as_generated): Create any required
35638         parent destination directories before copying a file into place.
35639
35640 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
35641
35642         bootstrap: work also with 4-argument variant of AC_INIT
35643         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
35644
35645 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
35646
35647         Port test-getaddrinfo to Solaris.
35648         Problem reported by Bruno Haible in
35649         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
35650         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
35651         explanation of setting 'hints'.
35652         Don't reject an implementation merely because it returns EAI_SERVICE.
35653         (EAI_SERVICE): Define to 0 if not defined.
35654
35655 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
35656
35657         The license of gnu-make and posix-shell is now "GPLed build tool".
35658         * modules/gnu-make (License): Likewise.
35659         * modules/posix-shell (License): Likewise.
35660
35661         New module posix-shell, for determining a POSIX shell
35662         or perhaps something that is close enough to a POSIX shell.
35663         * m4/posix-shell.m4: New file.
35664         * modules/posix-shell: New file.
35665
35666         * MODULES.html.sh: Mention new module.
35667
35668         New module gnu-make, for determining whether we're using GNU Make.
35669         * m4/gnu-make.m4: New file.
35670         * modules/gnu-make: New file.
35671         * MODULES.html.sh: Mention new module.
35672
35673 2007-11-14  Jim Meyering  <meyering@redhat.com>
35674
35675         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
35676         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
35677         use this macro to create a function _definition_.
35678         Remove useless "#undef ARGMATCH_DIE".
35679
35680 2007-11-14  Bruno Haible  <bruno@clisp.org>
35681
35682         * lib/config.charset: Update for OpenBSD 4.1.
35683         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
35684
35685 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
35686
35687         Document 64-bit #if problems in stdint.texi.
35688         * doc/headers/stdint.texi (stdint.h): Mention problems with
35689         64-bit-#if, and how to work around them.
35690
35691         Don't insist on 'long long int' support in the preprocessor.  It
35692         breaks too many things.  For example, PRIdMAX still uses a 'long
35693         long int' format with the latest Sun compiler, even though
35694         HAVE_LONG_LONG_INT isn't defined due to that compiler's
35695         preprocessor problem.  This causes the latest coreutils to dump
35696         core on Solaris 10 sparc with the Sun C compiler.
35697         Instead, fix the 2007-10-16 problem in a different way, by evaluating
35698         the troublesome expressions at configure-time, not at #if-time.
35699         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
35700         preprocessor.
35701         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
35702         compile-time C checks, done at 'configure'-time.
35703         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
35704         * modules/inttypes (Makefile): Substitute the new symbols that
35705         gl_INTTYPES_H now generates.
35706         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
35707
35708 2007-11-12  Bruno Haible  <bruno@clisp.org>
35709
35710         Tests for Unicode character classification functions.
35711
35712         * modules/unictype/bidicategory-byname-tests: New file.
35713         * modules/unictype/bidicategory-name-tests: New file.
35714         * modules/unictype/bidicategory-of-tests: New file.
35715         * modules/unictype/bidicategory-test-tests: New file.
35716         * modules/unictype/block-list-tests: New file.
35717         * modules/unictype/block-of-tests: New file.
35718         * modules/unictype/block-test-tests: New file.
35719         * modules/unictype/category-C-tests: New file.
35720         * modules/unictype/category-Cc-tests: New file.
35721         * modules/unictype/category-Cf-tests: New file.
35722         * modules/unictype/category-Cn-tests: New file.
35723         * modules/unictype/category-Co-tests: New file.
35724         * modules/unictype/category-Cs-tests: New file.
35725         * modules/unictype/category-L-tests: New file.
35726         * modules/unictype/category-Ll-tests: New file.
35727         * modules/unictype/category-Lm-tests: New file.
35728         * modules/unictype/category-Lo-tests: New file.
35729         * modules/unictype/category-Lt-tests: New file.
35730         * modules/unictype/category-Lu-tests: New file.
35731         * modules/unictype/category-M-tests: New file.
35732         * modules/unictype/category-Mc-tests: New file.
35733         * modules/unictype/category-Me-tests: New file.
35734         * modules/unictype/category-Mn-tests: New file.
35735         * modules/unictype/category-N-tests: New file.
35736         * modules/unictype/category-Nd-tests: New file.
35737         * modules/unictype/category-Nl-tests: New file.
35738         * modules/unictype/category-No-tests: New file.
35739         * modules/unictype/category-P-tests: New file.
35740         * modules/unictype/category-Pc-tests: New file.
35741         * modules/unictype/category-Pd-tests: New file.
35742         * modules/unictype/category-Pe-tests: New file.
35743         * modules/unictype/category-Pf-tests: New file.
35744         * modules/unictype/category-Pi-tests: New file.
35745         * modules/unictype/category-Po-tests: New file.
35746         * modules/unictype/category-Ps-tests: New file.
35747         * modules/unictype/category-S-tests: New file.
35748         * modules/unictype/category-Sc-tests: New file.
35749         * modules/unictype/category-Sk-tests: New file.
35750         * modules/unictype/category-Sm-tests: New file.
35751         * modules/unictype/category-So-tests: New file.
35752         * modules/unictype/category-Z-tests: New file.
35753         * modules/unictype/category-Zl-tests: New file.
35754         * modules/unictype/category-Zp-tests: New file.
35755         * modules/unictype/category-Zs-tests: New file.
35756         * modules/unictype/category-and-not-tests: New file.
35757         * modules/unictype/category-and-tests: New file.
35758         * modules/unictype/category-byname-tests: New file.
35759         * modules/unictype/category-name-tests: New file.
35760         * modules/unictype/category-none-tests: New file.
35761         * modules/unictype/category-of-tests: New file.
35762         * modules/unictype/category-or-tests: New file.
35763         * modules/unictype/category-test-withtable-tests: New file.
35764         * modules/unictype/combining-class-tests: New file.
35765         * modules/unictype/ctype-alnum-tests: New file.
35766         * modules/unictype/ctype-alpha-tests: New file.
35767         * modules/unictype/ctype-blank-tests: New file.
35768         * modules/unictype/ctype-cntrl-tests: New file.
35769         * modules/unictype/ctype-digit-tests: New file.
35770         * modules/unictype/ctype-graph-tests: New file.
35771         * modules/unictype/ctype-lower-tests: New file.
35772         * modules/unictype/ctype-print-tests: New file.
35773         * modules/unictype/ctype-punct-tests: New file.
35774         * modules/unictype/ctype-space-tests: New file.
35775         * modules/unictype/ctype-upper-tests: New file.
35776         * modules/unictype/ctype-xdigit-tests: New file.
35777         * modules/unictype/decimal-digit-tests: New file.
35778         * modules/unictype/digit-tests: New file.
35779         * modules/unictype/mirror-tests: New file.
35780         * modules/unictype/numeric-tests: New file.
35781         * modules/unictype/property-alphabetic-tests: New file.
35782         * modules/unictype/property-ascii-hex-digit-tests: New file.
35783         * modules/unictype/property-bidi-arabic-digit-tests: New file.
35784         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
35785         * modules/unictype/property-bidi-block-separator-tests: New file.
35786         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
35787         * modules/unictype/property-bidi-common-separator-tests: New file.
35788         * modules/unictype/property-bidi-control-tests: New file.
35789         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
35790         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
35791         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
35792         * modules/unictype/property-bidi-european-digit-tests: New file.
35793         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
35794         * modules/unictype/property-bidi-left-to-right-tests: New file.
35795         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
35796         * modules/unictype/property-bidi-other-neutral-tests: New file.
35797         * modules/unictype/property-bidi-pdf-tests: New file.
35798         * modules/unictype/property-bidi-segment-separator-tests: New file.
35799         * modules/unictype/property-bidi-whitespace-tests: New file.
35800         * modules/unictype/property-byname-tests: New file.
35801         * modules/unictype/property-combining-tests: New file.
35802         * modules/unictype/property-composite-tests: New file.
35803         * modules/unictype/property-currency-symbol-tests: New file.
35804         * modules/unictype/property-dash-tests: New file.
35805         * modules/unictype/property-decimal-digit-tests: New file.
35806         * modules/unictype/property-default-ignorable-code-point-tests: New file.
35807         * modules/unictype/property-deprecated-tests: New file.
35808         * modules/unictype/property-diacritic-tests: New file.
35809         * modules/unictype/property-extender-tests: New file.
35810         * modules/unictype/property-format-control-tests: New file.
35811         * modules/unictype/property-grapheme-base-tests: New file.
35812         * modules/unictype/property-grapheme-extend-tests: New file.
35813         * modules/unictype/property-grapheme-link-tests: New file.
35814         * modules/unictype/property-hex-digit-tests: New file.
35815         * modules/unictype/property-hyphen-tests: New file.
35816         * modules/unictype/property-id-continue-tests: New file.
35817         * modules/unictype/property-id-start-tests: New file.
35818         * modules/unictype/property-ideographic-tests: New file.
35819         * modules/unictype/property-ids-binary-operator-tests: New file.
35820         * modules/unictype/property-ids-trinary-operator-tests: New file.
35821         * modules/unictype/property-ignorable-control-tests: New file.
35822         * modules/unictype/property-iso-control-tests: New file.
35823         * modules/unictype/property-join-control-tests: New file.
35824         * modules/unictype/property-left-of-pair-tests: New file.
35825         * modules/unictype/property-line-separator-tests: New file.
35826         * modules/unictype/property-logical-order-exception-tests: New file.
35827         * modules/unictype/property-lowercase-tests: New file.
35828         * modules/unictype/property-math-tests: New file.
35829         * modules/unictype/property-non-break-tests: New file.
35830         * modules/unictype/property-not-a-character-tests: New file.
35831         * modules/unictype/property-numeric-tests: New file.
35832         * modules/unictype/property-other-alphabetic-tests: New file.
35833         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
35834         * modules/unictype/property-other-grapheme-extend-tests: New file.
35835         * modules/unictype/property-other-id-continue-tests: New file.
35836         * modules/unictype/property-other-id-start-tests: New file.
35837         * modules/unictype/property-other-lowercase-tests: New file.
35838         * modules/unictype/property-other-math-tests: New file.
35839         * modules/unictype/property-other-uppercase-tests: New file.
35840         * modules/unictype/property-paired-punctuation-tests: New file.
35841         * modules/unictype/property-paragraph-separator-tests: New file.
35842         * modules/unictype/property-pattern-syntax-tests: New file.
35843         * modules/unictype/property-pattern-white-space-tests: New file.
35844         * modules/unictype/property-private-use-tests: New file.
35845         * modules/unictype/property-punctuation-tests: New file.
35846         * modules/unictype/property-quotation-mark-tests: New file.
35847         * modules/unictype/property-radical-tests: New file.
35848         * modules/unictype/property-sentence-terminal-tests: New file.
35849         * modules/unictype/property-soft-dotted-tests: New file.
35850         * modules/unictype/property-space-tests: New file.
35851         * modules/unictype/property-terminal-punctuation-tests: New file.
35852         * modules/unictype/property-test-tests: New file.
35853         * modules/unictype/property-titlecase-tests: New file.
35854         * modules/unictype/property-unassigned-code-value-tests: New file.
35855         * modules/unictype/property-unified-ideograph-tests: New file.
35856         * modules/unictype/property-uppercase-tests: New file.
35857         * modules/unictype/property-variation-selector-tests: New file.
35858         * modules/unictype/property-white-space-tests: New file.
35859         * modules/unictype/property-xid-continue-tests: New file.
35860         * modules/unictype/property-xid-start-tests: New file.
35861         * modules/unictype/property-zero-width-tests: New file.
35862         * modules/unictype/scripts-tests: New file.
35863         * modules/unictype/syntax-c-ident-tests: New file.
35864         * modules/unictype/syntax-c-whitespace-tests: New file.
35865         * modules/unictype/syntax-java-ident-tests: New file.
35866         * modules/unictype/syntax-java-whitespace-tests: New file.
35867         * tests/unictype/test-bidi_byname.c: New file.
35868         * tests/unictype/test-bidi_name.c: New file.
35869         * tests/unictype/test-bidi_of.c: New file.
35870         * tests/unictype/test-bidi_test.c: New file.
35871         * tests/unictype/test-block_list.c: New file.
35872         * tests/unictype/test-block_of.c: New file.
35873         * tests/unictype/test-block_test.c: New file.
35874         * tests/unictype/test-categ_and.c: New file.
35875         * tests/unictype/test-categ_and_not.c: New file.
35876         * tests/unictype/test-categ_byname.c: New file.
35877         * tests/unictype/test-categ_name.c: New file.
35878         * tests/unictype/test-categ_none.c: New file.
35879         * tests/unictype/test-categ_of.c: New file.
35880         * tests/unictype/test-categ_or.c: New file.
35881         * tests/unictype/test-categ_test_withtable.c: New file.
35882         * tests/unictype/test-combining.c: New file.
35883         * tests/unictype/test-decdigit.c: New file.
35884         * tests/unictype/test-digit.c: New file.
35885         * tests/unictype/test-mirror.c: New file.
35886         * tests/unictype/test-numeric.c: New file.
35887         * tests/unictype/test-pr_byname.c: New file.
35888         * tests/unictype/test-pr_test.c: New file.
35889         * tests/unictype/test-predicate-part1.h: New file.
35890         * tests/unictype/test-predicate-part2.h: New file.
35891         * tests/unictype/test-scripts.c: New file.
35892         * tests/unictype/test-sy_c_ident.c: New file.
35893         * tests/unictype/test-sy_java_ident.c: New file.
35894
35895         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
35896         for Unicode 5.0.0.
35897         * tests/unictype/test-categ_Cc.c: Likewise.
35898         * tests/unictype/test-categ_Cf.c: Likewise.
35899         * tests/unictype/test-categ_Cn.c: Likewise.
35900         * tests/unictype/test-categ_Co.c: Likewise.
35901         * tests/unictype/test-categ_Cs.c: Likewise.
35902         * tests/unictype/test-categ_L.c: Likewise.
35903         * tests/unictype/test-categ_Ll.c: Likewise.
35904         * tests/unictype/test-categ_Lm.c: Likewise.
35905         * tests/unictype/test-categ_Lo.c: Likewise.
35906         * tests/unictype/test-categ_Lt.c: Likewise.
35907         * tests/unictype/test-categ_Lu.c: Likewise.
35908         * tests/unictype/test-categ_M.c: Likewise.
35909         * tests/unictype/test-categ_Mc.c: Likewise.
35910         * tests/unictype/test-categ_Me.c: Likewise.
35911         * tests/unictype/test-categ_Mn.c: Likewise.
35912         * tests/unictype/test-categ_N.c: Likewise.
35913         * tests/unictype/test-categ_Nd.c: Likewise.
35914         * tests/unictype/test-categ_Nl.c: Likewise.
35915         * tests/unictype/test-categ_No.c: Likewise.
35916         * tests/unictype/test-categ_P.c: Likewise.
35917         * tests/unictype/test-categ_Pc.c: Likewise.
35918         * tests/unictype/test-categ_Pd.c: Likewise.
35919         * tests/unictype/test-categ_Pe.c: Likewise.
35920         * tests/unictype/test-categ_Pf.c: Likewise.
35921         * tests/unictype/test-categ_Pi.c: Likewise.
35922         * tests/unictype/test-categ_Po.c: Likewise.
35923         * tests/unictype/test-categ_Ps.c: Likewise.
35924         * tests/unictype/test-categ_S.c: Likewise.
35925         * tests/unictype/test-categ_Sc.c: Likewise.
35926         * tests/unictype/test-categ_Sk.c: Likewise.
35927         * tests/unictype/test-categ_Sm.c: Likewise.
35928         * tests/unictype/test-categ_So.c: Likewise.
35929         * tests/unictype/test-categ_Z.c: Likewise.
35930         * tests/unictype/test-categ_Zl.c: Likewise.
35931         * tests/unictype/test-categ_Zp.c: Likewise.
35932         * tests/unictype/test-categ_Zs.c: Likewise.
35933         * tests/unictype/test-ctype_alnum.c: Likewise.
35934         * tests/unictype/test-ctype_alpha.c: Likewise.
35935         * tests/unictype/test-ctype_blank.c: Likewise.
35936         * tests/unictype/test-ctype_cntrl.c: Likewise.
35937         * tests/unictype/test-ctype_digit.c: Likewise.
35938         * tests/unictype/test-ctype_graph.c: Likewise.
35939         * tests/unictype/test-ctype_lower.c: Likewise.
35940         * tests/unictype/test-ctype_print.c: Likewise.
35941         * tests/unictype/test-ctype_punct.c: Likewise.
35942         * tests/unictype/test-ctype_space.c: Likewise.
35943         * tests/unictype/test-ctype_upper.c: Likewise.
35944         * tests/unictype/test-ctype_xdigit.c: Likewise.
35945         * tests/unictype/test-decdigit.h: Likewise.
35946         * tests/unictype/test-digit.h: Likewise.
35947         * tests/unictype/test-numeric.h: Likewise.
35948         * tests/unictype/test-pr_alphabetic.c: Likewise.
35949         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
35950         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
35951         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
35952         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
35953         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
35954         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
35955         * tests/unictype/test-pr_bidi_control.c: Likewise.
35956         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
35957         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
35958         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
35959         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
35960         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
35961         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
35962         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
35963         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
35964         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
35965         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
35966         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
35967         * tests/unictype/test-pr_combining.c: Likewise.
35968         * tests/unictype/test-pr_composite.c: Likewise.
35969         * tests/unictype/test-pr_currency_symbol.c: Likewise.
35970         * tests/unictype/test-pr_dash.c: Likewise.
35971         * tests/unictype/test-pr_decimal_digit.c: Likewise.
35972         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
35973         * tests/unictype/test-pr_deprecated.c: Likewise.
35974         * tests/unictype/test-pr_diacritic.c: Likewise.
35975         * tests/unictype/test-pr_extender.c: Likewise.
35976         * tests/unictype/test-pr_format_control.c: Likewise.
35977         * tests/unictype/test-pr_grapheme_base.c: Likewise.
35978         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
35979         * tests/unictype/test-pr_grapheme_link.c: Likewise.
35980         * tests/unictype/test-pr_hex_digit.c: Likewise.
35981         * tests/unictype/test-pr_hyphen.c: Likewise.
35982         * tests/unictype/test-pr_id_continue.c: Likewise.
35983         * tests/unictype/test-pr_id_start.c: Likewise.
35984         * tests/unictype/test-pr_ideographic.c: Likewise.
35985         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
35986         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
35987         * tests/unictype/test-pr_ignorable_control.c: Likewise.
35988         * tests/unictype/test-pr_iso_control.c: Likewise.
35989         * tests/unictype/test-pr_join_control.c: Likewise.
35990         * tests/unictype/test-pr_left_of_pair.c: Likewise.
35991         * tests/unictype/test-pr_line_separator.c: Likewise.
35992         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
35993         * tests/unictype/test-pr_lowercase.c: Likewise.
35994         * tests/unictype/test-pr_math.c: Likewise.
35995         * tests/unictype/test-pr_non_break.c: Likewise.
35996         * tests/unictype/test-pr_not_a_character.c: Likewise.
35997         * tests/unictype/test-pr_numeric.c: Likewise.
35998         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
35999         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
36000         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
36001         * tests/unictype/test-pr_other_id_continue.c: Likewise.
36002         * tests/unictype/test-pr_other_id_start.c: Likewise.
36003         * tests/unictype/test-pr_other_lowercase.c: Likewise.
36004         * tests/unictype/test-pr_other_math.c: Likewise.
36005         * tests/unictype/test-pr_other_uppercase.c: Likewise.
36006         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
36007         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
36008         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
36009         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
36010         * tests/unictype/test-pr_private_use.c: Likewise.
36011         * tests/unictype/test-pr_punctuation.c: Likewise.
36012         * tests/unictype/test-pr_quotation_mark.c: Likewise.
36013         * tests/unictype/test-pr_radical.c: Likewise.
36014         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
36015         * tests/unictype/test-pr_soft_dotted.c: Likewise.
36016         * tests/unictype/test-pr_space.c: Likewise.
36017         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
36018         * tests/unictype/test-pr_titlecase.c: Likewise.
36019         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
36020         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
36021         * tests/unictype/test-pr_uppercase.c: Likewise.
36022         * tests/unictype/test-pr_variation_selector.c: Likewise.
36023         * tests/unictype/test-pr_white_space.c: Likewise.
36024         * tests/unictype/test-pr_xid_continue.c: Likewise.
36025         * tests/unictype/test-pr_xid_start.c: Likewise.
36026         * tests/unictype/test-pr_zero_width.c: Likewise.
36027         * tests/unictype/test-sy_c_whitespace.c: Likewise.
36028         * tests/unictype/test-sy_java_whitespace.c: Likewise.
36029
36030 2007-11-12  Bruno Haible  <bruno@clisp.org>
36031
36032         Unicode character classification functions.
36033         * lib/unictype.h: New file.
36034         * modules/unictype/base: New file.
36035         * modules/unictype/category-L: New file.
36036         * modules/unictype/category-Lu: New file.
36037         * modules/unictype/category-Ll: New file.
36038         * modules/unictype/category-Lt: New file.
36039         * modules/unictype/category-Lm: New file.
36040         * modules/unictype/category-Lo: New file.
36041         * modules/unictype/category-M: New file.
36042         * modules/unictype/category-Mn: New file.
36043         * modules/unictype/category-Mc: New file.
36044         * modules/unictype/category-Me: New file.
36045         * modules/unictype/category-N: New file.
36046         * modules/unictype/category-Nd: New file.
36047         * modules/unictype/category-Nl: New file.
36048         * modules/unictype/category-No: New file.
36049         * modules/unictype/category-P: New file.
36050         * modules/unictype/category-Pc: New file.
36051         * modules/unictype/category-Pd: New file.
36052         * modules/unictype/category-Ps: New file.
36053         * modules/unictype/category-Pe: New file.
36054         * modules/unictype/category-Pi: New file.
36055         * modules/unictype/category-Pf: New file.
36056         * modules/unictype/category-Po: New file.
36057         * modules/unictype/category-S: New file.
36058         * modules/unictype/category-Sm: New file.
36059         * modules/unictype/category-Sc: New file.
36060         * modules/unictype/category-Sk: New file.
36061         * modules/unictype/category-So: New file.
36062         * modules/unictype/category-Z: New file.
36063         * modules/unictype/category-Zs: New file.
36064         * modules/unictype/category-Zl: New file.
36065         * modules/unictype/category-Zp: New file.
36066         * modules/unictype/category-C: New file.
36067         * modules/unictype/category-Cc: New file.
36068         * modules/unictype/category-Cf: New file.
36069         * modules/unictype/category-Cs: New file.
36070         * modules/unictype/category-Co: New file.
36071         * modules/unictype/category-Cn: New file.
36072         * modules/unictype/category-or: New file.
36073         * modules/unictype/category-of: New file.
36074         * modules/unictype/category-test: New file.
36075         * modules/unictype/category-test-withtable: New file.
36076         * modules/unictype/category-byname: New file.
36077         * modules/unictype/category-none: New file.
36078         * modules/unictype/category-and: New file.
36079         * modules/unictype/category-and-not: New file.
36080         * modules/unictype/category-name: New file.
36081         * modules/unictype/combining-class: New file.
36082         * modules/unictype/category-all: New file.
36083         * modules/unictype/bidicategory-all: New file.
36084         * modules/unictype/bidicategory-byname: New file.
36085         * modules/unictype/bidicategory-name: New file.
36086         * modules/unictype/bidicategory-of: New file.
36087         * modules/unictype/bidicategory-test: New file.
36088         * modules/unictype/decimal-digit: New file.
36089         * modules/unictype/digit: New file.
36090         * modules/unictype/numeric: New file.
36091         * modules/unictype/mirror: New file.
36092         * modules/unictype/property-white-space: New file.
36093         * modules/unictype/property-alphabetic: New file.
36094         * modules/unictype/property-other-alphabetic: New file.
36095         * modules/unictype/property-not-a-character: New file.
36096         * modules/unictype/property-default-ignorable-code-point: New file.
36097         * modules/unictype/property-other-default-ignorable-code-point: New
36098         file.
36099         * modules/unictype/property-deprecated: New file.
36100         * modules/unictype/property-logical-order-exception: New file.
36101         * modules/unictype/property-variation-selector: New file.
36102         * modules/unictype/property-private-use: New file.
36103         * modules/unictype/property-unassigned-code-value: New file.
36104         * modules/unictype/property-uppercase: New file.
36105         * modules/unictype/property-other-uppercase: New file.
36106         * modules/unictype/property-lowercase: New file.
36107         * modules/unictype/property-other-lowercase: New file.
36108         * modules/unictype/property-titlecase: New file.
36109         * modules/unictype/property-soft-dotted: New file.
36110         * modules/unictype/property-id-start: New file.
36111         * modules/unictype/property-other-id-start: New file.
36112         * modules/unictype/property-id-continue: New file.
36113         * modules/unictype/property-other-id-continue: New file.
36114         * modules/unictype/property-xid-start: New file.
36115         * modules/unictype/property-xid-continue: New file.
36116         * modules/unictype/property-pattern-white-space: New file.
36117         * modules/unictype/property-pattern-syntax: New file.
36118         * modules/unictype/property-join-control: New file.
36119         * modules/unictype/property-grapheme-base: New file.
36120         * modules/unictype/property-grapheme-extend: New file.
36121         * modules/unictype/property-other-grapheme-extend: New file.
36122         * modules/unictype/property-grapheme-link: New file.
36123         * modules/unictype/property-bidi-control: New file.
36124         * modules/unictype/property-bidi-left-to-right: New file.
36125         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
36126         * modules/unictype/property-bidi-arabic-right-to-left: New file.
36127         * modules/unictype/property-bidi-european-digit: New file.
36128         * modules/unictype/property-bidi-eur-num-separator: New file.
36129         * modules/unictype/property-bidi-eur-num-terminator: New file.
36130         * modules/unictype/property-bidi-arabic-digit: New file.
36131         * modules/unictype/property-bidi-common-separator: New file.
36132         * modules/unictype/property-bidi-block-separator: New file.
36133         * modules/unictype/property-bidi-segment-separator: New file.
36134         * modules/unictype/property-bidi-whitespace: New file.
36135         * modules/unictype/property-bidi-non-spacing-mark: New file.
36136         * modules/unictype/property-bidi-boundary-neutral: New file.
36137         * modules/unictype/property-bidi-pdf: New file.
36138         * modules/unictype/property-bidi-embedding-or-override: New file.
36139         * modules/unictype/property-bidi-other-neutral: New file.
36140         * modules/unictype/property-hex-digit: New file.
36141         * modules/unictype/property-ascii-hex-digit: New file.
36142         * modules/unictype/property-ideographic: New file.
36143         * modules/unictype/property-unified-ideograph: New file.
36144         * modules/unictype/property-radical: New file.
36145         * modules/unictype/property-ids-binary-operator: New file.
36146         * modules/unictype/property-ids-trinary-operator: New file.
36147         * modules/unictype/property-zero-width: New file.
36148         * modules/unictype/property-space: New file.
36149         * modules/unictype/property-non-break: New file.
36150         * modules/unictype/property-iso-control: New file.
36151         * modules/unictype/property-format-control: New file.
36152         * modules/unictype/property-dash: New file.
36153         * modules/unictype/property-hyphen: New file.
36154         * modules/unictype/property-punctuation: New file.
36155         * modules/unictype/property-line-separator: New file.
36156         * modules/unictype/property-paragraph-separator: New file.
36157         * modules/unictype/property-quotation-mark: New file.
36158         * modules/unictype/property-sentence-terminal: New file.
36159         * modules/unictype/property-terminal-punctuation: New file.
36160         * modules/unictype/property-currency-symbol: New file.
36161         * modules/unictype/property-math: New file.
36162         * modules/unictype/property-other-math: New file.
36163         * modules/unictype/property-paired-punctuation: New file.
36164         * modules/unictype/property-left-of-pair: New file.
36165         * modules/unictype/property-combining: New file.
36166         * modules/unictype/property-composite: New file.
36167         * modules/unictype/property-decimal-digit: New file.
36168         * modules/unictype/property-numeric: New file.
36169         * modules/unictype/property-diacritic: New file.
36170         * modules/unictype/property-extender: New file.
36171         * modules/unictype/property-ignorable-control: New file.
36172         * modules/unictype/property-test: New file.
36173         * modules/unictype/property-byname: New file.
36174         * modules/unictype/property-all: New file.
36175         * modules/unictype/scripts: New file.
36176         * modules/unictype/scripts-all: New file.
36177         * modules/unictype/block-of: New file.
36178         * modules/unictype/block-test: New file.
36179         * modules/unictype/block-list: New file.
36180         * modules/unictype/block-all: New file.
36181         * modules/unictype/syntax-c-whitespace: New file.
36182         * modules/unictype/syntax-java-whitespace: New file.
36183         * modules/unictype/syntax-c-ident: New file.
36184         * modules/unictype/syntax-java-ident: New file.
36185         * modules/unictype/ctype-alnum: New file.
36186         * modules/unictype/ctype-alpha: New file.
36187         * modules/unictype/ctype-cntrl: New file.
36188         * modules/unictype/ctype-digit: New file.
36189         * modules/unictype/ctype-graph: New file.
36190         * modules/unictype/ctype-lower: New file.
36191         * modules/unictype/ctype-print: New file.
36192         * modules/unictype/ctype-punct: New file.
36193         * modules/unictype/ctype-space: New file.
36194         * modules/unictype/ctype-upper: New file.
36195         * modules/unictype/ctype-xdigit: New file.
36196         * modules/unictype/ctype-blank: New file.
36197         * lib/unictype/bidi_byname.c: New file.
36198         * lib/unictype/bidi_name.c: New file.
36199         * lib/unictype/bidi_of.c: New file.
36200         * lib/unictype/bidi_test.c: New file.
36201         * lib/unictype/bitmap.h: New file.
36202         * lib/unictype/block_test.c: New file.
36203         * lib/unictype/blocks.c: New file.
36204         * lib/unictype/categ_C.c: New file.
36205         * lib/unictype/categ_Cc.c: New file.
36206         * lib/unictype/categ_Cf.c: New file.
36207         * lib/unictype/categ_Cn.c: New file.
36208         * lib/unictype/categ_Co.c: New file.
36209         * lib/unictype/categ_Cs.c: New file.
36210         * lib/unictype/categ_L.c: New file.
36211         * lib/unictype/categ_Ll.c: New file.
36212         * lib/unictype/categ_Lm.c: New file.
36213         * lib/unictype/categ_Lo.c: New file.
36214         * lib/unictype/categ_Lt.c: New file.
36215         * lib/unictype/categ_Lu.c: New file.
36216         * lib/unictype/categ_M.c: New file.
36217         * lib/unictype/categ_Mc.c: New file.
36218         * lib/unictype/categ_Me.c: New file.
36219         * lib/unictype/categ_Mn.c: New file.
36220         * lib/unictype/categ_N.c: New file.
36221         * lib/unictype/categ_Nd.c: New file.
36222         * lib/unictype/categ_Nl.c: New file.
36223         * lib/unictype/categ_No.c: New file.
36224         * lib/unictype/categ_P.c: New file.
36225         * lib/unictype/categ_Pc.c: New file.
36226         * lib/unictype/categ_Pd.c: New file.
36227         * lib/unictype/categ_Pe.c: New file.
36228         * lib/unictype/categ_Pf.c: New file.
36229         * lib/unictype/categ_Pi.c: New file.
36230         * lib/unictype/categ_Po.c: New file.
36231         * lib/unictype/categ_Ps.c: New file.
36232         * lib/unictype/categ_S.c: New file.
36233         * lib/unictype/categ_Sc.c: New file.
36234         * lib/unictype/categ_Sk.c: New file.
36235         * lib/unictype/categ_Sm.c: New file.
36236         * lib/unictype/categ_So.c: New file.
36237         * lib/unictype/categ_Z.c: New file.
36238         * lib/unictype/categ_Zl.c: New file.
36239         * lib/unictype/categ_Zp.c: New file.
36240         * lib/unictype/categ_Zs.c: New file.
36241         * lib/unictype/categ_and.c: New file.
36242         * lib/unictype/categ_and_not.c: New file.
36243         * lib/unictype/categ_byname.c: New file.
36244         * lib/unictype/categ_name.c: New file.
36245         * lib/unictype/categ_none.c: New file.
36246         * lib/unictype/categ_of.c: New file.
36247         * lib/unictype/categ_or.c: New file.
36248         * lib/unictype/categ_test.c: New file.
36249         * lib/unictype/combining.c: New file.
36250         * lib/unictype/ctype_alnum.c: New file.
36251         * lib/unictype/ctype_alpha.c: New file.
36252         * lib/unictype/ctype_blank.c: New file.
36253         * lib/unictype/ctype_cntrl.c: New file.
36254         * lib/unictype/ctype_digit.c: New file.
36255         * lib/unictype/ctype_graph.c: New file.
36256         * lib/unictype/ctype_lower.c: New file.
36257         * lib/unictype/ctype_print.c: New file.
36258         * lib/unictype/ctype_punct.c: New file.
36259         * lib/unictype/ctype_space.c: New file.
36260         * lib/unictype/ctype_upper.c: New file.
36261         * lib/unictype/ctype_xdigit.c: New file.
36262         * lib/unictype/decdigit.c: New file.
36263         * lib/unictype/digit.c: New file.
36264         * lib/unictype/identsyntaxmap.h: New file.
36265         * lib/unictype/mirror.c: New file.
36266         * lib/unictype/numeric.c: New file.
36267         * lib/unictype/pr_alphabetic.c: New file.
36268         * lib/unictype/pr_ascii_hex_digit.c: New file.
36269         * lib/unictype/pr_bidi_arabic_digit.c: New file.
36270         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
36271         * lib/unictype/pr_bidi_block_separator.c: New file.
36272         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
36273         * lib/unictype/pr_bidi_common_separator.c: New file.
36274         * lib/unictype/pr_bidi_control.c: New file.
36275         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
36276         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
36277         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
36278         * lib/unictype/pr_bidi_european_digit.c: New file.
36279         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
36280         * lib/unictype/pr_bidi_left_to_right.c: New file.
36281         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
36282         * lib/unictype/pr_bidi_other_neutral.c: New file.
36283         * lib/unictype/pr_bidi_pdf.c: New file.
36284         * lib/unictype/pr_bidi_segment_separator.c: New file.
36285         * lib/unictype/pr_bidi_whitespace.c: New file.
36286         * lib/unictype/pr_byname.c: New file.
36287         * lib/unictype/pr_byname.gperf: New file.
36288         * lib/unictype/pr_combining.c: New file.
36289         * lib/unictype/pr_composite.c: New file.
36290         * lib/unictype/pr_currency_symbol.c: New file.
36291         * lib/unictype/pr_dash.c: New file.
36292         * lib/unictype/pr_decimal_digit.c: New file.
36293         * lib/unictype/pr_default_ignorable_code_point.c: New file.
36294         * lib/unictype/pr_deprecated.c: New file.
36295         * lib/unictype/pr_diacritic.c: New file.
36296         * lib/unictype/pr_extender.c: New file.
36297         * lib/unictype/pr_format_control.c: New file.
36298         * lib/unictype/pr_grapheme_base.c: New file.
36299         * lib/unictype/pr_grapheme_extend.c: New file.
36300         * lib/unictype/pr_grapheme_link.c: New file.
36301         * lib/unictype/pr_hex_digit.c: New file.
36302         * lib/unictype/pr_hyphen.c: New file.
36303         * lib/unictype/pr_id_continue.c: New file.
36304         * lib/unictype/pr_id_start.c: New file.
36305         * lib/unictype/pr_ideographic.c: New file.
36306         * lib/unictype/pr_ids_binary_operator.c: New file.
36307         * lib/unictype/pr_ids_trinary_operator.c: New file.
36308         * lib/unictype/pr_ignorable_control.c: New file.
36309         * lib/unictype/pr_iso_control.c: New file.
36310         * lib/unictype/pr_join_control.c: New file.
36311         * lib/unictype/pr_left_of_pair.c: New file.
36312         * lib/unictype/pr_line_separator.c: New file.
36313         * lib/unictype/pr_logical_order_exception.c: New file.
36314         * lib/unictype/pr_lowercase.c: New file.
36315         * lib/unictype/pr_math.c: New file.
36316         * lib/unictype/pr_non_break.c: New file.
36317         * lib/unictype/pr_not_a_character.c: New file.
36318         * lib/unictype/pr_numeric.c: New file.
36319         * lib/unictype/pr_other_alphabetic.c: New file.
36320         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
36321         * lib/unictype/pr_other_grapheme_extend.c: New file.
36322         * lib/unictype/pr_other_id_continue.c: New file.
36323         * lib/unictype/pr_other_id_start.c: New file.
36324         * lib/unictype/pr_other_lowercase.c: New file.
36325         * lib/unictype/pr_other_math.c: New file.
36326         * lib/unictype/pr_other_uppercase.c: New file.
36327         * lib/unictype/pr_paired_punctuation.c: New file.
36328         * lib/unictype/pr_paragraph_separator.c: New file.
36329         * lib/unictype/pr_pattern_syntax.c: New file.
36330         * lib/unictype/pr_pattern_white_space.c: New file.
36331         * lib/unictype/pr_private_use.c: New file.
36332         * lib/unictype/pr_punctuation.c: New file.
36333         * lib/unictype/pr_quotation_mark.c: New file.
36334         * lib/unictype/pr_radical.c: New file.
36335         * lib/unictype/pr_sentence_terminal.c: New file.
36336         * lib/unictype/pr_soft_dotted.c: New file.
36337         * lib/unictype/pr_space.c: New file.
36338         * lib/unictype/pr_terminal_punctuation.c: New file.
36339         * lib/unictype/pr_test.c: New file.
36340         * lib/unictype/pr_titlecase.c: New file.
36341         * lib/unictype/pr_unassigned_code_value.c: New file.
36342         * lib/unictype/pr_unified_ideograph.c: New file.
36343         * lib/unictype/pr_uppercase.c: New file.
36344         * lib/unictype/pr_variation_selector.c: New file.
36345         * lib/unictype/pr_white_space.c: New file.
36346         * lib/unictype/pr_xid_continue.c: New file.
36347         * lib/unictype/pr_xid_start.c: New file.
36348         * lib/unictype/pr_zero_width.c: New file.
36349         * lib/unictype/scripts.c: New file.
36350         * lib/unictype/sy_c_ident.c: New file.
36351         * lib/unictype/sy_c_whitespace.c: New file.
36352         * lib/unictype/sy_java_ident.c: New file.
36353         * lib/unictype/sy_java_whitespace.c: New file.
36354
36355         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
36356         Unicode 5.0.0.
36357         * lib/unictype/blocks.h: Likewise.
36358         * lib/unictype/categ_C.h: Likewise.
36359         * lib/unictype/categ_Cc.h: Likewise.
36360         * lib/unictype/categ_Cf.h: Likewise.
36361         * lib/unictype/categ_Cn.h: Likewise.
36362         * lib/unictype/categ_Co.h: Likewise.
36363         * lib/unictype/categ_Cs.h: Likewise.
36364         * lib/unictype/categ_L.h: Likewise.
36365         * lib/unictype/categ_Ll.h: Likewise.
36366         * lib/unictype/categ_Lm.h: Likewise.
36367         * lib/unictype/categ_Lo.h: Likewise.
36368         * lib/unictype/categ_Lt.h: Likewise.
36369         * lib/unictype/categ_Lu.h: Likewise.
36370         * lib/unictype/categ_M.h: Likewise.
36371         * lib/unictype/categ_Mc.h: Likewise.
36372         * lib/unictype/categ_Me.h: Likewise.
36373         * lib/unictype/categ_Mn.h: Likewise.
36374         * lib/unictype/categ_N.h: Likewise.
36375         * lib/unictype/categ_Nd.h: Likewise.
36376         * lib/unictype/categ_Nl.h: Likewise.
36377         * lib/unictype/categ_No.h: Likewise.
36378         * lib/unictype/categ_P.h: Likewise.
36379         * lib/unictype/categ_Pc.h: Likewise.
36380         * lib/unictype/categ_Pd.h: Likewise.
36381         * lib/unictype/categ_Pe.h: Likewise.
36382         * lib/unictype/categ_Pf.h: Likewise.
36383         * lib/unictype/categ_Pi.h: Likewise.
36384         * lib/unictype/categ_Po.h: Likewise.
36385         * lib/unictype/categ_Ps.h: Likewise.
36386         * lib/unictype/categ_S.h: Likewise.
36387         * lib/unictype/categ_Sc.h: Likewise.
36388         * lib/unictype/categ_Sk.h: Likewise.
36389         * lib/unictype/categ_Sm.h: Likewise.
36390         * lib/unictype/categ_So.h: Likewise.
36391         * lib/unictype/categ_Z.h: Likewise.
36392         * lib/unictype/categ_Zl.h: Likewise.
36393         * lib/unictype/categ_Zp.h: Likewise.
36394         * lib/unictype/categ_Zs.h: Likewise.
36395         * lib/unictype/categ_of.h: Likewise.
36396         * lib/unictype/combining.h: Likewise.
36397         * lib/unictype/ctype_alnum.h: Likewise.
36398         * lib/unictype/ctype_alpha.h: Likewise.
36399         * lib/unictype/ctype_blank.h: Likewise.
36400         * lib/unictype/ctype_cntrl.h: Likewise.
36401         * lib/unictype/ctype_digit.h: Likewise.
36402         * lib/unictype/ctype_graph.h: Likewise.
36403         * lib/unictype/ctype_lower.h: Likewise.
36404         * lib/unictype/ctype_print.h: Likewise.
36405         * lib/unictype/ctype_punct.h: Likewise.
36406         * lib/unictype/ctype_space.h: Likewise.
36407         * lib/unictype/ctype_upper.h: Likewise.
36408         * lib/unictype/ctype_xdigit.h: Likewise.
36409         * lib/unictype/decdigit.h: Likewise.
36410         * lib/unictype/digit.h: Likewise.
36411         * lib/unictype/mirror.h: Likewise.
36412         * lib/unictype/numeric.h: Likewise.
36413         * lib/unictype/pr_alphabetic.h: Likewise.
36414         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
36415         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
36416         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
36417         * lib/unictype/pr_bidi_block_separator.h: Likewise.
36418         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
36419         * lib/unictype/pr_bidi_common_separator.h: Likewise.
36420         * lib/unictype/pr_bidi_control.h: Likewise.
36421         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
36422         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
36423         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
36424         * lib/unictype/pr_bidi_european_digit.h: Likewise.
36425         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
36426         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
36427         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
36428         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
36429         * lib/unictype/pr_bidi_pdf.h: Likewise.
36430         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
36431         * lib/unictype/pr_bidi_whitespace.h: Likewise.
36432         * lib/unictype/pr_combining.h: Likewise.
36433         * lib/unictype/pr_composite.h: Likewise.
36434         * lib/unictype/pr_currency_symbol.h: Likewise.
36435         * lib/unictype/pr_dash.h: Likewise.
36436         * lib/unictype/pr_decimal_digit.h: Likewise.
36437         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
36438         * lib/unictype/pr_deprecated.h: Likewise.
36439         * lib/unictype/pr_diacritic.h: Likewise.
36440         * lib/unictype/pr_extender.h: Likewise.
36441         * lib/unictype/pr_format_control.h: Likewise.
36442         * lib/unictype/pr_grapheme_base.h: Likewise.
36443         * lib/unictype/pr_grapheme_extend.h: Likewise.
36444         * lib/unictype/pr_grapheme_link.h: Likewise.
36445         * lib/unictype/pr_hex_digit.h: Likewise.
36446         * lib/unictype/pr_hyphen.h: Likewise.
36447         * lib/unictype/pr_id_continue.h: Likewise.
36448         * lib/unictype/pr_id_start.h: Likewise.
36449         * lib/unictype/pr_ideographic.h: Likewise.
36450         * lib/unictype/pr_ids_binary_operator.h: Likewise.
36451         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
36452         * lib/unictype/pr_ignorable_control.h: Likewise.
36453         * lib/unictype/pr_iso_control.h: Likewise.
36454         * lib/unictype/pr_join_control.h: Likewise.
36455         * lib/unictype/pr_left_of_pair.h: Likewise.
36456         * lib/unictype/pr_line_separator.h: Likewise.
36457         * lib/unictype/pr_logical_order_exception.h: Likewise.
36458         * lib/unictype/pr_lowercase.h: Likewise.
36459         * lib/unictype/pr_math.h: Likewise.
36460         * lib/unictype/pr_non_break.h: Likewise.
36461         * lib/unictype/pr_not_a_character.h: Likewise.
36462         * lib/unictype/pr_numeric.h: Likewise.
36463         * lib/unictype/pr_other_alphabetic.h: Likewise.
36464         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
36465         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
36466         * lib/unictype/pr_other_id_continue.h: Likewise.
36467         * lib/unictype/pr_other_id_start.h: Likewise.
36468         * lib/unictype/pr_other_lowercase.h: Likewise.
36469         * lib/unictype/pr_other_math.h: Likewise.
36470         * lib/unictype/pr_other_uppercase.h: Likewise.
36471         * lib/unictype/pr_paired_punctuation.h: Likewise.
36472         * lib/unictype/pr_paragraph_separator.h: Likewise.
36473         * lib/unictype/pr_pattern_syntax.h: Likewise.
36474         * lib/unictype/pr_pattern_white_space.h: Likewise.
36475         * lib/unictype/pr_private_use.h: Likewise.
36476         * lib/unictype/pr_punctuation.h: Likewise.
36477         * lib/unictype/pr_quotation_mark.h: Likewise.
36478         * lib/unictype/pr_radical.h: Likewise.
36479         * lib/unictype/pr_sentence_terminal.h: Likewise.
36480         * lib/unictype/pr_soft_dotted.h: Likewise.
36481         * lib/unictype/pr_space.h: Likewise.
36482         * lib/unictype/pr_terminal_punctuation.h: Likewise.
36483         * lib/unictype/pr_titlecase.h: Likewise.
36484         * lib/unictype/pr_unassigned_code_value.h: Likewise.
36485         * lib/unictype/pr_unified_ideograph.h: Likewise.
36486         * lib/unictype/pr_uppercase.h: Likewise.
36487         * lib/unictype/pr_variation_selector.h: Likewise.
36488         * lib/unictype/pr_white_space.h: Likewise.
36489         * lib/unictype/pr_xid_continue.h: Likewise.
36490         * lib/unictype/pr_xid_start.h: Likewise.
36491         * lib/unictype/pr_zero_width.h: Likewise.
36492         * lib/unictype/scripts.h: Likewise.
36493         * lib/unictype/scripts_byname.gperf: Likewise.
36494         * lib/unictype/sy_c_ident.h: Likewise.
36495         * lib/unictype/sy_c_whitespace.h: Likewise.
36496         * lib/unictype/sy_java_ident.h: Likewise.
36497         * lib/unictype/sy_java_whitespace.h: Likewise.
36498
36499         * lib/unictype/Makefile: New file.
36500         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
36501         glibc.
36502         * lib/unictype/3level.h: New file, copied from glibc.
36503         * lib/unictype/3levelbit.h: New file.
36504
36505 2007-11-11  Bruno Haible  <bruno@clisp.org>
36506
36507         * modules/gperf: New file.
36508         * modules/iconv_open (Depends-on): Add it.
36509         (Makefile.am): Remove the GPERF definition.
36510
36511 2007-11-11  Bruno Haible  <bruno@clisp.org>
36512
36513         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
36514         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
36515
36516 2007-11-11  Bruno Haible  <bruno@clisp.org>
36517
36518         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
36519         (usage): Remove function.
36520
36521 2007-11-11  Bruno Haible  <bruno@clisp.org>
36522
36523         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
36524         gl_FUNC_CEILF_LIBS.
36525         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
36526         gl_FUNC_CEIL_LIBS.
36527         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
36528         gl_FUNC_CEILL_LIBS.
36529         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
36530         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
36531         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
36532
36533 2007-11-11  Bruno Haible  <bruno@clisp.org>
36534
36535         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
36536         roundf were declared but do not exist on functions.
36537         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
36538         roundl were declared but do not exist on functions.
36539         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
36540         HAVE_FLOORL_AND_CEILL, respectively.
36541         Needed for Sun C on Solaris 10.
36542
36543 2007-11-11  Bruno Haible  <bruno@clisp.org>
36544
36545         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
36546         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
36547         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
36548         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
36549         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
36550         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
36551         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
36552         HAVE_DECL_ROUNDF.
36553         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
36554         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
36555         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
36556         of HAVE_DECL_ROUND*.
36557         * modules/math (Makefile.am): Update.
36558
36559 2007-11-10  Bruno Haible  <bruno@clisp.org>
36560
36561         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
36562         ptrdiff_t as m4/intl.m4.
36563
36564 2007-11-10  Jim Meyering  <meyering@redhat.com>
36565
36566         Avoid link failure for the argmatch test.
36567         * tests/test-argmatch.c (usage): Define function to avoid a link
36568         failure: argmatch_die requires a usage function.
36569
36570 2007-11-09  Bruno Haible  <bruno@clisp.org>
36571
36572         * doc/functions/snprintf.texi: Mention BeOS deficiency.
36573         * doc/functions/vsnprintf.texi: Likewise.
36574         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
36575         with a size argument < 2.
36576
36577 2007-11-09  Bruno Haible  <bruno@clisp.org>
36578
36579         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
36580         buffer. Fixes an inefficiency introduced on 2007-11-03.
36581
36582 2007-11-09  Bruno Haible  <bruno@clisp.org>
36583
36584         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
36585         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
36586
36587 2007-11-08  Jim Meyering  <meyering@redhat.com>
36588
36589         Change cache variable name prefix "jm_" to "gl_" everywhere.
36590         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
36591         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
36592         * m4/uptime.m4: s/gl_/jm_/
36593
36594 2007-11-07  Bruno Haible  <bruno@clisp.org>
36595
36596         Update to GNU gettext 0.17.
36597         * m4/intl.m4: Update to GNU gettext 0.17.
36598         * m4/po.m4: Likewise.
36599         * modules/gettext (Files): Remove m4/ulonglong.m4.
36600         (configure.ac): Require gettext infrastructure from version 0.17.
36601
36602 2007-11-06  Bruno Haible  <bruno@clisp.org>
36603
36604         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
36605         symbolic values are not defined in a public header.
36606         * lib/freadable.c (freadable) [QNX]: Likewise.
36607         * lib/freadahead.c (freadahead) [QNX]: Likewise.
36608         * lib/freading.c (freading) [QNX]: Likewise.
36609         * lib/fseterr.c (fseterr) [QNX]: Likewise.
36610         * lib/fwritable.c (fwritable) [QNX]: Likewise.
36611         * lib/fwriting.c (fwriting) [QNX]: Likewise.
36612         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
36613         Reported by Alain Magloire.
36614
36615         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
36616
36617 2007-11-05  Bruno Haible  <bruno@clisp.org>
36618
36619         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
36620         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
36621         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
36622         Reported by Eric Blake.
36623
36624 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36625             Bruno Haible  <bruno@clisp.org>
36626
36627         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
36628         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
36629         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
36630         (malloc): Undefine also before including <stdlib.h>.
36631         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
36632         Needed on OSF/1 4.0.
36633
36634 2007-11-05  Jim Meyering  <meyering@redhat.com>
36635
36636         git-version-gen: sync from coreutils.
36637         * build-aux/git-version-gen: Add comments.
36638         Change the first '-' to '.' in the snapshot version string,
36639         e.g., 6.9-377-08144 -> 6.9.377-08144
36640         Remove first parameter.
36641         Don't declare a version "-dirty" merely because a time
36642         stamp has changed.
36643
36644 2007-11-04  Bruno Haible  <bruno@clisp.org>
36645
36646         * lib/lock.h: Protect all macro definitions containing an 'if'
36647         statement through a "do { ... } while (0)".
36648         * lib/tls.h: Likewise.
36649
36650 2007-11-04  Bruno Haible  <bruno@clisp.org>
36651
36652         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
36653
36654 2007-11-04  Bruno Haible  <bruno@clisp.org>
36655
36656         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
36657         * modules/fprintf-posix (Depends-on): Add nocrash.
36658         * modules/snprintf-posix (Depends-on): Likewise.
36659         * modules/sprintf-posix (Depends-on): Likewise.
36660         * modules/vasnprintf-posix (Depends-on): Likewise.
36661         * modules/vasprintf-posix (Depends-on): Likewise.
36662         * modules/vfprintf-posix (Depends-on): Likewise.
36663         * modules/vsnprintf-posix (Depends-on): Likewise.
36664         * modules/vsprintf-posix (Depends-on): Likewise.
36665         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
36666         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
36667         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
36668         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
36669         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
36670         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
36671         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
36672
36673 2007-11-04  Bruno Haible  <bruno@clisp.org>
36674
36675         * modules/nocrash: New file.
36676         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
36677         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
36678
36679 2007-11-04  Bruno Haible  <bruno@clisp.org>
36680
36681         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
36682         precision handling.
36683         * tests/test-vasprintf-posix.c (test_function): Likewise.
36684         * tests/test-snprintf-posix.h (test_function): Likewise.
36685         * tests/test-sprintf-posix.h (test_function): Likewise.
36686
36687         Fix *printf behaviour for large precisions on mingw and BeOS.
36688         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
36689         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
36690         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
36691         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
36692         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
36693         gl_PRINTF_PRECISION and test its result. Invoke
36694         gl_PREREQ_VASNPRINTF_PRECISION.
36695         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
36696         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
36697         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
36698         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
36699         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
36700         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
36701         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
36702         * doc/functions/fprintf.texi: Update.
36703         * doc/functions/printf.texi: Update.
36704         * doc/functions/snprintf.texi: Update.
36705         * doc/functions/sprintf.texi: Update.
36706         * doc/functions/vfprintf.texi: Update.
36707         * doc/functions/vprintf.texi: Update.
36708         * doc/functions/vsnprintf.texi: Update.
36709         * doc/functions/vsprintf.texi: Update.
36710
36711 2007-11-04  Bruno Haible  <bruno@clisp.org>
36712
36713         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
36714
36715 2007-11-04  Bruno Haible  <bruno@clisp.org>
36716
36717         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
36718         Reported by Sylvain Beucler <beuc@gnu.org>.
36719
36720 2007-11-03  Bruno Haible  <bruno@clisp.org>
36721
36722         * tests/test-fprintf-posix2.sh: New file.
36723         * tests/test-fprintf-posix2.c: New file.
36724         * modules/fprintf-posix-tests (Files): Add them.
36725         (TESTS): Add test-fprintf-posix2.sh.
36726         (configure.ac): Check for getrlimit and setrlimit.
36727         (check_PROGRAMS): Add test-fprintf-posix2.
36728
36729         * tests/test-printf-posix2.sh: New file.
36730         * tests/test-printf-posix2.c: New file.
36731         * modules/printf-posix-tests (Files): Add them.
36732         (TESTS): Add test-printf-posix2.sh.
36733         (configure.ac): Check for getrlimit and setrlimit.
36734         (check_PROGRAMS): Add test-printf-posix2.
36735
36736         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
36737         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
36738         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
36739         (decode_double): New function, copied from decode_long_double.
36740         (scale10_round_decimal_decoded): New function, extracted from
36741         scale10_round_decimal_long_double.
36742         (scale10_round_decimal_long_double): Use it.
36743         (scale10_round_decimal_double): New function.
36744         (floorlog10): New function.
36745         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
36746         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
36747         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
36748         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
36749         gl_PRINTF_ENOMEM and test its result. Invoke
36750         gl_PREREQ_VASNPRINTF_ENOMEM.
36751         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
36752         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
36753         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
36754         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
36755         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
36756         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
36757         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
36758         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
36759         * modules/snprintf-posix (Depends-on): Likewise.
36760         * modules/sprintf-posix (Depends-on): Likewise.
36761         * modules/vasnprintf-posix (Depends-on): Likewise.
36762         * modules/vasprintf-posix (Depends-on): Likewise.
36763         * modules/vfprintf-posix (Depends-on): Likewise.
36764         * modules/vsnprintf-posix (Depends-on): Likewise.
36765         * modules/vsprintf-posix (Depends-on): Likewise.
36766         * doc/functions/fprintf.texi: Update.
36767         * doc/functions/printf.texi: Update.
36768         * doc/functions/snprintf.texi: Update.
36769         * doc/functions/sprintf.texi: Update.
36770         * doc/functions/vfprintf.texi: Update.
36771         * doc/functions/vprintf.texi: Update.
36772         * doc/functions/vsnprintf.texi: Update.
36773         * doc/functions/vsprintf.texi: Update.
36774
36775 2007-11-03  Bruno Haible  <bruno@clisp.org>
36776
36777         * modules/frexp-nolibm-tests: New file.
36778
36779         * modules/frexp-nolibm: New file.
36780         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
36781
36782 2007-11-03  Bruno Haible  <bruno@clisp.org>
36783
36784         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
36785         value is C99 compliant.
36786         Needed for OSF/1 5.1.
36787
36788 2007-11-03  Bruno Haible  <bruno@clisp.org>
36789
36790         Fix out-of-memory handling of vasnprintf.
36791         * lib/printf-parse.c: Include <errno.h>.
36792         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
36793         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
36794         is already set.
36795
36796 2007-11-02  Eric Blake  <ebb9@byu.net>
36797
36798         Fix tests on cygwin.
36799         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
36800
36801 2007-11-01  Bruno Haible  <bruno@clisp.org>
36802
36803         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
36804         warning.
36805         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
36806         needed for POSIX compatibility.
36807
36808 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
36809
36810         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
36811         for compatibility with GNU.
36812
36813 2007-11-01  Bruno Haible  <bruno@clisp.org>
36814
36815         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
36816         (putenv): Renamed from rpl_putenv. Change argument type from
36817         'const char *' to 'char *'.
36818         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
36819         of defining putenv in config.h, just set REPLACE_PUTENV.
36820         * modules/putenv (Depends-on): Add stdlib.
36821         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
36822         (Include): Use <stdlib.h>.
36823         * lib/stdlib.in.h (putenv): New declaration.
36824         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
36825         REPLACE_PUTENV.
36826         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
36827         REPLACE_PUTENV.
36828         Needed for MacOS X 10.5.0.
36829         Reported by Peter O'Gorman <peter@pogma.com>.
36830
36831 2007-11-01  Jim Meyering  <meyering@redhat.com>
36832
36833         Treat an empty date string exactly like "0".
36834         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
36835         if the remaining date string (to be parsed) is empty, use "0".
36836         Reported by Mischa Molhoek and discussed in this thread:
36837         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
36838
36839 2007-10-31  Bruno Haible  <bruno@clisp.org>
36840
36841         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
36842         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
36843         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
36844         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
36845         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
36846         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
36847
36848 2007-10-31  Bruno Haible  <bruno@clisp.org>
36849
36850         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
36851         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
36852         (AC_TYPE_LONG_LONG_INT): Use it.
36853         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
36854         it as well.
36855         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
36856         to m4/longlong.m4.
36857         * modules/stdint (Files): Remove m4/ulonglong.m4.
36858         * modules/strtoull (Files): Use m4/longlong.m4 instead of
36859         m4/ulonglong.m4.
36860         * modules/strtoumax (Files): Likewise.
36861
36862 2007-10-30  Bruno Haible  <bruno@clisp.org>
36863
36864         * modules/xvasprintf-posix: New file.
36865         Suggested by Eric Blake.
36866
36867 2007-10-30  Bruno Haible  <bruno@clisp.org>
36868
36869         * modules/xprintf-posix-tests: New file.
36870         * tests/test-xprintf-posix.sh: New file.
36871         * tests/test-xprintf-posix.c: New file.
36872         * tests/test-xfprintf-posix.c: New file.
36873
36874         * modules/xprintf-posix: New file.
36875
36876 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36877
36878         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
36879         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
36880         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
36881
36882 2007-10-29  Bruno Haible  <bruno@clisp.org>
36883
36884         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
36885         contain the special marker '_cv_'.
36886         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
36887         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
36888         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
36889         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
36890         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
36891         Reported by Ralf Wildenhues.
36892
36893 2007-10-29  Bruno Haible  <bruno@clisp.org>
36894
36895         * gnulib-tool (func_import): When --lgpl is not specified, set
36896         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
36897         GPLv3.
36898         Reported by Simon Josefsson.
36899
36900 2007-10-28  Bruno Haible  <bruno@clisp.org>
36901
36902         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
36903         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
36904         HAVE_DECL_ISFINITE.
36905         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
36906         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
36907         HAVE_DECL_ISFINITE.
36908
36909 2007-10-28  Bruno Haible  <bruno@clisp.org>
36910
36911         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
36912         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
36913
36914 2007-10-28  Bruno Haible  <bruno@clisp.org>
36915
36916         Fix link errors with Sun C 5.0 on Solaris 10.
36917         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
36918         function is declared but not present in the compiler's libm.
36919         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
36920         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
36921         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
36922         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
36923         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
36924         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
36925         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
36926         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
36927         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
36928         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
36929         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
36930         HAVE_DECL_FLOORL.
36931
36932 2007-10-28  Bruno Haible  <bruno@clisp.org>
36933
36934         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
36935         gl_FUNC_FLOORL. Cache the result.
36936         (gl_FUNC_FLOORL): Use it.
36937         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
36938         gl_FUNC_CEILL. Cache the result.
36939         (gl_FUNC_CEILL): Use it.
36940
36941         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
36942         gl_FUNC_FLOOR. Cache the result.
36943         (gl_FUNC_FLOOR): Use it.
36944         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
36945         gl_FUNC_CEIL. Cache the result.
36946         (gl_FUNC_CEIL): Use it.
36947
36948         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
36949         gl_FUNC_FLOORF. Cache the result.
36950         (gl_FUNC_FLOORF): Use it.
36951         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
36952         gl_FUNC_CEILF. Cache the result.
36953         (gl_FUNC_CEILF): Use it.
36954
36955 2007-10-28  Bruno Haible  <bruno@clisp.org>
36956
36957         * gnulib-tool: Allow specifying the LGPL version number through
36958         --lgpl=2 or --lgpl=3.
36959         (func_usage): Document --lgpl with argument.
36960         Handle --lgpl=... arguments.
36961         (func_import): Recognize also gl_LGPL calls with an argument. When
36962         --lgpl=2 is used and the module's license is just LGPL, report an
36963         error. Set sed_transform_lib_file according to the lgpl variable. In
36964         the generated files, use --lgpl or gl_LGPL invocations with argument,
36965         if necessary.
36966         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
36967         an LGPv2+ license.
36968         * doc/gnulib-tool.texi (Modified imports): Update explanation of
36969         gl_LGPL macro.
36970
36971 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36972             Bruno Haible  <bruno@clisp.org>
36973
36974         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
36975         (u16_uctomb_aux): Likewise.
36976         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
36977         !HAVE_INLINE.
36978         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
36979
36980 2007-10-28  Bruno Haible  <bruno@clisp.org>
36981
36982         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
36983         Invoke AM_GETTEXT_OPTION if it exists.
36984         * modules/vasprintf: Likewise.
36985         * modules/verror: Likewise.
36986         * modules/xprintf: Likewise.
36987         * modules/xvasprintf: Likewise.
36988
36989 2007-10-27  Ben Pfaff  <blp@gnu.org>
36990
36991         * lib/math.in.h: Define isfinite macro and prototypes for
36992         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
36993         implementations.
36994         * m4/math_h.m4: New substitutions for isfinite module.
36995         * lib/isfinite.c: New file.
36996         * m4/isfinite.m4: New file.
36997         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
36998         * modules/isfinite: New file.
36999         * modules/isfinite-tests: New file.
37000         * tests/tests-isfinite.c: New file.
37001         * doc/functions/isfinite.texi: Mention isfinite module.
37002         * MODULES.html.sh: Mention new module.
37003
37004 2007-10-27  Ben Pfaff  <blp@gnu.org>
37005
37006         Ralf Wildenhues reported that Tru64 4.0D declares the round
37007         functions but does not have definitions.
37008         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
37009         cannot be found in any library, set the output variable to
37010         "missing" instead of "".
37011         * m4/round.m4: Also use our substitute if we cannot find round in
37012         any library, even if it is declared.
37013         * m4/roundf.m4: Likewise for roundf.
37014         * m4/roundl.m4: Likewise for roundl.
37015         * lib/math.in.h: Undefine roundf, round, roundl before defining
37016         their replacements, to allow for hypothetical systems where these
37017         may be defined as macros but not available in libraries.
37018
37019 2007-10-27  Bruno Haible  <bruno@clisp.org>
37020
37021         * doc/gnulib.texi: Invoke @firstparagraphindent.
37022         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
37023         changes in gnulib.
37024         (Source changes): New section.
37025
37026 2007-10-26  Bruno Haible  <bruno@clisp.org>
37027
37028         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
37029         borrowed from autoconf.
37030
37031 2007-10-26  Bruno Haible  <bruno@clisp.org>
37032
37033         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
37034         strerror returned the empty string. Needed on HP-UX 11.00.
37035
37036 2007-10-24  Micah Cowan  <micah@cowan.name>
37037
37038         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
37039         * build-aux/bootstrap: Remove support for now-unnecessary option,
37040         --cvs-user, and envvars CVS_USER, CVS_RSH.
37041
37042 2007-10-24  Jim Meyering  <meyering@redhat.com>
37043
37044         Avoid diagnostics from sha1sum when there is no cached checksum.
37045         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
37046         if the po.s1 file hasn't been created yet.
37047
37048         * build-aux/bootstrap: Sync from coreutils:
37049         2007-10-24  Jim Meyering  <meyering@redhat.com>
37050         Get gnulib from the git repository, not from an obsolete cvs one.
37051         * build-aux/bootstrap: Suggestion from Micah Cowan.
37052         2007-10-04  Jim Meyering  <jim@meyering.net>
37053         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
37054         (update_po_files): Work also when there are no .po files in po/.
37055
37056 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
37057
37058         * README: Append ".git" to git and cg examples.
37059         Problem reported by Benoit Sigoure.
37060
37061 2007-10-23  Micah Cowan  <micah@cowan.name>
37062
37063         * users.txt: Add wget.
37064
37065 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37066
37067         Fix linking of some unistdio tests on FreeBSD.
37068         * modules/unistdio/u16-vsnprintf-tests
37069         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
37070         * modules/unistdio/u16-vsprintf-tests
37071         (test_u16_vsnprintf1_LDADD): Likewise.
37072         * modules/unistdio/u32-vsnprintf-tests
37073         (test_u32_vsnprintf1_LDADD): Likewise.
37074         * modules/unistdio/u32-vsprintf-tests
37075         (test_u32_vsprintf1_LDADD): Likewise.
37076         * modules/unistdio/u8-vsnprintf-tests
37077         (test_u8_vsnprintf1_LDADD): Likewise.
37078         * modules/unistdio/u8-vsprintf-tests
37079         (test_u8_vsprintf1_LDADD): Likewise.
37080         * modules/unistdio/ulc-vsnprintf-tests
37081         (test_ulc_vsnprintf1_LDADD): Likewise.
37082         * modules/unistdio/ulc-vsprintf-tests
37083         (test_ulc_vsprintf1_LDADD): Likewise.
37084
37085         Fix linking of some uniconv tests on FreeBSD.
37086         * modules/uniconv/u16-conv-from-enc-tests
37087         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
37088         * modules/uniconv/u16-conv-to-enc-tests
37089         (test_u16_conv_to_enc_LDADD): Likewise.
37090         * modules/uniconv/u16-strconv-from-enc-tests
37091         (test_u16_strconv_from_enc_LDADD): Likewise.
37092         * modules/uniconv/u16-strconv-to-enc-tests
37093         (test_u16_strconv_to_enc_LDADD): Likewise.
37094         * modules/uniconv/u32-conv-from-enc-tests
37095         (test_u32_conv_from_enc_LDADD): Likewise.
37096         * modules/uniconv/u32-conv-to-enc-tests
37097         (test_u32_conv_to_enc_LDADD): Likewise.
37098         * modules/uniconv/u32-strconv-from-enc-tests
37099         (test_u32_strconv_from_enc_LDADD): Likewise.
37100         * modules/uniconv/u32-strconv-to-enc-tests
37101         (test_u32_strconv_to_enc_LDADD): Likewise.
37102         * modules/uniconv/u8-conv-from-enc-tests
37103         (test_u8_conv_from_enc_LDADD): Likewise.
37104         * modules/uniconv/u8-conv-to-enc-tests
37105         (test_u8_conv_to_enc_LDADD): Likewise.
37106         * modules/uniconv/u8-strconv-from-enc-tests
37107         (test_u8_strconv_from_enc_LDADD): Likewise.
37108         * modules/uniconv/u8-strconv-to-enc-tests
37109         (test_u8_strconv_to_enc_LDADD): Likewise.
37110
37111 2007-10-22  Bruno Haible  <bruno@clisp.org>
37112
37113         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
37114         size.
37115
37116 2007-10-22  Eric Blake  <ebb9@byu.net>
37117
37118         Tweak x*printf documentation.
37119         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
37120         variable name and comments.
37121         Suggested by Bruno Haible.
37122
37123 2007-10-22  Bruno Haible  <bruno@clisp.org>
37124
37125         * lib/acl.c (copy_acl): Fix file name in comment.
37126
37127 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
37128
37129         Fix Tru64 problem with stdbool.h.
37130         * lib/stdbool.in.h (false, true):
37131         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
37132         Don't declare as an enum in this situation; it runs afoul of Tru64.
37133         Problem reported by Steven M. Schweda in
37134         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
37135
37136 2007-10-22  Eric Blake  <ebb9@byu.net>
37137
37138         Also wrap vf?printf.
37139         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
37140         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
37141         (xvprintf, xvfprintf): New functions.
37142
37143 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37144
37145         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
37146         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
37147
37148         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
37149         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
37150
37151 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
37152
37153         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
37154         by Bruno Haible.
37155
37156 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37157
37158         * lib/getloadavg.c
37159         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
37160         Undef `sys' after including sys/table.h, for Tru64 4.0D.
37161
37162         * tests/test-i-ring.c: Work for C89.
37163
37164 2007-10-22  Bruno Haible  <bruno@clisp.org>
37165
37166         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
37167         -1u, in preprocessor expression, so that we don't test for the bug
37168         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
37169         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
37170
37171 2007-10-22  Eric Blake  <ebb9@byu.net>
37172
37173         * tests/test-yesno.sh: Silence stderr during test.
37174
37175 2007-10-22  Simon Josefsson  <simon@josefsson.org>
37176
37177         * modules/crypto/gc-camellia: New file.
37178
37179         * m4/gc-camellia.m4: New file.
37180
37181         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
37182
37183         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
37184
37185 2007-10-22  Simon Josefsson  <simon@josefsson.org>
37186
37187         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
37188         --help to stdout.  Reported by sms@antinode.org (Steven
37189         M. Schweda).
37190
37191 2007-10-22  Simon Josefsson  <simon@josefsson.org>
37192
37193         * users.txt: Fix link to libksba.
37194
37195 2007-10-21  Ben Pfaff  <blp@gnu.org>
37196
37197         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
37198         round.c roundf implementation that depends on floorf and ceilf to
37199         be tested unconditionally.
37200
37201 2007-10-21  Ben Pfaff  <blp@gnu.org>
37202
37203         * m4/check-libm-func.m4: Removed.
37204         * m4/check-math-lib.m4: New file.
37205         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
37206         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
37207         definition and lack of AC_LIBOBJ([roundf]).
37208         * m4/roundl.m4: Ditto, and similarly for roundl.
37209         * modules/round: Reference new m4 file.
37210         * modules/roundf: Ditto.
37211         * modules/roundl: Ditto.
37212         * tests/test-round2.c (main): Use ROUND instead of round.
37213         Bug report from Bruno Haible.
37214
37215 2007-10-21  Bruno Haible  <bruno@clisp.org>
37216
37217         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
37218         context.
37219
37220 2007-10-21  Bruno Haible  <bruno@clisp.org>
37221
37222         * tests/test-wcwidth.c (main): Allow negative result for some control
37223         characters.
37224
37225         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
37226         Needed on OSF/1 5.1.
37227
37228 2007-10-21  Bruno Haible  <bruno@clisp.org>
37229
37230         * tests/test-floorf1.c: Include isnanf.h.
37231         (main): Use isnanf() instead of isnan().
37232         * tests/test-ceilf1.c: Include isnanf.h.
37233         (main): Use isnanf() instead of isnan().
37234         * tests/test-truncf1.c: Include isnanf.h.
37235         (main): Use isnanf() instead of isnan().
37236         * tests/test-roundf1.c: Include isnanf.h.
37237         (main): Use isnanf() instead of isnan().
37238
37239 2007-10-21  Eric Blake  <ebb9@byu.net>
37240
37241         * users.txt: Update URL for m4.
37242
37243 2007-10-21  Bruno Haible  <bruno@clisp.org>
37244
37245         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
37246
37247 2007-10-21  Bruno Haible  <bruno@clisp.org>
37248
37249         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
37250         Git's management files if the CVS files are not present.
37251
37252 2007-10-20  Bruno Haible  <bruno@clisp.org>
37253
37254         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
37255         gcc-3.4.x.
37256
37257 2007-10-20  Ben Pfaff  <blp@gnu.org>
37258
37259         * lib/math.in.h: Declare round, roundf, roundl if we are providing
37260         implementations.
37261         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
37262         * lib/round.c: New file.
37263         * lib/roundf.c: New file.
37264         * lib/roundl.c: New file.
37265         * m4/round.m4: New file.
37266         * m4/roundf.m4: New file.
37267         * m4/roundl.m4: New file.
37268         * m4/check-libm-func-m4: New file.
37269         * modules/math: Replace round, roundf, roundl related @VARS@ in
37270         math.in.h.
37271         * modules/round: New file.
37272         * modules/round-tests: New file.
37273         * modules/roundf: New file.
37274         * modules/roundf-tests: New file.
37275         * modules/roundl: New file.
37276         * modules/roundl-tests: New file.
37277         * tests/test-round1.c: New file.
37278         * tests/test-round2.c: New file.
37279         * tests/test-roundf1.c: New file.
37280         * tests/test-roundf2.c: New file.
37281         * tests/test-roundl.c: New file.
37282         * doc/functions/round.texi: Mention round module.
37283         * doc/functions/roundf.texi: Mention roundf module.
37284         * doc/functions/roundl.texi: Mention roundl module.
37285         * MODULES.html.sh: Mention new modules.
37286         Thanks to Bruno Haible for suggestions.
37287
37288 2007-10-20  Jim Meyering  <meyering@redhat.com>
37289
37290         * lib/xprintf.c: Include <config.h> unconditionally.
37291
37292         Change xprintf's license to GPL.
37293         * modules/xprintf (License): s/LGPL/GPL/, since this module
37294         depends on modules (exit and exitfail) which are GPL.
37295         Suggestion from Bruno Haible.
37296
37297         xprintf fixes.
37298         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
37299         Use a clearer diagnostic.
37300         Patch from Bruno Haible.
37301
37302 2007-10-20  Bruno Haible  <bruno@clisp.org>
37303
37304         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
37305         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
37306         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37307
37308 2007-10-20  Bruno Haible  <bruno@clisp.org>
37309
37310         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
37311         precision in the comparison result > x - 1 or similar.
37312         * tests/test-ceilf2.c (correct_result_p): Likewise.
37313         * tests/test-truncf2.c (correct_result_p): Likewise.
37314         * tests/test-trunc2.c (correct_result_p): Likewise.
37315         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37316
37317 2007-10-20  Bruno Haible  <bruno@clisp.org>
37318
37319         * modules/ceil: New file.
37320         * m4/ceil.m4: New file.
37321         * doc/functions/ceil.texi: Mention the 'ceil' module.
37322
37323 2007-10-20  Bruno Haible  <bruno@clisp.org>
37324
37325         * modules/floor: New file.
37326         * m4/floor.m4: New file.
37327         * doc/functions/floor.texi: Mention the 'floor' module.
37328
37329 2007-10-20  Bruno Haible  <bruno@clisp.org>
37330
37331         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
37332         of %a.
37333         * modules/floorf-tests (Depends-on): Likewise.
37334         * modules/truncf-tests (Depends-on): Likewise.
37335         * modules/trunc-tests (Depends-on): Likewise.
37336         Reported by Ben Pfaff.
37337
37338 2007-10-19  Jim Meyering  <meyering@redhat.com>
37339
37340         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
37341         Don't bother testing specific errno values.  Just test ferror.
37342
37343         New module: xprintf
37344         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
37345
37346 2007-10-19  Bruno Haible  <bruno@clisp.org>
37347
37348         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
37349         syntax.
37350         * modules/javaexec (Makefile.am): Likewise.
37351         * modules/relocatable-prog (Makefile.am): Likewise.
37352         Suggested by Jim Meyering.
37353
37354 2007-10-18  Bruno Haible  <bruno@clisp.org>
37355
37356         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
37357         Reported by Jim Meyering.
37358
37359 2007-10-18  Eric Blake  <ebb9@byu.net>
37360
37361         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
37362
37363 2007-10-18  Bruno Haible  <bruno@clisp.org>
37364
37365         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
37366         the format string into writable memory. Needed in Fortify conditions.
37367
37368 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
37369             Bruno Haible  <bruno@clisp.org>
37370
37371         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
37372         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
37373         * modules/trim (Depends-on): Add mbchar.
37374         (configure.ac): Add gl_FUNC_MBRTOWC.
37375         (Makefile.am): Augment lib_SOURCES.
37376
37377 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
37378
37379         Modify glob.c to use fstatat and dirfd, to simplify it.
37380         Suggested by Eric Blake.
37381         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
37382         Don't include <stdbool.h>; not used.
37383         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
37384         (link_exists_p): Simplify implementation, since we can now assume
37385         dirfd and fstatat.
37386         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
37387
37388 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37389
37390         * gnulib-tool (func_get_dependencies): Fix sed script to
37391         match only tests.
37392
37393 2007-10-17  Bruno Haible  <bruno@clisp.org>
37394
37395         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
37396         allow locale names without encoding suffix.
37397         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
37398         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
37399
37400 2007-10-16  Bruno Haible  <bruno@clisp.org>
37401
37402         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
37403         * lib/getgroups.c (getgroups): Likewise.
37404         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
37405
37406 2007-10-16  Bruno Haible  <bruno@clisp.org>
37407
37408         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
37409         * modules/malloc-posix (License): Likewise.
37410         * modules/realloc-posix (License): Likewise.
37411         * modules/calloc-posix (License): Likewise.
37412         * modules/intprops (License): Change from GPL to LGPL, with
37413         Paul Eggert's approval.
37414
37415 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
37416
37417         Merge glibc changes into lib/glob.c.
37418
37419         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
37420         2007-10-15 04:59:03 UTC.  Here are the changes:
37421
37422         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
37423
37424         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
37425
37426         * lib/glob.c: Add some branch prediction throughout.
37427
37428         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
37429
37430         [BZ #5103]
37431         * lib/glob.c (glob): Recognize patterns starting \/.
37432
37433         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
37434
37435         [BZ #3996]
37436         * lib/glob.c (attribute_hidden): Define if not defined.
37437         (glob): Unescape dirname, filename or username when needed and not
37438         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
37439         is NULL.  Handle unescaped [ in pattern without closing ].
37440         Don't pass GLOB_CHECK down to recursive glob for directories.
37441         (__glob_pattern_type): New function.
37442         (__glob_pattern_p): Implement using __glob_pattern_type.
37443         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
37444         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
37445         Remove unreachable code.
37446
37447         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
37448
37449         * lib/glob.c (glob_in_dir): Add some comments and asserts to
37450         explain why there are no leaks.
37451
37452         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
37453
37454         [BZ #3253]
37455         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
37456         time, rather allocate increasingly bigger arrays of pointers, if
37457         possible with alloca, if too large with malloc.
37458
37459 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
37460
37461         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
37462         Problem reported by H.Merijn Brand in
37463         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
37464         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
37465         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
37466
37467 2007-10-15  Bruno Haible  <bruno@clisp.org>
37468
37469         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
37470         with explicit rpl_ prefix.
37471         * lib/fopen.c (fopen): Likewise.
37472         * lib/freopen.c (freopen): Likewise.
37473         * lib/iconv.c (iconv): Likewise.
37474         * lib/iconv_close.c (iconv_close): Likewise.
37475
37476 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37477
37478         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
37479
37480 2007-10-15  Bruno Haible  <bruno@clisp.org>
37481
37482         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
37483         <stddef.h> instead of <stdlib.h> since we only need NULL.
37484         Reported by Ben Pfaff <blp@cs.stanford.edu>.
37485
37486 2007-10-15  Bruno Haible  <bruno@clisp.org>
37487
37488         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
37489         Replace paragraph talking about LIBOBJS.
37490         Reported by Colin Watson <cjwatson@debian.org>.
37491
37492 2007-10-15  Bruno Haible  <bruno@clisp.org>
37493
37494         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
37495         <stdlib.h> before using NULL.
37496
37497 2007-10-15  Simon Josefsson  <simon@josefsson.org>
37498
37499         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
37500         Reported by Albert Chin <china@thewrittenword.com>.
37501
37502 2007-10-14  Bruno Haible  <bruno@clisp.org>
37503
37504         * modules/iconv_open-utf-tests: New file.
37505         * tests/test-iconv-utf.c: New file.
37506
37507         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
37508         * modules/iconv_open-utf: New file.
37509         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
37510         (iconv, iconv_close): New declarations.
37511         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
37512         be defined.
37513         (iconv_open): Add special handling of conversion between UTF-8 and
37514         UTF-{16,32}{BE,LE}.
37515         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
37516         * lib/iconv_close.c: New file.
37517         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
37518         gl_FUNC_ICONV_OPEN.
37519         (gl_FUNC_ICONV_OPEN): Use it.
37520         (gl_FUNC_ICONV_OPEN_UTF): New macro.
37521         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
37522         and REPLACE_ICONV_UTF.
37523         * modules/iconv_open (Depends-on): Add c-strcase.
37524         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
37525         ICONV_CONST.
37526         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
37527
37528 2007-10-13  Albert Chin  <china@thewrittenword.com>
37529             Bruno Haible  <bruno@clisp.org>
37530
37531         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
37532         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
37533
37534 2007-10-13  Bruno Haible  <bruno@clisp.org>
37535
37536         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
37537         defined, use the ISO C99 inline semantics.
37538         * lib/argp.h (ARGP_EI): Likewise.
37539
37540 2007-10-13  Bruno Haible  <bruno@clisp.org>
37541
37542         Handle 'inline' change in gcc 4.3.0.
37543         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
37544         argp_fmtstream_write, argp_fmtstream_set_lmargin,
37545         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
37546         argp_fmtstream_point): Disable 'extern' declaration if the function
37547         definition is going to be provided inline.
37548         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
37549         semantics, not the ISO C99 inline semantics.
37550         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
37551         'extern' declaration if the function definition is going to be provided
37552         inline.
37553         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
37554         the GNU C inline semantics, not the ISO C99 inline semantics. With
37555         GCC 4.2, avoid a warning.
37556
37557 2007-10-13  Bruno Haible  <bruno@clisp.org>
37558
37559         * lib/freading.h (freading): Enable the use of __freading for
37560         glibc >= 2.7.
37561         * lib/freading.c (freading): Likewise.
37562
37563 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
37564
37565         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
37566         "warning: C99 inline functions are not supported; using GNU89".
37567
37568 2007-10-12  Bruno Haible  <bruno@clisp.org>
37569
37570         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
37571         of 2.
37572         * tests/test-ceilf2.c: New file.
37573         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
37574
37575         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
37576         * modules/ceilf-tests: Update.
37577
37578 2007-10-12  Bruno Haible  <bruno@clisp.org>
37579
37580         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
37581         of 2.
37582         * tests/test-floorf2.c: New file.
37583         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
37584
37585         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
37586         * modules/floorf-tests: Update.
37587
37588 2007-10-12  Bruno Haible  <bruno@clisp.org>
37589
37590         * tests/test-trunc2.c: New file.
37591         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
37592
37593         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
37594         * modules/trunc-tests: Update.
37595
37596 2007-10-12  Bruno Haible  <bruno@clisp.org>
37597
37598         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
37599         of 2.
37600         * tests/test-truncf2.c: New file.
37601         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
37602
37603         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
37604         * modules/truncf-tests: Update.
37605
37606 2007-10-11  Eric Blake  <ebb9@byu.net>
37607
37608         Don't claim strerror is broken on Interix.
37609         * doc/functions/strerror.texi (strerror): Known broken systems are
37610         now Solaris 8, and not Interix.
37611         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
37612         Interix on cross-compile.
37613         Reported by Martin Koeppe in
37614         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
37615
37616 2007-10-11  Bruno Haible  <bruno@clisp.org>
37617
37618         * modules/i-ring-tests: New file.
37619         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
37620         instead of assert.
37621
37622 2007-10-11  Bruno Haible  <bruno@clisp.org>
37623
37624         * modules/filenamecat-tests: New file.
37625         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
37626         * lib/filenamecat.c: Remove test code.
37627
37628 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
37629
37630         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
37631
37632         * lib/strerror.c: Include <string.h> always, to test interface,
37633         and to remove the need for the dummy.
37634         Include intprops.h to compute width instead of doing it ourselves
37635         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
37636         (strerror): Define it to return NULL if there's no system strerror.
37637         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
37638         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
37639         ancient pre-strerror Unix systems well any more.  Saying "unknown
37640         system error" is enough.
37641         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
37642         simpler strerror.c implementation.
37643         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
37644         Simplify the tests to reflect the simpler strerror implementation.
37645         * modules/strerror (Depends-on): Add intprops.
37646
37647 2007-10-09  Eric Blake  <ebb9@byu.net>
37648
37649         Silence test-fpending.
37650         * modules/fpending-tests (Files): Add wrapper script.
37651         * tests/test-fpending.sh: New file.
37652
37653 2007-10-09  Bruno Haible  <bruno@clisp.org>
37654
37655         * MODULES.html.sh (func_module): Don't create a hyperlink for
37656         function names like 'printf_frexp'.
37657         (Misc): Add crc, memxor.
37658         (Characteristics of floating types): New section.
37659         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
37660         isnanf-nolibm, signbit, trunc, truncf, truncl.
37661         (Enhancements for ISO C 99 functions): New subsection Input/output.
37662         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
37663         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
37664         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
37665         (Compatibility checks for POSIX:2001 functions): Add clock-time.
37666         (Enhancements for POSIX:2001 functions): Add chdir-long.
37667         (File system functions): Add areadlink, chdir-safer, read-file.
37668         Remove cycle-check.
37669         (File system as inode set): New section.
37670         (Date and time): Add gethrxtime.
37671         (Multithreading): Add openmp.
37672         (Internationalization functions): Add localename.
37673         (Unicode string functions): Add unistr/u*-mbsnlen.
37674         (Support for maintaining and releasing projects): Add git-version-gen.
37675         (Lone files): Remove directories.
37676
37677 2007-10-08  Ben Pfaff  <blp@gnu.org>
37678
37679         * lib/xmalloca.h: Fix typo in comment.
37680
37681 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
37682
37683         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
37684         when avoiding problems with integer overflow.  Use a portable test
37685         instead.
37686
37687 2007-10-08  Simon Josefsson  <simon@josefsson.org>
37688
37689         * modules/dummy (License): Change to LGPLv2+.
37690         * modules/float (License): Likewise
37691         * modules/realloc (License): Likewise
37692         * modules/stdlib (License): Likewise
37693
37694 2007-10-07  Bruno Haible  <bruno@clisp.org>
37695
37696         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
37697         * floor.c (TWO_MANT_DIG): Likewise.
37698         * ceil.c (TWO_MANT_DIG): Likewise.
37699         Reported by Ben Pfaff.
37700
37701 2007-10-07  Bruno Haible  <bruno@clisp.org>
37702
37703         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
37704         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
37705         * lib/frexp.c (FUNC): Likewise.
37706         * lib/printf-frexp.h (printf_frexp): Likewise.
37707         * lib/printf-frexpl.h (printf_frexpl): Likewise.
37708         * lib/printf-frexp.c (FUNC): Likewise.
37709         Suggested by Jim Meyering.
37710
37711 2007-10-07  Jim Meyering  <meyering@redhat.com>
37712
37713         Make xnanosleep's integer overflow test more robust.
37714         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
37715         so that gcc-4.3.0 doesn't optimize away this test for overflow.
37716
37717 2007-10-07  Bruno Haible  <bruno@clisp.org>
37718
37719         * NEWS: Mention the license change.
37720
37721         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
37722         abbreviations in the modules files.
37723
37724         Change copyright notice from GPLv2+ to GPLv3+.
37725         * README: Change copyright notice.
37726         * MODULES.html.sh: Likewise.
37727         * build-aux/bootstrap.conf: Likewise.
37728         * build-aux/config.libpath: Likewise.
37729         * build-aux/csharpcomp.sh.in: Likewise.
37730         * build-aux/csharpexec.sh.in: Likewise.
37731         * build-aux/install-reloc: Likewise.
37732         * build-aux/javacomp.sh.in: Likewise.
37733         * build-aux/javaexec.sh.in: Likewise.
37734         * build-aux/ldd.sh.in: Likewise.
37735         * build-aux/reloc-ldflags: Likewise.
37736         * build-aux/relocatable.sh.in: Likewise.
37737         * build-aux/x-to-1.in: Likewise.
37738         * check-module: Likewise.
37739         * config/srclistvars.sh: Likewise.
37740         * gnulib-tool: Likewise.
37741         * lib/acl-internal.h: Likewise.
37742         * lib/acl.c: Likewise.
37743         * lib/acl.h: Likewise.
37744         * lib/acl_entries.c: Likewise.
37745         * lib/areadlink-with-size.c: Likewise.
37746         * lib/areadlink.c: Likewise.
37747         * lib/areadlink.h: Likewise.
37748         * lib/argmatch.c: Likewise.
37749         * lib/argmatch.h: Likewise.
37750         * lib/argp-ba.c: Likewise.
37751         * lib/argp-eexst.c: Likewise.
37752         * lib/argp-fmtstream.c: Likewise.
37753         * lib/argp-fmtstream.h: Likewise.
37754         * lib/argp-fs-xinl.c: Likewise.
37755         * lib/argp-help.c: Likewise.
37756         * lib/argp-namefrob.h: Likewise.
37757         * lib/argp-parse.c: Likewise.
37758         * lib/argp-pin.c: Likewise.
37759         * lib/argp-pv.c: Likewise.
37760         * lib/argp-pvh.c: Likewise.
37761         * lib/argp-xinl.c: Likewise.
37762         * lib/argp.h: Likewise.
37763         * lib/at-func.c: Likewise.
37764         * lib/atanl.c: Likewise.
37765         * lib/backupfile.c: Likewise.
37766         * lib/backupfile.h: Likewise.
37767         * lib/basename.c: Likewise.
37768         * lib/binary-io.h: Likewise.
37769         * lib/byteswap.in.h: Likewise.
37770         * lib/c-stack.c: Likewise.
37771         * lib/c-stack.h: Likewise.
37772         * lib/c-strcasestr.c: Likewise.
37773         * lib/c-strcasestr.h: Likewise.
37774         * lib/c-strstr.c: Likewise.
37775         * lib/c-strstr.h: Likewise.
37776         * lib/c-strtod.c: Likewise.
37777         * lib/calloc.c: Likewise.
37778         * lib/canon-host.c: Likewise.
37779         * lib/canon-host.h: Likewise.
37780         * lib/canonicalize-lgpl.c: Likewise.
37781         * lib/canonicalize.c: Likewise.
37782         * lib/canonicalize.h: Likewise.
37783         * lib/ceil.c: Likewise.
37784         * lib/ceilf.c: Likewise.
37785         * lib/ceill.c: Likewise.
37786         * lib/chdir-long.c: Likewise.
37787         * lib/chdir-long.h: Likewise.
37788         * lib/chdir-safer.c: Likewise.
37789         * lib/chdir-safer.h: Likewise.
37790         * lib/chown.c: Likewise.
37791         * lib/classpath.c: Likewise.
37792         * lib/classpath.h: Likewise.
37793         * lib/clean-temp.c: Likewise.
37794         * lib/clean-temp.h: Likewise.
37795         * lib/cloexec.c: Likewise.
37796         * lib/close-stream.c: Likewise.
37797         * lib/closein.c: Likewise.
37798         * lib/closein.h: Likewise.
37799         * lib/closeout.c: Likewise.
37800         * lib/closeout.h: Likewise.
37801         * lib/concat-filename.c: Likewise.
37802         * lib/copy-file.c: Likewise.
37803         * lib/copy-file.h: Likewise.
37804         * lib/count-one-bits.h: Likewise.
37805         * lib/crc.c: Likewise.
37806         * lib/crc.h: Likewise.
37807         * lib/creat-safer.c: Likewise.
37808         * lib/csharpcomp.c: Likewise.
37809         * lib/csharpcomp.h: Likewise.
37810         * lib/csharpexec.c: Likewise.
37811         * lib/csharpexec.h: Likewise.
37812         * lib/cycle-check.c: Likewise.
37813         * lib/cycle-check.h: Likewise.
37814         * lib/diacrit.c: Likewise.
37815         * lib/diacrit.h: Likewise.
37816         * lib/diffseq.h: Likewise.
37817         * lib/dirchownmod.c: Likewise.
37818         * lib/dirent.in.h: Likewise.
37819         * lib/dirfd.c: Likewise.
37820         * lib/dirfd.h: Likewise.
37821         * lib/dirname.c: Likewise.
37822         * lib/dirname.h: Likewise.
37823         * lib/dummy.c: Likewise.
37824         * lib/dup-safer.c: Likewise.
37825         * lib/dup2.c: Likewise.
37826         * lib/eealloc.h: Likewise.
37827         * lib/error.c: Likewise.
37828         * lib/error.h: Likewise.
37829         * lib/euidaccess.c: Likewise.
37830         * lib/exclude.c: Likewise.
37831         * lib/exclude.h: Likewise.
37832         * lib/execute.c: Likewise.
37833         * lib/execute.h: Likewise.
37834         * lib/exitfail.c: Likewise.
37835         * lib/exitfail.h: Likewise.
37836         * lib/expl.c: Likewise.
37837         * lib/fatal-signal.c: Likewise.
37838         * lib/fatal-signal.h: Likewise.
37839         * lib/fbufmode.c: Likewise.
37840         * lib/fbufmode.h: Likewise.
37841         * lib/fchdir.c: Likewise.
37842         * lib/fchmodat.c: Likewise.
37843         * lib/fchownat.c: Likewise.
37844         * lib/fcntl--.h: Likewise.
37845         * lib/fcntl-safer.h: Likewise.
37846         * lib/fcntl.in.h: Likewise.
37847         * lib/fd-safer.c: Likewise.
37848         * lib/fflush.c: Likewise.
37849         * lib/file-has-acl.c: Likewise.
37850         * lib/file-set.c: Likewise.
37851         * lib/file-type.c: Likewise.
37852         * lib/file-type.h: Likewise.
37853         * lib/fileblocks.c: Likewise.
37854         * lib/filemode.c: Likewise.
37855         * lib/filemode.h: Likewise.
37856         * lib/filename.h: Likewise.
37857         * lib/filenamecat.c: Likewise.
37858         * lib/filenamecat.h: Likewise.
37859         * lib/findprog.c: Likewise.
37860         * lib/findprog.h: Likewise.
37861         * lib/float.in.h: Likewise.
37862         * lib/floor.c: Likewise.
37863         * lib/floorf.c: Likewise.
37864         * lib/floorl.c: Likewise.
37865         * lib/fopen-safer.c: Likewise.
37866         * lib/fopen.c: Likewise.
37867         * lib/fpending.c: Likewise.
37868         * lib/fpending.h: Likewise.
37869         * lib/fprintf.c: Likewise.
37870         * lib/fprintftime.h: Likewise.
37871         * lib/fpucw.h: Likewise.
37872         * lib/fpurge.c: Likewise.
37873         * lib/fpurge.h: Likewise.
37874         * lib/freadable.c: Likewise.
37875         * lib/freadable.h: Likewise.
37876         * lib/freadahead.c: Likewise.
37877         * lib/freadahead.h: Likewise.
37878         * lib/freading.c: Likewise.
37879         * lib/freading.h: Likewise.
37880         * lib/free.c: Likewise.
37881         * lib/freopen.c: Likewise.
37882         * lib/frexp.c: Likewise.
37883         * lib/frexpl.c: Likewise.
37884         * lib/fseek.c: Likewise.
37885         * lib/fseterr.c: Likewise.
37886         * lib/fseterr.h: Likewise.
37887         * lib/fstatat.c: Likewise.
37888         * lib/fstrcmp.c: Likewise.
37889         * lib/fstrcmp.h: Likewise.
37890         * lib/fsusage.c: Likewise.
37891         * lib/fsusage.h: Likewise.
37892         * lib/ftell.c: Likewise.
37893         * lib/ftello.c: Likewise.
37894         * lib/fts-cycle.c: Likewise.
37895         * lib/fts.c: Likewise.
37896         * lib/fts_.h: Likewise.
37897         * lib/full-read.c: Likewise.
37898         * lib/full-read.h: Likewise.
37899         * lib/full-write.c: Likewise.
37900         * lib/full-write.h: Likewise.
37901         * lib/fwritable.c: Likewise.
37902         * lib/fwritable.h: Likewise.
37903         * lib/fwriteerror.c: Likewise.
37904         * lib/fwriteerror.h: Likewise.
37905         * lib/fwriting.c: Likewise.
37906         * lib/fwriting.h: Likewise.
37907         * lib/gcd.c: Likewise.
37908         * lib/gcd.h: Likewise.
37909         * lib/getcwd.c: Likewise.
37910         * lib/getdate.h: Likewise.
37911         * lib/getdate.y: Likewise.
37912         * lib/getdomainname.c: Likewise.
37913         * lib/getdomainname.h: Likewise.
37914         * lib/getgroups.c: Likewise.
37915         * lib/gethostname.c: Likewise.
37916         * lib/gethrxtime.c: Likewise.
37917         * lib/gethrxtime.h: Likewise.
37918         * lib/getloadavg.c: Likewise.
37919         * lib/getndelim2.c: Likewise.
37920         * lib/getndelim2.h: Likewise.
37921         * lib/getnline.c: Likewise.
37922         * lib/getnline.h: Likewise.
37923         * lib/getopt.c: Likewise.
37924         * lib/getopt.in.h: Likewise.
37925         * lib/getopt1.c: Likewise.
37926         * lib/getopt_int.h: Likewise.
37927         * lib/getpagesize.h: Likewise.
37928         * lib/getsubopt.c: Likewise.
37929         * lib/gettime.c: Likewise.
37930         * lib/getugroups.c: Likewise.
37931         * lib/getugroups.h: Likewise.
37932         * lib/getusershell.c: Likewise.
37933         * lib/gl_anyavltree_list1.h: Likewise.
37934         * lib/gl_anyavltree_list2.h: Likewise.
37935         * lib/gl_anyhash_list1.h: Likewise.
37936         * lib/gl_anyhash_list2.h: Likewise.
37937         * lib/gl_anylinked_list1.h: Likewise.
37938         * lib/gl_anylinked_list2.h: Likewise.
37939         * lib/gl_anyrbtree_list1.h: Likewise.
37940         * lib/gl_anyrbtree_list2.h: Likewise.
37941         * lib/gl_anytree_list1.h: Likewise.
37942         * lib/gl_anytree_list2.h: Likewise.
37943         * lib/gl_anytree_oset.h: Likewise.
37944         * lib/gl_anytreehash_list1.h: Likewise.
37945         * lib/gl_anytreehash_list2.h: Likewise.
37946         * lib/gl_array_list.c: Likewise.
37947         * lib/gl_array_list.h: Likewise.
37948         * lib/gl_array_oset.c: Likewise.
37949         * lib/gl_array_oset.h: Likewise.
37950         * lib/gl_avltree_list.c: Likewise.
37951         * lib/gl_avltree_list.h: Likewise.
37952         * lib/gl_avltree_oset.c: Likewise.
37953         * lib/gl_avltree_oset.h: Likewise.
37954         * lib/gl_avltreehash_list.c: Likewise.
37955         * lib/gl_avltreehash_list.h: Likewise.
37956         * lib/gl_carray_list.c: Likewise.
37957         * lib/gl_carray_list.h: Likewise.
37958         * lib/gl_linked_list.c: Likewise.
37959         * lib/gl_linked_list.h: Likewise.
37960         * lib/gl_linkedhash_list.c: Likewise.
37961         * lib/gl_linkedhash_list.h: Likewise.
37962         * lib/gl_list.c: Likewise.
37963         * lib/gl_list.h: Likewise.
37964         * lib/gl_oset.c: Likewise.
37965         * lib/gl_oset.h: Likewise.
37966         * lib/gl_rbtree_list.c: Likewise.
37967         * lib/gl_rbtree_list.h: Likewise.
37968         * lib/gl_rbtree_oset.c: Likewise.
37969         * lib/gl_rbtree_oset.h: Likewise.
37970         * lib/gl_rbtreehash_list.c: Likewise.
37971         * lib/gl_rbtreehash_list.h: Likewise.
37972         * lib/gl_sublist.c: Likewise.
37973         * lib/gl_sublist.h: Likewise.
37974         * lib/group-member.c: Likewise.
37975         * lib/group-member.h: Likewise.
37976         * lib/hard-locale.c: Likewise.
37977         * lib/hard-locale.h: Likewise.
37978         * lib/hash-pjw.c: Likewise.
37979         * lib/hash-pjw.h: Likewise.
37980         * lib/hash-triple.c: Likewise.
37981         * lib/hash.c: Likewise.
37982         * lib/hash.h: Likewise.
37983         * lib/human.c: Likewise.
37984         * lib/human.h: Likewise.
37985         * lib/i-ring.c: Likewise.
37986         * lib/i-ring.h: Likewise.
37987         * lib/idcache.c: Likewise.
37988         * lib/imaxabs.c: Likewise.
37989         * lib/imaxdiv.c: Likewise.
37990         * lib/inet_pton.c: Likewise.
37991         * lib/inet_pton.h: Likewise.
37992         * lib/intprops.h: Likewise.
37993         * lib/inttostr.c: Likewise.
37994         * lib/inttostr.h: Likewise.
37995         * lib/inttypes.in.h: Likewise.
37996         * lib/isapipe.c: Likewise.
37997         * lib/isdir.c: Likewise.
37998         * lib/isnan.c: Likewise.
37999         * lib/isnan.h: Likewise.
38000         * lib/isnanf.c: Likewise.
38001         * lib/isnanf.h: Likewise.
38002         * lib/isnanl-nolibm.h: Likewise.
38003         * lib/isnanl.c: Likewise.
38004         * lib/isnanl.h: Likewise.
38005         * lib/javacomp.c: Likewise.
38006         * lib/javacomp.h: Likewise.
38007         * lib/javaexec.c: Likewise.
38008         * lib/javaexec.h: Likewise.
38009         * lib/javaversion.c: Likewise.
38010         * lib/javaversion.h: Likewise.
38011         * lib/javaversion.java: Likewise.
38012         * lib/lbrkprop.h: Likewise.
38013         * lib/lchmod.h: Likewise.
38014         * lib/lchown.c: Likewise.
38015         * lib/ldexpl.c: Likewise.
38016         * lib/linebreak.c: Likewise.
38017         * lib/linebreak.h: Likewise.
38018         * lib/linebuffer.c: Likewise.
38019         * lib/linebuffer.h: Likewise.
38020         * lib/locale.in.h: Likewise.
38021         * lib/logl.c: Likewise.
38022         * lib/long-options.c: Likewise.
38023         * lib/long-options.h: Likewise.
38024         * lib/lstat.c: Likewise.
38025         * lib/lstat.h: Likewise.
38026         * lib/math.in.h: Likewise.
38027         * lib/mbchar.c: Likewise.
38028         * lib/mbchar.h: Likewise.
38029         * lib/mbfile.h: Likewise.
38030         * lib/mbiter.h: Likewise.
38031         * lib/mbscasecmp.c: Likewise.
38032         * lib/mbscasestr.c: Likewise.
38033         * lib/mbschr.c: Likewise.
38034         * lib/mbscspn.c: Likewise.
38035         * lib/mbslen.c: Likewise.
38036         * lib/mbsncasecmp.c: Likewise.
38037         * lib/mbsnlen.c: Likewise.
38038         * lib/mbspbrk.c: Likewise.
38039         * lib/mbspcasecmp.c: Likewise.
38040         * lib/mbsrchr.c: Likewise.
38041         * lib/mbssep.c: Likewise.
38042         * lib/mbsspn.c: Likewise.
38043         * lib/mbsstr.c: Likewise.
38044         * lib/mbstok_r.c: Likewise.
38045         * lib/mbswidth.c: Likewise.
38046         * lib/mbswidth.h: Likewise.
38047         * lib/mbuiter.h: Likewise.
38048         * lib/memcasecmp.c: Likewise.
38049         * lib/memcasecmp.h: Likewise.
38050         * lib/memchr.c: Likewise.
38051         * lib/memcmp.c: Likewise.
38052         * lib/memcoll.c: Likewise.
38053         * lib/memcoll.h: Likewise.
38054         * lib/memcpy.c: Likewise.
38055         * lib/memrchr.c: Likewise.
38056         * lib/mkancesdirs.c: Likewise.
38057         * lib/mkdir-p.c: Likewise.
38058         * lib/mkdir-p.h: Likewise.
38059         * lib/mkdir.c: Likewise.
38060         * lib/mkdirat.c: Likewise.
38061         * lib/mkdtemp.c: Likewise.
38062         * lib/mkstemp-safer.c: Likewise.
38063         * lib/mkstemp.c: Likewise.
38064         * lib/modechange.c: Likewise.
38065         * lib/modechange.h: Likewise.
38066         * lib/mountlist.c: Likewise.
38067         * lib/mountlist.h: Likewise.
38068         * lib/mpsort.c: Likewise.
38069         * lib/nanosleep.c: Likewise.
38070         * lib/obstack.c: Likewise.
38071         * lib/obstack.h: Likewise.
38072         * lib/open-safer.c: Likewise.
38073         * lib/open.c: Likewise.
38074         * lib/openat-die.c: Likewise.
38075         * lib/openat-priv.h: Likewise.
38076         * lib/openat-proc.c: Likewise.
38077         * lib/openat.c: Likewise.
38078         * lib/openat.h: Likewise.
38079         * lib/pagealign_alloc.c: Likewise.
38080         * lib/pagealign_alloc.h: Likewise.
38081         * lib/physmem.c: Likewise.
38082         * lib/physmem.h: Likewise.
38083         * lib/pipe-safer.c: Likewise.
38084         * lib/pipe.c: Likewise.
38085         * lib/pipe.h: Likewise.
38086         * lib/posixtm.c: Likewise.
38087         * lib/posixtm.h: Likewise.
38088         * lib/posixver.c: Likewise.
38089         * lib/printf-frexp.c: Likewise.
38090         * lib/printf-frexp.h: Likewise.
38091         * lib/printf-frexpl.c: Likewise.
38092         * lib/printf-frexpl.h: Likewise.
38093         * lib/printf.c: Likewise.
38094         * lib/progname.c: Likewise.
38095         * lib/progname.h: Likewise.
38096         * lib/progreloc.c: Likewise.
38097         * lib/putenv.c: Likewise.
38098         * lib/quote.c: Likewise.
38099         * lib/quote.h: Likewise.
38100         * lib/quotearg.c: Likewise.
38101         * lib/quotearg.h: Likewise.
38102         * lib/raise.c: Likewise.
38103         * lib/readline.c: Likewise.
38104         * lib/readline.h: Likewise.
38105         * lib/readlink.c: Likewise.
38106         * lib/readtokens.c: Likewise.
38107         * lib/readtokens.h: Likewise.
38108         * lib/readtokens0.c: Likewise.
38109         * lib/readtokens0.h: Likewise.
38110         * lib/readutmp.c: Likewise.
38111         * lib/readutmp.h: Likewise.
38112         * lib/realloc.c: Likewise.
38113         * lib/relocwrapper.c: Likewise.
38114         * lib/rename-dest-slash.c: Likewise.
38115         * lib/rename.c: Likewise.
38116         * lib/rmdir.c: Likewise.
38117         * lib/rpmatch.c: Likewise.
38118         * lib/safe-read.c: Likewise.
38119         * lib/safe-read.h: Likewise.
38120         * lib/safe-write.c: Likewise.
38121         * lib/safe-write.h: Likewise.
38122         * lib/same-inode.h: Likewise.
38123         * lib/same.c: Likewise.
38124         * lib/same.h: Likewise.
38125         * lib/save-cwd.c: Likewise.
38126         * lib/save-cwd.h: Likewise.
38127         * lib/savedir.c: Likewise.
38128         * lib/savedir.h: Likewise.
38129         * lib/savewd.c: Likewise.
38130         * lib/savewd.h: Likewise.
38131         * lib/search.in.h: Likewise.
38132         * lib/setenv.c: Likewise.
38133         * lib/setenv.h: Likewise.
38134         * lib/settime.c: Likewise.
38135         * lib/sh-quote.c: Likewise.
38136         * lib/sh-quote.h: Likewise.
38137         * lib/sig2str.c: Likewise.
38138         * lib/sig2str.h: Likewise.
38139         * lib/signal.in.h: Likewise.
38140         * lib/signbitd.c: Likewise.
38141         * lib/signbitf.c: Likewise.
38142         * lib/signbitl.c: Likewise.
38143         * lib/sigprocmask.c: Likewise.
38144         * lib/sincosl.c: Likewise.
38145         * lib/sleep.c: Likewise.
38146         * lib/sprintf.c: Likewise.
38147         * lib/sqrtl.c: Likewise.
38148         * lib/stat-time.h: Likewise.
38149         * lib/stdio--.h: Likewise.
38150         * lib/stdio-safer.h: Likewise.
38151         * lib/stdlib--.h: Likewise.
38152         * lib/stdlib-safer.h: Likewise.
38153         * lib/stdlib.in.h: Likewise.
38154         * lib/stpcpy.c: Likewise.
38155         * lib/stpncpy.c: Likewise.
38156         * lib/strchrnul.c: Likewise.
38157         * lib/strcspn.c: Likewise.
38158         * lib/strerror.c: Likewise.
38159         * lib/strftime.c: Likewise.
38160         * lib/strftime.h: Likewise.
38161         * lib/striconveh.c: Likewise.
38162         * lib/striconveh.h: Likewise.
38163         * lib/striconveha.c: Likewise.
38164         * lib/striconveha.h: Likewise.
38165         * lib/stripslash.c: Likewise.
38166         * lib/strnlen1.c: Likewise.
38167         * lib/strnlen1.h: Likewise.
38168         * lib/strtod.c: Likewise.
38169         * lib/strtoimax.c: Likewise.
38170         * lib/strtok_r.c: Likewise.
38171         * lib/strtol.c: Likewise.
38172         * lib/strtoll.c: Likewise.
38173         * lib/strtoul.c: Likewise.
38174         * lib/strtoull.c: Likewise.
38175         * lib/sysexits.in.h: Likewise.
38176         * lib/tempname.c: Likewise.
38177         * lib/tempname.h: Likewise.
38178         * lib/timespec.h: Likewise.
38179         * lib/tls.c: Likewise.
38180         * lib/tls.h: Likewise.
38181         * lib/tmpdir.c: Likewise.
38182         * lib/tmpdir.h: Likewise.
38183         * lib/tmpfile-safer.c: Likewise.
38184         * lib/tmpfile.c: Likewise.
38185         * lib/trigl.c: Likewise.
38186         * lib/trigl.h: Likewise.
38187         * lib/trim.c: Likewise.
38188         * lib/trim.h: Likewise.
38189         * lib/trunc.c: Likewise.
38190         * lib/truncf.c: Likewise.
38191         * lib/truncl.c: Likewise.
38192         * lib/tsearch.c: Likewise.
38193         * lib/unicodeio.c: Likewise.
38194         * lib/unicodeio.h: Likewise.
38195         * lib/unistd--.h: Likewise.
38196         * lib/unistd-safer.h: Likewise.
38197         * lib/unistdio/ulc-fprintf.c: Likewise.
38198         * lib/unistdio/ulc-vfprintf.c: Likewise.
38199         * lib/unlinkdir.c: Likewise.
38200         * lib/unlinkdir.h: Likewise.
38201         * lib/unlocked-io.h: Likewise.
38202         * lib/unsetenv.c: Likewise.
38203         * lib/userspec.c: Likewise.
38204         * lib/utime.c: Likewise.
38205         * lib/utimecmp.c: Likewise.
38206         * lib/utimecmp.h: Likewise.
38207         * lib/utimens.c: Likewise.
38208         * lib/verify.h: Likewise.
38209         * lib/verror.c: Likewise.
38210         * lib/verror.h: Likewise.
38211         * lib/version-etc-fsf.c: Likewise.
38212         * lib/version-etc.c: Likewise.
38213         * lib/version-etc.h: Likewise.
38214         * lib/vfprintf.c: Likewise.
38215         * lib/vprintf.c: Likewise.
38216         * lib/vsprintf.c: Likewise.
38217         * lib/w32spawn.h: Likewise.
38218         * lib/wait-process.c: Likewise.
38219         * lib/wait-process.h: Likewise.
38220         * lib/wcwidth.c: Likewise.
38221         * lib/write-any-file.c: Likewise.
38222         * lib/xalloc-die.c: Likewise.
38223         * lib/xalloc.h: Likewise.
38224         * lib/xasprintf.c: Likewise.
38225         * lib/xgetcwd.c: Likewise.
38226         * lib/xgetcwd.h: Likewise.
38227         * lib/xgetdomainname.c: Likewise.
38228         * lib/xgetdomainname.h: Likewise.
38229         * lib/xgethostname.c: Likewise.
38230         * lib/xmalloc.c: Likewise.
38231         * lib/xmalloca.c: Likewise.
38232         * lib/xmalloca.h: Likewise.
38233         * lib/xmemcoll.c: Likewise.
38234         * lib/xnanosleep.c: Likewise.
38235         * lib/xreadlink.c: Likewise.
38236         * lib/xreadlink.h: Likewise.
38237         * lib/xsetenv.c: Likewise.
38238         * lib/xsetenv.h: Likewise.
38239         * lib/xstriconv.c: Likewise.
38240         * lib/xstriconv.h: Likewise.
38241         * lib/xstrndup.c: Likewise.
38242         * lib/xstrndup.h: Likewise.
38243         * lib/xstrtod.c: Likewise.
38244         * lib/xstrtod.h: Likewise.
38245         * lib/xstrtol-error.c: Likewise.
38246         * lib/xstrtol.c: Likewise.
38247         * lib/xstrtol.h: Likewise.
38248         * lib/xtime.h: Likewise.
38249         * lib/xvasprintf.c: Likewise.
38250         * lib/xvasprintf.h: Likewise.
38251         * lib/yesno.c: Likewise.
38252         * lib/yesno.h: Likewise.
38253         * posix-modules: Likewise.
38254         * tests/test-alloca-opt.c: Likewise.
38255         * tests/test-arcfour.c: Likewise.
38256         * tests/test-arctwo.c: Likewise.
38257         * tests/test-argmatch.c: Likewise.
38258         * tests/test-argp-2.sh: Likewise.
38259         * tests/test-argp.c: Likewise.
38260         * tests/test-arpa_inet.c: Likewise.
38261         * tests/test-array_list.c: Likewise.
38262         * tests/test-array_oset.c: Likewise.
38263         * tests/test-atexit.c: Likewise.
38264         * tests/test-avltree_list.c: Likewise.
38265         * tests/test-avltree_oset.c: Likewise.
38266         * tests/test-avltreehash_list.c: Likewise.
38267         * tests/test-base64.c: Likewise.
38268         * tests/test-binary-io.c: Likewise.
38269         * tests/test-byteswap.c: Likewise.
38270         * tests/test-c-ctype.c: Likewise.
38271         * tests/test-c-strcasecmp.c: Likewise.
38272         * tests/test-c-strcasestr.c: Likewise.
38273         * tests/test-c-strncasecmp.c: Likewise.
38274         * tests/test-c-strstr.c: Likewise.
38275         * tests/test-canonicalize-lgpl.c: Likewise.
38276         * tests/test-canonicalize.c: Likewise.
38277         * tests/test-carray_list.c: Likewise.
38278         * tests/test-ceilf.c: Likewise.
38279         * tests/test-ceill.c: Likewise.
38280         * tests/test-count-one-bits.c: Likewise.
38281         * tests/test-crc.c: Likewise.
38282         * tests/test-dirname.c: Likewise.
38283         * tests/test-fbufmode.c: Likewise.
38284         * tests/test-fcntl.c: Likewise.
38285         * tests/test-fflush.c: Likewise.
38286         * tests/test-floorf.c: Likewise.
38287         * tests/test-floorl.c: Likewise.
38288         * tests/test-fopen.c: Likewise.
38289         * tests/test-fprintf-posix.c: Likewise.
38290         * tests/test-fprintf-posix.h: Likewise.
38291         * tests/test-fpurge.c: Likewise.
38292         * tests/test-freadable.c: Likewise.
38293         * tests/test-freadahead.c: Likewise.
38294         * tests/test-freading.c: Likewise.
38295         * tests/test-freopen.c: Likewise.
38296         * tests/test-frexp.c: Likewise.
38297         * tests/test-frexpl.c: Likewise.
38298         * tests/test-fseek.c: Likewise.
38299         * tests/test-fseeko.c: Likewise.
38300         * tests/test-fseterr.c: Likewise.
38301         * tests/test-fstrcmp.c: Likewise.
38302         * tests/test-ftell.c: Likewise.
38303         * tests/test-ftello.c: Likewise.
38304         * tests/test-fwritable.c: Likewise.
38305         * tests/test-fwriting.c: Likewise.
38306         * tests/test-getaddrinfo.c: Likewise.
38307         * tests/test-getpass.c: Likewise.
38308         * tests/test-gettimeofday.c: Likewise.
38309         * tests/test-hmac-md5.c: Likewise.
38310         * tests/test-hmac-sha1.c: Likewise.
38311         * tests/test-iconv.c: Likewise.
38312         * tests/test-iconvme.c: Likewise.
38313         * tests/test-inttypes.c: Likewise.
38314         * tests/test-isnan.c: Likewise.
38315         * tests/test-isnanf.c: Likewise.
38316         * tests/test-isnanl-nolibm.c: Likewise.
38317         * tests/test-isnanl.c: Likewise.
38318         * tests/test-isnanl.h: Likewise.
38319         * tests/test-ldexpl.c: Likewise.
38320         * tests/test-linked_list.c: Likewise.
38321         * tests/test-linkedhash_list.c: Likewise.
38322         * tests/test-locale.c: Likewise.
38323         * tests/test-localename.c: Likewise.
38324         * tests/test-lock.c: Likewise.
38325         * tests/test-lseek.c: Likewise.
38326         * tests/test-malloca.c: Likewise.
38327         * tests/test-math.c: Likewise.
38328         * tests/test-mbscasecmp.c: Likewise.
38329         * tests/test-mbscasestr1.c: Likewise.
38330         * tests/test-mbscasestr2.c: Likewise.
38331         * tests/test-mbscasestr3.c: Likewise.
38332         * tests/test-mbscasestr4.c: Likewise.
38333         * tests/test-mbschr.c: Likewise.
38334         * tests/test-mbscspn.c: Likewise.
38335         * tests/test-mbsncasecmp.c: Likewise.
38336         * tests/test-mbspbrk.c: Likewise.
38337         * tests/test-mbspcasecmp.c: Likewise.
38338         * tests/test-mbsrchr.c: Likewise.
38339         * tests/test-mbsspn.c: Likewise.
38340         * tests/test-mbsstr1.c: Likewise.
38341         * tests/test-mbsstr2.c: Likewise.
38342         * tests/test-mbsstr3.c: Likewise.
38343         * tests/test-md5.c: Likewise.
38344         * tests/test-memmem.c: Likewise.
38345         * tests/test-netinet_in.c: Likewise.
38346         * tests/test-open.c: Likewise.
38347         * tests/test-printf-frexp.c: Likewise.
38348         * tests/test-printf-frexpl.c: Likewise.
38349         * tests/test-printf-posix.c: Likewise.
38350         * tests/test-printf-posix.h: Likewise.
38351         * tests/test-rbtree_list.c: Likewise.
38352         * tests/test-rbtree_oset.c: Likewise.
38353         * tests/test-rbtreehash_list.c: Likewise.
38354         * tests/test-read-file.c: Likewise.
38355         * tests/test-rijndael.c: Likewise.
38356         * tests/test-search.c: Likewise.
38357         * tests/test-signbit.c: Likewise.
38358         * tests/test-sleep.c: Likewise.
38359         * tests/test-snprintf-posix.c: Likewise.
38360         * tests/test-snprintf-posix.h: Likewise.
38361         * tests/test-snprintf.c: Likewise.
38362         * tests/test-sprintf-posix.c: Likewise.
38363         * tests/test-sprintf-posix.h: Likewise.
38364         * tests/test-stat-time.c: Likewise.
38365         * tests/test-stdbool.c: Likewise.
38366         * tests/test-stdint.c: Likewise.
38367         * tests/test-stdio.c: Likewise.
38368         * tests/test-stdlib.c: Likewise.
38369         * tests/test-stpncpy.c: Likewise.
38370         * tests/test-strcasestr.c: Likewise.
38371         * tests/test-striconv.c: Likewise.
38372         * tests/test-striconveh.c: Likewise.
38373         * tests/test-striconveha.c: Likewise.
38374         * tests/test-string.c: Likewise.
38375         * tests/test-sys_select.c: Likewise.
38376         * tests/test-sys_socket.c: Likewise.
38377         * tests/test-sys_stat.c: Likewise.
38378         * tests/test-sys_time.c: Likewise.
38379         * tests/test-sysexits.c: Likewise.
38380         * tests/test-time.c: Likewise.
38381         * tests/test-tls.c: Likewise.
38382         * tests/test-trunc.c: Likewise.
38383         * tests/test-truncf.c: Likewise.
38384         * tests/test-truncl.c: Likewise.
38385         * tests/test-unistd.c: Likewise.
38386         * tests/test-vasnprintf-posix.c: Likewise.
38387         * tests/test-vasnprintf-posix2.c: Likewise.
38388         * tests/test-vasnprintf.c: Likewise.
38389         * tests/test-vasprintf-posix.c: Likewise.
38390         * tests/test-vasprintf.c: Likewise.
38391         * tests/test-verify.c: Likewise.
38392         * tests/test-vfprintf-posix.c: Likewise.
38393         * tests/test-vprintf-posix.c: Likewise.
38394         * tests/test-vsnprintf-posix.c: Likewise.
38395         * tests/test-vsnprintf.c: Likewise.
38396         * tests/test-vsprintf-posix.c: Likewise.
38397         * tests/test-wchar.c: Likewise.
38398         * tests/test-wctype.c: Likewise.
38399         * tests/test-wcwidth.c: Likewise.
38400         * tests/test-xstrtol.c: Likewise.
38401         * tests/test-xvasprintf.c: Likewise.
38402         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
38403         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
38404         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
38405         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
38406         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
38407         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
38408         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
38409         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
38410         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
38411         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
38412         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
38413         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
38414         * tests/uniname/test-uninames.c: Likewise.
38415         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
38416         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
38417         * tests/unistdio/test-u16-printf1.h: Likewise.
38418         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
38419         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
38420         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
38421         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
38422         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
38423         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
38424         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
38425         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
38426         * tests/unistdio/test-u32-printf1.h: Likewise.
38427         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
38428         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
38429         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
38430         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
38431         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
38432         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
38433         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
38434         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
38435         * tests/unistdio/test-u8-printf1.h: Likewise.
38436         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
38437         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
38438         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
38439         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
38440         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
38441         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
38442         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
38443         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
38444         * tests/unistdio/test-ulc-printf1.h: Likewise.
38445         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
38446         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
38447         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
38448         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
38449         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
38450         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
38451         * tests/uniwidth/test-u16-strwidth.c: Likewise.
38452         * tests/uniwidth/test-u16-width.c: Likewise.
38453         * tests/uniwidth/test-u32-strwidth.c: Likewise.
38454         * tests/uniwidth/test-u32-width.c: Likewise.
38455         * tests/uniwidth/test-u8-strwidth.c: Likewise.
38456         * tests/uniwidth/test-u8-width.c: Likewise.
38457         * tests/uniwidth/test-uc_width.c: Likewise.
38458         * config/srclist-update: Likewise.
38459         (fixlicense): Update to GPLv3+.
38460
38461         Change copyright notice from LGPLv2.1+ to LGPLv3+.
38462         * tests/test-tsearch.c: Change copyright notice.
38463
38464         Change copyright notice from LGPLv2.0+ to LGPLv3+.
38465         * lib/c-strcaseeq.h: Change copyright notice.
38466         * lib/streq.h: Likewise.
38467         * lib/uniconv.h: Likewise.
38468         * lib/uniconv/u-conv-from-enc.h: Likewise.
38469         * lib/uniconv/u-conv-to-enc.h: Likewise.
38470         * lib/uniconv/u-strconv-from-enc.h: Likewise.
38471         * lib/uniconv/u-strconv-to-enc.h: Likewise.
38472         * lib/uniconv/u16-conv-from-enc.c: Likewise.
38473         * lib/uniconv/u16-conv-to-enc.c: Likewise.
38474         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
38475         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
38476         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
38477         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
38478         * lib/uniconv/u32-conv-from-enc.c: Likewise.
38479         * lib/uniconv/u32-conv-to-enc.c: Likewise.
38480         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
38481         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
38482         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
38483         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
38484         * lib/uniconv/u8-conv-from-enc.c: Likewise.
38485         * lib/uniconv/u8-conv-to-enc.c: Likewise.
38486         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
38487         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
38488         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
38489         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
38490         * lib/uniname.h: Likewise.
38491         * lib/uniname/uniname.c: Likewise.
38492         * lib/unistdio.h: Likewise.
38493         * lib/unistdio/u-asnprintf.h: Likewise.
38494         * lib/unistdio/u-asprintf.h: Likewise.
38495         * lib/unistdio/u-printf-args.c: Likewise.
38496         * lib/unistdio/u-printf-args.h: Likewise.
38497         * lib/unistdio/u-printf-parse.h: Likewise.
38498         * lib/unistdio/u-snprintf.h: Likewise.
38499         * lib/unistdio/u-sprintf.h: Likewise.
38500         * lib/unistdio/u-vasprintf.h: Likewise.
38501         * lib/unistdio/u-vsnprintf.h: Likewise.
38502         * lib/unistdio/u-vsprintf.h: Likewise.
38503         * lib/unistdio/u16-asnprintf.c: Likewise.
38504         * lib/unistdio/u16-asprintf.c: Likewise.
38505         * lib/unistdio/u16-printf-parse.c: Likewise.
38506         * lib/unistdio/u16-snprintf.c: Likewise.
38507         * lib/unistdio/u16-sprintf.c: Likewise.
38508         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
38509         * lib/unistdio/u16-u16-asprintf.c: Likewise.
38510         * lib/unistdio/u16-u16-snprintf.c: Likewise.
38511         * lib/unistdio/u16-u16-sprintf.c: Likewise.
38512         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
38513         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
38514         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
38515         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
38516         * lib/unistdio/u16-vasnprintf.c: Likewise.
38517         * lib/unistdio/u16-vasprintf.c: Likewise.
38518         * lib/unistdio/u16-vsnprintf.c: Likewise.
38519         * lib/unistdio/u16-vsprintf.c: Likewise.
38520         * lib/unistdio/u32-asnprintf.c: Likewise.
38521         * lib/unistdio/u32-asprintf.c: Likewise.
38522         * lib/unistdio/u32-printf-parse.c: Likewise.
38523         * lib/unistdio/u32-snprintf.c: Likewise.
38524         * lib/unistdio/u32-sprintf.c: Likewise.
38525         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
38526         * lib/unistdio/u32-u32-asprintf.c: Likewise.
38527         * lib/unistdio/u32-u32-snprintf.c: Likewise.
38528         * lib/unistdio/u32-u32-sprintf.c: Likewise.
38529         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
38530         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
38531         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
38532         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
38533         * lib/unistdio/u32-vasnprintf.c: Likewise.
38534         * lib/unistdio/u32-vasprintf.c: Likewise.
38535         * lib/unistdio/u32-vsnprintf.c: Likewise.
38536         * lib/unistdio/u32-vsprintf.c: Likewise.
38537         * lib/unistdio/u8-asnprintf.c: Likewise.
38538         * lib/unistdio/u8-asprintf.c: Likewise.
38539         * lib/unistdio/u8-printf-parse.c: Likewise.
38540         * lib/unistdio/u8-snprintf.c: Likewise.
38541         * lib/unistdio/u8-sprintf.c: Likewise.
38542         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
38543         * lib/unistdio/u8-u8-asprintf.c: Likewise.
38544         * lib/unistdio/u8-u8-snprintf.c: Likewise.
38545         * lib/unistdio/u8-u8-sprintf.c: Likewise.
38546         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
38547         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
38548         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
38549         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
38550         * lib/unistdio/u8-vasnprintf.c: Likewise.
38551         * lib/unistdio/u8-vasprintf.c: Likewise.
38552         * lib/unistdio/u8-vsnprintf.c: Likewise.
38553         * lib/unistdio/u8-vsprintf.c: Likewise.
38554         * lib/unistdio/ulc-asnprintf.c: Likewise.
38555         * lib/unistdio/ulc-asprintf.c: Likewise.
38556         * lib/unistdio/ulc-printf-parse.c: Likewise.
38557         * lib/unistdio/ulc-snprintf.c: Likewise.
38558         * lib/unistdio/ulc-sprintf.c: Likewise.
38559         * lib/unistdio/ulc-vasnprintf.c: Likewise.
38560         * lib/unistdio/ulc-vasprintf.c: Likewise.
38561         * lib/unistdio/ulc-vsnprintf.c: Likewise.
38562         * lib/unistdio/ulc-vsprintf.c: Likewise.
38563         * lib/unistr.h: Likewise.
38564         * lib/unistr/u-cpy-alloc.h: Likewise.
38565         * lib/unistr/u-cpy.h: Likewise.
38566         * lib/unistr/u-endswith.h: Likewise.
38567         * lib/unistr/u-move.h: Likewise.
38568         * lib/unistr/u-set.h: Likewise.
38569         * lib/unistr/u-startswith.h: Likewise.
38570         * lib/unistr/u-stpcpy.h: Likewise.
38571         * lib/unistr/u-stpncpy.h: Likewise.
38572         * lib/unistr/u-strcat.h: Likewise.
38573         * lib/unistr/u-strcpy.h: Likewise.
38574         * lib/unistr/u-strcspn.h: Likewise.
38575         * lib/unistr/u-strdup.h: Likewise.
38576         * lib/unistr/u-strlen.h: Likewise.
38577         * lib/unistr/u-strncat.h: Likewise.
38578         * lib/unistr/u-strncpy.h: Likewise.
38579         * lib/unistr/u-strnlen.h: Likewise.
38580         * lib/unistr/u-strpbrk.h: Likewise.
38581         * lib/unistr/u-strspn.h: Likewise.
38582         * lib/unistr/u-strstr.h: Likewise.
38583         * lib/unistr/u-strtok.h: Likewise.
38584         * lib/unistr/u16-check.c: Likewise.
38585         * lib/unistr/u16-chr.c: Likewise.
38586         * lib/unistr/u16-cmp.c: Likewise.
38587         * lib/unistr/u16-cpy-alloc.c: Likewise.
38588         * lib/unistr/u16-cpy.c: Likewise.
38589         * lib/unistr/u16-endswith.c: Likewise.
38590         * lib/unistr/u16-mblen.c: Likewise.
38591         * lib/unistr/u16-mbsnlen.c: Likewise.
38592         * lib/unistr/u16-mbtouc-aux.c: Likewise.
38593         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
38594         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
38595         * lib/unistr/u16-mbtouc.c: Likewise.
38596         * lib/unistr/u16-mbtoucr.c: Likewise.
38597         * lib/unistr/u16-move.c: Likewise.
38598         * lib/unistr/u16-next.c: Likewise.
38599         * lib/unistr/u16-prev.c: Likewise.
38600         * lib/unistr/u16-set.c: Likewise.
38601         * lib/unistr/u16-startswith.c: Likewise.
38602         * lib/unistr/u16-stpcpy.c: Likewise.
38603         * lib/unistr/u16-stpncpy.c: Likewise.
38604         * lib/unistr/u16-strcat.c: Likewise.
38605         * lib/unistr/u16-strchr.c: Likewise.
38606         * lib/unistr/u16-strcmp.c: Likewise.
38607         * lib/unistr/u16-strcpy.c: Likewise.
38608         * lib/unistr/u16-strcspn.c: Likewise.
38609         * lib/unistr/u16-strdup.c: Likewise.
38610         * lib/unistr/u16-strlen.c: Likewise.
38611         * lib/unistr/u16-strmblen.c: Likewise.
38612         * lib/unistr/u16-strmbtouc.c: Likewise.
38613         * lib/unistr/u16-strncat.c: Likewise.
38614         * lib/unistr/u16-strncmp.c: Likewise.
38615         * lib/unistr/u16-strncpy.c: Likewise.
38616         * lib/unistr/u16-strnlen.c: Likewise.
38617         * lib/unistr/u16-strpbrk.c: Likewise.
38618         * lib/unistr/u16-strrchr.c: Likewise.
38619         * lib/unistr/u16-strspn.c: Likewise.
38620         * lib/unistr/u16-strstr.c: Likewise.
38621         * lib/unistr/u16-strtok.c: Likewise.
38622         * lib/unistr/u16-to-u32.c: Likewise.
38623         * lib/unistr/u16-to-u8.c: Likewise.
38624         * lib/unistr/u16-uctomb-aux.c: Likewise.
38625         * lib/unistr/u16-uctomb.c: Likewise.
38626         * lib/unistr/u32-check.c: Likewise.
38627         * lib/unistr/u32-chr.c: Likewise.
38628         * lib/unistr/u32-cmp.c: Likewise.
38629         * lib/unistr/u32-cpy-alloc.c: Likewise.
38630         * lib/unistr/u32-cpy.c: Likewise.
38631         * lib/unistr/u32-endswith.c: Likewise.
38632         * lib/unistr/u32-mblen.c: Likewise.
38633         * lib/unistr/u32-mbsnlen.c: Likewise.
38634         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
38635         * lib/unistr/u32-mbtouc.c: Likewise.
38636         * lib/unistr/u32-mbtoucr.c: Likewise.
38637         * lib/unistr/u32-move.c: Likewise.
38638         * lib/unistr/u32-next.c: Likewise.
38639         * lib/unistr/u32-prev.c: Likewise.
38640         * lib/unistr/u32-set.c: Likewise.
38641         * lib/unistr/u32-startswith.c: Likewise.
38642         * lib/unistr/u32-stpcpy.c: Likewise.
38643         * lib/unistr/u32-stpncpy.c: Likewise.
38644         * lib/unistr/u32-strcat.c: Likewise.
38645         * lib/unistr/u32-strchr.c: Likewise.
38646         * lib/unistr/u32-strcmp.c: Likewise.
38647         * lib/unistr/u32-strcpy.c: Likewise.
38648         * lib/unistr/u32-strcspn.c: Likewise.
38649         * lib/unistr/u32-strdup.c: Likewise.
38650         * lib/unistr/u32-strlen.c: Likewise.
38651         * lib/unistr/u32-strmblen.c: Likewise.
38652         * lib/unistr/u32-strmbtouc.c: Likewise.
38653         * lib/unistr/u32-strncat.c: Likewise.
38654         * lib/unistr/u32-strncmp.c: Likewise.
38655         * lib/unistr/u32-strncpy.c: Likewise.
38656         * lib/unistr/u32-strnlen.c: Likewise.
38657         * lib/unistr/u32-strpbrk.c: Likewise.
38658         * lib/unistr/u32-strrchr.c: Likewise.
38659         * lib/unistr/u32-strspn.c: Likewise.
38660         * lib/unistr/u32-strstr.c: Likewise.
38661         * lib/unistr/u32-strtok.c: Likewise.
38662         * lib/unistr/u32-to-u16.c: Likewise.
38663         * lib/unistr/u32-to-u8.c: Likewise.
38664         * lib/unistr/u32-uctomb.c: Likewise.
38665         * lib/unistr/u8-check.c: Likewise.
38666         * lib/unistr/u8-chr.c: Likewise.
38667         * lib/unistr/u8-cmp.c: Likewise.
38668         * lib/unistr/u8-cpy-alloc.c: Likewise.
38669         * lib/unistr/u8-cpy.c: Likewise.
38670         * lib/unistr/u8-endswith.c: Likewise.
38671         * lib/unistr/u8-mblen.c: Likewise.
38672         * lib/unistr/u8-mbsnlen.c: Likewise.
38673         * lib/unistr/u8-mbtouc-aux.c: Likewise.
38674         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
38675         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
38676         * lib/unistr/u8-mbtouc.c: Likewise.
38677         * lib/unistr/u8-mbtoucr.c: Likewise.
38678         * lib/unistr/u8-move.c: Likewise.
38679         * lib/unistr/u8-next.c: Likewise.
38680         * lib/unistr/u8-prev.c: Likewise.
38681         * lib/unistr/u8-set.c: Likewise.
38682         * lib/unistr/u8-startswith.c: Likewise.
38683         * lib/unistr/u8-stpcpy.c: Likewise.
38684         * lib/unistr/u8-stpncpy.c: Likewise.
38685         * lib/unistr/u8-strcat.c: Likewise.
38686         * lib/unistr/u8-strchr.c: Likewise.
38687         * lib/unistr/u8-strcmp.c: Likewise.
38688         * lib/unistr/u8-strcpy.c: Likewise.
38689         * lib/unistr/u8-strcspn.c: Likewise.
38690         * lib/unistr/u8-strdup.c: Likewise.
38691         * lib/unistr/u8-strlen.c: Likewise.
38692         * lib/unistr/u8-strmblen.c: Likewise.
38693         * lib/unistr/u8-strmbtouc.c: Likewise.
38694         * lib/unistr/u8-strncat.c: Likewise.
38695         * lib/unistr/u8-strncmp.c: Likewise.
38696         * lib/unistr/u8-strncpy.c: Likewise.
38697         * lib/unistr/u8-strnlen.c: Likewise.
38698         * lib/unistr/u8-strpbrk.c: Likewise.
38699         * lib/unistr/u8-strrchr.c: Likewise.
38700         * lib/unistr/u8-strspn.c: Likewise.
38701         * lib/unistr/u8-strstr.c: Likewise.
38702         * lib/unistr/u8-strtok.c: Likewise.
38703         * lib/unistr/u8-to-u16.c: Likewise.
38704         * lib/unistr/u8-to-u32.c: Likewise.
38705         * lib/unistr/u8-uctomb-aux.c: Likewise.
38706         * lib/unistr/u8-uctomb.c: Likewise.
38707         * lib/unitypes.h: Likewise.
38708         * lib/uniwidth.h: Likewise.
38709         * lib/uniwidth/cjk.h: Likewise.
38710         * lib/uniwidth/u16-strwidth.c: Likewise.
38711         * lib/uniwidth/u16-width.c: Likewise.
38712         * lib/uniwidth/u32-strwidth.c: Likewise.
38713         * lib/uniwidth/u32-width.c: Likewise.
38714         * lib/uniwidth/u8-strwidth.c: Likewise.
38715         * lib/uniwidth/u8-width.c: Likewise.
38716         * lib/uniwidth/width.c: Likewise.
38717
38718 2007-10-07  Bruno Haible  <bruno@clisp.org>
38719
38720         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
38721         The file is still under LGPL (see modules/inttypes).
38722
38723 2007-10-06  Bruno Haible  <bruno@clisp.org>
38724
38725         * modules/trunc (Dependencies): Add 'extensions'.
38726         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
38727         Reported by Ben Pfaff <blp@gnu.org>.
38728
38729 2007-10-06  Bruno Haible  <bruno@clisp.org>
38730
38731         * modules/freopen-tests: New file.
38732         * tests/test-freopen.c: New file.
38733
38734         * modules/fopen-tests: New file.
38735         * tests/test-fopen.c: New file.
38736
38737         * modules/fopen: New file.
38738         * lib/fopen.c: New file.
38739         * m4/fopen.m4: New file.
38740         * modules/freopen: New file.
38741         * lib/freopen.c: New file.
38742         * m4/freopen.m4: New file.
38743         * lib/stdio.in.h (fopen, freopen): New declarations.
38744         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
38745         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
38746         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
38747         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
38748         * doc/functions/fopen.texi: Mention the 'fopen' module.
38749         * doc/functions/freopen.texi: Mention the 'freopen' module.
38750
38751 2007-10-06  Bruno Haible  <bruno@clisp.org>
38752
38753         * modules/open-tests: New file.
38754         * tests/test-open.c: New file.
38755
38756         * modules/open: New file.
38757         * lib/open.c: New file.
38758         * m4/open.m4: New file.
38759         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
38760         lib/open.c does.
38761         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
38762         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
38763         macros.
38764         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
38765         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
38766         REPLACE_OPEN.
38767         * doc/functions/open.texi: Mention the 'open' module.
38768
38769 2007-10-04  Bruno Haible  <bruno@clisp.org>
38770
38771         * modules/ceill-tests: New file.
38772         * tests/test-ceill.c: New file.
38773
38774         * modules/ceill: New file.
38775         * lib/ceill.c: Replace entire file.
38776         * m4/ceill.m4: New file.
38777         * lib/math.in.h (ceill): Replace declaration.
38778         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
38779         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
38780         * doc/functions/ceill.texi: Mention the 'ceill' module.
38781         * modules/mathl (Files): Remove lib/ceill.c.
38782         (Depends-on): Add ceill.
38783
38784 2007-10-04  Bruno Haible  <bruno@clisp.org>
38785
38786         * modules/ceilf-tests: New file.
38787         * tests/test-ceilf.c: New file.
38788
38789         * modules/ceilf: New file.
38790         * lib/ceil.c: New file.
38791         * lib/ceilf.c: New file.
38792         * m4/ceilf.m4: New file.
38793         * lib/math.in.h (ceilf): New declaration.
38794         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
38795         HAVE_DECL_CEILF.
38796         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
38797         HAVE_DECL_CEILF.
38798         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
38799
38800 2007-10-04  Bruno Haible  <bruno@clisp.org>
38801
38802         * modules/floorl-tests: New file.
38803         * tests/test-floorl.c: New file.
38804
38805         * modules/floorl: New file.
38806         * lib/floorl.c: Replace entire file.
38807         * m4/floorl.m4: New file.
38808         * lib/math.in.h (floorl): Replace declaration.
38809         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
38810         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
38811         * doc/functions/floorl.texi: Mention the 'floorl' module.
38812         * modules/mathl (Files): Remove lib/floorl.c.
38813         (Depends-on): Add floorl.
38814
38815 2007-10-04  Bruno Haible  <bruno@clisp.org>
38816
38817         * modules/floorf-tests: New file.
38818         * tests/test-floorf.c: New file.
38819
38820         * modules/floorf: New file.
38821         * lib/floor.c: New file.
38822         * lib/floorf.c: New file.
38823         * m4/floorf.m4: New file.
38824         * lib/math.in.h (floorf): New declaration.
38825         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
38826         HAVE_DECL_FLOORF.
38827         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
38828         HAVE_DECL_FLOORF.
38829         * doc/functions/floorf.texi: Mention the 'floorf' module.
38830
38831 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
38832             Bruno Haible  <bruno@clisp.org>
38833
38834         Advertise for the Git server instead of the CVS server.
38835         * doc/gnulib-intro.texi (Steady Development): Mention the Git
38836         repository instead of the CVS one.
38837         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
38838         about all VCS systems generically.
38839         * doc/gnulib.texi (Introduction): Capitalize `Git'.
38840
38841 2007-10-04  Bruno Haible  <bruno@clisp.org>
38842
38843         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
38844         means.
38845         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
38846
38847 2007-10-04  Bruno Haible  <bruno@clisp.org>
38848
38849         * modules/truncl-tests: New file.
38850         * tests/test-truncl.c: New file.
38851
38852         * modules/truncl: New file.
38853         * lib/truncl.c: New file.
38854         * m4/truncl.m4: New file.
38855         * lib/math.in.h (truncl): New declaration.
38856         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
38857         HAVE_DECL_TRUNCL.
38858         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
38859         HAVE_DECL_TRUNCL.
38860         * doc/functions/truncl.texi: Mention the 'truncl' module.
38861
38862 2007-10-04  Bruno Haible  <bruno@clisp.org>
38863
38864         * modules/truncf-tests: New file.
38865         * tests/test-truncf.c: New file.
38866
38867         * modules/truncf: New file.
38868         * lib/trunc.c: Make paramerizable through USE_* macros.
38869         * lib/truncf.c: New file.
38870         * m4/truncf.m4: New file.
38871         * lib/math.in.h (truncf): New declaration.
38872         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
38873         HAVE_DECL_TRUNCF.
38874         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
38875         HAVE_DECL_TRUNCF.
38876         * doc/functions/truncf.texi: Mention the 'truncf' module.
38877
38878 2007-10-03  Bruno Haible  <bruno@clisp.org>
38879
38880         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
38881         augmentation also for tests modules.
38882         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
38883         * modules/atexit-tests (Makefile.am): Likewise.
38884         * modules/binary-io-tests (Makefile.am): Likewise.
38885         * modules/c-strcase-tests (Makefile.am): Likewise.
38886         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
38887         * modules/canonicalize-tests (Makefile.am): Likewise.
38888         * modules/closein-tests (Makefile.am): Likewise.
38889         * modules/fprintf-posix-tests (Makefile.am): Likewise.
38890         * modules/freadahead-tests (Makefile.am): Likewise.
38891         * modules/fseek-tests (Makefile.am): Likewise.
38892         * modules/fseeko-tests (Makefile.am): Likewise.
38893         * modules/ftell-tests (Makefile.am): Likewise.
38894         * modules/ftello-tests (Makefile.am): Likewise.
38895         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
38896         * modules/isnanl-tests (Makefile.am): Likewise.
38897         * modules/lseek-tests (Makefile.am): Likewise.
38898         * modules/mbscasecmp-tests (Makefile.am): Likewise.
38899         * modules/mbscasestr-tests (Makefile.am): Likewise.
38900         * modules/mbschr-tests (Makefile.am): Likewise.
38901         * modules/mbscspn-tests (Makefile.am): Likewise.
38902         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
38903         * modules/mbspbrk-tests (Makefile.am): Likewise.
38904         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
38905         * modules/mbsrchr-tests (Makefile.am): Likewise.
38906         * modules/mbsspn-tests (Makefile.am): Likewise.
38907         * modules/mbsstr-tests (Makefile.am): Likewise.
38908         * modules/printf-posix-tests (Makefile.am): Likewise.
38909         * modules/snprintf-posix-tests (Makefile.am): Likewise.
38910         * modules/sprintf-posix-tests (Makefile.am): Likewise.
38911         * modules/tsearch-tests (Makefile.am): Likewise.
38912         * modules/uniname/uniname-tests (Makefile.am): Likewise.
38913         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
38914         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
38915         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
38916         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
38917         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
38918         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
38919         * modules/vprintf-posix-tests (Makefile.am): Likewise.
38920         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
38921         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
38922         * modules/xstrtoimax-tests (Makefile.am): Likewise.
38923         * modules/xstrtol-tests (Makefile.am): Likewise.
38924         * modules/xstrtoumax-tests (Makefile.am): Likewise.
38925         * modules/yesno-tests (Makefile.am): Likewise.
38926
38927 2007-10-03  Bruno Haible  <bruno@clisp.org>
38928
38929         * modules/trunc-tests: New file.
38930         * tests/test-trunc.c: New file.
38931
38932         * modules/trunc: New file.
38933         * lib/trunc.c: New file.
38934         * m4/trunc.m4: New file.
38935         * lib/math.in.h (trunc): New declaration.
38936         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
38937         HAVE_DECL_TRUNC.
38938         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
38939         HAVE_DECL_TRUNC.
38940         * doc/functions/trunc.texi: Mention the 'trunc' module.
38941
38942 2007-10-03  Bruno Haible  <bruno@clisp.org>
38943
38944         * tests/test-fpending.c: New file, mostly copied
38945         from coreutils/lib/t-fpending.c.
38946         * modules/fpending-tests: New file.
38947
38948 2007-10-03  Bruno Haible  <bruno@clisp.org>
38949
38950         Port the stdio extensions to QNX (untested).
38951         * lib/fseterr.c (fseterr): Add support for QNX.
38952         * lib/fbufmode.c (fbufmode): Likewise.
38953         * lib/freadable.c (freadable): Likewise.
38954         * lib/fwritable.c (fwritable): Likewise.
38955         * lib/freading.c (freading): Likewise.
38956         * lib/fwriting.c (fwriting): Likewise.
38957         * lib/freadahead.c (freadahed): Likewise.
38958         * lib/fpurge.c (fpurge): Likewise.
38959         * lib/fseeko.c (rpl_fseeko): Likewise.
38960
38961 2007-10-03  Bruno Haible  <bruno@clisp.org>
38962             Jim Meyering  <jim@meyering.net>
38963             Eric Blake  <ebb9@byu.net>
38964
38965         * doc/relocatable.texi: Use @command instead of @program.
38966
38967 2007-10-02  Jim Meyering  <jim@meyering.net>
38968
38969         Perform one more "_.h" -> ".in.h" substitution.
38970         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
38971         instead of unistd_.h here, too.
38972
38973 2007-10-01  Bruno Haible  <bruno@clisp.org>
38974
38975         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
38976         Needed for the alloca-opt module.
38977
38978 2007-09-30  Bruno Haible  <bruno@clisp.org>
38979
38980         * lib/alloca.in.h: Renamed from lib/alloca_.h.
38981         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
38982         alloca_.h.
38983         * lib/argz.in.h: Renamed from lib/argz_.h.
38984         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
38985         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
38986         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
38987         byteswap_.h.
38988         * lib/dirent.in.h: Renamed from lib/dirent_.h.
38989         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
38990         dirent_.h.
38991         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
38992         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
38993         fcntl_.h.
38994         * lib/float.in.h: Renamed from lib/float_.h.
38995         * modules/float (Files, Makefile.am): Use float.in.h instead of
38996         float_.h.
38997         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
38998         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
38999         fnmatch_.h.
39000         * lib/getopt.in.h: Renamed from lib/getopt_.h.
39001         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
39002         getopt_.h.
39003         * lib/glob.in.h: Renamed from lib/glob_.h.
39004         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
39005         * lib/iconv.in.h: Renamed from lib/iconv_.h.
39006         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
39007         iconv_.h.
39008         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
39009         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
39010         inttypes_.h.
39011         * lib/locale.in.h: Renamed from lib/locale_.h.
39012         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
39013         locale_.h.
39014         * lib/math.in.h: Renamed from lib/math_.h.
39015         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
39016         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
39017         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
39018         of netinet_in_.h. Add dependency.
39019         * lib/poll.in.h: Renamed from lib/poll_.h.
39020         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
39021         * lib/search.in.h: Renamed from lib/search_.h.
39022         * modules/search (Files, Makefile.am): Use search.in.h instead of
39023         search_.h.
39024         * lib/signal.in.h: Renamed from lib/signal_.h.
39025         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
39026         _signal.h.
39027         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
39028         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
39029         stdbool_.h.
39030         * lib/stdint.in.h: Renamed from lib/stdint_.h.
39031         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
39032         stdint_.h.
39033         * lib/stdio.in.h: Renamed from lib/stdio_.h.
39034         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
39035         stdio_.h.
39036         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
39037         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
39038         stdlib_.h.
39039         * lib/string.in.h: Renamed from lib/string_.h.
39040         * modules/string (Files, Makefile.am): Use string.in.h instead of
39041         string_.h.
39042         * doc/gnulib-tool.texi (Initial import): Update.
39043         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
39044         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
39045         of sys_select_.h. Add dependency.
39046         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
39047         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
39048         of sys_socket_.h.
39049         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
39050         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
39051         sys_stat_.h.
39052         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
39053         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
39054         sys_time_.h.
39055         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
39056         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
39057         sysexits_.h.
39058         * lib/time.in.h: Renamed from lib/time_.h.
39059         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
39060         * lib/unistd.in.h: Renamed from lib/unistd_.h.
39061         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
39062         unistd_.h.
39063         * lib/wchar.in.h: Renamed from lib/wchar_.h.
39064         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
39065         wchar_.h.
39066         * lib/wctype.in.h: Renamed from lib/wctype_.h.
39067         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
39068         wctype_.h.
39069         * build-aux/bootstrap (slurp): Update.
39070         * lib/.cppi-disable: Update.
39071
39072 2007-09-30  Bruno Haible  <bruno@clisp.org>
39073
39074         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
39075         Needed on BeOS.
39076
39077 2007-09-30  Bruno Haible  <bruno@clisp.org>
39078
39079         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
39080
39081 2007-09-29  Bruno Haible  <bruno@clisp.org>
39082
39083         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
39084
39085 2007-09-29  Bruno Haible  <bruno@clisp.org>
39086
39087         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
39088         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
39089         * build-aux/install-reloc: Compile also areadlink.c.
39090         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
39091
39092 2007-09-29  Bruno Haible  <bruno@clisp.org>
39093
39094         * gnulib-tool (func_emit_initmacro_done): Indentation.
39095
39096 2007-09-29  Bruno Haible  <bruno@clisp.org>
39097
39098         * README: Add CVS checkout update instructions.
39099         Info from Bob Proulx <bob@proulx.com>.
39100
39101 2007-09-28  Eric Blake  <ebb9@byu.net>
39102
39103         Provide move-if-change.
39104         * build-aux/move-if-change: New file, based on best practice
39105         rather than any canonical upstream location.
39106
39107 2007-09-28  Jim Meyering  <jim@meyering.net>
39108
39109         Fix canonicalize loop-detection corner case.
39110         Do not attempt to stat the symlink values stored via seen_triple.
39111         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
39112         on linux-2.6.18, (but not 2.6.22).
39113         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
39114         triple_compare.  The former compares dev,ino,filename, while the latter
39115         would actually stat dirname(filename) when dev and ino were equal.
39116         * lib/hash-triple.c: Install <string.h>.
39117         (STREQ): Define.
39118         (triple_compare_ino_str): New function.
39119         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
39120
39121 2007-09-28  Eric Blake  <ebb9@byu.net>
39122
39123         Enforce that AC_REPLACE_FUNCS files exist.
39124         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
39125         override check for typos.
39126
39127         Fix test-closein on Solaris 10.
39128         * tests/test-closein.c (main): Don't assume stdin can be inherited
39129         closed on all systems.
39130         * tests/test-closein.sh: Likewise.
39131         Reported by Piotr Tarnowski.
39132
39133 2007-09-28  Jim Meyering  <jim@meyering.net>
39134
39135         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
39136
39137 2007-09-27  Jim Meyering  <jim@meyering.net>
39138
39139         canonicalize: Avoid a false-positive cycle failure.
39140         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
39141         Sort.  Remove cycle-check.
39142         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
39143         not cycle-check.h.
39144         (seen_triple): New function.
39145         (canonicalize_filename_mode): Use it instead of cycle-check.
39146         * tests/test-canonicalize.c: Add a test for this bug.
39147         * tests/test-canonicalize.sh: Set up and run the test.
39148
39149         New module, file-set, from coreutils.
39150         * modules/file-set: Define it.
39151         * lib/file-set.c, lib/file-set.h: Implement.
39152
39153         New module, hash-triple, from coreutils.
39154         * modules/hash-triple: Define it.
39155         * lib/hash-triple.c, lib/hash-triple.h: Implement.
39156
39157 2007-09-25  Eric Blake  <ebb9@byu.net>
39158
39159         Fix strerror on Interix.
39160         * lib/string_.h (strerror): Declare replacement.
39161         * doc/functions/strerror.texi (strerror): Document the Interix
39162         shortcoming.
39163         * modules/string (Makefile.am): Support new hooks.
39164         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
39165         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
39166         gl_FUNC_STRERROR_SEPARATE.
39167         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
39168         * lib/strerror.c (rpl_strerror): Provide replacement.
39169         * modules/strerror (Depends-on): Add string.
39170         (configure.ac): Detect use of module.
39171         * tests/test-strerror.c: New file.
39172         * modules/strerror-tests: New test module.
39173         * modules/argp (Depends-on): Add strerror.
39174         * modules/error (Depends-on): Likewise.
39175         Reported by Martin Koeppe.
39176
39177 2007-09-24  Bruno Haible  <bruno@clisp.org>
39178
39179         * README: Update git instructions.
39180
39181 2007-09-24  Eric Blake  <ebb9@byu.net>
39182
39183         Revert fpending breakage from 2007-09-08.
39184         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
39185         __fpending.c.
39186
39187 2007-09-24  Jim Meyering  <jim@meyering.net>
39188
39189         filenamecat.c: Add a test.
39190         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
39191         showing how the function works when DIR is the empty string.
39192
39193 2007-09-21  Simon Josefsson  <simon@josefsson.org>
39194
39195         * tests/test-canonicalize.sh: Turn on executable bit.
39196
39197 2007-09-19  Eric Blake  <ebb9@byu.net>
39198
39199         * README: Update CVS instructions.
39200
39201 2007-09-18  Bruno Haible  <bruno@clisp.org>
39202
39203         * modules/areadlink: New file.
39204         * lib/areadlink.h (areadlink): New declaration.
39205         * lib/areadlink.c: New file, based on lib/xreadlink.c.
39206
39207 2007-09-17  Jim Meyering  <jim@meyering.net>
39208
39209         * lib/savewd.c (ESTALE) [!defined]: Define.
39210         Reported to be required on Interix by Martin Koeppe.
39211
39212 2007-09-17  Bruno Haible  <bruno@clisp.org>
39213
39214         * gnulib-tool (func_version): Use $version.
39215
39216 2007-09-16  Bruno Haible  <bruno@clisp.org>
39217
39218         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
39219         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
39220         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
39221         Reported by Greg Schafer <gschafer@zip.com.au>.
39222
39223 2007-09-15  Bruno Haible  <bruno@clisp.org>
39224
39225         * gnulib-tool (sed): Try a little harder to make bash understand the
39226         alias.
39227         Reported by Bruce Korb <bruce.korb@gmail.com>.
39228
39229 2007-09-13  Eric Blake  <ebb9@byu.net>
39230
39231         * ChangeLog: Remove conflict markers.
39232
39233 2007-09-13  Simon Josefsson  <simon@josefsson.org>
39234
39235         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
39236         Reported by Bruno Haible <bruno@clisp.org>.
39237
39238 2007-09-12  Bruno Haible  <bruno@clisp.org>
39239
39240         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
39241         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
39242         is not defined.
39243
39244 2007-09-12  Eric Blake  <ebb9@byu.net>
39245
39246         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
39247         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
39248         Autoconf definition.
39249         * modules/euidaccess (Depends-on): Add extensions, for
39250         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
39251         * modules/fnmatch (Depends-on): Likewise.
39252         * modules/getaddrinfo (Depends-on): Likewise.
39253         * modules/getdelim (Depends-on): Likewise.
39254         * modules/getline (Depends-on): Likewise.
39255         * modules/getsubopt (Depends-on): Likewise.
39256         * modules/gettext (Depends-on): Likewise.
39257         * modules/group-member (Depends-on): Likewise.
39258         * modules/mbchar (Depends-on): Likewise.
39259         * modules/memmem (Depends-on): Likewise.
39260         * modules/mempcpy (Depends-on): Likewise.
39261         * modules/memrchr (Depends-on): Likewise.
39262         * modules/pagealign_alloc (Depends-on): Likewise.
39263         * modules/readutmp (Depends-on): Likewise.
39264         * modules/stpcpy (Depends-on): Likewise.
39265         * modules/stpncpy (Depends-on): Likewise.
39266         * modules/strchrnul (Depends-on): Likewise.
39267         * modules/strndup (Depends-on): Likewise.
39268         * modules/strsep (Depends-on): Likewise.
39269         * modules/strverscmp (Depends-on): Likewise.
39270         * modules/vasprintf (Depends-on): Likewise.
39271         * modules/wcwidth (Depends-on): Likewise.
39272         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
39273         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
39274         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
39275         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
39276         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
39277         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
39278         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
39279         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
39280         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
39281         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
39282         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
39283         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
39284         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
39285         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
39286         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
39287         * m4/readutmp.m4 (gl_READUTMP): Likewise.
39288         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
39289         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
39290         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
39291         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
39292         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
39293         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
39294         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
39295         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
39296         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
39297         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
39298         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
39299         so that lock.m4 can be used in gettext without extensions module.
39300
39301 2007-09-11  Bruno Haible  <bruno@clisp.org>
39302
39303         * m4/isc-posix.m4: Remove file.
39304         Suggested by Eric Blake.
39305
39306 2007-09-11  Eric Blake  <ebb9@byu.net>
39307
39308         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
39309
39310 2007-09-10  Bruno Haible  <bruno@clisp.org>
39311
39312         * posix-modules: Fix typo in error message.
39313         Reported by Matt <mkraai@beckman.com>.
39314
39315 2007-09-09  Bruno Haible  <bruno@clisp.org>
39316
39317         * doc/functions/getdelim.texi: Update list of platforms lacking the
39318         function.
39319         * doc/functions/getline.texi: Likewise.
39320
39321 2007-09-09  Jim Meyering  <jim@meyering.net>
39322
39323         * lib/hash.c (hash_initialize): Detect calloc failure.
39324         Reported by Bruno Haible.
39325
39326 2007-09-09  Bruno Haible  <bruno@clisp.org>
39327
39328         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
39329         malloc or realloc fails.
39330
39331 2007-09-09  Bruno Haible  <bruno@clisp.org>
39332
39333         * modules/getcwd (Depends-on): Add malloc-posix.
39334         * modules/glob (Depends-on): Likewise.
39335         * modules/putenv (Depends-on): Likewise.
39336         * modules/strdup (Depends-on): Likewise.
39337         * modules/getdelim (Depends-on): Add realloc-posix.
39338         * modules/read-file (Depends-on): Likewise.
39339
39340 2007-09-09  Bruno Haible  <bruno@clisp.org>
39341
39342         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
39343         (gl_FUNC_MALLOC_POSIX): Require it.
39344         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
39345         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
39346         * modules/realloc (Files): Add m4/malloc.m4.
39347         * modules/calloc (Files): Likewise.
39348
39349 2007-09-09  Bruno Haible  <bruno@clisp.org>
39350
39351         * modules/malloc-posix: New file.
39352         * modules/malloc (Depends-on): Add malloc-posix.
39353         * lib/malloc.c: Include errno.h.
39354         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
39355         and a POSIX-compatible malloc into a single function. Set ENOMEM
39356         when returning NULL.
39357         * m4/malloc.m4: New file.
39358         * doc/functions/malloc.texi: Mention the malloc-posix module.
39359         * lib/stdlib_.h (malloc): New declaration.
39360         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
39361         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
39362         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
39363         and HAVE_MALLOC_POSIX.
39364
39365 2007-09-09  Bruno Haible  <bruno@clisp.org>
39366
39367         * modules/realloc-posix: New file.
39368         * modules/realloc (Depends-on): Add realloc-posix.
39369         * lib/realloc.c: Include errno.h.
39370         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
39371         and a POSIX-compatible realloc into a single function. Set ENOMEM
39372         when returning NULL.
39373         * m4/realloc.m4: New file.
39374         * doc/functions/realloc.texi: Mention the realloc-posix module.
39375         * lib/stdlib_.h (realloc): New declaration.
39376         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
39377         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
39378         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
39379         and HAVE_REALLOC_POSIX.
39380
39381 2007-09-09  Bruno Haible  <bruno@clisp.org>
39382
39383         * modules/calloc-posix: New file.
39384         * modules/calloc (Depends-on): Add calloc-posix.
39385         * lib/calloc.c: Include errno.h.
39386         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
39387         and a POSIX-compatible calloc into a single function. Set ENOMEM
39388         when returning NULL.
39389         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
39390         * doc/functions/calloc.texi: Mention the calloc-posix module.
39391         * lib/stdlib_.h (calloc): New declaration.
39392         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
39393         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
39394         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
39395         and HAVE_CALLOC_POSIX.
39396
39397 2007-09-09  Bruno Haible  <bruno@clisp.org>
39398
39399         Allow for modules to show an arbitrary notice.
39400         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
39401         * gnulib-tool: New option --extract-notice.
39402         (func_usage): Document it.
39403         (sed_extract_prog): Update.
39404         (func_get_notice): New function.
39405         (func_modules_notice): New function.
39406         (func_import, func_create_testdir): Invoke it.
39407         Suggested by Jim Meyering.
39408
39409 2007-09-09  Bruno Haible  <bruno@clisp.org>
39410
39411         * gnulib-tool: New options --verbose, --quiet.
39412         (func_usage): Document them.
39413         (verbose): New variable.
39414         (func_execute_command): New function.
39415         (func_import): Don't show the module list and the file list if
39416         $verbose < 0.
39417         (func_create_testdir): Likewise. Use func_execute_command.
39418         (func_create_megatestdir): Use func_execute_command.
39419
39420 2007-09-08  Bruno Haible  <bruno@clisp.org>
39421
39422         * gnulib-tool (func_import): Prefer rsync over wget when available,
39423         for fetching the PO files.
39424
39425 2007-09-08  Bruno Haible  <bruno@clisp.org>
39426
39427         * posix-modules: New file. Portions copied from gnulib-tool.
39428         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
39429
39430 2007-09-08  Jim Meyering  <jim@meyering.net>
39431
39432         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
39433         * lib/fpending.h: Rename from __fpending.h.
39434         * lib/fpending.c: Rename from __fpending.c.
39435         Include "fpending.h", not "__fpending.h".
39436         * lib/__fpending.h, lib/__fpending.c: Remove files.
39437         * modules/fpending (Files): Reflect new file names.
39438         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
39439
39440 2007-09-08  Bruno Haible  <bruno@clisp.org>
39441
39442         * m4/inttypes-h.m4: Remove stub file.
39443
39444 2007-09-07  Simon Josefsson  <simon@josefsson.org>
39445
39446         * doc/headers/stdint.texi: Discuss #include_next issue.
39447
39448 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
39449
39450         * build-aux/bootstrap: Remove obsolete comment about wget --help.
39451
39452 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39453
39454         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
39455         in variable name.
39456
39457 2007-09-03  Jim Meyering  <jim@meyering.net>
39458
39459         New module: git-version-gen.
39460         * modules/git-version-gen: New file.
39461
39462         Import changes from coreutils for bootstrap script.
39463
39464         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
39465
39466         bootstrap: uses rsync to download the .po files
39467         * build-aux/bootstrap (po_download_command_format): New global.
39468         (download_po_files): Use rsync.
39469         (update_po_files): Don't remove .po files after download,
39470         so future rsync runs can take advantage of the copies.
39471
39472         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
39473
39474         Solve the unnecessary-.po-file-regeneration problem once and for all.
39475         * build-aux/bootstrap (download_po_files): New function, renamed from
39476         get_translations.  Now, downloads, but doesn't update LINGUAS.
39477         (update_po_files): New function.
39478
39479         bootstrap: Ignore more.
39480         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
39481         uniwidth to e.g., lib/.gitignore.
39482         (slurp): Handle the sys_stat_.h -> sys mapping, too.
39483
39484         * build-aux/bootstrap: New setting: vc_ignore.
39485         (insert_sorted_if_absent): Create $file if absent.
39486         Adapt to new, possibly empty, list: $vc_ignore.
39487
39488         bootstrap: generate more ignorable names
39489         * build-aux/bootstrap (slurp): When generating ignorable names,
39490         also map .sin to .sed, .gperf to .c, and .y to .c.
39491
39492 2007-09-03  Jim Meyering  <jim@meyering.net>
39493
39494         * build-aux/git-version-gen: New file, from coreutils.  For details, see
39495         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
39496
39497 2007-09-02  Bruno Haible  <bruno@clisp.org>
39498
39499         Fix mis-recognition of 'mcs' on QNX 6.
39500         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
39501         output contains the string "Mono".
39502         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
39503         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
39504
39505 2007-09-01  Bruno Haible  <bruno@clisp.org>
39506
39507         Fix collision between uniwidth/* and linebreak modules.
39508         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
39509         u32_width): Remove declarations.
39510         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
39511         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
39512         streq3, streq2, streq1, streq0): Remove functions.
39513         (STREQ): Remove macro.
39514         (is_cjk_encoding): Remove function.
39515         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
39516         (uc_width, u8_width, u16_width, u32_width): Remove functions.
39517         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
39518         * NEWS: Document the change.
39519
39520 2007-09-01  Bruno Haible  <bruno@clisp.org>
39521
39522         * lib/streq.h: Add double-inclusion guard.
39523
39524 2007-09-01  Karl Berry  <karl@gnu.org>
39525
39526         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
39527
39528 2007-08-28  Jim Meyering  <jim@meyering.net>
39529
39530         Rename mreadlink_with_size to areadlink_with_size.
39531         * NEWS: Document the change.
39532         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
39533         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
39534         * lib/mreadlink.h: Rename this to...
39535         * lib/areadlink.h: ...this.
39536         * modules/mreadlink-with-size: Rename this to...
39537         * modules/areadlink-with-size: ...this.
39538         * lib/canonicalize.c: Reflect the renaming.
39539         * modules/canonicalize: Likewise.
39540
39541 2007-08-26  Bruno Haible  <bruno@clisp.org>
39542
39543         * gnulib-tool (func_import): When deciding which files to remove,
39544         consider also dangling symbolic links.
39545         Reported by Eric Blake.
39546
39547 2007-08-26  Bruno Haible  <bruno@clisp.org>
39548
39549         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
39550
39551 2007-08-23  Simon Josefsson  <simon@josefsson.org>
39552
39553         * lib/readline.c: Don't include getline.h, the prototype is now
39554         found in stdio.h.
39555
39556 2007-08-23  Jim Meyering  <jim@meyering.net>
39557
39558         Getdelim touchup.
39559         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
39560         around the funlockfile call, since funlockfile never sets errno.
39561         Don't set errno upon failed realloc.
39562
39563 2007-08-22  Eric Blake  <ebb9@byu.net>
39564
39565         Getline touchups.
39566         * lib/getdelim.c (getdelim): Revert regression that required *n to
39567         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
39568         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
39569         getdelim, rather than whether implementation is missing.
39570         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
39571         * lib/stdio_.h (getline): Also declare if replacement is
39572         required.
39573         * doc/functions/getdelim.texi: New file.
39574         * doc/functions/getline.texi: Likewise.
39575         * doc/gnulib.texi (Function Substitutes): Add new files.
39576         Reported by Bruno Haible.
39577
39578 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
39579
39580         * users.txt: Add Guile.
39581
39582 2007-08-22  Eric Blake  <ebb9@byu.net>
39583
39584         * tests/test-getdelim.c (main): Use remove, not unlink.
39585         * tests/test-getline.c (main): Likewise.
39586
39587         Move getline and getdelim into stdio.h, per POSIX 200x.
39588         * modules/getline (Files): Remove getline.h.
39589         (Depends-on): Add stdio.
39590         (configure.ac): Add module indicator.
39591         * modules/getdelim (Files): Remove getdelim.h.
39592         (Depends-on): Add stdio.
39593         (configure.ac): Add module indicator.
39594         * modules/stdio (Makefile.am): Work with new indicators.
39595         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
39596         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
39597         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
39598         * lib/getdelim.h: Delete.
39599         * lib/getline.h: Delete.
39600         * lib/stdio_.h (getdelim, getline): Declare.
39601         * modules/getdelim-tests: New module.
39602         * modules/getline-tests: Likewise.
39603         * tests/test-getdelim.c: New file.
39604         * tests/test-getline.c: Likewise.
39605         * NEWS: Document the change.
39606         * lib/getline.c: Update choice of header.
39607         * lib/csharpcomp.c: Likewise.
39608         * lib/getpass.c: Likewise.
39609         * lib/javacomp.c: Likewise.
39610         * lib/javaversion.c: Likewise.
39611         * lib/yesno.c: Likewise.
39612         * lib/getdelim.c: Likewise.
39613         (getdelim): Set errno on failure, and avoid memory leak.
39614
39615 2007-08-19  Bruno Haible  <bruno@clisp.org>
39616
39617         * modules/closein (Depends-on): Add freadahead.
39618         * lib/closein.c: Include freadahead.h.
39619         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
39620         is zero.
39621
39622 2007-08-19  Bruno Haible  <bruno@clisp.org>
39623
39624         * modules/freadahead-tests: New file.
39625         * tests/test-freadahead.sh: New file.
39626         * tests/test-freadahead.c: New file.
39627
39628         * modules/freadahead: New file.
39629         * lib/freadahead.h: New file.
39630         * lib/freadahead.c: New file.
39631         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
39632         fbufmode, fpurge, freadable, fwritable.
39633
39634 2007-08-19  Eric Blake  <ebb9@byu.net>
39635
39636         Test yesno in combination with closein.
39637         * lib/yesno.c (yesno): Document use of stdin.
39638         * modules/yesno-tests (Files): New module.
39639         * tests/test-yesno.c (main): New file.
39640         * tests/test-yesno.sh: Likewise.
39641
39642 2007-08-19  Bruno Haible  <bruno@clisp.org>
39643
39644         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
39645         * lib/fseeko.c (rpl_fseeko): Likewise.
39646         * lib/fseterr.c (fseterr): Likewise.
39647
39648 2007-08-19  Bruno Haible  <bruno@clisp.org>
39649
39650         * tests/test-lseek.c (main): Disable a test for BeOS.
39651         * doc/functions/lseek.texi: Document the BeOS bug.
39652
39653 2007-08-19  Bruno Haible  <bruno@clisp.org>
39654             Eric Blake  <ebb9@byu.net>
39655
39656         * lib/lseek.c: Include <sys/stat.h>.
39657         (rpl_lseek): Add workaround code also for Unix platforms.
39658         Needed for BeOS.
39659         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
39660         * doc/functions/lseek.texi: Document BeOS definiency.
39661
39662 2007-08-18  Bruno Haible  <bruno@clisp.org>
39663
39664         * modules/fstrcmp-tests: New file.
39665         * tests/test-fstrcmp.c: New file.
39666
39667 2007-08-18  Bruno Haible  <bruno@clisp.org>
39668
39669         * modules/fstrcmp: New file, from GNU gettext with modifications.
39670         * lib/fstrcmp.h: New file, from GNU gettext.
39671         * lib/fstrcmp.c: New file, from GNU gettext.
39672         * MODULES.html.sh (String handling): Add fstrcmp.
39673
39674 2007-08-18  Bruno Haible  <bruno@clisp.org>
39675
39676         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
39677         'bool'.
39678         (diag, compareseq): Remove const from the ctxt argument.
39679         (USE_HEURISTIC): Undefine at the end.
39680
39681 2007-08-18  Jim Meyering  <jim@meyering.net>
39682
39683         New file: lib/idcache.h
39684         * NEWS: Mention the addition.
39685         * modules/idcache (Files): Add lib/idcache.h
39686         * lib/idcache.c: Include "idcache.h".
39687         Don't include <sys/types.h>.
39688         Add a FIXME comment.
39689         Move file-scoped "static" declarations to the top.
39690         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
39691
39692 2007-08-17  Bruno Haible  <bruno@clisp.org>
39693         and Paul Eggert  <eggert@cs.ucla.edu>
39694
39695         * MODULES.html.sh: Add diffseq.
39696         * modules/diffseq: New file.
39697         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
39698         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
39699
39700 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
39701
39702         Import changes from coreutils for bootstrap script.
39703
39704         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
39705
39706         * build-aux/bootstrap (slurp): Work even in environments where
39707         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
39708         current code does not slurp files whose names start with ".", and
39709         this looks like it might be a troublesome area.
39710
39711         2007-07-11  Jim Meyering  <jim@meyering.net>
39712
39713         If there's a GPL vN copyright comment, require that N == 3.
39714
39715         2007-07-08  Jim Meyering  <jim@meyering.net>
39716
39717         Run the coreutils-specific code only if tests/Makefile.am.in exists.
39718         * build-aux/bootstrap (mam_template): Move definition out of loop.
39719
39720         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
39721
39722         * build-aux/bootstrap (symlink_to_dir): Rename function from
39723         symlink_to_gnulib.  Add a directory parameter.  Update all
39724         callers.
39725         (cp_mark_as_generated): Also check for -- and link to -- files in
39726         gl/.
39727
39728         2007-07-08  Jim Meyering  <jim@meyering.net>
39729
39730         Adapt to deeper hierarchy in gnulib.
39731         * build-aux/bootstrap (symlink_to_dir): If the destination
39732         directory doesn't exist, create it. This is required at least for
39733         "lib/uniwidth/cjk.h".
39734
39735         2007-05-15  Jim Meyering  <jim@meyering.net>
39736
39737         * build-aux/bootstrap: Now that generated Makefile.am files
39738         are no longer under version control, they must be created at
39739         bootstrap time.
39740
39741 2007-08-14  Ben Pfaff  <blp@gnu.org>
39742
39743         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
39744
39745 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
39746
39747         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
39748         given the changes below.
39749         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
39750         even on hosts that have padding bits beyond the supported 64.
39751
39752 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
39753
39754         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
39755         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
39756         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
39757         depends on it.
39758         (xstrtol_error): Remove.
39759         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
39760         but with a different signature.
39761         (ATTRIBUTE_NORETURN, __attribute__): New macros.
39762         * lib/xstrtol-error.c: Include exitfail.h.
39763         (xstrtol_fatal): New function, with a different signature from the
39764         old xstrtol_error, so that the caller need not worry about passing
39765         in an exit status, or about storage management of the option argument.
39766         (xstrtol_error): Now a static function.  Redo signature to
39767         implement xstrtol_fatal.  Output the correct number of hyphens in
39768         front of the option so that the caller need not worry about
39769         storage management.
39770         (N_): New macro.
39771         (_): Remove; not used now.
39772         * modules/xstrtol: Depend on getopt.
39773         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
39774         of old STRTOL_FATAL_ERROR macro.
39775         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
39776         of test program.
39777         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
39778         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
39779
39780 2007-08-08  Eric Blake  <ebb9@byu.net>
39781
39782         * lib/xstrtol-error.c: Add missing include.
39783
39784         Move xstrtol messages into gnulib domain, when --pobase is used.
39785         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
39786         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
39787         * modules/xstrtol (Files): Distribute new file.
39788         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
39789         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
39790         * tests/test-xstrtol.c: ...into new file.
39791         * tests/test-xstrtoul.c: Also test xstrtoul.
39792         * tests/test-xstrtoimax.c: Also test xstrtoimax.
39793         * tests/test-xstrtoumax.c: Also test xstrtoumax.
39794         * tests/test-xstrtol.sh: Drive the tests.
39795         * tests/test-xstrtoimax.sh: Likewise.
39796         * tests/test-xstrtoumax.sh: Likewise.
39797         * modules/xstrtol-tests: New module.
39798         * modules/xstrtoimax-tests: Likewise.
39799         * modules/xstrtoumax-tests: Likewise.
39800
39801 2007-08-08  Jim Meyering  <jim@meyering.net>
39802
39803         New function: mfile_name_concat.
39804         * lib/filenamecat.c (mfile_name_concat): New function, just like
39805         file_name_concat, but return NULL upon failure rather than exiting
39806         with a diagnostic.
39807         * lib/filenamecat.h: Declare it.
39808
39809 2007-08-07  Bruno Haible  <bruno@clisp.org>
39810
39811         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
39812         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
39813         warning from gcc.
39814         Reported by Eric Blake.
39815
39816 2007-08-07  Simon Josefsson  <simon@josefsson.org>
39817
39818         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
39819         * modules/crypto/arcfour (License): Likewise.
39820         * modules/crypto/des-tests (License): Likewise.
39821         * modules/crypto/gc-arctwo-tests (License): Likewise.
39822         * modules/crypto/gc-des-tests (License): Likewise.
39823         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
39824         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
39825         * modules/crypto/gc-md2-tests (License): Likewise.
39826         * modules/crypto/gc-md4-tests (License): Likewise.
39827         * modules/crypto/gc-md5-tests (License): Likewise.
39828         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
39829         * modules/crypto/gc-rijndael-tests (License): Likewise.
39830         * modules/crypto/gc-sha1-tests (License): Likewise.
39831         * modules/crypto/gc-tests (License): Likewise.
39832         * modules/crypto/hmac-md5 (License): Likewise.
39833         * modules/crypto/hmac-sha1 (License): Likewise.
39834         * modules/crypto/md2-tests (License): Likewise.
39835         * modules/crypto/md4-tests (License): Likewise.
39836         * modules/crypto/md5 (License): Likewise.
39837         * modules/crypto/rijndael (License): Likewise.
39838         * modules/crypto/sha1 (License): Likewise.
39839         * modules/memxor (License): Likewise.
39840
39841 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
39842         and Bruno Haible  <bruno@clisp.org>
39843
39844         * NEWS: Describe interface changes to human, xstrtol.
39845         * lib/human.h: Include <xstrtol.h>.
39846         (human_options): Return enum strtol_error, not int.  Remove
39847         bool arg; take int * instead.
39848         * lib/human.c: Don't include "gettext.h".
39849         (_): Remove; no longer used.
39850         Don't include <xstrtol.h>, since human.h does it.
39851         (human_options): Adjust to abovementioned interface changes.
39852         Do not report error to stderr; that's now the caller's
39853         responsibility.
39854         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
39855         interface change.
39856         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
39857         Str, Argument_type_string.  All uses changed.  Put " argument"
39858         in diagnostics to make them clearer.  Change wording of suffix
39859         message for clarity.
39860         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
39861         Argument_type_string.
39862         (STRTOL_FATAL_WARN): Remove; no longer used.
39863         * modules/human (Depends-on): Remove gettext-h.
39864
39865 2007-08-06  Simon Josefsson  <simon@josefsson.org>
39866
39867         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
39868
39869 2007-07-31  Bruno Haible  <bruno@clisp.org>
39870
39871         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
39872         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
39873         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
39874
39875 2007-07-31  Bruno Haible  <bruno@clisp.org>
39876
39877         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
39878         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
39879
39880 2007-07-30  Bruno Haible  <bruno@clisp.org>
39881
39882         * modules/base64 (License): Use the synonymous term "LGPLv2+".
39883         * modules/c-ctype (License): Likewise.
39884         * modules/c-strcase (License): Likewise.
39885         * modules/check-version (License): Likewise.
39886         * modules/iconv (License): Likewise.
39887         * modules/iconv_open (License): Likewise.
39888         * modules/read-file (License): Likewise.
39889         * modules/striconv (License): Likewise.
39890         * modules/strverscmp (License): Likewise.
39891         * modules/vasprintf (License): Likewise.
39892         * modules/crypto/des (License): Likewise.
39893         * modules/crypto/gc (License): Likewise.
39894         * modules/crypto/gc-arcfour (License): Likewise.
39895         * modules/crypto/gc-arctwo (License): Likewise.
39896         * modules/crypto/gc-des (License): Likewise.
39897         * modules/crypto/gc-hmac-md5 (License): Likewise.
39898         * modules/crypto/gc-hmac-sha1 (License): Likewise.
39899         * modules/crypto/gc-md2 (License): Likewise.
39900         * modules/crypto/gc-md4 (License): Likewise.
39901         * modules/crypto/gc-md5 (License): Likewise.
39902         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
39903         * modules/crypto/gc-random (License): Likewise.
39904         * modules/crypto/gc-rijndael (License): Likewise.
39905         * modules/crypto/gc-sha1 (License): Likewise.
39906         * modules/crypto/md2 (License): Likewise.
39907         * modules/crypto/md4 (License): Likewise.
39908
39909 2007-07-30  Jim Meyering  <jim@meyering.net>
39910
39911         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
39912         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
39913         it has valid stat data.  This bug would cause du not to count the
39914         sizes of inaccessible directories.
39915         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
39916         in <http://bugzilla.redhat.com/250077>.
39917
39918 2007-07-25  Peter O'Gorman  <peter@pogma.com>
39919             Bruno Haible  <bruno@clisp.org>
39920
39921         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
39922         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
39923         #include_next, gives a diagnostic about it, but reports no error in
39924         the exit code.
39925         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
39926
39927 2007-07-24  Ben Pfaff  <blp@gnu.org>
39928
39929         Improve name: "count-one-bits" is better than "popcount".
39930         * MODULES.html.sh: Update name.
39931         * lib/popcount.h: Renamed lib/count-one-bits.h.
39932         (popcount): Renamed count_one_bits.
39933         (popcountl): Renamed count_one_bits_l.
39934         (popcountll): Renamed count_one_bits_ll.
39935         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
39936         * modules/popcount: Renamed module/count-one-bits.
39937         * modules/popcount-tests: Renamed module/count-one-bits-tests.
39938         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
39939
39940 2007-07-23  Ben Pfaff  <blp@gnu.org>
39941
39942         * lib/popcount.h (popcount32): Reduce size of constants, to allow
39943         better code generation, and add U to large constants to avoid
39944         warnings, in non-GCC case.
39945         Suggested by Bruno Haible.
39946
39947 2007-07-23  Ben Pfaff  <blp@gnu.org>
39948
39949         * lib/popcount.h: Use verify_true instead of if...abort.
39950         * modules/popcount: Depend on verify module.
39951         Suggested by Jim Meyering.
39952
39953 2007-07-23  Bruno Haible  <bruno@clisp.org>
39954
39955         * gnulib-tool (func_import): Create a .cvsignore file also when the
39956         directory is not yet in CVS but the toplevel directory is. When
39957         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
39958         Reported by Karl Berry.
39959
39960 2007-07-22  Ben Pfaff  <blp@gnu.org>
39961
39962         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
39963         case.
39964         Suggested by Eric Blake.
39965
39966 2007-07-22  Ben Pfaff  <blp@gnu.org>
39967
39968         New module: popcount.
39969         * MODULES.html.sh: Add popcount.
39970         * modules/popcount: New file.
39971         * modules/popcount-tests: New file.
39972         * tests/test-popcount.c: New file.
39973         * lib/popcount.h: New file.
39974         * m4/popcount.m4: New file.
39975
39976 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
39977
39978         * build-aux/announce-gen: Update to GPLv3.
39979
39980         * build-aux/config.guess: Update from config.
39981
39982 2007-07-21  Bruno Haible  <bruno@clisp.org>
39983
39984         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
39985         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
39986
39987 2007-07-20  Jim Meyering  <jim@meyering.net>
39988
39989         * check-module: Diagnose a self-dependency.
39990
39991 2007-07-19  Bruno Haible  <bruno@clisp.org>
39992
39993         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
39994         empty.
39995         Reported by Eric Blake.
39996
39997 2007-07-18  Bruno Haible  <bruno@clisp.org>
39998
39999         * gnulib-tool: New options --po-base, --po-domain.
40000         (func_usage): Document them.
40001         (pobase, po_domain): New variables.
40002         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
40003         DEFAULT_TEXT_DOMAIN.
40004         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
40005         (func_import): Consider pobase and po_domain. Create a po/ directory.
40006         (func_create_testdir): Set pobase and po_domain to empty.
40007         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
40008         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
40009
40010 2007-07-18  Bruno Haible  <bruno@clisp.org>
40011
40012         * gnulib-tool (func_get_automake_snippet): Synthesize also an
40013         EXTRA_DIST augmentation for files in build-aux/.
40014
40015 2007-07-16  Bruno Haible  <bruno@clisp.org>
40016
40017         * modules/lseek (License): Use the synonymous term "LGPLv2+".
40018         * modules/getdelim (License): Likewise.
40019
40020 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40021
40022         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
40023         * modules/d-type (License): Likewise.
40024         * modules/extensions (License): Likewise.
40025         * modules/fnmatch (License): Likewise.
40026         * modules/fseeko (License): Likewise.
40027         * modules/getaddrinfo (License): Likewise.
40028         * modules/getline (License): Likewise.
40029         * modules/getlogin_r (License): Likewise.
40030         * modules/getpass (License): Likewise.
40031         * modules/gettimeofday (License): Likewise.
40032         * modules/glob (License): Likewise.
40033         * modules/inet_ntop (License): Likewise.
40034         * modules/malloc (License): Likewise.
40035         * modules/malloca (License): Likewise.
40036         * modules/memmem (License): Likewise.
40037         * modules/mempcpy (License): Likewise.
40038         * modules/memset (License): Likewise.
40039         * modules/minmax (License): Likewise.
40040         * modules/mktime (License): Likewise.
40041         * modules/netinet_in (License): Likewise.
40042         * modules/pathmax (License): Likewise.
40043         * modules/poll (License): Likewise.
40044         * modules/regex (License): Likewise.
40045         * modules/snprintf (License): Likewise.
40046         * modules/stdbool (License): Likewise.
40047         * modules/stdint (License): Likewise.
40048         * modules/stdio (License): Likewise.
40049         * modules/strcase (License): Likewise.
40050         * modules/strcasestr (License): Likewise.
40051         * modules/strdup (License): Likewise.
40052         * modules/string (License): Likewise.
40053         * modules/strndup (License): Likewise.
40054         * modules/strnlen (License): Likewise.
40055         * modules/strpbrk (License): Likewise.
40056         * modules/strptime (License): Likewise.
40057         * modules/strsep (License): Likewise.
40058         * modules/sys_select (License): Likewise.
40059         * modules/sys_socket (License): Likewise.
40060         * modules/sys_stat (License): Likewise.
40061         * modules/sys_time (License): Likewise.
40062         * modules/time (License): Likewise.
40063         * modules/time_r (License): Likewise.
40064         * modules/timegm (License): Likewise.
40065         * modules/unistd (License): Likewise.
40066         * modules/vsnprintf (License): Likewise.
40067         * modules/wctype (License): Likewise.
40068
40069 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40070
40071         * modules/argz (License): LGPLv2+.
40072
40073 2007-07-15  Karl Berry  <karl@gnu.org>
40074
40075         * doc/gnulib.texi: revise node structure per new fdl.texi.
40076
40077 2007-07-14  Bruno Haible  <bruno@clisp.org>
40078
40079         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
40080         the output file.
40081         * lib/uniname/uninames.h: Regenerated.
40082
40083 2007-07-14  Karl Berry  <karl@gnu.org>
40084
40085         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
40086         omitting sectioning and index commands.
40087
40088 2007-07-13  Bruno Haible  <bruno@clisp.org>
40089
40090         New gnulib-tool option --more-symlinks.
40091         * gnulib-tool (func_usage): Document --more-symlinks.
40092         (do_copyrights): New variable.
40093         Recognize option --more-symlinks.
40094         (func_import): Don't add a copyright notice transform to
40095         sed_transform_lib_file if do_copyrights is empty.
40096
40097 2007-07-13  Bruno Haible  <bruno@clisp.org>
40098
40099         * lib/vasnprintf.c (decimal_point_char): Define also if
40100         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
40101         && !NEED_PRINTF_DIRECTIVE_A.
40102         Reported by Clemens Koller <clemens.koller@anagramm.de> via
40103         Gary V. Vaughan <gary@gnu.org>.
40104
40105 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
40106
40107         * lib/inttypes_.h: Undo previous change, since it was fixed
40108         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
40109
40110 2007-07-13  Bruno Haible  <bruno@clisp.org>
40111
40112         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
40113         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
40114
40115 2007-07-13  Jim Meyering  <jim@meyering.net>
40116
40117         df: Don't fail for Tru64's "file-on-file mount".
40118         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
40119         so we fall through and use statfs instead.  Details here:
40120         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
40121         Reported by Albert Chin.
40122
40123 2007-07-13  Bruno Haible  <bruno@clisp.org>
40124
40125         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
40126         * modules/configmake (License): Likewise.
40127         * modules/gettext (License): Likewise.
40128         * modules/gettext-h (License): Likewise.
40129         * modules/include_next (License): Likewise.
40130         * modules/link-warning (License): Likewise.
40131         * modules/localcharset (License): Likewise.
40132         * modules/localename (License): Likewise.
40133         * modules/lock (License): Likewise.
40134         * modules/relocatable-lib-lgpl (License): Likewise.
40135         * modules/size_max (License): Likewise.
40136         * modules/vasnprintf (License): Likewise.
40137         * modules/wchar (License): Likewise.
40138         * modules/xsize (License): Likewise.
40139
40140 2007-07-13  Bruno Haible  <bruno@clisp.org>
40141
40142         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
40143         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
40144
40145 2007-07-12  Bruno Haible  <bruno@clisp.org>
40146
40147         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
40148         in the modules files.
40149
40150 2007-07-11  Karl Berry  <karl@gnu.org>
40151
40152         * MODULES.html.sh (func_module): use
40153          sed -e '\|^'"${includefile}"'$|d'
40154          instead of /.../d, to avoid errors on $includefile's containing /.
40155
40156 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
40157
40158         * gnulib-tool (func_import): Avoid duplication of --avoid
40159         statements
40160         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
40161         names to `_' in variable names.
40162
40163 2007-07-10  Eric Blake  <ebb9@byu.net>
40164
40165         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
40166         * NEWS: Document this change.
40167
40168 2007-07-08  Bruno Haible  <bruno@clisp.org>
40169
40170         Update to Unicode 5.0.
40171         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
40172         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
40173         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
40174         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
40175         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
40176         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
40177         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
40178         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
40179         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
40180         U+10A3F, U+1D242..U+1D244.
40181         (nonspacing_table_ind): Update.
40182         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
40183         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
40184
40185 2007-07-08  Bruno Haible  <bruno@clisp.org>
40186
40187         Update to Unicode 5.0.
40188         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
40189         code transform. Extend the name index field of unicode_name_to_code and
40190         unicode_code_to_name from 16 to 24 bits.
40191         * lib/uniname/uniname.c (unicode_character_name,
40192         unicode_name_character): Add the range 0x12xxx to the code transform.
40193         * lib/uniname/uninames.h: Regenerated.
40194         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
40195
40196 2007-07-07  Bruno Haible  <bruno@clisp.org>
40197
40198         * modules/wcwidth-tests: New file.
40199         * tests/test-wcwidth.c: New file.
40200
40201         Work around MacOS X wcwidth() bug.
40202         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
40203         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
40204         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
40205         original wcwidth in non-UTF-8 locales.
40206         * modules/wcwidth (Depends-on): Add localcharset, streq,
40207         uniwidth/width.
40208         * doc/functions/wcwidth.texi: Update.
40209
40210 2007-07-07  Bruno Haible  <bruno@clisp.org>
40211
40212         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
40213         (wcwidth): New declaration.
40214         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
40215         macros.
40216         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
40217         here. Prepare for creating <wchar.h> unconditionally.
40218         * modules/wchar (Depends-on): Add link-warning.
40219         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
40220         REPLACE_WCWIDTH, and GL_LINK_WARNING.
40221         * lib/wcwidth.h: Remove file.
40222         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
40223         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
40224         * modules/wcwidth (Files): Remove lib/wcwidth.h.
40225         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
40226         (Include): Replace wcwidth.h with <wchar.h>.
40227         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
40228         * lib/mbchar.h: Don't include wcwidth.h.
40229         * lib/mbswidth.c: Likewise.
40230         * NEWS: Mention the change.
40231
40232 2007-07-07  Bruno Haible  <bruno@clisp.org>
40233
40234         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
40235         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
40236         definition with an external declaration.
40237         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
40238         defined as a function. Remove AC_C_INLINE requirement.
40239         * modules/wcwidth (Files): Add lib/wcwidth.c.
40240         (Makefile.am): Remove redundant statement.
40241
40242 2007-07-07  Bruno Haible  <bruno@clisp.org>
40243
40244         * MODULES.html.sh (Unicode string functions): Add the new modules.
40245
40246         * tests/uniwidth/test-u32-strwidth.c: New file.
40247         * modules/uniwidth/u32-strwidth-tests: New file.
40248
40249         * lib/uniwidth/u32-strwidth.c: New file.
40250         * modules/uniwidth/u32-strwidth: New file.
40251
40252         * tests/uniwidth/test-u16-strwidth.c: New file.
40253         * modules/uniwidth/u16-strwidth-tests: New file.
40254
40255         * lib/uniwidth/u16-strwidth.c: New file.
40256         * modules/uniwidth/u16-strwidth: New file.
40257
40258         * tests/uniwidth/test-u8-strwidth.c: New file.
40259         * modules/uniwidth/u8-strwidth-tests: New file.
40260
40261         * lib/uniwidth/u8-strwidth.c: New file.
40262         * modules/uniwidth/u8-strwidth: New file.
40263
40264         * tests/uniwidth/test-u32-width.c: New file.
40265         * modules/uniwidth/u32-width-tests: New file.
40266
40267         * lib/uniwidth/u32-width.c: New file.
40268         * modules/uniwidth/u32-width: New file.
40269
40270         * tests/uniwidth/test-u16-width.c: New file.
40271         * modules/uniwidth/u16-width-tests: New file.
40272
40273         * lib/uniwidth/u16-width.c: New file.
40274         * modules/uniwidth/u16-width: New file.
40275
40276         * tests/uniwidth/test-u8-width.c: New file.
40277         * modules/uniwidth/u8-width-tests: New file.
40278
40279         * lib/uniwidth/u8-width.c: New file.
40280         * modules/uniwidth/u8-width: New file.
40281
40282         * tests/uniwidth/test-uc_width.c: New file.
40283         * modules/uniwidth/width-tests: New file.
40284
40285         * lib/uniwidth/width.c: New file, from GNU libiconv.
40286         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
40287         * modules/uniwidth/width: New file.
40288
40289         * lib/uniwidth.h: New file, from GNU libiconv.
40290         * modules/uniwidth/base: New file.
40291
40292 2007-07-07  Bruno Haible  <bruno@clisp.org>
40293
40294         * lib/uniname.h: New file, from GNU gettext.
40295         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
40296         * lib/uniname/uninames.h: New file, from GNU gettext.
40297         * lib/uniname/uniname.c: New file, from GNU gettext.
40298         * tests/uniname/test-uninames.sh: New file.
40299         * tests/uniname/test-uninames.c: New file, from GNU gettext.
40300         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
40301         * modules/uniname/base: New file.
40302         * modules/uniname/uniname: New file.
40303         * modules/uniname/uniname-tests: New file.
40304         * MODULES.html.sh (Unicode string functions): Add the new modules.
40305
40306 2007-07-06  Bruno Haible  <bruno@clisp.org>
40307
40308         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
40309
40310 2007-07-06  Bruno Haible  <bruno@clisp.org>
40311
40312         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
40313         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
40314         includes <cygwin/sys_time.h> which includes <sys/select.h> which
40315         include <sys/time.h>.
40316         Reported by Eric Blake.
40317
40318 2007-07-06  Eric Blake  <ebb9@byu.net>
40319
40320         Fix testing canonicalize on cygwin.
40321         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
40322         Revert patch from 2007-06-19.
40323         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
40324         canonicalize module is also in use.
40325         * tests/test-canonicalize.c: New file.
40326         * tests/test-canonicalize.sh: Likewise.
40327         * modules/canonicalize-tests: Likewise.
40328
40329 2007-07-06  Jim Meyering  <jim@meyering.net>
40330
40331         * lib/getugroups.c (getugroups): Detect getgrent failure.
40332         Adjust comment to reflect reality: this function may return -1.
40333
40334 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
40335
40336         * build-aux/bootstrap (TP_URL,get_translations): Update to use
40337         the new TP address.
40338         (usage): Fix typo
40339         (gnulib_mk): New variable.
40340
40341 2007-07-05  Jim Meyering  <jim@meyering.net>
40342
40343         Don't let endgrent clobber errno, no matter how improbable.
40344         * lib/getugroups.c (getugroups): Save and restore errno around
40345         endgrent call.
40346
40347         Close the group DB even when failing with 2^31 or more members.
40348         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
40349
40350 2007-07-04  Jim Meyering  <jim@meyering.net>
40351
40352         * lib/getugroups.h: New file.
40353         * lib/getugroups.c: Include "getugroups.h".
40354         Remove uses of "register" keyword.
40355         Move local variable, "cp", down into scope where used.
40356         Give "username" parameter the "const" attribute.
40357         * modules/getugroups (Files): Add lib/getugroups.h
40358
40359 2007-07-04  Karl Berry  <karl@gnu.org>
40360
40361         * MODULES.html.sh (func_all_modules): Complete rename of
40362         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
40363
40364 2007-07-02  Bruno Haible  <bruno@clisp.org>
40365
40366         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
40367         mode, when inttypes.h comes from gnulib.
40368         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
40369
40370 2007-07-02  Simon Josefsson  <simon@josefsson.org>
40371
40372         * NEWS: Mention lgpl module name change.
40373
40374         * modules/lgpl-2.1: Renamed from lgpl.
40375
40376         * NEWS: Mention gpl module name change.
40377
40378         * modules/gpl-3.0: New file, based on gpl-2.0.
40379
40380         * modules/gpl-2.0: Renamed from gpl.
40381
40382         * modules/gpl: Fix filename, doc/gpl.texi is now found at
40383         doc/gpl-2.0.texi.
40384
40385 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
40386
40387         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
40388         #define __STDC_LIMIT_MACROS temporarily while including
40389         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
40390         Problem reported by Joel E. Denny in
40391         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
40392
40393 2007-07-01  Bruno Haible  <bruno@clisp.org>
40394
40395         * lib/unistdio.h: New file.
40396         * lib/unistdio/u-asnprintf.h: New file.
40397         * lib/unistdio/u-asprintf.h: New file.
40398         * lib/unistdio/u-printf-args.c: New file.
40399         * lib/unistdio/u-printf-args.h: New file.
40400         * lib/unistdio/u-printf-parse.h: New file.
40401         * lib/unistdio/u-snprintf.h: New file.
40402         * lib/unistdio/u-sprintf.h: New file.
40403         * lib/unistdio/u-vasprintf.h: New file.
40404         * lib/unistdio/u-vsnprintf.h: New file.
40405         * lib/unistdio/u-vsprintf.h: New file.
40406         * lib/unistdio/ulc-asnprintf.c: New file.
40407         * lib/unistdio/ulc-asprintf.c: New file.
40408         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
40409         * lib/unistdio/ulc-printf-parse.c: New file.
40410         * lib/unistdio/ulc-snprintf.c: New file.
40411         * lib/unistdio/ulc-sprintf.c: New file.
40412         * lib/unistdio/ulc-vasnprintf.c: New file.
40413         * lib/unistdio/ulc-vasprintf.c: New file.
40414         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
40415         * lib/unistdio/ulc-vsnprintf.c: New file.
40416         * lib/unistdio/ulc-vsprintf.c: New file.
40417         * lib/unistdio/u8-asnprintf.c: New file.
40418         * lib/unistdio/u8-asprintf.c: New file.
40419         * lib/unistdio/u8-printf-parse.c: New file.
40420         * lib/unistdio/u8-snprintf.c: New file.
40421         * lib/unistdio/u8-sprintf.c: New file.
40422         * lib/unistdio/u8-vasnprintf.c: New file.
40423         * lib/unistdio/u8-vasprintf.c: New file.
40424         * lib/unistdio/u8-vsnprintf.c: New file.
40425         * lib/unistdio/u8-vsprintf.c: New file.
40426         * lib/unistdio/u8-u8-asnprintf.c: New file.
40427         * lib/unistdio/u8-u8-asprintf.c: New file.
40428         * lib/unistdio/u8-u8-snprintf.c: New file.
40429         * lib/unistdio/u8-u8-sprintf.c: New file.
40430         * lib/unistdio/u8-u8-vasnprintf.c: New file.
40431         * lib/unistdio/u8-u8-vasprintf.c: New file.
40432         * lib/unistdio/u8-u8-vsnprintf.c: New file.
40433         * lib/unistdio/u8-u8-vsprintf.c: New file.
40434         * lib/unistdio/u16-asnprintf.c: New file.
40435         * lib/unistdio/u16-asprintf.c: New file.
40436         * lib/unistdio/u16-printf-parse.c: New file.
40437         * lib/unistdio/u16-snprintf.c: New file.
40438         * lib/unistdio/u16-sprintf.c: New file.
40439         * lib/unistdio/u16-vasnprintf.c: New file.
40440         * lib/unistdio/u16-vasprintf.c: New file.
40441         * lib/unistdio/u16-vsnprintf.c: New file.
40442         * lib/unistdio/u16-vsprintf.c: New file.
40443         * lib/unistdio/u16-u16-asnprintf.c: New file.
40444         * lib/unistdio/u16-u16-asprintf.c: New file.
40445         * lib/unistdio/u16-u16-snprintf.c: New file.
40446         * lib/unistdio/u16-u16-sprintf.c: New file.
40447         * lib/unistdio/u16-u16-vasnprintf.c: New file.
40448         * lib/unistdio/u16-u16-vasprintf.c: New file.
40449         * lib/unistdio/u16-u16-vsnprintf.c: New file.
40450         * lib/unistdio/u16-u16-vsprintf.c: New file.
40451         * lib/unistdio/u32-asnprintf.c: New file.
40452         * lib/unistdio/u32-asprintf.c: New file.
40453         * lib/unistdio/u32-printf-parse.c: New file.
40454         * lib/unistdio/u32-snprintf.c: New file.
40455         * lib/unistdio/u32-sprintf.c: New file.
40456         * lib/unistdio/u32-vasnprintf.c: New file.
40457         * lib/unistdio/u32-vasprintf.c: New file.
40458         * lib/unistdio/u32-vsnprintf.c: New file.
40459         * lib/unistdio/u32-vsprintf.c: New file.
40460         * lib/unistdio/u32-u32-asnprintf.c: New file.
40461         * lib/unistdio/u32-u32-asprintf.c: New file.
40462         * lib/unistdio/u32-u32-snprintf.c: New file.
40463         * lib/unistdio/u32-u32-sprintf.c: New file.
40464         * lib/unistdio/u32-u32-vasnprintf.c: New file.
40465         * lib/unistdio/u32-u32-vasprintf.c: New file.
40466         * lib/unistdio/u32-u32-vsnprintf.c: New file.
40467         * lib/unistdio/u32-u32-vsprintf.c: New file.
40468         * tests/unistdio/test-ulc-asnprintf1.c: New file.
40469         * tests/unistdio/test-ulc-asnprintf1.h: New file.
40470         * tests/unistdio/test-ulc-printf1.h: New file.
40471         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
40472         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
40473         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
40474         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
40475         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
40476         * tests/unistdio/test-ulc-vasprintf1.c: New file.
40477         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
40478         * tests/unistdio/test-ulc-vsprintf1.c: New file.
40479         * tests/unistdio/test-u8-asnprintf1.c: New file.
40480         * tests/unistdio/test-u8-asnprintf1.h: New file.
40481         * tests/unistdio/test-u8-printf1.h: New file.
40482         * tests/unistdio/test-u8-vasnprintf1.c: New file.
40483         * tests/unistdio/test-u8-vasnprintf2.c: New file.
40484         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
40485         * tests/unistdio/test-u8-vasnprintf3.c: New file.
40486         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
40487         * tests/unistdio/test-u8-vasprintf1.c: New file.
40488         * tests/unistdio/test-u8-vsnprintf1.c: New file.
40489         * tests/unistdio/test-u8-vsprintf1.c: New file.
40490         * tests/unistdio/test-u16-asnprintf1.c: New file.
40491         * tests/unistdio/test-u16-asnprintf1.h: New file.
40492         * tests/unistdio/test-u16-printf1.h: New file.
40493         * tests/unistdio/test-u16-vasnprintf1.c: New file.
40494         * tests/unistdio/test-u16-vasnprintf2.c: New file.
40495         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
40496         * tests/unistdio/test-u16-vasnprintf3.c: New file.
40497         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
40498         * tests/unistdio/test-u16-vasprintf1.c: New file.
40499         * tests/unistdio/test-u16-vsnprintf1.c: New file.
40500         * tests/unistdio/test-u16-vsprintf1.c: New file.
40501         * tests/unistdio/test-u32-asnprintf1.c: New file.
40502         * tests/unistdio/test-u32-asnprintf1.h: New file.
40503         * tests/unistdio/test-u32-printf1.h: New file.
40504         * tests/unistdio/test-u32-vasnprintf1.c: New file.
40505         * tests/unistdio/test-u32-vasnprintf2.c: New file.
40506         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
40507         * tests/unistdio/test-u32-vasnprintf3.c: New file.
40508         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
40509         * tests/unistdio/test-u32-vasprintf1.c: New file.
40510         * tests/unistdio/test-u32-vsnprintf1.c: New file.
40511         * tests/unistdio/test-u32-vsprintf1.c: New file.
40512         * modules/unistdio/base: New file.
40513         * modules/unistdio/u-printf-args: New file.
40514         * modules/unistdio/ulc-asnprintf: New file.
40515         * modules/unistdio/ulc-asprintf: New file.
40516         * modules/unistdio/ulc-fprintf: New file.
40517         * modules/unistdio/ulc-printf-parse: New file.
40518         * modules/unistdio/ulc-snprintf: New file.
40519         * modules/unistdio/ulc-sprintf: New file.
40520         * modules/unistdio/ulc-vasnprintf: New file.
40521         * modules/unistdio/ulc-vasprintf: New file.
40522         * modules/unistdio/ulc-vfprintf: New file.
40523         * modules/unistdio/ulc-vsnprintf: New file.
40524         * modules/unistdio/ulc-vsprintf: New file.
40525         * modules/unistdio/u8-asnprintf: New file.
40526         * modules/unistdio/u8-asprintf: New file.
40527         * modules/unistdio/u8-printf-parse: New file.
40528         * modules/unistdio/u8-snprintf: New file.
40529         * modules/unistdio/u8-sprintf: New file.
40530         * modules/unistdio/u8-vasnprintf: New file.
40531         * modules/unistdio/u8-vasprintf: New file.
40532         * modules/unistdio/u8-vsnprintf: New file.
40533         * modules/unistdio/u8-vsprintf: New file.
40534         * modules/unistdio/u8-u8-asnprintf: New file.
40535         * modules/unistdio/u8-u8-asprintf: New file.
40536         * modules/unistdio/u8-u8-snprintf: New file.
40537         * modules/unistdio/u8-u8-sprintf: New file.
40538         * modules/unistdio/u8-u8-vasnprintf: New file.
40539         * modules/unistdio/u8-u8-vasprintf: New file.
40540         * modules/unistdio/u8-u8-vsnprintf: New file.
40541         * modules/unistdio/u8-u8-vsprintf: New file.
40542         * modules/unistdio/u16-asnprintf: New file.
40543         * modules/unistdio/u16-asprintf: New file.
40544         * modules/unistdio/u16-printf-parse: New file.
40545         * modules/unistdio/u16-snprintf: New file.
40546         * modules/unistdio/u16-sprintf: New file.
40547         * modules/unistdio/u16-vasnprintf: New file.
40548         * modules/unistdio/u16-vasprintf: New file.
40549         * modules/unistdio/u16-vsnprintf: New file.
40550         * modules/unistdio/u16-vsprintf: New file.
40551         * modules/unistdio/u16-u16-asnprintf: New file.
40552         * modules/unistdio/u16-u16-asprintf: New file.
40553         * modules/unistdio/u16-u16-snprintf: New file.
40554         * modules/unistdio/u16-u16-sprintf: New file.
40555         * modules/unistdio/u16-u16-vasnprintf: New file.
40556         * modules/unistdio/u16-u16-vasprintf: New file.
40557         * modules/unistdio/u16-u16-vsnprintf: New file.
40558         * modules/unistdio/u16-u16-vsprintf: New file.
40559         * modules/unistdio/u32-asnprintf: New file.
40560         * modules/unistdio/u32-asprintf: New file.
40561         * modules/unistdio/u32-printf-parse: New file.
40562         * modules/unistdio/u32-snprintf: New file.
40563         * modules/unistdio/u32-sprintf: New file.
40564         * modules/unistdio/u32-vasnprintf: New file.
40565         * modules/unistdio/u32-vasprintf: New file.
40566         * modules/unistdio/u32-vsnprintf: New file.
40567         * modules/unistdio/u32-vsprintf: New file.
40568         * modules/unistdio/u32-u32-asnprintf: New file.
40569         * modules/unistdio/u32-u32-asprintf: New file.
40570         * modules/unistdio/u32-u32-snprintf: New file.
40571         * modules/unistdio/u32-u32-sprintf: New file.
40572         * modules/unistdio/u32-u32-vasnprintf: New file.
40573         * modules/unistdio/u32-u32-vasprintf: New file.
40574         * modules/unistdio/u32-u32-vsnprintf: New file.
40575         * modules/unistdio/u32-u32-vsprintf: New file.
40576         * modules/unistdio/ulc-asnprintf-tests: New file.
40577         * modules/unistdio/ulc-vasnprintf-tests: New file.
40578         * modules/unistdio/ulc-vasprintf-tests: New file.
40579         * modules/unistdio/ulc-vsnprintf-tests: New file.
40580         * modules/unistdio/ulc-vsprintf-tests: New file.
40581         * modules/unistdio/u8-asnprintf-tests: New file.
40582         * modules/unistdio/u8-vasnprintf-tests: New file.
40583         * modules/unistdio/u8-vasprintf-tests: New file.
40584         * modules/unistdio/u8-vsnprintf-tests: New file.
40585         * modules/unistdio/u8-vsprintf-tests: New file.
40586         * modules/unistdio/u16-asnprintf-tests: New file.
40587         * modules/unistdio/u16-vasnprintf-tests: New file.
40588         * modules/unistdio/u16-vasprintf-tests: New file.
40589         * modules/unistdio/u16-vsnprintf-tests: New file.
40590         * modules/unistdio/u16-vsprintf-tests: New file.
40591         * modules/unistdio/u32-asnprintf-tests: New file.
40592         * modules/unistdio/u32-vasnprintf-tests: New file.
40593         * modules/unistdio/u32-vasprintf-tests: New file.
40594         * modules/unistdio/u32-vsnprintf-tests: New file.
40595         * modules/unistdio/u32-vsprintf-tests: New file.
40596         * MODULES.html.sh (Unicode string functions): Add the new modules.
40597
40598 2007-07-01  Bruno Haible  <bruno@clisp.org>
40599
40600         * lib/sprintf.c (sprintf): Limit the available length estimation,
40601         to avoid address wraparound.
40602         * lib/vsprintf.c (vsprintf): Likewise.
40603         * modules/sprintf-posix (Dependencies): Add stdint.
40604         * modules/vsprintf-posix (Dependencies): Likewise.
40605
40606 2007-07-01  Bruno Haible  <bruno@clisp.org>
40607
40608         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
40609         Windows PATH as well. Conservative double-quoting. Comments.
40610
40611 2007-07-01  Bruno Haible  <bruno@clisp.org>
40612             Eric Blake  <ebb9@byu.net>
40613             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40614
40615         * gnulib-tool (self_abspathname): Fix algorithm to cope with
40616         empty components in $PATH, denoting '.'.
40617
40618 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40619
40620         * gnulib-tool: Fix indentation.
40621         (func_create_megatestdir): Likewise.
40622         Report by Bruno Haible.
40623
40624 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40625
40626         Sync from Automake.
40627         * build-aux/gnupload: Fix shell portability issues with for loops.
40628         Report by Karl Berry.
40629
40630 2007-06-29  Simon Josefsson  <simon@josefsson.org>
40631
40632         * build-aux/maint.mk (POURL): Use translationproject.org.
40633
40634 2007-06-27  Simon Josefsson  <simon@josefsson.org>
40635             Bruno Haible  <bruno@clisp.org>
40636
40637         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
40638         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
40639         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
40640         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
40641         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
40642
40643 2007-06-27  Bruno Haible  <bruno@clisp.org>
40644
40645         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
40646         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
40647
40648 2007-06-26  Karl Berry  <karl@gnu.org>
40649
40650         * MODULES.html.sh: remove xreadlink-with-size.
40651
40652 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
40653
40654         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
40655         method that I hope also handles the double-include problem noted
40656         by Bruno Haible in
40657         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
40658
40659 2007-06-23  Bruno Haible  <bruno@clisp.org>
40660
40661         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
40662         Don't let the 'mostlyclean' target fail if the last subdirectory could
40663         not be removed.
40664         Reported by Karl Berry.
40665
40666 2007-06-23  Bruno Haible  <bruno@clisp.org>
40667
40668         * gnulib-tool (echo): Add a speedier workaround for ksh.
40669         * tests/test-echo.sh: Likewise.
40670
40671 2007-06-23  Bruno Haible  <bruno@clisp.org>
40672
40673         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
40674         * tests/test-echo.sh: Likewise.
40675
40676 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40677
40678         * gnulib-tool (IFS): Initialize early, so we don't set it to
40679         empty later.
40680         (self_abspathname): Rewrite algorithm to set it, reindent.
40681         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
40682         (func_create_megatestdir): Merge some sed scripts.
40683
40684 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
40685
40686         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
40687         exposed by Sun Studio 11 cc on Solaris 8.
40688
40689 2007-06-22  Bruno Haible  <bruno@clisp.org>
40690
40691         * gnulib-tool (echo): Ensure the echo primitive does not interpret
40692         backslashes.
40693         * tests/test-echo.sh: New file.
40694
40695 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40696
40697         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
40698         simplify `sed_replace_build_aux' scripts, they are portable but
40699         echoing them with `echo' is not.
40700         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
40701
40702 2007-06-21  Karl Berry  <karl@gnu.org>
40703
40704         * config/srclist.txt: guess we can't handle the licenses via
40705         srclist at the moment.
40706
40707 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
40708
40709         * MODULES.html.sh: Add include_next.
40710         * modules/include_next: New file.
40711
40712 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
40713
40714         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
40715         INCLUDE_NEXT.
40716         (gl_CHECK_NEXT_HEADERS): New macro.
40717         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
40718         the obsolescent gl_ABSOLUTE_HEADER.
40719         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
40720         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
40721         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
40722         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
40723         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
40724         * m4/math_h.m4 (gl_MATH_H): Likewise.
40725         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
40726         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
40727         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
40728         * m4/stdint.m4 (gl_STDINT_H): Likewise.
40729         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
40730         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
40731         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
40732         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
40733         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
40734         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
40735         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
40736         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
40737         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
40738         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
40739         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
40740         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
40741         * m4/inttypes.m4 (gl_INTTYPES_H): Define
40742         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
40743         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
40744         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
40745         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
40746         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
40747         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
40748         * lib/float_.h: Likewise.
40749         * lib/inttypes_.h: Likewise.
40750         * lib/math_.h: Likewise.
40751         * lib/search_.h: Likewise.
40752         * lib/signal_.h: Likewise.
40753         * lib/stdint_.h: Likewise.
40754         * lib/stdio_.h: Likewise.
40755         * lib/stdlib_.h: Likewise.
40756         * lib/string_.h: Likewise.
40757         * lib/sys_stat_.h: Likewise.
40758         * lib/sys_time_.h: Likewise.
40759         * lib/time_.h: Likewise.
40760         * lib/unistd_.h: Likewise.
40761         * lib/wchar_.h: Likewise.
40762         * lib/wctype_.h: Likewise.
40763         * lib/dirent_.h: Likewise.
40764         * lib/iconv_.h: Likewise.
40765         * lib/locale_.h: Likewise.
40766         * lib/netinet_in_.h: Likewise.
40767         * lib/sys_select_.h: Likewise.
40768         * lib/sys_socket_.h: Likewise.
40769         * lib/sysexits_.h: Likewise.
40770         * modules/fcntl (Depends-on): Depend on include_next, not
40771         absolute_header.
40772         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
40773         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
40774         * modules/fchdir: Likewise.
40775         * modules/float: Likewise.
40776         * modules/iconv_open: Likewise.
40777         * modules/inttypes: Likewise.
40778         * modules/locale: Likewise.
40779         * modules/math: Likewise.
40780         * modules/netinet_in: Likewise.
40781         * modules/search: Likewise.
40782         * modules/signal: Likewise.
40783         * modules/stdint: Likewise.
40784         * modules/stdio: Likewise.
40785         * modules/stdlib: Likewise.
40786         * modules/string: Likewise.
40787         * modules/sys_select: Likewise.
40788         * modules/sys_socket: Likewise.
40789         * modules/sys_stat: Likewise.
40790         * modules/sys_time: Likewise.
40791         * modules/sysexits: Likewise.
40792         * modules/time: Likewise.
40793         * modules/unistd: Likewise.
40794         * modules/wchar: Likewise.
40795         * modules/wctype: Likewise.
40796         * modules/sys_stat: Change maintainer to "all".
40797         * modules/unistd: Likewise.
40798
40799 2007-06-20  Karl Berry  <karl@gnu.org>
40800
40801         * config/srclist.txt: track www changes in license files.
40802
40803 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
40804
40805         * build-aux/bootstrap: Remove stray dot.
40806         Make sure build_aux settings are honored when linking
40807         gnulib_extra_files.
40808
40809 2007-06-19  Eric Blake  <ebb9@byu.net>
40810
40811         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
40812         Allow compilation on cygwin.
40813
40814 2007-06-19  Jim Meyering  <jim@meyering.net>
40815
40816         xreadlink-with-size: Remove module.  No longer used.
40817         Ex-callers now use xreadlink or mreadlink-with-size.
40818         * modules/xreadlink-with-size: Remove module.
40819         * lib/xreadlink-with-size.c: Remove file.
40820         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
40821         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
40822         just before the function definition *is* accurate.
40823
40824         Eliminate one way canonicalize_filename_mode could exit.
40825         * lib/canonicalize.c (canonicalize_filename_mode):
40826         Use mreadlink_with_size, not xreadlink_with_size.
40827
40828 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
40829
40830         Detect porting problems to FreeBSD/arm, which has time_t wider than
40831         long int.  Original problem reported for GNU diff by Xin Li in
40832         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
40833         * modules/getdate (Depends-on): Add intprops, verify.
40834         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
40835         is an integer type no wider than long int.
40836
40837 2007-06-18  Jim Meyering  <jim@meyering.net>
40838
40839         New module: mreadlink-with-size.
40840         * MODULES.html.sh: Add mreadlink-with-size.
40841         * modules/mreadlink-with-size: New module
40842         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
40843         not xreadlink-with-size.
40844         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
40845
40846 2007-06-16  Bruno Haible  <bruno@clisp.org>
40847
40848         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
40849         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
40850         Reported by Gary V. Vaughan <gary@gnu.org>.
40851
40852 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
40853
40854         Revamp lchown so that it lives in unistd.h where it belongs.
40855         * lib/lchown.h: Remove.
40856         * lib/dirchownmod.c: Don't include lib/lchown.h.
40857         * lib/fchownat.c: Likewise.
40858         * lib/openat.c: Likewise.
40859         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
40860         does not follow symlinks.
40861         (EOPNOTSUPP): Define if not defined.
40862         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
40863         is defined to 0.
40864         (lchown): New decl.
40865         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
40866         Do not check for lchown decl.
40867         Set REPLACE_LCHOWN.
40868         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
40869         REPLACE_LCHOWN.
40870         * modules/chown: Make it clear it follows symlinks.
40871         * modules/lchown: Make it clear it doesn't follow symlinks.
40872         (Files): Remove lib/lchown.h
40873         (Depends-on): Add unistd.
40874         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
40875         (Include): Include <unistd.h>, not "lchown.h".
40876         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
40877         REPLACE_LCHOWN.
40878
40879 2007-06-15  Jim Meyering  <jim@meyering.net>
40880
40881         Change license (GPL to LGPL) of fsusage and dependents.
40882         * modules/fsusage (License): Change to LGPL.
40883         * modules/full-read (License): Likewise.
40884         * modules/full-write (License): Likewise.
40885         * modules/safe-read (License): Likewise.
40886         * modules/safe-write (License): Likewise.
40887
40888 2007-06-14  Ben Pfaff  <blp@gnu.org>
40889
40890         Missing part of allocsa -> malloca transition.
40891         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
40892         gl_MALLOCA.
40893
40894 2007-06-12  Bruno Haible  <bruno@clisp.org>
40895
40896         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
40897         to ia64, x86_64, i386.
40898         Reported by Eric Blake.
40899
40900 2007-06-12  Bruno Haible  <bruno@clisp.org>
40901
40902         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
40903         cross-compiling to x86_64.
40904
40905 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
40906
40907         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
40908         glitch reported by Ralf Wildenhues in
40909         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
40910
40911         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
40912         Vin Shelton.
40913
40914 2007-06-11  Bruno Haible  <bruno@clisp.org>
40915
40916         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
40917         replacement string.
40918         Reported by Eric Blake.
40919
40920 2007-06-10  Bruno Haible  <bruno@clisp.org>
40921
40922         Prepare vasnprintf code for use with Unicode strings.
40923         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
40924         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
40925         TYPE_U32_STRING.
40926         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
40927         a_u32_string variants.
40928         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
40929         * lib/printf-args.c: Don't include config.h and the specification
40930         header if PRINTF_FETCHARGS is already defined.
40931         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
40932         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
40933         TYPE_U16_STRING, TYPE_U32_STRING.
40934         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
40935         u16_directive, u16_directives, u32_directive, u32_directives): New
40936         types.
40937         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
40938         New declarations.
40939         * lib/printf-parse.c: Don't include config.h and the specification
40940         header if PRINTF_PARSE is already defined. Eliminate the set of
40941         parameters for WIDE_CHAR_VERSION; the user of this file must provide
40942         them now. Include c-ctype.h.
40943         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
40944         directive and CHAR_T_ONLY_ASCII.
40945         * lib/vasnprintf.c: Don't include config.h and the specification header
40946         if VASNPRINTF is already defined.
40947         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
40948         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
40949         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
40950         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
40951         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
40952         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
40953         code accordingly.
40954         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
40955         pad_ourselves also in this case, with the 'c' and 's' directives, and
40956         with a different notion of "width".
40957         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
40958
40959 2007-06-10  Bruno Haible  <bruno@clisp.org>
40960
40961         * modules/unistr/u32-mbsnlen: New file.
40962         * lib/unistr/u32-mbsnlen.c: New file.
40963
40964         * modules/unistr/u16-mbsnlen: New file.
40965         * lib/unistr/u16-mbsnlen.c: New file.
40966
40967         * modules/unistr/u8-mbsnlen: New file.
40968         * lib/unistr/u8-mbsnlen.c: New file.
40969
40970         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
40971         declarations.
40972
40973 2007-06-10  Bruno Haible  <bruno@clisp.org>
40974
40975         * lib/string_.h (mbsnlen): New declaration.
40976         * lib/mbsnlen.c: New file.
40977         * m4/mbsnlen.m4: New file.
40978         * modules/mbsnlen: New file.
40979         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
40980         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
40981         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
40982
40983 2007-06-10  Bruno Haible  <bruno@clisp.org>
40984
40985         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
40986
40987 2007-06-10  Bruno Haible  <bruno@clisp.org>
40988
40989         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
40990         * lib/mbuiter.h: Likewise.
40991
40992 2007-06-10  Bruno Haible  <bruno@clisp.org>
40993
40994         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
40995         declaration.
40996
40997 2007-06-10  Karl Berry  <karl@gnu.org>
40998
40999         * config/srclist.txt: remove gettext entries, Bruno prefers
41000         to update individually.
41001
41002 2007-06-10  Bruno Haible  <bruno@clisp.org>
41003
41004         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
41005         'maxlen'. Ensure only length + width bytes are allocated, not
41006         length + 1 + width.
41007
41008 2007-06-09  Bruno Haible  <bruno@clisp.org>
41009
41010         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
41011         (CHAR_T): Remove macro.
41012         (VASNPRINTF): Update.
41013
41014 2007-06-09  Bruno Haible  <bruno@clisp.org>
41015
41016         * MODULES.html.sh (Unicode string functions): Add the new modules.
41017
41018         * modules/uniconv/u32-conv-to-enc: New file.
41019         * lib/uniconv/u32-conv-to-enc.c: New file.
41020         * modules/uniconv/u32-conv-to-enc-tests: New file.
41021         * tests/uniconv/test-u32-conv-to-enc.c: New file.
41022
41023         * modules/uniconv/u16-conv-to-enc: New file.
41024         * lib/uniconv/u16-conv-to-enc.c: New file.
41025         * lib/uniconv/u-conv-to-enc.h: New file.
41026         * modules/uniconv/u16-conv-to-enc-tests: New file.
41027         * tests/uniconv/test-u16-conv-to-enc.c: New file.
41028
41029         * modules/uniconv/u8-conv-to-enc: New file.
41030         * lib/uniconv/u8-conv-to-enc.c: New file.
41031         * modules/uniconv/u8-conv-to-enc-tests: New file.
41032         * tests/uniconv/test-u8-conv-to-enc.c: New file.
41033
41034         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
41035         u32_conv_to_encoding): New declarations.
41036
41037 2007-06-09  Bruno Haible  <bruno@clisp.org>
41038
41039         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
41040
41041 2007-06-09  Bruno Haible  <bruno@clisp.org>
41042
41043         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
41044         * modules/malloca: Renamed from modules/allocsa, updated.
41045         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
41046         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
41047         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
41048         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
41049         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
41050         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
41051         * modules/xmalloca: Renamed from modules/xallocsa, updated.
41052         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
41053         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
41054         * modules/c-strcasestr (Depends-on): Update.
41055         * lib/c-strcasestr.c: Update.
41056         * modules/c-strstr (Depends-on): Update.
41057         * lib/c-strstr.c: Update.
41058         * modules/canonicalize-lgpl (Depends-on): Update.
41059         * lib/canonicalize-lgpl.c: Update.
41060         * modules/clean-temp (Depends-on): Update.
41061         * lib/clean-temp.c: Update.
41062         * modules/csharpcomp (Depends-on): Update.
41063         * lib/csharpcomp.c: Update.
41064         * modules/csharpexec (Depends-on): Update.
41065         * lib/csharpexec.c: Update.
41066         * modules/javacomp (Depends-on): Update.
41067         * lib/javacomp.c: Update.
41068         * modules/javaexec (Depends-on): Update.
41069         * lib/javaexec.c: Update.
41070         * modules/mbscasestr (Depends-on): Update.
41071         * lib/mbscasestr.c: Update.
41072         * modules/mbsstr (Depends-on): Update.
41073         * lib/mbsstr.c: Update.
41074         * modules/setenv (Depends-on): Update.
41075         * lib/setenv.c: Update.
41076         * modules/strcasestr (Depends-on): Update.
41077         * lib/strcasestr.c: Update.
41078         * modules/striconveha (Depends-on): Update.
41079         * lib/striconveha.c: Update.
41080         * modules/relocatable-prog-wrapper (Files): Update.
41081         * lib/relocwrapper.c: Update.
41082         * build-aux/install-reloc: Update.
41083         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
41084
41085 2007-06-08  Bruno Haible  <bruno@clisp.org>
41086
41087         Port to uClibc.
41088         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
41089         * lib/fpurge.c (fpurge): Likewise.
41090         * lib/freading.c (freading): Likewise.
41091         * lib/fseeko.c (rpl_fseeko): Likewise.
41092         * lib/fseterr.c (fseterr): Likewise.
41093         * lib/fwriting.c (fwriting): Likewise.
41094         * tests/test-fflush.c (main): Avoid a failure on uClibc.
41095
41096 2007-06-08  Bruno Haible  <bruno@clisp.org>
41097
41098         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
41099         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
41100         * modules/gettext (Files): Add m4/intlmacosx.m4.
41101
41102 2007-06-07  Bruno Haible  <bruno@clisp.org>
41103
41104         * modules/localename-tests: New file.
41105         * tests/test-localename.c: New file.
41106
41107         New module 'localename'.
41108         * lib/localename.h: New file.
41109         * lib/localename.c: New file, from GNU gettext.
41110         * m4/localename.m4: New file.
41111         * modules/localename: New file.
41112
41113 2007-06-07  Bruno Haible  <bruno@clisp.org>
41114
41115         Work around the lack of <wchar.h> on some builds of uClibc.
41116         * doc/headers/wchar.texi: Update.
41117         * lib/wchar_.h: Include <wchar.h> only if it exists.
41118         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
41119         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
41120         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
41121         doesn't exist.
41122         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
41123         * modules/mbfile (Depends-on): Add wchar.
41124         * modules/mbiter (Depends-on): Likewise.
41125         * modules/mbuiter (Depends-on): Likewise.
41126         Reported by Simon Josefsson.
41127
41128 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
41129
41130         Work around problem reported by Steven M. Schweda in
41131         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
41132         Tru64 5.1B with the Compaq compiler environment installed declares
41133         an 'isblank' function but does not define it in the C library.
41134         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
41135         * lib/regex_internal.h (isblank): Likewise.
41136         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
41137         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
41138
41139 2007-06-05  Bruno Haible  <bruno@clisp.org>
41140
41141         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
41142         ia64.
41143         * modules/printf-safe: New file.
41144         * modules/fprintf-posix (Depends-on): Add printf-safe.
41145         * modules/printf-posix (Depends-on): Likewise.
41146         * modules/snprintf-posix (Depends-on): Likewise.
41147         * modules/sprintf-posix (Depends-on): Likewise.
41148         * modules/vasnprintf-posix (Depends-on): Likewise.
41149         * modules/vasprintf-posix (Depends-on): Likewise.
41150         * modules/vfprintf-posix (Depends-on): Likewise.
41151         * modules/vprintf-posix (Depends-on): Likewise.
41152         * modules/vsnprintf-posix (Depends-on): Likewise.
41153         * modules/vsprintf-posix (Depends-on): Likewise.
41154         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
41155         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
41156         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
41157         "no" on i386, x86_64, ia64.
41158         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
41159         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
41160         on i386, x86_64, ia64.
41161         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
41162         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
41163         on i386, x86_64, ia64.
41164         * tests/test-vasnprintf-posix.c: Include float.h.
41165         (LDBL80_WORDS): New macro.
41166         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
41167         on i386, x86_64, ia64.
41168         * tests/test-vasprintf-posix.c: Include float.h.
41169         (LDBL80_WORDS): New macro.
41170         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
41171         on i386, x86_64, ia64.
41172         * tests/test-snprintf-posix.c: Include float.h.
41173         * tests/test-sprintf-posix.c: Likewise.
41174         * tests/test-vsnprintf-posix.c: Likewise.
41175         * tests/test-vsprintf-posix.c: Likewise.
41176
41177 2007-06-05  Bruno Haible  <bruno@clisp.org>
41178
41179         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
41180         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
41181         non-IEEE numbers on i386, x86_64, ia64.
41182         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
41183         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
41184         * tests/test-isnanl.h: Include float.h.
41185         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
41186
41187 2007-06-05  Bruno Haible  <bruno@clisp.org>
41188
41189         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
41190         also the %a / %A. Handle the %a / %A code before this extra handling.
41191
41192 2007-06-05  Bruno Haible  <bruno@clisp.org>
41193
41194         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
41195         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
41196
41197 2007-06-05  Bruno Haible  <bruno@clisp.org>
41198
41199         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
41200         typo in variable name.
41201
41202 2007-06-05  Eric Blake  <ebb9@byu.net>
41203
41204         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
41205         Reported by Simon Josefsson.
41206
41207 2007-06-04  Bruno Haible  <bruno@clisp.org>
41208
41209         Avoid test failures on some PowerPC platforms.
41210         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
41211         Define differently for PowerPC.
41212         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
41213         Reported by Gary V. Vaughan <gary@gnu.org>.
41214
41215 2007-06-02  Bruno Haible  <bruno@clisp.org>
41216
41217         Fix test-stdint failure on FreeBSD/ia64.
41218         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
41219         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
41220         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
41221         * doc/headers/stdint.texi: Update.
41222
41223 2007-06-01  Bruno Haible  <bruno@clisp.org>
41224
41225         * tests/test-binary-io.c (main): Pass a third argument to open().
41226         Reported by Gary V. Vaughan <gary@gnu.org>.
41227
41228 2007-06-01  Bruno Haible  <bruno@clisp.org>
41229
41230         * doc/functions/frexpl.texi: Update for mingw.
41231
41232 2007-06-01  Bruno Haible  <bruno@clisp.org>
41233
41234         * tests/test-lseek.c (main): Disable test of errno for invalid third
41235         argument.
41236         * doc/functions/lseek.texi: Update.
41237         Reported by Gary V. Vaughan <gary@gnu.org>.
41238
41239 2007-05-28  Bruno Haible  <bruno@clisp.org>
41240
41241         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
41242
41243 2007-05-31  Eric Blake  <ebb9@byu.net>
41244
41245         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
41246         cross compiling.
41247
41248 2007-05-30  Eric Blake  <ebb9@byu.net>
41249         and Bruno Haible  <bruno@clisp.org>
41250
41251         Work around mingw test failures exposed by m4-1.4.9b.
41252         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
41253         * tests/test-unistd.c: Disable uid_t and git_t tests for the
41254         moment.
41255
41256 2007-05-30  Bruno Haible  <bruno@clisp.org>
41257
41258         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
41259         assuming that they are closed. Needed on HP-UX 11.
41260
41261 2007-05-29  Bruno Haible  <bruno@clisp.org>
41262
41263         Fix a problem with #include_next.
41264         * lib/dirent_.h: Split the double-inclusion guard.
41265         * lib/fcntl_.h: Likewise.
41266         * lib/float_.h: Likewise.
41267         * lib/iconv_.h: Likewise.
41268         * lib/inttypes_.h: Likewise.
41269         * lib/locale_.h: Likewise.
41270         * lib/math_.h: Likewise.
41271         * lib/netinet_in_.h: Likewise.
41272         * lib/search_.h: Likewise.
41273         * lib/signal_.h: Likewise.
41274         * lib/stdint_.h: Likewise.
41275         * lib/stdio_.h: Likewise.
41276         * lib/stdlib_.h: Likewise.
41277         * lib/string_.h: Likewise.
41278         * lib/sys_select_.h: Likewise.
41279         * lib/sys_socket_.h: Likewise.
41280         * lib/sys_stat_.h: Likewise.
41281         * lib/sys_time_.h: Likewise.
41282         * lib/sysexits_.h: Likewise.
41283         * lib/time_.h: Likewise.
41284         * lib/unistd_.h: Likewise.
41285         * lib/wchar_.h: Likewise.
41286         * lib/wctype_.h: Likewise.
41287
41288 2007-05-29  Bruno Haible  <bruno@clisp.org>
41289
41290         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
41291         for the moment.
41292
41293 2007-05-29  Bruno Haible  <bruno@clisp.org>
41294
41295         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
41296         invocation.
41297         Reported by Eric Blake.
41298
41299 2007-05-29  Bruno Haible  <bruno@clisp.org>
41300
41301         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
41302         compiling case.
41303
41304 2007-05-29  Eric Blake  <ebb9@byu.net>
41305             Bruno Haible  <bruno@clisp.org>
41306
41307         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
41308         cross compiles.
41309
41310 2007-05-28  Eric Blake  <ebb9@byu.net>
41311
41312         * modules/closein-tests (test_closein_LDADD): Support test on
41313         cygwin with libtool.
41314
41315 2007-05-28  Bruno Haible  <bruno@clisp.org>
41316
41317         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
41318         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
41319         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
41320         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
41321         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
41322         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
41323         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
41324         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
41325         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
41326
41327 2007-05-28  Eric Blake  <ebb9@byu.net>
41328
41329         Unconditionally include <config.h> in unit tests.
41330         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
41331         * tests/test-allocsa.c, tests/test-arcfour.c,
41332         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
41333         tests/test-array_list.c, tests/test-array_oset.c,
41334         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
41335         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
41336         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
41337         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
41338         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
41339         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
41340         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
41341         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
41342         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
41343         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
41344         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
41345         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
41346         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
41347         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
41348         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
41349         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
41350         test-md5.c, test-memmem.c, test-printf-posix.c,
41351         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
41352         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
41353         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
41354         test-strcasestr.c, test-striconv.c, test-striconveh.c,
41355         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
41356         test-vasnprintf-posix2.c, test-vasnprintf.c,
41357         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
41358         test-vfprintf-posix.c, test-vprintf-posix.c,
41359         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
41360         test-xvasprintf.c: Likewise.
41361
41362 2007-05-28  Bruno Haible  <bruno@clisp.org>
41363
41364         * gnulib-tool (func_import): Remember the --with-tests command-line
41365         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
41366         Reported by Eric Blake.
41367
41368 2007-05-28  Bruno Haible  <bruno@clisp.org>
41369
41370         * modules/ftell-tests: New file.
41371         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
41372         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
41373
41374         * lib/ftell.c: New file.
41375         * modules/ftell: New file.
41376         * m4/ftell.m4: New file.
41377         * doc/functions/ftell.texi: Update.
41378         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
41379         REPLACE_FTELL.
41380         * lib/stdio_.h (rpl_ftell): New declaration.
41381         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
41382         REPLACE_FTELL.
41383
41384 2007-05-28  Eric Blake  <ebb9@byu.net>
41385
41386         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
41387
41388 2007-05-28  Bruno Haible  <bruno@clisp.org>
41389
41390         * modules/fseek-tests: New file.
41391         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
41392         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
41393
41394         * lib/fseek.c: New file.
41395         * modules/fseek: New file.
41396         * m4/fseek.m4: New file.
41397         * doc/functions/fseek.texi: Update.
41398         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
41399         REPLACE_FSEEK.
41400         * lib/stdio_.h (rpl_fseek): New declaration.
41401         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
41402         REPLACE_FSEEK.
41403
41404 2007-05-28  Bruno Haible  <bruno@clisp.org>
41405
41406         * lib/stdio_.h (fflush): More comments.
41407
41408 2007-05-28  Bruno Haible  <bruno@clisp.org>
41409
41410         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
41411         runtime test.
41412
41413 2007-05-28  Eric Blake  <ebb9@byu.net>
41414
41415         Improve lseek module.
41416         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
41417         * lib/unistd_.h (lseek): Scale back link warning message.
41418         * tests/test-lseek.c: Beef up test.
41419         * tests/test-lseek.sh: Exercise more facets of lseek.
41420         Reported by Bruno Haible.
41421
41422 2007-05-28  Bruno Haible  <bruno@clisp.org>
41423
41424         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
41425         to define.
41426
41427 2007-05-27  Bruno Haible  <bruno@clisp.org>
41428
41429         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
41430
41431 2007-05-27  Bruno Haible  <bruno@clisp.org>
41432
41433         * modules/openmp: New file.
41434         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
41435         Noah Misch.
41436
41437 2007-05-26  Bruno Haible  <bruno@clisp.org>
41438
41439         * modules/chdir-long (Depends-on): Add fchdir.
41440         * modules/chdir-safer (Depends-on): Likewise.
41441         * modules/fts (Depends-on): Likewise.
41442         * modules/fts-lgpl (Depends-on): Likewise.
41443         * modules/openat (Depends-on): Likewise.
41444         * modules/savewd (Depends-on): Likewise.
41445
41446 2007-05-24  Eric Blake  <ebb9@byu.net>
41447
41448         Fix lseek on mingw.
41449         * modules/lseek: New module.
41450         * m4/lseek.m4: New file.
41451         * lib/lseek.c: New file.
41452         * modules/lseek-tests: New file.
41453         * tests/test-lseek.c: New file.
41454         * tests/test-lseek.sh: New file.
41455         * MODULES.html.sh: Document lseek module.
41456         * modules/fflush (Depends-on): Add lseek, fseeko.
41457         * modules/fseeko (Depends-on): Likewise.
41458         * modules/ftello (Depends-on): Likewise.
41459         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
41460         broken.
41461         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
41462         broken.
41463         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
41464         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
41465         * lib/ftello.c (rpl_ftello): Likewise.
41466         * tests/test-fseeko.c (main): Test this.
41467         * tests/test-fseeko.sh: Likewise.
41468         * tests/test-ftello.c (main): Likewise.
41469         * tests/test-ftello.sh: Likewise.
41470         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
41471         implies replacing fseek.
41472         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
41473         HAVE_FTELLO.
41474         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
41475         * modules/unistd (Makefile.am): Likewise.
41476         * lib/unistd_.h (lseek): Declare a replacement.
41477         * doc/functions/lseek.texi (lseek): Document this fix.
41478         * doc/functions/fseek.texi (fseek): Likewise.
41479         * doc/functions/ftell.texi (ftell): Likewise.
41480
41481 2007-05-24  Bruno Haible  <bruno@clisp.org>
41482
41483         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
41484         in the printed representation of a NaN.
41485         * tests/test-vasprintf-posix.c (test_function): Likewise.
41486         * tests/test-snprintf-posix.h (test_function): Likewise.
41487         * tests/test-sprintf-posix.h (test_function): Likewise.
41488         Reported by Eric Blake.
41489
41490 2007-05-23  Eric Blake  <ebb9@byu.net>
41491
41492         Fix fseeko/ftello on cygwin 1.5.24.
41493         * doc/functions/fseeko.texi (fseeko): Document the fix.
41494         * doc/functions/ftello.texi (ftello): Document the fix.
41495         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
41496         * doc/functions/stdout.text (stdout): New file.
41497         * doc/functions/stderr.text (stderr): New file.
41498         * doc/gnulib.texi (Function Substitutes): Use new files.
41499         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
41500         prior to 1.7.0.
41501         * tests/test-ftello.c (main): Likewise for ftello.
41502         * tests/test-fseeko.sh: New file.
41503         * tests/test-ftello.sh: New file.
41504         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
41505         with seekable stdin.
41506         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
41507         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
41508         (gl_REPLACE_FSEEKO): New macro.
41509         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
41510         * modules/fseeko (Files): Distribute fseeko.c.
41511         * modules/ftello (Files): Distribute ftello.c.
41512         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
41513         mode.
41514         * lib/ftello.c (rpl_ftello): New file.
41515         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
41516         fseeko, ftello.
41517         (gl_STDIN_LARGE_OFFSET): New macro.
41518         * modules/stdio (Makefile.am): Perform the replacement.
41519         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
41520
41521 2007-05-23  Bruno Haible  <bruno@clisp.org>
41522
41523         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
41524         GNULIB_POSIXCHECK is defined.
41525
41526 2007-05-21  Bruno Haible  <bruno@clisp.org>
41527
41528         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
41529         Check also the output for NaN arguments. When cross-compiling, guess
41530         no on IRIX.
41531         * lib/vasnprintf.c: Update comments.
41532         * tests/test-vasnprintf-posix.c (strisnan): New function.
41533         (test_function): Use it.
41534         * tests/test-vasprintf-posix.c (strisnan): New function.
41535         (test_function): Use it.
41536         * tests/test-snprintf-posix.h (strisnan): New function.
41537         (test_function): Use it.
41538         * tests/test-sprintf-posix.h (strisnan): New function.
41539         (test_function): Use it.
41540         Reported by Eric Blake.
41541
41542 2007-05-20  Bruno Haible  <bruno@clisp.org>
41543
41544         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
41545         numbers that fails on BeOS.
41546         * doc/functions/frexpl.texi: Update.
41547
41548 2007-05-20  Jim Meyering  <jim@meyering.net>
41549
41550         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
41551         forced upon us by glibc-2.6.
41552
41553 2007-05-20  Bruno Haible  <bruno@clisp.org>
41554
41555         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
41556         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
41557         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
41558         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
41559         NEED_PRINTF_INFINITE.
41560         (is_infinitel): New function.
41561         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
41562         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
41563         gl_PREREQ_VASNPRINTF_INFINITE.
41564         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
41565         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
41566         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
41567         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
41568         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
41569         gl_PREREQ_VASNPRINTF_INFINITE.
41570         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
41571         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
41572         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
41573         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
41574         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
41575         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
41576         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
41577         * doc/functions/fprintf.texi: Update.
41578         * doc/functions/printf.texi: Update.
41579         * doc/functions/snprintf.texi: Update.
41580         * doc/functions/sprintf.texi: Update.
41581         * doc/functions/vfprintf.texi: Update.
41582         * doc/functions/vprintf.texi: Update.
41583         * doc/functions/vsnprintf.texi: Update.
41584         * doc/functions/vsprintf.texi: Update.
41585
41586 2007-05-20  Bruno Haible  <bruno@clisp.org>
41587
41588         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
41589         was not found in libc.
41590         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
41591
41592 2007-05-20  Bruno Haible  <bruno@clisp.org>
41593
41594         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
41595         printed as "-nan" instead of "nan".
41596         * tests/test-vasprintf-posix.c (test_function): Likewise.
41597         * tests/test-snprintf-posix.h (test_function): Likewise.
41598         * tests/test-sprintf-posix.h (test_function): Likewise.
41599         Needed for HP-UX 11.
41600
41601 2007-05-20  Jim Meyering  <jim@meyering.net>
41602
41603         Fix buggy test for the fchownat-deref bug.
41604         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
41605         symlink required for the run-test.  Without it, this test would
41606         always declare that fchownat doesn't work, and client code would
41607         unnecessarily use the replacement function with fixed libc.
41608         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
41609         Reported by Greg Schafer.
41610
41611 2007-05-19  Bruno Haible  <bruno@clisp.org>
41612
41613         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
41614         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
41615         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
41616         Needed for IRIX 6.5 and Solaris 2.5.1.
41617
41618 2007-05-19  Bruno Haible  <bruno@clisp.org>
41619
41620         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
41621         (test_function): Skip tests involving -0.0 on platforms where
41622         -0.0 = 0.0.
41623         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
41624         (test_function): Skip tests involving -0.0 on platforms where
41625         -0.0 = 0.0.
41626         * tests/test-snprintf-posix.h (have_minus_zero): New function.
41627         (test_function): Skip tests involving -0.0 on platforms where
41628         -0.0 = 0.0.
41629         * tests/test-sprintf-posix.h (have_minus_zero): New function.
41630         (test_function): Skip tests involving -0.0 on platforms where
41631         -0.0 = 0.0.
41632         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
41633         tests.
41634         * tests/test-printf-posix.h (test_function): Likewise.
41635         * tests/test-printf-posix.output: Remove all -0.0 related results.
41636         Needed for IRIX 6.5.
41637
41638 2007-05-19  Bruno Haible  <bruno@clisp.org>
41639
41640         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
41641         printed as "nan0x7fffffff" instead of "nan".
41642         * tests/test-vasprintf-posix.c (test_function): Likewise.
41643         * tests/test-snprintf-posix.h (test_function): Likewise.
41644         * tests/test-sprintf-posix.h (test_function): Likewise.
41645         * tests/test-fprintf-posix.h (NaN): Remove macro.
41646         (test_function): Remove all NaN related tests.
41647         * tests/test-printf-posix.h (NaN): Remove macro.
41648         (test_function): Remove all NaN related tests.
41649         * tests/test-printf-posix.output: Remove all NaN related results.
41650         Needed for IRIX 6.5.
41651
41652 2007-05-19  Bruno Haible  <bruno@clisp.org>
41653
41654         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
41655         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
41656
41657 2007-05-19  Bruno Haible  <bruno@clisp.org>
41658
41659         * lib/float_.h: New file.
41660         * m4/float_h.m4: New file.
41661         * modules/float: New file.
41662         * modules/isnanl (Dependencies): Add float.
41663         * modules/isnanl-nolibm (Dependencies): Likewise.
41664         * modules/mathl (Dependencies): Likewise.
41665         * modules/printf-frexpl (Dependencies): Likewise.
41666         * modules/signbit (Dependencies): Likewise.
41667         * modules/vasnprintf (Dependencies): Likewise.
41668         * doc/headers/float.texi: Update.
41669
41670 2007-05-19  Jim Meyering  <jim@meyering.net>
41671
41672         * lib/utimens.c (gl_futimens): Rename from futimens,
41673         now that glibc-2.6 declares futimens.
41674         * lib/utimens.h: Likewise.
41675
41676 2007-05-19  Bruno Haible  <bruno@clisp.org>
41677
41678         Avoid test failures on mingw.
41679         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
41680         * tests/test-printf-posix.sh: Likewise.
41681         * tests/test-vfprintf-posix.sh: Likewise.
41682         * tests/test-vprintf-posix.sh: Likewise.
41683
41684 2007-05-19  Bruno Haible  <bruno@clisp.org>
41685
41686         Fix *printf result for NaN, Inf, -0.0 on mingw.
41687         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
41688         * lib/vasnprintf.c: Include math.h and isnan.h.
41689         (is_infinite_or_zero): New function.
41690         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
41691         values in the %f, %F, %e, %E, %g, %G directives.
41692         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
41693         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
41694         gl_PRINTF_INFINITE and test its result. Invoke
41695         gl_PREREQ_VASNPRINTF_INFINITE.
41696         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
41697         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
41698         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
41699         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
41700         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
41701         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
41702         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
41703         * doc/functions/fprintf.texi: Update.
41704         * doc/functions/printf.texi: Update.
41705         * doc/functions/snprintf.texi: Update.
41706         * doc/functions/sprintf.texi: Update.
41707         * doc/functions/vfprintf.texi: Update.
41708         * doc/functions/vprintf.texi: Update.
41709         * doc/functions/vsnprintf.texi: Update.
41710         * doc/functions/vsprintf.texi: Update.
41711
41712 2007-05-19  Bruno Haible  <bruno@clisp.org>
41713
41714         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
41715         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
41716         Instead of multiplying with 10^k, set extra_zeroes to k.
41717         (scale10_round_long_double): Remove function.
41718
41719 2007-05-18  Bruno Haible  <bruno@clisp.org>
41720
41721         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
41722         introduced on 2007-05-06.
41723
41724 2007-05-18  Bruno Haible  <bruno@clisp.org>
41725
41726         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
41727         %g directives.
41728         * tests/test-vasprintf-posix.c (test_function): Likewise.
41729         * tests/test-snprintf-posix.h (test_function): Likewise.
41730         * tests/test-sprintf-posix.h (test_function): Likewise.
41731
41732 2007-05-18  Bruno Haible  <bruno@clisp.org>
41733
41734         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
41735         (strmatch): New function.
41736         (test_function): Test the %f directive on numbers of various exponents.
41737         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
41738         (strmatch): New function.
41739         (test_function): Test the %f directive on numbers of various exponents.
41740         * tests/test-snprintf-posix.h (strmatch): New function.
41741         (test_function): Test the %f directive on numbers of various exponents.
41742         * tests/test-sprintf-posix.h (strmatch): New function.
41743         (test_function): Test the %f directive on numbers of various exponents.
41744         * tests/test-snprintf-posix.c (SIZEOF): New macro.
41745         * tests/test-sprintf-posix.c (SIZEOF): New macro.
41746         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
41747         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
41748
41749 2007-05-18  Bruno Haible  <bruno@clisp.org>
41750
41751         Add support for 'long double' number output.
41752         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
41753         * lib/vasnprintf.c: Include math.h and float+.h.
41754         (mp_limb_t): New type.
41755         (GMP_LIMB_BITS): New macro.
41756         (mp_twolimb_t): New type.
41757         (GMP_TWOLIMB_BITS): New macro.
41758         (mpn_t): New type.
41759         (multiply, divide, convert_to_decimal, decode_long_double,
41760         scale10_round_long_double, scale10_round_decimal_long_double,
41761         floorlog10l): New functions.
41762         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
41763         for the %f, %F, %e, %E, %g, %G directives.
41764         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
41765         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
41766         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
41767         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
41768         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
41769         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
41770         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
41771         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
41772         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
41773         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
41774         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
41775         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
41776         * modules/snprintf-posix (Depends-on): Likewise.
41777         * modules/sprintf-posix (Depends-on): Likewise.
41778         * modules/vasnprintf-posix (Depends-on): Likewise.
41779         * modules/vasprintf-posix (Depends-on): Likewise.
41780         * modules/vfprintf-posix (Depends-on): Likewise.
41781         * modules/vsnprintf-posix (Depends-on): Likewise.
41782         * modules/vsprintf-posix (Depends-on): Likewise.
41783         * modules/vasnprintf (Files): Add lib/float+.h.
41784         * doc/functions/fprintf.texi: Update.
41785         * doc/functions/printf.texi: Update.
41786         * doc/functions/snprintf.texi: Update.
41787         * doc/functions/sprintf.texi: Update.
41788         * doc/functions/vfprintf.texi: Update.
41789         * doc/functions/vprintf.texi: Update.
41790         * doc/functions/vsnprintf.texi: Update.
41791         * doc/functions/vsprintf.texi: Update.
41792
41793 2007-05-18  Bruno Haible  <bruno@clisp.org>
41794
41795         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
41796
41797 2007-05-18  Bruno Haible  <bruno@clisp.org>
41798
41799         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
41800         for printing 64-bit integers. Needed for mingw.
41801
41802 2007-05-18  Bruno Haible  <bruno@clisp.org>
41803
41804         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
41805         gl_FUNC_FREXPL_WORKS.
41806         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
41807
41808 2007-05-18  Bruno Haible  <bruno@clisp.org>
41809
41810         * modules/frexpl-nolibm-tests: New file.
41811
41812         * modules/frexpl-nolibm: New file.
41813         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
41814
41815 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
41816
41817         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
41818         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
41819         GCC 4.2, which otherwise issues a lot of warnings.
41820         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
41821         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
41822         Likewise.
41823         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
41824         * modules/iconv_open (iconv.h): Likewise.
41825         * modules/locale (locale.h): Likewise.
41826         * modules/netinet_in (netinet/in.h): Likewise.
41827         * modules/sys_select (sys_select.h): Likewise.
41828         * modules/sys_socket (sys/socket.h): Likewise.
41829         * modules/sys_stat (sys/stat.h): Likewise.
41830         * modules/sysexits (sysexits.h): Likewise.
41831         * modules/unistd (unistd.h): Likewise.
41832
41833 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41834
41835         * modules/closein-tests (Makefile.am): Distribute
41836         `test-closein.sh'.
41837
41838 2007-05-17  Bruno Haible  <bruno@clisp.org>
41839
41840         * tests/test-printf-posix.output: Renamed from
41841         tests/test-fprintf-posix.out.
41842         * modules/fprintf-posix-tests: Update.
41843         * modules/printf-posix-tests: Update.
41844         * modules/vfprintf-posix-tests: Update.
41845         * modules/vprintf-posix-tests: Update.
41846         * tests/test-fprintf-posix.sh: Update.
41847         * tests/test-printf-posix.sh: Update.
41848         * tests/test-vfprintf-posix.sh: Update.
41849         * tests/test-vprintf-posix.sh: Update.
41850         Reported by Ralf Wildenhues.
41851
41852 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
41853
41854         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
41855         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
41856         GCC 4.2, which otherwise issues a lot of warnings.
41857         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
41858         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
41859         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
41860         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
41861         it should no longer be needed.
41862         * lib/string_.h: Likewise.
41863         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
41864         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
41865         * modules/inttypes (inttypes.h): Likewise.
41866         * modules/math (math.h): Likewise.
41867         * modules/search (search.h): Likewise.
41868         * modules/signal (signal.h): Likewise.
41869         * modules/stdint (stdint.h): Likewise.
41870         * modules/stdio (stdio.h): Likewise.
41871         * modules/stdlib (stdlib.h): Likewise.
41872         * modules/string (string.h): Likewise.
41873         * modules/sys_time (sys/time.h): Likewise.
41874         * modules/time (time.h): Likewise.
41875         * modules/wchar (wchar.h): Likewise.
41876         * modules/wctype (wtype.h): Likewise.
41877
41878 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
41879
41880         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
41881
41882 2007-05-13  Bruno Haible  <bruno@clisp.org>
41883
41884         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
41885         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
41886         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
41887         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
41888         (gl_PREREQ_STRTOK_R): Don't require it here.
41889
41890 2007-05-13  Bruno Haible  <bruno@clisp.org>
41891
41892         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
41893         when used in C++ mode.
41894
41895 2007-05-12  Bruno Haible  <bruno@clisp.org>
41896
41897         * lib/linebuffer.h: Tweak doc.
41898         * lib/linebuffer.c: Likewise.
41899
41900 2007-05-12  James Youngman  <jay@gnu.org>
41901
41902         * lib/linebuffer.c (readlinebuffer_delim): New function,
41903         like readlinebuffer, but use a caller-specified delimiter.
41904         (readlinebuffer): Just call readlinebuffer_delim with '\n'
41905         as the delimiter.
41906         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
41907
41908 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
41909
41910         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
41911         * modules/openat (Files): Remove openat-die.c.
41912         (Depends-on): Add openat-die.
41913         * modules/openat-die: New module.
41914
41915 2007-05-06  Bruno Haible  <bruno@clisp.org>
41916
41917         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
41918         Update with info about Cygwin.
41919         * doc/functions/fprintf.texi: Update.
41920         * doc/functions/printf.texi: Update.
41921         * doc/functions/snprintf.texi: Update.
41922         * doc/functions/sprintf.texi: Update.
41923         * doc/functions/vfprintf.texi: Update.
41924         * doc/functions/vprintf.texi: Update.
41925         * doc/functions/vsnprintf.texi: Update.
41926         * doc/functions/vsprintf.texi: Update.
41927         Reported by Eric Blake.
41928
41929 2007-05-06  Bruno Haible  <bruno@clisp.org>
41930
41931         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
41932         padding ourselves for the floating-point directives.
41933         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
41934         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
41935         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
41936         gl_PRINTF_FLAG_ZERO and test its result. Invoke
41937         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
41938         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
41939         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
41940         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
41941         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
41942         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
41943         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
41944         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
41945         * tests/test-snprintf-posix.h (test_function): Also check the width
41946         and some flags in the %f directive.
41947         * tests/test-sprintf-posix.h (test_function): Likewise.
41948         * tests/test-vasnprintf-posix.c (test_function): Likewise.
41949         * tests/test-vasprintf-posix.c (test_function): Likewise.
41950         * doc/functions/fprintf.texi: Update.
41951         * doc/functions/printf.texi: Update.
41952         * doc/functions/snprintf.texi: Update.
41953         * doc/functions/sprintf.texi: Update.
41954         * doc/functions/vfprintf.texi: Update.
41955         * doc/functions/vprintf.texi: Update.
41956         * doc/functions/vsnprintf.texi: Update.
41957         * doc/functions/vsprintf.texi: Update.
41958
41959 2007-05-06  Bruno Haible  <bruno@clisp.org>
41960
41961         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
41962         pass the ' flag character to sprintf or snprintf.
41963         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
41964         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
41965         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
41966         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
41967         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
41968         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
41969         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
41970         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
41971         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
41972         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
41973         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
41974         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
41975         * tests/test-snprintf-posix.h (test_function): Also check the grouping
41976         flag.
41977         * tests/test-sprintf-posix.h (test_function): Likewise.
41978         * tests/test-vasnprintf-posix.c (test_function): Likewise.
41979         * tests/test-vasprintf-posix.c (test_function): Likewise.
41980         * doc/functions/fprintf.texi: Update.
41981         * doc/functions/printf.texi: Update.
41982         * doc/functions/snprintf.texi: Update.
41983         * doc/functions/sprintf.texi: Update.
41984         * doc/functions/vfprintf.texi: Update.
41985         * doc/functions/vprintf.texi: Update.
41986         * doc/functions/vsnprintf.texi: Update.
41987         * doc/functions/vsprintf.texi: Update.
41988
41989 2007-05-01  Bruno Haible  <bruno@clisp.org>
41990
41991         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
41992
41993 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
41994
41995         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
41996         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
41997
41998 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
41999
42000         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
42001         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
42002         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
42003
42004 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
42005
42006         * lib/argp-help.c (struct hol_entry): New member `ord'.
42007         (HOL_ENTRY_PTRCMP): Use ord for comparison
42008         (hol_sort): Initialize ord.
42009
42010 2007-05-01  Bruno Haible  <bruno@clisp.org>
42011
42012         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
42013         Reported by Eric Blake.
42014         * doc/gnulib.texi (Function Substitutes): Update.
42015
42016 2007-05-01  Bruno Haible  <bruno@clisp.org>
42017
42018         * doc/functions.texi: Remove file, now redundant through
42019         doc/functions/*.texi.
42020
42021 2007-05-01  Bruno Haible  <bruno@clisp.org>
42022
42023         * modules/argp (Depends-on): Add sleep.
42024
42025 2007-05-01  Bruno Haible  <bruno@clisp.org>
42026
42027         * modules/sleep-tests: New file.
42028         * tests/test-sleep.c: New file.
42029
42030         * modules/sleep: New file.
42031         * lib/sleep.c: New file.
42032         * m4/sleep.m4: New file.
42033         * lib/unistd_.h (sleep): New declaration.
42034         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
42035         HAVE_SLEEP.
42036         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
42037         * doc/functions/sleep.texi: Document the sleep module.
42038
42039 2007-05-01  Bruno Haible  <bruno@clisp.org>
42040
42041         * lib/sigprocmask.h: Remove file.
42042         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
42043         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
42044         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
42045         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
42046         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
42047         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
42048         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
42049         HAVE_SIGSET_T as a shell variable.
42050         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
42051         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
42052         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
42053         (Depends-on): Add signal. Remove verify.
42054         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
42055         (Include): Mention <signal.h> instead of sigprocmask.h.
42056         * NEWS: Mention the change.
42057         * lib/fatal-signal.c: Don't include sigprocmask.h.
42058
42059 2007-05-01  Bruno Haible  <bruno@clisp.org>
42060
42061         * modules/signal: New file.
42062         * lib/signal_.h: New file.
42063         * m4/signal_h.m4: New file.
42064
42065 2007-05-01  Bruno Haible  <bruno@clisp.org>
42066
42067         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
42068         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
42069         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
42070         HAVE_WCTYPE_CTMP_BUG into wctype.h.
42071
42072 2007-05-01  Bruno Haible  <bruno@clisp.org>
42073
42074         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
42075         configure time.
42076         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
42077         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
42078         * modules/sys_stat (Makefile.am): Substitute their values into
42079         sys/stat.h.
42080
42081 2007-05-01  Bruno Haible  <bruno@clisp.org>
42082
42083         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
42084         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
42085         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
42086
42087 2007-05-01  Bruno Haible  <bruno@clisp.org>
42088
42089         * doc/header/assert.texi: Undo last change: don't mention the gnulib
42090         'assert' module here.
42091
42092 2007-05-01  Bruno Haible  <bruno@clisp.org>
42093
42094         * doc/functions/*.texi: New files.
42095         * doc/functions/google-ranking.txt: New file.
42096         * doc/gnulib.texi (Function Substitutes): New chapter.
42097         (ctime, inet_ntoa): Remove sections.
42098         * doc/ctime.texi: Remove file.
42099         * doc/inet_ntoa.texi: Remove file.
42100         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
42101         dependencies.
42102         (%.info): New rule, specifying a --reference-limit.
42103
42104 2007-05-01  Bruno Haible  <bruno@clisp.org>
42105
42106         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
42107
42108 2007-05-01  Bruno Haible  <bruno@clisp.org>
42109
42110         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
42111         the portability of 'mkdir' to mingw systems.
42112
42113 2007-05-01  Bruno Haible  <bruno@clisp.org>
42114
42115         * doc/headers/google-ranking.txt: New file.
42116
42117 2007-04-30  Eric Blake  <ebb9@byu.net>
42118
42119         Prefer fseeko to fseek.
42120         * modules/getpass (Depends-on): Add fseeko.
42121         * lib/getpass.c (getpass): Use fseeko, not fseek.
42122
42123 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
42124
42125         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
42126         assumes the sorting is stable, while most qsort implementations
42127         are not.  Use argument addresses to ensure they never compare as
42128         equal.
42129
42130         * tests/test-argp-2.sh (usage-indent test): Fix output
42131         (func_compare): Restore diff options
42132         * tests/test-argp.c: Restore #include "progname.h"
42133
42134 2007-04-29  Bruno Haible  <bruno@clisp.org>
42135
42136         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
42137         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
42138         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
42139         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
42140         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
42141         (configure.ac): Define CHECK_SNPRINTF_POSIX.
42142         (TESTS, check_PROGRAMS): Add test-snprintf.
42143         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
42144         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
42145         (TESTS, check_PROGRAMS): Add test-vsnprintf.
42146         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
42147         assertions that fail on HP-UX, OSF/1, or IRIX.
42148         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
42149
42150 2007-04-29  Bruno Haible  <bruno@clisp.org>
42151
42152         * MODULES.html.sh (posix_functions): Remove 'contents'.
42153
42154 2007-04-29  Karl Berry  <karl@gnu.org>
42155
42156         * config/srclist.txt (gendocs_template_min): new entry.
42157
42158 2007-04-29  Bruno Haible  <bruno@clisp.org>
42159
42160         Work around fpurge bug on BSD systems.
42161         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
42162         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
42163         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
42164         fpurge to rpl_fpurge if the system already has this function.
42165         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
42166         the case where the system already has this function. Correct invariants
42167         on BSD systems.
42168         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
42169         BSD systems.
42170
42171 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
42172
42173         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
42174         proposed by Sven Verdoolaege.
42175
42176         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
42177         options.
42178         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
42179         (usage and help tests): Update
42180
42181 2007-04-29  Bruno Haible  <bruno@clisp.org>
42182
42183         * tests/test-fflush.c (main): Use a file of size 17, not 10.
42184         Print more information in case of failure. Disable a test on BeOS.
42185
42186 2007-04-29  Bruno Haible  <bruno@clisp.org>
42187
42188         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
42189         This helps debugging on systems on which no gdb is available.
42190
42191 2007-04-29  Bruno Haible  <bruno@clisp.org>
42192
42193         * lib/freading.h: Improve comments.
42194         * lib/fwriting.h: Likewise.
42195         * tests/test-freading.c (main): Don't check freading immediately after
42196         repositioning. Needed for glibc.
42197
42198 2007-04-29  Bruno Haible  <bruno@clisp.org>
42199
42200         * lib/freading.c (freading): Trivial simplification.
42201
42202 2007-04-28  Bruno Haible  <bruno@clisp.org>
42203
42204         * tests/test-fwriting.c (main): Also test the interaction between
42205         fflush and fwriting.
42206         * modules/fwriting-tests (Depends-on): Add fflush.
42207
42208         * tests/test-freading.c (main): Also test the interaction between
42209         fflush and freading.
42210         * modules/freading-tests (Depends-on): Add fflush.
42211
42212 2007-04-28  Bruno Haible  <bruno@clisp.org>
42213
42214         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
42215         fseeko and ftello.
42216         Suggested by Eric Blake.
42217
42218 2007-04-28  Jim Meyering  <jim@meyering.net>
42219
42220         Avoid false-negative in gl_STDINT_H's C99 conformance test.
42221         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
42222         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
42223
42224 2007-04-27  Eric Blake  <ebb9@byu.net>
42225
42226         * doc/headers/assert.texi (assert.h): Document assert module use.
42227
42228 2007-04-27  Bruno Haible  <bruno@clisp.org>
42229
42230         * doc/headers/*.texi: New files.
42231         * doc/gnulib.texi (Header File Substitutes): New chapter.
42232         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
42233         dependencies.
42234         (standards.info ,standards.html, standards.dvi): Update dependencies.
42235         (mostlyclean, clean): New targets.
42236
42237 2007-04-27  Bruno Haible  <bruno@clisp.org>
42238
42239         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
42240         * modules/sysexits (Files, Makefile.am): Update.
42241
42242         * lib/sys_socket_.h: Renamed from lib/socket_.h.
42243         * modules/sys_socket (Files, Makefile.am): Update.
42244
42245         * lib/sys_stat_.h: Renamed from lib/stat_.h.
42246         * modules/sys_stat (Files, Makefile.am): Update.
42247
42248 2007-04-27  Eric Blake  <ebb9@byu.net>
42249
42250         * lib/freading.h: Improve comments.
42251         * lib/fwriting.h: Likewise.
42252         * lib/fflush.c: Likewise.
42253
42254         Fix closein for mingw.
42255         * modules/closein-tests: Add tests for closein.
42256         * tests/test-closein.c: New file.
42257         * tests/test-closein.sh: Likewise.
42258         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
42259         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
42260
42261 2007-04-27  Bruno Haible  <bruno@clisp.org>
42262
42263         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
42264         version is < 6.
42265         * lib/math_.h [__DECC]: Likewise.
42266         * lib/stdio_.h [__DECC]: Likewise.
42267         * lib/stdlib_.h [__DECC]: Likewise.
42268         * lib/string_.h [__DECC]: Likewise.
42269         * lib/time_.h [__DECC]: Likewise.
42270         * lib/wchar_.h [__DECC]: Likewise.
42271         * lib/wctype_.h [__DECC]: Likewise.
42272
42273 2007-04-27  Bruno Haible  <bruno@clisp.org>
42274
42275         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
42276
42277 2007-04-27  Bruno Haible  <bruno@clisp.org>
42278
42279         * lib/fflush.c: Add comments.
42280         * modules/fpurge-tests (Depends-on): Add fflush.
42281         * modules/freadable-tests (Depends-on): Likewise.
42282         * modules/fwritable-tests (Depends-on): Likewise.
42283
42284 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
42285
42286         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
42287         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
42288         Report by Bruno Haible <bruno@clisp.org>.
42289
42290 2007-04-26  Eric Blake  <ebb9@byu.net>
42291
42292         Fix fflush on mingw.
42293         * modules/fflush (Depends-on): Add freading.
42294         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
42295         but unread data.
42296
42297 2007-04-26  Eric Blake  <ebb9@byu.net>
42298         and Bruno Haible  <bruno@clisp.org>
42299
42300         Implement freading and fwriting.
42301         * lib/freading.c: New file.
42302         * lib/freading.h: Likewise.
42303         * m4/freading.m4: Likewise.
42304         * modules/freading: Likewise.
42305         * modules/freading-tests: Likewise.
42306         * tests/test-freading.c: Likewise.
42307         * lib/fwriting.c: New file.
42308         * lib/fwriting.h: Likewise.
42309         * m4/fwriting.m4: Likewise.
42310         * modules/fwriting: Likewise.
42311         * modules/fwriting-tests: Likewise.
42312         * tests/test-fwriting.c: Likewise.
42313         * MODULES.html.sh (File stream based Input/Output): Mention them.
42314
42315 2007-04-26  Bruno Haible  <bruno@clisp.org>
42316
42317         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
42318         'long' when we assume it.
42319         Suggested by Eric Blake.
42320
42321 2007-04-26  Bruno Haible  <bruno@clisp.org>
42322
42323         Ensure fseeko, ftello are declared on glibc systems.
42324         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
42325         * modules/fseeko (configure.ac-early): Likewise.
42326         * modules/ftello (configure.ac-early): Likewise.
42327         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
42328         AC_FUNC_FSEEKO for this.
42329         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
42330         (gl_CHECK_FSEEKO): Remove macro.
42331
42332 2007-04-26  Bruno Haible  <bruno@clisp.org>
42333
42334         * tests/test-fflush.c (main): Also check the ftell result after
42335         fflush and fseek/fseeko.
42336         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
42337         file descriptor position cache in the stream.
42338         * lib/fseeko.c (rpl_fseeko): Likewise.
42339
42340 2007-04-26  Bruno Haible  <bruno@clisp.org>
42341
42342         * modules/fflush-tests (Depends-on): Add fseeko.
42343
42344 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
42345             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42346
42347         * lib/argz_.h: ensure error_t definition is obtained in same
42348         mechanism system argz.h would have.
42349         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
42350         argz facilities are known bad.  Err on the side of caution if
42351         cross-compiling.
42352
42353 2007-04-25  Eric Blake  <ebb9@byu.net>
42354
42355         * lib/fpurge.c (includes): Use stdlib.h for free.
42356         * tests/test-fflush.c (main): Also test fflush-fseeko.
42357
42358 2007-04-25  Bruno Haible  <bruno@clisp.org>
42359
42360         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
42361         * lib/fseeko.c: New file.
42362         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
42363         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
42364         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
42365         gl_FUNC_FSEEKO.
42366         (gl_FUNC_FSEEKO): Invoke it.
42367         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
42368         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
42369         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
42370
42371 2007-04-25  Bruno Haible  <bruno@clisp.org>
42372
42373         * modules/fflush (Depends-on): Add ftello.
42374
42375 2007-04-25  Bruno Haible  <bruno@clisp.org>
42376
42377         * modules/ftello-tests: New file.
42378         * tests/test-ftello.c: New file.
42379
42380         * modules/ftello: New file.
42381         * m4/ftello.m4: New file.
42382         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
42383         HAVE_FTELLO.
42384         * lib/stdio_.h (ftello): New declaration.
42385         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
42386         HAVE_FTELLO.
42387
42388 2007-04-25  Bruno Haible  <bruno@clisp.org>
42389
42390         * modules/fseeko-tests: New file.
42391         * tests/test-fseeko.c: New file.
42392
42393         * modules/fseeko: New file.
42394         * m4/fseeko.m4: New file.
42395         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
42396         HAVE_FSEEKO.
42397         * lib/stdio_.h (fseeko): New declaration.
42398         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
42399         HAVE_FSEEKO.
42400
42401 2007-04-25  Bruno Haible  <bruno@clisp.org>
42402
42403         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
42404
42405 2007-04-25  Bruno Haible  <bruno@clisp.org>
42406
42407         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
42408         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
42409         * tests/test-unistd.c: Likewise.
42410         * tests/test-fcntl.c: Likewise.
42411
42412 2007-04-23  Eric Blake  <ebb9@byu.net>
42413
42414         * lib/fflush.c: Fix missing include.
42415         Reported by Bruno Haible.
42416
42417 2007-04-23  Bruno Haible  <bruno@clisp.org>
42418
42419         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
42420         Reported by Eric Blake.
42421
42422 2007-04-23  Bruno Haible  <bruno@clisp.org>
42423
42424         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
42425
42426 2007-04-23  Bruno Haible  <bruno@clisp.org>
42427
42428         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
42429
42430 2007-04-23  Bruno Haible  <bruno@clisp.org>
42431
42432         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
42433         Needed on HP-UX 11.
42434
42435 2007-04-16  Eric Blake  <ebb9@byu.net>
42436
42437         Make fflush rely on fpurge.
42438         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
42439         open coding all variants.
42440         * modules/fflush (Depends-on): Add fpurge and unistd.
42441         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
42442         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
42443
42444         Fix --with-tests compilation on cygwin.
42445         * modules/argmatch-tests (Makefile.am): List gnulib library first
42446         in LDADD.
42447         * modules/argp-tests (Makefile.am): Likewise.
42448         * modules/array-list-tests (Makefile.am): Likewise.
42449         * modules/array-oset-tests (Makefile.am): Likewise.
42450         * modules/avltree-list-tests (Makefile.am): Likewise.
42451         * modules/avltree-oset-tests (Makefile.am): Likewise.
42452         * modules/avltreehash-list-tests (Makefile.am): Likewise.
42453         * modules/carray-list-tests (Makefile.am): Likewise.
42454         * modules/dirname-tests (Makefile.am): Likewise.
42455         * modules/frexp-tests (Makefile.am): Likewise.
42456         * modules/isnanl-tests (Makefile.am): Likewise.
42457         * modules/linked-list-tests (Makefile.am): Likewise.
42458         * modules/linkedhash-list-tests (Makefile.am): Likewise.
42459         * modules/lock-tests (Makefile.am): Likewise.
42460         * modules/rbtree-list-tests (Makefile.am): Likewise.
42461         * modules/rbtree-oset-tests (Makefile.am): Likewise.
42462         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
42463         * modules/tls-tests (Makefile.am): Likewise.
42464         * modules/tsearch-tests (Makefile.am): Likewise.
42465         * modules/xvasprintf-tests (Makefile.am): Likewise.
42466
42467         Fix fpurge for cygwin.
42468         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
42469         value.
42470         * modules/fpurge-tests (Depends-on): Clean up trash.
42471
42472 2007-04-16  Simon Josefsson  <simon@josefsson.org>
42473
42474         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
42475
42476         * m4/autobuild.m4: Re-indent.
42477
42478 2007-04-13  Bruno Haible  <bruno@clisp.org>
42479
42480         * modules/fpurge-tests: New file.
42481         * tests/test-fpurge.c: New file.
42482
42483         * modules/fpurge: New file.
42484         * lib/fpurge.h: New file.
42485         * lib/fpurge.c: New file.
42486         * m4/fpurge.m4: New file.
42487
42488 2007-04-13  Bruno Haible  <bruno@clisp.org>
42489
42490         * modules/fbufmode-tests: New file.
42491         * tests/test-fbufmode.c: New file.
42492
42493         * modules/fbufmode: New file.
42494         * lib/fbufmode.h: New file.
42495         * lib/fbufmode.c: New file.
42496         * m4/fbufmode.m4: New file.
42497
42498 2007-04-13  Bruno Haible  <bruno@clisp.org>
42499
42500         * modules/fwritable-tests: New file.
42501         * tests/test-fwritable.c: New file.
42502
42503         * modules/fwritable: New file.
42504         * lib/fwritable.h: New file.
42505         * lib/fwritable.c: New file.
42506         * m4/fwritable.m4: New file.
42507
42508 2007-04-13  Bruno Haible  <bruno@clisp.org>
42509
42510         * modules/freadable-tests: New file.
42511         * tests/test-freadable.c: New file.
42512
42513         * modules/freadable: New file.
42514         * lib/freadable.h: New file.
42515         * lib/freadable.c: New file.
42516         * m4/freadable.m4: New file.
42517
42518 2007-04-13  Bruno Haible  <bruno@clisp.org>
42519
42520         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
42521         MOSTLYCLEANFILES.
42522
42523 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
42524
42525         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
42526         gzip bootstrap.conf to avoid dragging in i18n machinery.
42527         (gnulib_tool_option): Use it.
42528
42529 2007-04-13  Bruno Haible  <bruno@clisp.org>
42530
42531         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
42532         %F directives.
42533         * tests/test-vasprintf-posix.c (test_function): Likewise.
42534         * tests/test-snprintf-posix.h (test_function): Likewise.
42535         * tests/test-sprintf-posix.h (test_function): Likewise.
42536         * tests/test-fprintf-posix.h (test_function): Likewise.
42537         * tests/test-printf-posix.h (test_function): Likewise.
42538         * tests/test-fprintf-posix.out: Likewise.
42539
42540 2007-04-13  Bruno Haible  <bruno@clisp.org>
42541
42542         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
42543         * modules/tls-tests (configure.ac): Likewise.
42544         Reported by Arto C. Nirkko <anirkko@insel.ch>.
42545
42546 2007-04-13  Bruno Haible  <bruno@clisp.org>
42547
42548         * lib/tls.c (glthread_tls_get): Fix return type.
42549         Patch by Arto C. Nirkko <anirkko@insel.ch>.
42550
42551 2007-04-12  Eric Blake  <ebb9@byu.net>
42552
42553         * modules/gettime (Depends-on): Remove gettime.
42554         Reported by Dmitry V. Levin.
42555
42556 2007-04-12  Bruno Haible  <bruno@clisp.org>
42557
42558         * modules/fflush (Include): Mention <stdio.h>.
42559         * modules/strtoimax (Include): Mention <inttypes.h>.
42560         * modules/strtoumax (Include): Likewise.
42561
42562 2007-04-12  Eric Blake  <ebb9@byu.net>
42563
42564         * .cvsignore: New file.
42565         * .gitignore: Likewise.
42566
42567 2007-04-12  Bruno Haible  <bruno@clisp.org>
42568
42569         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
42570         not before, since $(LDADD) often contains libgnu.a.
42571         * modules/striconv-tests (test_striconv_LDADD): Likewise.
42572         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
42573         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
42574         Needed on Cygwin.
42575
42576 2007-04-12  Eric Blake  <ebb9@byu.net>
42577
42578         Work around glibc's failure to flush stdin on fclose.
42579         * lib/closein.c (close_stdin): Flush stdin before closing.
42580
42581         Work around glibc's failure to reset seekable stdin on exit.
42582         * modules/closein: New module.
42583         * lib/closein.c: New file.
42584         * lib/closein.h: Likewise.
42585         * m4/closein.m4: Likewise.
42586         * MODULES.html.sh (File stream based Input/Output): Document it.
42587
42588 2007-04-12  Simon Josefsson  <simon@josefsson.org>
42589
42590         * gnulib-tool: Rename generated 'autobuild' script to
42591         'do-autobuild' in --create-megatestdir output.
42592
42593         * doc/gnulib.texi (Build robot for gnulib): Fix.
42594
42595 2007-04-12  Simon Josefsson  <simon@josefsson.org>
42596
42597         * modules/sysexits (Depends-on): Add absolute-header.
42598
42599 2007-04-12  Eric Blake  <ebb9@byu.net>
42600
42601         No need to preserve errno on success.
42602         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
42603         Reported by Bruno Haible.
42604
42605 2007-04-12  Simon Josefsson  <simon@josefsson.org>
42606
42607         * MODULES.html.sh (Support for maintaining and releasing
42608         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
42609
42610 2007-04-12  Simon Josefsson  <simon@josefsson.org>
42611
42612         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
42613
42614 2007-04-12  Simon Josefsson  <simon@josefsson.org>
42615
42616         * modules/autobuild: New module.
42617
42618         * m4/autobuild.m4: New file.
42619
42620 2007-04-11  Bruno Haible  <bruno@clisp.org>
42621
42622         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
42623         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
42624         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
42625         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
42626         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
42627         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
42628         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
42629         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
42630         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
42631         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
42632         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
42633         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
42634         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
42635         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
42636         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
42637         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
42638         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
42639         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
42640         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
42641         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
42642         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
42643         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
42644         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
42645         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
42646         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
42647         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
42648         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
42649         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
42650         Reported by Eric Blake.
42651
42652 2007-04-11  Bruno Haible  <bruno@clisp.org>
42653
42654         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
42655
42656 2007-04-10  Bruno Haible  <bruno@clisp.org>
42657
42658         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
42659         for NaN and Infinity. Needed on FreeBSD 6.1.
42660         * tests/test-vasnprintf-posix.c (test_function): Undo last change
42661         regarding results for "%010a" of Infinity and NaN.
42662         * tests/test-vasprintf-posix.c (test_function): Likewise.
42663         * tests/test-snprintf-posix.h (test_function): Likewise.
42664         * tests/test-sprintf-posix.h (test_function): Likewise.
42665         * tests/test-fprintf-posix.h (test_function): Likewise.
42666         * tests/test-printf-posix.h (test_function): Likewise.
42667         * tests/test-fprintf-posix.out: Likewise.
42668
42669 2007-04-10  Bruno Haible  <bruno@clisp.org>
42670
42671         * modules/locale-tests: New file.
42672         * tests/test-locale.c: New file.
42673
42674         * modules/locale: New file.
42675         * lib/locale_.h: New file.
42676         * m4/locale_h.m4: New file.
42677
42678 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
42679             Bruno Haible  <bruno@clisp.org>
42680
42681         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
42682         be determined, test for availability of the copysignf, copysign,
42683         copysignl functions.
42684         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
42685         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
42686         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
42687
42688 2007-04-09  Eric Blake  <ebb9@byu.net>
42689
42690         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
42691         * modules/stdio (Makefile.am): Support fflush.
42692         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
42693         * modules/fflush: New file.
42694         * lib/fflush.c: Likewise.
42695         * m4/fflush.m4: Likewise.
42696         * modules/fflush-tests: New test.
42697         * tests/test-fflush.c: Likewise.
42698         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
42699
42700 2007-04-06  Bruno Haible  <bruno@clisp.org>
42701
42702         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
42703         (VASNPRINTF): Use signbit for faster determination whether to print a
42704         minus sign.
42705         * modules/vasnprintf (Files): Remove lib/float+.h.
42706         * modules/fprintf-posix (Depends-on): Add signbit.
42707         * modules/snprintf-posix (Depends-on): Likewise.
42708         * modules/sprintf-posix (Depends-on): Likewise.
42709         * modules/vasnprintf-posix (Depends-on): Likewise.
42710         * modules/vasprintf-posix (Depends-on): Likewise.
42711         * modules/vfprintf-posix (Depends-on): Likewise.
42712         * modules/vsnprintf-posix (Depends-on): Likewise.
42713         * modules/vsprintf-posix (Depends-on): Likewise.
42714
42715 2007-04-06  Bruno Haible  <bruno@clisp.org>
42716
42717         * tests/test-frexp.c (main): Test also the sign bit of zero results.
42718         * tests/test-frexpl.c (main): Likewise.
42719         * tests/test-ldexpl.c (main): Likewise.
42720         * modules/frexp-tests (Depends-on): Add signbit.
42721         * modules/frexpl-tests (Depdends-on): Likewise.
42722         * modules/ldexpl-tests (Depdends-on): Likewise.
42723
42724 2007-04-06  Bruno Haible  <bruno@clisp.org>
42725
42726         * modules/signbit-tests: New file.
42727         * tests/test-signbit.c: New file.
42728
42729         * modules/signbit: New file.
42730         * lib/signbitf.c: New file.
42731         * lib/signbitd.c: New file.
42732         * lib/signbitl.c: New file.
42733         * m4/signbit.m4: New file.
42734         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
42735         (signbit): New macro.
42736         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
42737         REPLACE_SIGNBIT.
42738         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
42739         REPLACE_FREXPL into math.h.
42740
42741 2007-04-06  Bruno Haible  <bruno@clisp.org>
42742
42743         * modules/isnanf-nolibm-tests: New file.
42744         * tests/test-isnanf.c: New file.
42745
42746         * modules/isnanf-nolibm: New file.
42747         * lib/isnanf.h: New file.
42748         * lib/isnanf.c: New file.
42749         * lib/isnan.c: Consider the USE_FLOAT macro.
42750         * m4/isnanf.m4: New file.
42751
42752 2007-04-06  Bruno Haible  <bruno@clisp.org>
42753
42754         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
42755         (Link): New section.
42756
42757         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
42758
42759 2007-04-06  Bruno Haible  <bruno@clisp.org>
42760
42761         Assume the 'long double' type.
42762         * m4/longdouble.m4: Remove file.
42763         * config/srclist.txt: Don't mention longdouble.m4.
42764         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
42765         * lib/float+.h: Likewise.
42766         * lib/frexp.c: Likewise.
42767         * lib/printf-args.h: Likewise.
42768         * lib/printf-args.c: Likewise.
42769         * lib/printf-frexp.c: Likewise.
42770         * lib/printf-parse.c: Likewise.
42771         * lib/vasnprintf.c: Likewise.
42772         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
42773         * m4/intl.m4: Likewise.
42774         * m4/isnanl.m4: Likewise.
42775         * m4/printf.m4: Likewise.
42776         * m4/printf-frexpl.m4: Likewise.
42777         * m4/vasnprintf.m4: Likewise.
42778         * modules/allocsa (Files): Remove m4/longdouble.m4.
42779         * modules/gettext (Files): Likewise.
42780         * modules/relocatable-prog-wrapper (Files): Likewise.
42781         * modules/vasnprintf (Files): Likewise.
42782         * modules/isnanl (Files): Likewise.
42783         (Include): Simplify.
42784         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
42785         (Include): Simplify.
42786         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
42787         (Include): Simplify.
42788         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
42789         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
42790         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
42791         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
42792         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
42793         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
42794         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
42795         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
42796         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
42797         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
42798         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
42799         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
42800         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
42801         * tests/test-isnanl.c: Likewise.
42802         * tests/test-snprintf-posix.h: Likewise.
42803         * tests/test-sprintf-posix.h: Likewise.
42804         * tests/test-vasnprintf-posix.c: Likewise.
42805         * tests/test-vasnprintf-posix2.c: Likewise.
42806         * tests/test-vasprintf-posix.c: Likewise.
42807
42808 2007-04-06  Bruno Haible  <bruno@clisp.org>
42809
42810         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
42811         * lib/math_.h [__DECC]: Include the overridden include file through
42812         #include_next, outside the double-inclusion guard.
42813         * lib/stdio_.h [__DECC]: Likewise.
42814         * lib/stdlib_.h [__DECC]: Likewise.
42815         * lib/string_.h [__DECC]: Likewise.
42816         * lib/time_.h [__DECC]: Likewise.
42817         * lib/wchar_.h [__DECC]: Likewise.
42818         * lib/wctype_.h [__DECC]: Likewise.
42819         * lib/inttypes_.h [__DECC]: Likewise.
42820         Reported by Albert Chin <china@thewrittenword.com> in
42821         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
42822
42823 2007-04-04  Eric Blake  <ebb9@byu.net>
42824
42825         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
42826         1.5.x.
42827
42828 2007-04-04  Bruno Haible  <bruno@clisp.org>
42829
42830         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
42831         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
42832
42833 2007-04-04  Bruno Haible  <bruno@clisp.org>
42834
42835         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
42836         results for "%010a" of Infinity and NaN.
42837         * tests/test-vasprintf-posix.c (test_function): Likewise.
42838         * tests/test-snprintf-posix.h (test_function): Likewise.
42839         * tests/test-sprintf-posix.h (test_function): Likewise.
42840         * tests/test-fprintf-posix.h (test_function): Remove these tests.
42841         * tests/test-printf-posix.h (test_function): Likewise.
42842         * tests/test-fprintf-posix.out: Update.
42843         Needed for FreeBSD 6.1.
42844
42845 2007-04-04  Bruno Haible  <bruno@clisp.org>
42846
42847         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
42848         directly used by the gnulib modules nor by gnulib-tool.
42849
42850 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
42851
42852         * DEPENDENCIES: Give overall description of version dependency
42853         desirability.  Use more-typical names for apps.
42854         Add shell, coreutils, diffutils, grep, tar, gzip.
42855
42856 2007-04-04  Simon Josefsson  <simon@josefsson.org>
42857
42858         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
42859
42860 2007-04-04  Karl Berry  <karl@gnu.org>
42861
42862         * MODULES.html.sh (func_module): missing '.
42863
42864 2007-04-03  Bruno Haible  <bruno@clisp.org>
42865
42866         * modules/argmatch-tests (Makefile.am): New variable
42867         test_argmatch_LDADD.
42868         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
42869         * modules/array-list-tests (Makefile.am): New variable
42870         test_array_list_LDADD.
42871         * modules/array-oset-tests (Makefile.am): New variable
42872         test_array_oset_LDADD.
42873         * modules/avltree-list-tests (Makefile.am): New variable
42874         test_avltree_list_LDADD.
42875         * modules/avltree-oset-tests (Makefile.am): New variable
42876         test_avltree_oset_LDADD.
42877         * modules/avltreehash-list-tests (Makefile.am): New variable
42878         test_avltreehash_list_LDADD.
42879         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
42880         test_canonicalize_lgpl_LDADD.
42881         * modules/carray-list-tests (Makefile.am): New variable
42882         test_carray_list_LDADD.
42883         * modules/dirname-tests (Makefile.am): New variable
42884         test_dirname_LDADD.
42885         * modules/linked-list-tests (Makefile.am): New variable
42886         test_linked_list_LDADD.
42887         * modules/linkedhash-list-tests (Makefile.am): New variable
42888         test_linkedhash_list_LDADD.
42889         * modules/rbtree-list-tests (Makefile.am): New variable
42890         test_rbtree_list_LDADD.
42891         * modules/rbtree-oset-tests (Makefile.am): New variable
42892         test_rbtree_oset_LDADD.
42893         * modules/rbtreehash-list-tests (Makefile.am): New variable
42894         test_rbtreehash_list_LDADD.
42895         * modules/xvasprintf-tests (Makefile.am): New variable
42896         test_xvasprintf_LDADD.
42897         Reported by Eric Blake.
42898
42899 2007-04-03  Eric Blake  <ebb9@byu.net>
42900
42901         * DEPENDENCIES: Weaken m4 requirements.
42902
42903 2007-04-03  Bruno Haible  <bruno@clisp.org>
42904
42905         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
42906         * modules/isnanl-tests (configure.ac): Likewise.
42907
42908 2007-04-03  Ben Pfaff  <blp@gnu.org>
42909
42910         * modules/iconv_open: Add $(srcdir)/ to source directory
42911         references in Makefile fragments that call gperf, to fix VPATH
42912         builds.
42913
42914 2007-04-03  Bruno Haible  <bruno@clisp.org>
42915
42916         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
42917         * lib/ldexpl.c: Undo last change.
42918
42919 2007-04-03  Bruno Haible  <bruno@clisp.org>
42920
42921         * modules/printf-frexpl (Depends-on): Undo last change.
42922         (Files): Add m4/ldexpl.m4.
42923
42924 2007-04-03  Bruno Haible  <bruno@clisp.org>
42925
42926         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
42927         * modules/isnanl (Link): New section.
42928
42929         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
42930         * modules/frexp (Link): New section.
42931
42932         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
42933         * modules/frexpl (Link): New section.
42934
42935         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
42936         * modules/ldexpl (Link): New section.
42937
42938 2007-04-03  Bruno Haible  <bruno@clisp.org>
42939
42940         * modules/TEMPLATE-EXTENDED: New file.
42941         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
42942
42943 2007-04-03  Bruno Haible  <bruno@clisp.org>
42944
42945         * DEPENDENCIES: New file.
42946         Suggested by Simon Josefsson.
42947
42948 2007-04-03  Bruno Haible  <bruno@clisp.org>
42949
42950         * doc/gnulib.texi: Escape @.
42951
42952 2007-04-03  James Youngman  <jay@gnu.org>
42953         and Paul Eggert  <eggert@cs.ucla.edu>
42954
42955         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
42956         birthtime on all systems that have birthtime, not just those which
42957         use st_birthtimensec rather than st_birthtim.  Putting zero in
42958         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
42959         that the birth time is not available for files on an NFS mount.
42960
42961 2007-04-03  Simon Josefsson  <simon@josefsson.org>
42962
42963         * modules/memxor: Move back from crypto/, suggested by Bruno.
42964         * modules/crypto/hmac-sha1: Fix memxor dependency.
42965
42966         * modules/crypto/gc: Moved from ../.
42967
42968 2007-04-02  Eric Blake  <ebb9@byu.net>
42969
42970         * lib/ldexpl.c (includes): Avoid libm.
42971
42972         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
42973
42974 2007-04-02  Bruno Haible  <bruno@clisp.org>
42975
42976         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
42977         on IRIX.
42978
42979 2007-04-02  Bruno Haible  <bruno@clisp.org>
42980
42981         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
42982         x86 or x86_64 platforms running MacOS X.
42983         Reported by Ryan Schmidt <@ryandesign.com>.
42984
42985 2007-04-02  Bruno Haible  <bruno@clisp.org>
42986
42987         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
42988         i386.
42989
42990 2007-04-01  Simon Josefsson  <simon@josefsson.org>
42991
42992         * modules/crypto/arcfour: Moved from ../.
42993         * modules/crypto/arcfour-tests: Moved from ../.
42994         * modules/crypto/arctwo: Moved from ../.
42995         * modules/crypto/arctwo-tests: Moved from ../.
42996         * modules/crypto/des: Moved from ../.
42997         * modules/crypto/des-tests: Moved from ../.
42998         * modules/crypto/gc-arcfour: Moved from ../.
42999         * modules/crypto/gc-arcfour-tests: Moved from ../.
43000         * modules/crypto/gc-arctwo: Moved from ../.
43001         * modules/crypto/gc-arctwo-tests: Moved from ../.
43002         * modules/crypto/gc-des: Moved from ../.
43003         * modules/crypto/gc-des-tests: Moved from ../.
43004         * modules/crypto/gc-hmac-md5: Moved from ../.
43005         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
43006         * modules/crypto/gc-hmac-sha1: Moved from ../.
43007         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
43008         * modules/crypto/gc-md2: Moved from ../.
43009         * modules/crypto/gc-md2-tests: Moved from ../.
43010         * modules/crypto/gc-md4: Moved from ../.
43011         * modules/crypto/gc-md4-tests: Moved from ../.
43012         * modules/crypto/gc-md5: Moved from ../.
43013         * modules/crypto/gc-md5-tests: Moved from ../.
43014         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
43015         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
43016         * modules/crypto/gc-random: Moved from ../.
43017         * modules/crypto/gc-rijndael: Moved from ../.
43018         * modules/crypto/gc-rijndael-tests: Moved from ../.
43019         * modules/crypto/gc-sha1: Moved from ../.
43020         * modules/crypto/gc-sha1-tests: Moved from ../.
43021         * modules/crypto/gc-tests: Moved from ../.
43022         * modules/crypto/hmac-md5: Moved from ../.
43023         * modules/crypto/hmac-md5-tests: Moved from ../.
43024         * modules/crypto/hmac-sha1: Moved from ../.
43025         * modules/crypto/hmac-sha1-tests: Moved from ../.
43026         * modules/crypto/md2: Moved from ../.
43027         * modules/crypto/md2-tests: Moved from ../.
43028         * modules/crypto/md4: Moved from ../.
43029         * modules/crypto/md4-tests: Moved from ../.
43030         * modules/crypto/md5: Moved from ../.
43031         * modules/crypto/md5-tests: Moved from ../.
43032         * modules/crypto/memxor: Moved from ../.
43033         * modules/crypto/rijndael: Moved from ../.
43034         * modules/crypto/rijndael-tests: Moved from ../.
43035         * modules/crypto/sha1: Moved from ../.
43036
43037 2007-03-30  James Youngman  <jay@gnu.org>
43038
43039         * tests/test-stat-time.c (prepare_test): use chmod() rather than
43040         rename() to change the ctime of a file (because ctime is unaffected
43041         by rename on jfs2 on AIX 5.1).
43042         (main): Start by doing cleanup, in case a previous run failed leaving
43043         test files behind.
43044
43045 2007-03-31  Bruno Haible  <bruno@clisp.org>
43046
43047         Support old proprietary implementations of iconv.
43048         * modules/iconv_open: New file.
43049         * lib/iconv_.h: New file.
43050         * m4/iconv_h.m4: New file.
43051         * lib/iconv_open.c: New file.
43052         * lib/iconv_open-aix.gperf: New file.
43053         * lib/iconv_open-hpux.gperf: New file.
43054         * lib/iconv_open-irix.gperf: New file.
43055         * lib/iconv_open-osf.gperf: New file.
43056         * m4/iconv_open.m4: New file.
43057         * modules/linebreak (Depends-on): Add iconv_open.
43058         * modules/striconv (Depends-on): Likewise.
43059         * modules/striconveh (Depends-on): Likewise.
43060         * modules/unicodeio (Depends-on): Likewise.
43061         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
43062         (iconv_t)(-1).
43063         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
43064         conversion if cd is (iconv_t)(-1).
43065         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
43066         is not possible.
43067
43068 2007-03-31  Bruno Haible  <bruno@clisp.org>
43069
43070         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
43071         work on Solaris either. Protect also second use of "autodetect_jp".
43072
43073 2007-03-31  Bruno Haible  <bruno@clisp.org>
43074
43075         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
43076         the function is not present.
43077
43078 2007-03-31  Bruno Haible  <bruno@clisp.org>
43079
43080         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
43081         the function is not present.
43082
43083 2007-03-31  Bruno Haible  <bruno@clisp.org>
43084
43085         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
43086         a bug in HP-UX iconv_open().
43087
43088 2007-03-31  Bruno Haible  <bruno@clisp.org>
43089
43090         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
43091         (Mathematics <math.h>): New section, add fpieee.
43092         (Input/output <stdio.h>): Add fseterr.
43093         (Mathematics <math.h>): New section, add printf-frexp.
43094         (Container data structures): Add sublist.
43095         (Core language properties): Add fpucw, inline.
43096         (Functions for greatest-width integer types <inttypes.h>): Add
43097         imaxabs, imaxdiv, inttypes.
43098         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
43099         isnanl-nolibm, ldexp.
43100         (Mathematics <math.h>): New section, add printf-frexpl.
43101         (Support for systems lacking POSIX:2001): Add fprintf-posix,
43102         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
43103         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
43104         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
43105         (Unicode string functions): Add unistr/u*-mbtoucr.
43106         (Java): Add javacomp-script, javaexec-script.
43107         (C#): Add csharpcomp-script, csharpexec-script.
43108         (Support for building libraries and executables): Add havelib,
43109         relocatable-*.
43110         (Support for maintaining and releasing projects): Renamed from
43111         'Support for maintaining and release projects'. Add announce-gen.
43112
43113 2007-03-31  Bruno Haible  <bruno@clisp.org>
43114
43115         * README: Talk primarily about git.
43116         (git and CVS): Renamed from CVS.
43117         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
43118         gnulib is available through git.
43119         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
43120
43121 2007-03-30  Bruno Haible  <bruno@clisp.org>
43122
43123         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
43124         * lib/poll_.h: Likewise.
43125         * lib/stat_.h: Likewise.
43126         * lib/sys_time_.h: Likewise.
43127         * lib/sysexit_.h: Likewise.
43128         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
43129         * lib/stdbool_.h: Likewise.
43130         * lib/byteswap_.h: Add double-inclusion guard.
43131
43132 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
43133
43134         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
43135
43136 2007-03-30  Karl Berry  <karl@gnu.org>
43137
43138         * config/srclist-update: double space after USA in the license
43139         substitution, since that's how it's usually (?) written.
43140
43141 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
43142
43143         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
43144         reported by Bruno Haible.
43145
43146 2007-03-29  Bruno Haible  <bruno@clisp.org>
43147
43148         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
43149         a bug in AIX iconv().
43150
43151 2007-03-29  Bruno Haible  <bruno@clisp.org>
43152
43153         * modules/ldexpl-tests: New file.
43154         * tests/test-ldexpl.c: New file.
43155
43156 2007-03-29  Bruno Haible  <bruno@clisp.org>
43157
43158         * lib/ldexpl.c: Include fpucw.h.
43159         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
43160         multiplication.
43161         * modules/ldexpl (Depends-on): Add fpucw.
43162
43163 2007-03-29  Bruno Haible  <bruno@clisp.org>
43164
43165         * modules/ldexpl: New file.
43166         * m4/ldexpl.m4: New file.
43167         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
43168         set.
43169         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
43170         REPLACE_LDEXPL.
43171         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
43172         REPLACE_LDEXPL.
43173         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
43174         gl_FUNC_LDEXPL_WORKS.
43175         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
43176         * modules/mathl (Files): Remove lib/ldexpl.c.
43177         (Depends-on): Add ldexpl.
43178
43179 2007-03-29  Bruno Haible  <bruno@clisp.org>
43180
43181         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
43182
43183 2007-03-29  Bruno Haible  <bruno@clisp.org>
43184
43185         * tests/test-striconveh.c (main): Don't assume that a direct conversion
43186         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
43187         and possibly also HP-UX.
43188         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
43189         work on AIX, IRIX, HP-UX, OSF/1.
43190         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
43191         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
43192         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
43193         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
43194         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
43195         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
43196
43197 2007-03-29  Bruno Haible  <bruno@clisp.org>
43198
43199         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
43200
43201 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
43202
43203         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
43204         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
43205
43206 2007-03-29  Eric Blake  <ebb9@byu.net>
43207
43208         * lib/acl-internal.h: Remove redundant include.
43209         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
43210         Cygwin when a file is locked.
43211
43212 2007-03-29  Bruno Haible  <bruno@clisp.org>
43213
43214         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
43215         file.
43216         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
43217
43218 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
43219
43220         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
43221         try to remove a parent directory if the child couldn't be removed
43222         (except for the first rmdir, which could fail because the child
43223         doesn't exist).  Problem reported by Jeff Blaine in
43224         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
43225
43226 2007-03-28  Bruno Haible  <bruno@clisp.org>
43227
43228         * lib/striconveh.c (utf8conv_carefully): New function.
43229         (mem_cd_iconveh_internal): Invoke it.
43230
43231 2007-03-28  Bruno Haible  <bruno@clisp.org>
43232
43233         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
43234         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
43235         input.
43236         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
43237         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
43238         unistr/u8-uctomb.
43239
43240 2007-03-28  Bruno Haible  <bruno@clisp.org>
43241
43242         * modules/unistr/u8-mbtoucr: New file.
43243         * lib/unistr/u8-mbtoucr.c: New file.
43244         * modules/unistr/u16-mbtoucr: New file.
43245         * lib/unistr/u16-mbtoucr.c: New file.
43246         * modules/unistr/u16-mbtoucr: New file.
43247         * lib/unistr/u16-mbtoucr.c: New file.
43248         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
43249
43250 2007-03-27  Simon Josefsson  <simon@josefsson.org>
43251             Bruno Haible  <bruno@clisp.org>
43252
43253         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
43254         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
43255         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
43256
43257         * m4/stdio_h.m4: Add stubs for vasprintf too.
43258
43259         * modules/stdio: Support vasprintf in sed command.
43260
43261         * modules/vasprintf: Depend on stdio for prototypes.  Remove
43262         vasprintf.h.  Add stdio module indicator.
43263
43264         * lib/stdio_.h: Declare asprintf and vasprintf, based on
43265         vasprintf.h.
43266
43267         * lib/vasprintf.h: File removed.
43268
43269         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
43270         * lib/vasprintf.c: Ditto.
43271         * lib/xvasprintf.c: Ditto.
43272         * tests/test-vasprintf-posix.c: Ditto.
43273         * tests/test-vasprintf.c: Ditto.
43274
43275 2007-03-27  Bruno Haible  <bruno@clisp.org>
43276
43277         Make vasnprintf multithread-safe.
43278         * lib/vasnprintf.c (decimal_point_char): New function.
43279         (VASNPRINTF): Use it.
43280         Suggested by Simon Josefsson.
43281
43282 2007-03-27  Eric Blake  <ebb9@byu.net>
43283
43284         Support sub-second birthtime on cygwin.
43285         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
43286         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
43287         (get_stat_birthtime): Also work with st_birthtim.
43288
43289 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
43290
43291         * lib/stat-time.h (USE_BIRTHTIME): Remove.
43292         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
43293         (get_stat_birthtime_ns): Do not try to use "spare" fields.
43294         (get_stat_birthtime_ns): Simplify compile-time tests.
43295         (get_stat_birthtime): Change the API to look like
43296         get_stat_mtime etc., except return a negative tv_nsec on error.
43297         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
43298         Don't check for "spare" fields.
43299         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
43300         or for struct stat.st_birthtime, as these tests aren't used.
43301         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
43302
43303 2007-03-27  Bruno Haible  <bruno@clisp.org>
43304
43305         * lib/stat-time.h: Include <sys/stat.h>.
43306
43307 2007-03-27  James Youngman  <jay@gnu.org>
43308
43309         * lib/stat-time.h (get_stat_birthtime): New function for
43310           retrieving st_birthtime as provided by UFS2 (hence *BSD).
43311         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
43312           and its variants.
43313         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
43314         * modules/stat-time-test: New file.
43315         * tests/test-stat-time.c: New test, devised by Bruno Haible.
43316
43317 2007-03-26  Bruno Haible  <bruno@clisp.org>
43318
43319         Better support of signalling NaNs.
43320         * lib/atanl.c: Include isnanl.h.
43321         (atanl): Perform test for NaN at the beginning of the function and
43322         through a call to isnanl.
43323         * lib/cosl.c: Include isnanl.h.
43324         (cosl): Perform test for NaN at the beginning of the function and
43325         through a call to isnanl.
43326         * lib/ldexpl.c: Include isnanl.h.
43327         (ldexpl): Perform test for NaN through a call to isnanl.
43328         * lib/logl.c: Include isnanl.h.
43329         (logl): Perform test for NaN at the beginning of the function and
43330         through a call to isnanl.
43331         * lib/sinl.c: Include isnanl.h.
43332         (sinl): Perform test for NaN at the beginning of the function and
43333         through a call to isnanl.
43334         * lib/sqrtl.c: Include isnanl.h.
43335         (sqrtl): Perform test for NaN at the beginning of the function and
43336         through a call to isnanl.
43337         * lib/tanl.c: Include isnanl.h.
43338         (tanl): Perform test for NaN at the beginning of the function and
43339         through a call to isnanl.
43340         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
43341         * modules/mathl (Depends-on): Add isnanl.
43342
43343 2007-03-26  Eric Blake  <ebb9@byu.net>
43344
43345         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
43346         regression in logic sense of previous patch.
43347
43348 2007-03-26  Bruno Haible  <bruno@clisp.org>
43349
43350         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
43351         unportable shell command "if ! ...".
43352         Reported by Ralf Wildenhues.
43353
43354 2007-03-25  Bruno Haible  <bruno@clisp.org>
43355
43356         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
43357         <sysexits.h> file, and only add EX_CONFIG.
43358         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
43359         absolute file name and whether it is sufficient. Substitute also
43360         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
43361         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
43362         ABSOLUTE_SYSEXITS_H into sysexits.h.
43363
43364 2007-03-25  Bruno Haible  <bruno@clisp.org>
43365
43366         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
43367         hints is NULL.
43368
43369 2007-03-25  Bruno Haible  <bruno@clisp.org>
43370
43371         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
43372         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
43373
43374 2007-03-25  Bruno Haible  <bruno@clisp.org>
43375
43376         * lib/vasnprintf.c: Include langinfo.h.
43377         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
43378         multithread-safe.
43379         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
43380         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
43381         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
43382         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
43383         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
43384         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
43385         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
43386         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
43387         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
43388         Reported by Simon Josefsson.
43389
43390 2007-03-25  Bruno Haible  <bruno@clisp.org>
43391
43392         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
43393         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
43394         * modules/vasnprintf (Depends-on): Add stdint.
43395
43396 2007-03-25  Bruno Haible  <bruno@clisp.org>
43397
43398         * modules/fpieee: New file.
43399         * m4/fpieee.m4: New file.
43400         * modules/isnan-nolibm (Depends-on): Add fpieee.
43401         * modules/isnanl-nolibm (Depends-on): Add fpieee.
43402         * modules/isnanl (Depends-on): Add fpieee.
43403
43404 2007-03-25  Bruno Haible  <bruno@clisp.org>
43405
43406         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
43407
43408 2007-03-25  Bruno Haible  <bruno@clisp.org>
43409
43410         Avoid test failures on IRIX 6.5.
43411         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
43412         (main): Use it.
43413         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
43414         macros.
43415         (main): Use them.
43416
43417 2007-03-25  Bruno Haible  <bruno@clisp.org>
43418
43419         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
43420         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
43421         exists but doesn't work.
43422         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
43423         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
43424         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
43425         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
43426
43427 2007-03-25  Bruno Haible  <bruno@clisp.org>
43428
43429         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
43430         returns inf. Needed on IRIX 6.5.
43431
43432 2007-03-25  Bruno Haible  <bruno@clisp.org>
43433
43434         * tests/test-frexpl.c: Include isnanl-nolibm.h.
43435         (main): Use isnanl instead of x != x idiom.
43436         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
43437
43438         * tests/test-frexp.c: Include isnan.h.
43439         (main): Use isnan instead of x != x idiom.
43440         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
43441
43442 2007-03-25  Bruno Haible  <bruno@clisp.org>
43443
43444         * tests/test-frexp.c (NaN): New function/macro.
43445         (main): Use it instead of 0.0 / 0.0.
43446         * tests/test-isnan.c (NaN): New function/macro.
43447         (main): Use it instead of 0.0 / 0.0.
43448         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
43449         (test_function): Use it instead of 0.0 / 0.0.
43450         * tests/test-vasprintf-posix.c (NaN): New function/macro.
43451         (test_function): Use it instead of 0.0 / 0.0.
43452         * tests/test-snprintf-posix.h (NaN): New function/macro.
43453         (test_function): Use it instead of 0.0 / 0.0.
43454         * tests/test-sprintf-posix.h (NaN): New function/macro.
43455         (test_function): Use it instead of 0.0 / 0.0.
43456         * tests/test-fprintf-posix.h (NaN): New function/macro.
43457         (test_function): Use it instead of 0.0 / 0.0.
43458         * tests/test-printf-posix.h (NaN): New function/macro.
43459         (test_function): Use it instead of 0.0 / 0.0.
43460
43461         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
43462
43463 2007-03-25  Bruno Haible  <bruno@clisp.org>
43464
43465         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
43466
43467 2007-03-25  Bruno Haible  <bruno@clisp.org>
43468
43469         * lib/regexec.c (merge_state_with_log): Make static.
43470
43471 2007-03-25  Bruno Haible  <bruno@clisp.org>
43472
43473         * lib/trigl.c (kernel_rem_pio2): Make static.
43474
43475 2007-03-25  Bruno Haible  <bruno@clisp.org>
43476
43477         * lib/sincosl.c (sincosl_table): Make static.
43478
43479 2007-03-25  Bruno Haible  <bruno@clisp.org>
43480
43481         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
43482         if the compiler does not support C99.
43483
43484 2007-03-25  Bruno Haible  <bruno@clisp.org>
43485
43486         * modules/time (Makefile.am): Ensure all rule action lines start with a
43487         tab.
43488
43489 2007-03-24  Bruno Haible  <bruno@clisp.org>
43490
43491         * modules/tsearch-tests: New file.
43492         * tests/test-tsearch.sh: New file.
43493         * tests/test-tsearch.c: New file, mostly copied from glibc.
43494
43495         * modules/search-tests: New file.
43496         * tests/test-search.c: New file.
43497
43498         * modules/search: New file.
43499         * lib/search_.h: New file, incorporating lib/tsearch.h.
43500         * m4/search_h.m4: New file.
43501         * lib/tsearch.h: Remove file.
43502         * lib/tsearch.c: Include search.h instead of tsearch.h.
43503         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
43504         HAVE_TSEARCH.
43505         * modules/tsearch (Files): Remove lib/tsearch.h.
43506         (Depends-on): Add search.
43507         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
43508         (Include): Change tsearch.h into search.h.
43509
43510 2007-03-24  Bruno Haible  <bruno@clisp.org>
43511
43512         * modules/fpucw: New file.
43513         * lib/fpucw.h: New file.
43514         * lib/frexp.c: Include fpucw.h.
43515         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
43516         (FUNC): Use them.
43517         * lib/printf-frexp.c: Include fpucw.h.
43518         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
43519         (FUNC): Use them.
43520         * lib/vasnprintf.c: Include fpucw.h.
43521         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
43522         'long double' calculations.
43523         * tests/test-frexpl.c: Include fpucw.h.
43524         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
43525         * tests/test-printf-frexpl.c: Include fpucw.h.
43526         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
43527         * modules/frexpl (Depends-on): Add fpucw.
43528         * modules/printf-frexpl (Depends-on): Likewise.
43529         * modules/fprintf-posix (Depends-on): Likewise.
43530         * modules/snprintf-posix (Depends-on): Likewise.
43531         * modules/sprintf-posix (Depends-on): Likewise.
43532         * modules/vasnprintf-posix (Depends-on): Likewise.
43533         * modules/vasprintf-posix (Depends-on): Likewise.
43534         * modules/vfprintf-posix (Depends-on): Likewise.
43535         * modules/vsnprintf-posix (Depends-on): Likewise.
43536         * modules/vsprintf-posix (Depends-on): Likewise.
43537         * modules/frexpl-tests (Depends-on): Likewise.
43538         * modules/printf-frexpl-tests (Depends-on): Likewise.
43539
43540 2007-03-24  Bruno Haible  <bruno@clisp.org>
43541
43542         * lib/float+.h: New file.
43543         * lib/isnan.c: Include float+.h.
43544         (SIZE): New macro.
43545         (FUNC): Compare only SIZE bytes of the value.
43546         * lib/vasnprintf.c: Include float+.h.
43547         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
43548         SIZEOF_LDBL or SIZEOF_DBL bytes.
43549         * modules/isnan-nolibm (Files): Add lib/float+.h.
43550         * modules/isnanl-nolibm (Files): Add lib/float+.h.
43551         * modules/isnanl (Files): Add lib/float+.h.
43552         * modules/vasnprintf (Files): Add lib/float+.h.
43553
43554 2007-03-24  Bruno Haible  <bruno@clisp.org>
43555
43556         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
43557         include isnanl-nolibm.h.
43558
43559 2007-03-24  Bruno Haible  <bruno@clisp.org>
43560
43561         * tests/test-read-file.c (main): Don't produce spurious output for
43562         expected situations. Make the test fail if it encountered unexpected
43563         results.
43564
43565 2007-03-24  Bruno Haible  <bruno@clisp.org>
43566
43567         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
43568         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
43569
43570 2007-03-24  Bruno Haible  <bruno@clisp.org>
43571
43572         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
43573
43574 2007-03-24  Bruno Haible  <bruno@clisp.org>
43575
43576         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
43577         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
43578
43579         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
43580         * modules/utf8-ucs4: Turn into a symbolic link to module
43581         unistr/u8-mbtouc.
43582
43583         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
43584         utf8-ucs4-unsafe.
43585         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
43586         unistr/u8-mbtouc-unsafe.
43587
43588         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
43589         * modules/utf16-ucs4: Turn into a symbolic link to module
43590         unistr/u16-mbtouc.
43591
43592         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
43593         utf16-ucs4-unsafe.
43594         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
43595         unistr/u16-mbtouc-unsafe.
43596
43597         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
43598         * modules/ucs4-utf8: Turn into a symbolic link to module
43599         unistr/u8-ubtomb.
43600
43601         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
43602         * modules/ucs4-utf16: Turn into a symbolic link to module
43603         unistr/u16-ubtomb.
43604
43605 2007-03-24  Bruno Haible  <bruno@clisp.org>
43606
43607         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
43608         Enable the function only if HAVE_INLINE.
43609         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
43610         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
43611         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
43612         Enable the function only if HAVE_INLINE.
43613         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
43614         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
43615         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
43616         Enable the function only if HAVE_INLINE.
43617         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
43618         Enable the function only if HAVE_INLINE.
43619         * modules/utf8-ucs4: Update.
43620         * modules/utf8-ucs4-unsafe: Update.
43621         * modules/utf16-ucs4: Update.
43622         * modules/utf16-ucs4-unsafe: Update.
43623         * modules/ucs4-utf8: Update.
43624         * modules/ucs4-utf16: Update.
43625
43626 2007-03-24  Bruno Haible  <bruno@clisp.org>
43627
43628         * lib/utf8-ucs4.h: Remove file.
43629         * lib/utf8-ucs4-unsafe.h: Remove file.
43630         * lib/utf16-ucs4.h: Remove file.
43631         * lib/utf16-ucs4-unsafe.h: Remove file.
43632         * lib/ucs4-utf8.h: Remove file.
43633         * lib/ucs4-utf16.h: Remove file.
43634         * lib/unistr.h: Include their previous contents.
43635         * m4/utf-ucs4.m4: Remove file.
43636         * m4/ucs4-utf.m4: Remove file.
43637         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
43638         (Depends-on): Add unistr/base.
43639         (configure.ac): Remove gl_UTF_UCS4.
43640         (Makefile.am): Update.
43641         (Include): Change to unistr.h.
43642         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
43643         (Depends-on): Add unistr/base.
43644         (configure.ac): Remove gl_UTF_UCS4.
43645         (Makefile.am): Update.
43646         (Include): Change to unistr.h.
43647         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
43648         (Depends-on): Add unistr/base.
43649         (configure.ac): Remove gl_UTF_UCS4.
43650         (Makefile.am): Update.
43651         (Include): Change to unistr.h.
43652         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
43653         (Depends-on): Add unistr/base.
43654         (configure.ac): Remove gl_UTF_UCS4.
43655         (Makefile.am): Update.
43656         (Include): Change to unistr.h.
43657         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
43658         (Depends-on): Add unistr/base.
43659         (configure.ac): Remove gl_UCS4_UTF.
43660         (Makefile.am): Update.
43661         (Include): Change to unistr.h.
43662         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
43663         (Depends-on): Add unistr/base.
43664         (configure.ac): Remove gl_UCS4_UTF.
43665         (Makefile.am): Update.
43666         (Include): Change to unistr.h.
43667         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
43668         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
43669         utf8-ucs4-unsafe.h.
43670         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
43671         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
43672         utf16-ucs4-unsafe.h.
43673         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
43674         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
43675         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
43676         * lib/unistr/u8-strchr.c: Likewise.
43677         * lib/unistr/u8-strrchr.c: Likewise.
43678         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
43679         * lib/unistr/u16-strchr.c: Likewise.
43680         * lib/unistr/u16-strrchr.c: Likewise.
43681         * lib/striconveh.c: Update.
43682         * lib/linebreak.c: Update.
43683
43684 2007-03-24  Bruno Haible  <bruno@clisp.org>
43685
43686         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
43687         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
43688
43689 2007-03-22  Bruno Haible  <bruno@clisp.org>
43690
43691         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
43692
43693 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
43694
43695         * MODULES.html.sh (File system functions): New module write-any-file.
43696         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
43697         * m4/write-any-file.m4: New files.
43698
43699 2007-03-23  Eric Blake  <ebb9@byu.net>
43700
43701         * gnulib-tool: Rearrange space-tab sequences, since some editors
43702         like to eat them.
43703
43704 2007-03-23  Eric Blake  <ebb9@byu.net>
43705
43706         * lib/version-etc.c (version_etc_va): Update license wording to
43707         be more concise.  Recommended by Richard Stallman.
43708
43709 2007-03-22  Bruno Haible  <bruno@clisp.org>
43710
43711         * lib/poll.c (MSG_PEEK): New fallback definition.
43712
43713 2007-03-22  Bruno Haible  <bruno@clisp.org>
43714
43715         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
43716         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
43717         (main): Update.
43718         Fixes a compilation error on BeOS.
43719
43720 2007-03-22  Bruno Haible  <bruno@clisp.org>
43721
43722         * modules/frexpl-tests: New file.
43723         * tests/test-frexpl.c: New file.
43724
43725         * modules/frexpl: New file.
43726         * m4/frexpl.m4: New file.
43727         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
43728         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
43729         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
43730         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
43731         (Depends-on): Add frexpl. Remove isnanl-nolibm.
43732         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
43733
43734 2007-03-22  Bruno Haible  <bruno@clisp.org>
43735
43736         * lib/frexpl.c: Share code with lib/frexp.c.
43737         * modules/mathl (Files): Add lib/frexp.c.
43738         (Depends-on): Add isnanl-nolibm.
43739
43740 2007-03-22  Bruno Haible  <bruno@clisp.org>
43741
43742         * modules/printf-frexp (Files): Add m4/frexp.m4.
43743         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
43744         only if the found frexp function actually works.
43745
43746 2007-03-22  Bruno Haible  <bruno@clisp.org>
43747
43748         * lib/frexp.c: Remove older implementation that uses divisions.
43749
43750 2007-03-21  Bruno Haible  <bruno@clisp.org>
43751
43752         * modules/frexp-tests: New file.
43753         * tests/test-frexp.c: New file.
43754
43755         * modules/frexp: New file.
43756         * lib/frexp.c: New file.
43757         * m4/frexp.m4: New file.
43758         * lib/math_.h (frexp): New declaration.
43759         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
43760         REPLACE_FREXP.
43761         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
43762
43763 2007-03-21  Bruno Haible  <bruno@clisp.org>
43764
43765         * modules/isnanl-tests: New file.
43766         * tests/test-isnanl.c: New file.
43767
43768         * modules/isnanl: New file.
43769         * lib/isnanl.h: New file.
43770         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
43771         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
43772         gl_FUNC_ISNANL_WORKS.
43773         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
43774         New macros.
43775
43776 2007-03-21  Bruno Haible  <bruno@clisp.org>
43777
43778         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
43779         lib/isnanl.h.
43780         (Include): Update.
43781         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
43782         * lib/vasnprintf.c: Update.
43783         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
43784         tests/test-isnanl.h, remove tests/test-isnanl.c.
43785         (Makefile.am): Update.
43786         * tests/test-isnanl-nolibm.c: New file.
43787         * tests/test-isnanl.h: New file.
43788         * tests/test-isnanl.c: Remove file.
43789
43790 2007-03-21  Jim Meyering  <jim@meyering.net>
43791
43792         When trying to open ".", treat ESTALE like EACCES.
43793         * lib/savewd.c (savewd_save): Resort to forking not just upon
43794         failure with EACCES, but also when errno is ESTALE.
43795
43796 2007-03-20  Bruno Haible  <bruno@clisp.org>
43797
43798         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
43799         Needed on AIX 5.1. Reported by Matthew Woehlke.
43800
43801 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
43802
43803         Suggestions by Bruno Haible:
43804         * lib/acl-internal.h: Include "gettext.h" rather than rolling
43805         our own.
43806         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
43807         * modules/acl (Depends-on): Add gettext.
43808
43809 2007-03-19  Bruno Haible  <bruno@clisp.org>
43810
43811         * modules/iconvme: Remove file.
43812         * lib/iconvme.h: Remove file.
43813         * lib/iconvme.c: Remove file.
43814         * m4/iconvme.m4: Remove file.
43815
43816 2007-03-19  Bruno Haible  <bruno@clisp.org>
43817
43818         * doc/relocatable-maint.texi: Break long shell script line.
43819         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
43820
43821 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
43822
43823         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
43824         handle file_has_acl.
43825         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
43826         * lib/acl.c: Move header inclusions and related macro defns into
43827         lib/acl-internal.h.
43828         (S_ISLNK): Remove defn, since that's now done for us.
43829         (file_has_acl): Move to lib/file-has-acl.c.
43830         Call acl_trivial if available.  This is the crucial part of the fix.
43831         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
43832         shared within the library.  Rewrite a bit, partly to make it compatible
43833         with the GNU coding style.
43834         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
43835         Remove unnecessary double-quotes.
43836         Don't test for acl_to_text; the build will catch that.
43837         Replace acl_entries if it doesn't exist and it is needed.
43838         Check for -lsec and acl_trivial (as used on Solaris 10).
43839         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
43840         lib/file-has-acl.c.
43841         (Depends-on): Add sys_stat, for S_ISLNK.
43842
43843 2007-03-19  Ben Pfaff  <blp@gnu.org>
43844
43845         * doc/gnulib.texi: Fix typos.
43846         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
43847
43848 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
43849
43850         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
43851         If size is zero here, buf must be zero.
43852
43853 2007-03-19  Simon Josefsson  <simon@josefsson.org>
43854
43855         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
43856         <bruno@clisp.org>.
43857
43858 2007-03-18  Bruno Haible  <bruno@clisp.org>
43859
43860         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
43861         Suggested by Eric Blake.
43862
43863 2007-03-18  Ben Pfaff  <blp@gnu.org>
43864
43865         * doc/relocatable.texi: Recommend using as prefix a directory
43866         that does not exist and will never be created.  Based on
43867         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
43868         and others.
43869
43870 2007-03-17  Bruno Haible  <bruno@clisp.org>
43871
43872         * lib/fchownat.c: Include lchown.h.
43873
43874 2007-03-17  Bruno Haible  <bruno@clisp.org>
43875
43876         Fix endless loop when the given allocated size was > INT_MAX.
43877         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
43878         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
43879         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
43880         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
43881         * lib/sprintf.c (sprintf): Likewise.
43882
43883 2007-03-17  Bruno Haible  <bruno@clisp.org>
43884
43885         * tests/test-argp-2.sh (func_compare): Output a context diff.
43886
43887 2007-03-17  Bruno Haible  <bruno@clisp.org>
43888
43889         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
43890         locale's decimal-point character.
43891
43892 2007-03-17  Bruno Haible  <bruno@clisp.org>
43893
43894         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
43895         before comparing it. Needed because on some platforms (e.g. x86) a
43896         'long double' occupies less bytes than sizeof (long double).
43897
43898 2007-03-17  Bruno Haible  <bruno@clisp.org>
43899
43900         * tests/test-crc.c (main): Make printf statements 64-bit clean.
43901         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
43902         * tests/test-getaddrinfo.c (simple): Likewise.
43903         * tests/test-read-file.c (main): Likewise.
43904
43905 2007-03-17  Bruno Haible  <bruno@clisp.org>
43906
43907         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
43908
43909 2007-03-17  Bruno Haible  <bruno@clisp.org>
43910
43911         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
43912         unused variable.
43913
43914 2007-03-17  Bruno Haible  <bruno@clisp.org>
43915
43916         * tests/test-c-strcasecmp.c: Include c-strcase.h.
43917         * tests/test-c-strncasecmp.c: Likewise.
43918
43919 2007-03-17  Bruno Haible  <bruno@clisp.org>
43920
43921         * modules/stdlib (Depends-on): Add unistd.
43922         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
43923         Needed for MacOS X 10.3.
43924
43925 2007-03-17  Bruno Haible  <bruno@clisp.org>
43926
43927         * lib/unistr/u-strdup.h: Include <stdlib.h>.
43928
43929 2007-03-17  Bruno Haible  <bruno@clisp.org>
43930
43931         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
43932
43933 2007-03-17  Bruno Haible  <bruno@clisp.org>
43934
43935         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
43936         to reflect files copied from gnulib (with or without modifications).
43937         Suggested by Jim Meyering.
43938
43939 2007-03-17  Eric Blake  <ebb9@byu.net>
43940
43941         * NEWS: Document stdlib change from 2007-02-18.
43942
43943 2007-03-17  Jim Meyering  <jim@meyering.net>
43944
43945         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
43946         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
43947         someone uses a name containing shell meta-characters.
43948         Reported by Alfred M. Szmidt.
43949
43950         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
43951
43952 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
43953
43954         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
43955         and copy gettext configuration files only if configure.ac contains
43956         a use of AM_GNU_GETTEXT_VERSION.
43957
43958 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
43959
43960         * build-aux/bootstrap (gnulib_name): New variable.
43961         (gnulib_tool_options): Use it.
43962
43963 2007-03-13  Simon Josefsson  <simon@josefsson.org>
43964
43965         * tests/test-des.c: Use new namespace.
43966
43967 2007-03-15  Bruno Haible  <bruno@clisp.org>
43968
43969         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
43970         Reported by James Youngman <jay@gnu.org>.
43971
43972 2007-03-15  Bruno Haible  <bruno@clisp.org>
43973
43974         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
43975         declared prototype. Needed with cc on OSF/1 5.1.
43976
43977 2007-03-15  Bruno Haible  <bruno@clisp.org>
43978
43979         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
43980         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
43981         (struct gl_list_implementation): Add dispose_fn argument to the
43982         'create_empty', 'create' methods.
43983         (struct gl_list_impl_base): Add field 'dispose_fn'.
43984         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
43985         argument.
43986         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
43987         dispose_fn argument.
43988         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
43989         dispose_fn on the dropped values.
43990         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
43991         dispose_fn argument.
43992         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
43993         dropped values.
43994         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
43995         (gl_tree_remove_node): Call dispose_fn on the dropped value.
43996         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
43997         (gl_tree_remove_node): Call dispose_fn on the dropped value.
43998         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
43999         argument.
44000         (gl_tree_list_free): Call dispose_fn on the dropped values.
44001         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
44002         the dropped values.
44003         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
44004         Add dispose_fn argument.
44005         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
44006         Call dispose_fn on the dropped values.
44007         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
44008         Add dispose_fn argument.
44009         (gl_sublist_create): Initialize the 'dispose_fn' field.
44010         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
44011         * tests/test-array_list.c (main): Update.
44012         * tests/test-carray_list.c (main): Update.
44013         * tests/test-avltree_list.c (main): Update.
44014         * tests/test-rbtree_list.c (main): Update.
44015         * tests/test-avltreehash_list.c (main): Update.
44016         * tests/test-rbtreehash_list.c (main): Update.
44017         * tests/test-linked_list.c (main): Update.
44018         * tests/test-linkedhash_list.c (main): Update.
44019         * tests/test-array_oset.c (main): Update.
44020
44021 2007-03-15  Bruno Haible  <bruno@clisp.org>
44022
44023         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
44024         (gl_oset_create_empty): Add dispose_fn argument.
44025         (struct gl_oset_implementation): Add dispose_fn argument to
44026         'create_empty' method.
44027         (struct gl_oset_impl_base): Add dispose_fn field.
44028         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
44029         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
44030         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
44031         values.
44032         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
44033         (gl_tree_oset_free): Call dispose_fn on the dropped values.
44034         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
44035         dropped value.
44036         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
44037         dropped value.
44038         * tests/test-array_oset.c (main): Update.
44039         * tests/test-avltree_oset.c (main): Update.
44040         * tests/test-rbtree_oset.c (main): Update.
44041         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
44042
44043 2007-03-13  Bruno Haible  <bruno@clisp.org>
44044
44045         * tests/test-stdbool.c (i): Update after last patch.
44046
44047 2007-03-12  Bruno Haible  <bruno@clisp.org>
44048
44049         * lib/quotearg.c: Include <wctype.h> early, before the definition of
44050         the iswprint macro. Needed on Solaris 2.5.1.
44051
44052 2007-03-12  Bruno Haible  <bruno@clisp.org>
44053
44054         * tests/test-printf-frexp.c (main): Declare x as volatile.
44055
44056 2007-03-12  Simon Josefsson  <simon@josefsson.org>
44057
44058         * doc/gnulib.texi (Build robot for gnulib): New section.
44059
44060 2007-03-12  Jim Meyering  <jim@meyering.net>
44061
44062         * build-aux/bootstrap: New file.
44063         * build-aux/bootstrap.conf: New file, from coreutils.
44064
44065 2007-03-11  Bruno Haible  <bruno@clisp.org>
44066
44067         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
44068
44069 2007-03-12  Simon Josefsson  <simon@josefsson.org>
44070
44071         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
44072         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
44073         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
44074
44075 2007-03-11  Bruno Haible  <bruno@clisp.org>
44076
44077         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
44078         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
44079
44080 2007-03-11  Bruno Haible  <bruno@clisp.org>
44081
44082         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
44083         formula. Needed for SunPRO C 5.0.
44084
44085 2007-03-11  Bruno Haible  <bruno@clisp.org>
44086
44087         * modules/long-options (Depends-on): Add getopt.
44088
44089 2007-03-11  Bruno Haible  <bruno@clisp.org>
44090
44091         * modules/modechange (Depends-on): Add stdbool.
44092
44093 2007-03-11  Bruno Haible  <bruno@clisp.org>
44094
44095         * modules/i-ring (Depends-on): Add stdbool.
44096
44097 2007-03-11  Bruno Haible  <bruno@clisp.org>
44098
44099         * modules/gc-des (Depends-on): Add stdbool.
44100
44101 2007-03-11  Bruno Haible  <bruno@clisp.org>
44102
44103         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
44104
44105 2007-03-11  Bruno Haible  <bruno@clisp.org>
44106
44107         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
44108
44109 2007-03-11  Bruno Haible  <bruno@clisp.org>
44110
44111         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
44112
44113 2007-03-11  Bruno Haible  <bruno@clisp.org>
44114
44115         * lib/vasnprintf.c (sprintf): Undefine.
44116
44117 2007-03-11  Bruno Haible  <bruno@clisp.org>
44118
44119         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
44120         initializers in SunPRO C and Compaq C compilers.
44121
44122 2007-03-11  Bruno Haible  <bruno@clisp.org>
44123
44124         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
44125         decrementing code ANSI C compliant.
44126
44127 2007-03-11  Bruno Haible  <bruno@clisp.org>
44128
44129         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
44130         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
44131
44132 2007-03-11  Bruno Haible  <bruno@clisp.org>
44133
44134         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
44135         <stdbool.h> substitute doesn't pass.
44136
44137 2007-03-11  Bruno Haible  <bruno@clisp.org>
44138
44139         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
44140
44141 2007-03-11  Bruno Haible  <bruno@clisp.org>
44142
44143         * gnulib-tool (func_create_megatestdir): Create also an autobuild
44144         script, for submission to autobuild.josefsson.org.
44145
44146 2007-03-10  Bruno Haible  <bruno@clisp.org>
44147
44148         * modules/canonicalize-lgpl-tests: New file.
44149         * tests/test-canonicalize-lgpl.sh: New file.
44150         * tests/test-canonicalize-lgpl.c: New file.
44151
44152         * modules/c-strcase-tests: New file.
44153         * tests/test-c-strcase.sh: New file.
44154         * tests/test-c-strcasecmp.c: New file.
44155         * tests/test-c-strncasecmp.c: New file.
44156
44157         * modules/atexit-tests: New file.
44158         * tests/test-atexit.sh: New file.
44159         * tests/test-atexit.c: New file.
44160
44161 2007-03-10  Bruno Haible  <bruno@clisp.org>
44162
44163         * tests/test-binary-io.sh: Use temporary filenames that are not so
44164         likely to clash with those of other tests (in a parallel make).
44165         * tests/test-binary-io.c: Likewise.
44166
44167 2007-03-10  Bruno Haible  <bruno@clisp.org>
44168
44169         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
44170         fallback; use #error instead.
44171         Suggested by Simon Josefsson.
44172
44173 2007-03-10  Bruno Haible  <bruno@clisp.org>
44174
44175         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
44176         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
44177         first and the last.
44178
44179 2007-03-10  Bruno Haible  <bruno@clisp.org>
44180
44181         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
44182
44183 2007-03-10  Bruno Haible  <bruno@clisp.org>
44184
44185         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
44186         "make distcheck".
44187         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
44188         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
44189         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
44190
44191 2007-03-10  Bruno Haible  <bruno@clisp.org>
44192
44193         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
44194         variable.
44195         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
44196         variable.
44197
44198 2007-03-09  Eric Blake  <ebb9@byu.net>
44199         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
44200
44201         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
44202         types are not being provided by gnulib.
44203         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
44204         types are supported.
44205
44206 2007-03-10  Bruno Haible  <bruno@clisp.org>
44207
44208         * lib/stdio_.h (__attribute__): New macro.
44209         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
44210         vsprintf): Specify __attribute__ __format__ for GCC.
44211         Suggested by Eric Blake.
44212
44213 2007-03-09  Bruno Haible  <bruno@clisp.org>
44214
44215         * modules/printf-posix-tests: New file.
44216         * tests/test-printf-posix.sh: New file.
44217         * tests/test-printf-posix.c: New file.
44218
44219         * modules/printf-posix: New file.
44220         * lib/printf.c: New file.
44221         * m4/printf-posix-rpl.m4: New file.
44222         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
44223         REPLACE_PRINTF.
44224         * lib/stdio_.h (printf): New declaration.
44225         (format, __format__, ____printf____, ____scanf____, ____strftime____,
44226         ____strfmon____): New macros.
44227         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
44228         REPLACE_PRINTF.
44229
44230 2007-03-09  Bruno Haible  <bruno@clisp.org>
44231
44232         * tests/test-vasnprintf-posix2.sh: New file.
44233         * tests/test-vasnprintf-posix2.c: New file.
44234         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
44235         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
44236         (Makefile.am): Activate test-vasnprintf-posix2.sh.
44237
44238         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
44239         a locale dependent decimal point, rather than always '.'.
44240
44241 2007-03-09  Eric Blake  <ebb9@byu.net>
44242
44243         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
44244         spite of platforms like Tandem/NSK that define it to -1.
44245
44246 2007-03-08  Bruno Haible  <bruno@clisp.org>
44247
44248         * modules/vprintf-posix-tests: New file.
44249         * tests/test-vprintf-posix.sh: New file.
44250         * tests/test-vprintf-posix.c: New file.
44251         * tests/test-printf-posix.h: New file.
44252
44253         * modules/vprintf-posix: New file.
44254         * lib/vprintf.c: New file.
44255         * m4/vprintf-posix.m4: New file.
44256         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
44257         REPLACE_VPRINTF.
44258         * lib/stdio_.h (vprintf): New declaration.
44259         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
44260         REPLACE_VPRINTF.
44261
44262 2007-03-08  Bruno Haible  <bruno@clisp.org>
44263
44264         * modules/fprintf-posix-tests: New file.
44265         * tests/test-fprintf-posix.sh: New file.
44266         * tests/test-fprintf-posix.c: New file.
44267
44268         * modules/fprintf-posix: New file.
44269         * lib/fprintf.c: New file.
44270         * m4/fprintf-posix.m4: New file.
44271         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
44272         REPLACE_FPRINTF.
44273         * lib/stdio_.h (fprintf): New declaration.
44274         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
44275         REPLACE_FPRINTF.
44276
44277 2007-03-08  Bruno Haible  <bruno@clisp.org>
44278
44279         * modules/vfprintf-posix-tests: New file.
44280         * tests/test-vfprintf-posix.sh: New file.
44281         * tests/test-vfprintf-posix.c: New file.
44282         * tests/test-fprintf-posix.h: New file.
44283         * tests/test-fprintf-posix.out: New file.
44284
44285         * modules/vfprintf-posix: New file.
44286         * lib/vfprintf.c: New file.
44287         * m4/vfprintf-posix.m4: New file.
44288         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
44289         REPLACE_VFPRINTF.
44290         * lib/stdio_.h (vfprintf): New declaration.
44291         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
44292         REPLACE_VFPRINTF.
44293
44294 2007-03-08  Bruno Haible  <bruno@clisp.org>
44295
44296         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
44297
44298 2007-03-08  Bruno Haible  <bruno@clisp.org>
44299
44300         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
44301         instead of 'expr' invocations.
44302         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
44303         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
44304         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
44305         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
44306         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
44307         Suggested by Paul Eggert.
44308
44309 2007-03-08  Bruno Haible  <bruno@clisp.org>
44310
44311         * modules/fseterr-tests: New file.
44312         * tests/test-fseterr.c: New file.
44313
44314         * modules/fseterr: New file.
44315         * lib/fseterr.h: New file.
44316         * lib/fseterr.c: New file.
44317
44318 2007-03-08  Bruno Haible  <bruno@clisp.org>
44319
44320         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
44321         * lib/getopt_.h: Likewise.
44322         * lib/mbswidth.h: Likewise.
44323         * lib/setenv.h: Likewise.
44324         * lib/vasnprintf.h: Likewise.
44325         * lib/vasprintf.h: Likewise.
44326         * lib/verror.h: Likewise.
44327         * lib/xsetenv.h: Likewise.
44328         * lib/xvasprintf.h: Likewise.
44329
44330 2007-03-08  Jim Meyering  <jim@meyering.net>
44331
44332         * users.txt: Add parted.
44333
44334         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
44335
44336 2007-03-07  Bruno Haible  <bruno@clisp.org>
44337
44338         * m4/printf.m4: Make the shell script snippets copy&pastable.
44339
44340 2007-03-02  Bruno Haible  <bruno@clisp.org>
44341
44342         * lib/netinet_in_.h: New file.
44343         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
44344         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
44345         * modules/netinet_in (Files): Add lib/netinet_in_.h.
44346         (Depends-on): Add absolute-header.
44347         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
44348         into netinet/in.h.
44349
44350 2007-03-03  Bruno Haible  <bruno@clisp.org>
44351
44352         * lib/sys_select_.h: New file.
44353         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
44354         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
44355         * modules/sys_select (Files): Add lib/sys_select_.h.
44356         (Depends-on): Add absolute-header.
44357         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
44358         into sys/select.h.
44359
44360 2007-03-02  Bruno Haible  <bruno@clisp.org>
44361
44362         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
44363         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
44364         values.
44365         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
44366         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
44367         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
44368         * modules/sys_socket (Depends-on): Add absolute-header.
44369         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
44370         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
44371         (Include): Remove requirement of inclusion of <sys/types.h>.
44372
44373 2007-03-02  Bruno Haible  <bruno@clisp.org>
44374
44375         * lib/byteswap_.h (bswap_32): Fix formula.
44376
44377 2007-03-06  Bruno Haible  <bruno@clisp.org>
44378
44379         * modules/sprintf-posix-tests: New file.
44380         * tests/test-sprintf-posix.c: New file.
44381
44382         * modules/sprintf-posix: New file.
44383         * lib/sprintf.c: New file.
44384         * m4/sprintf-posix.m4: New file.
44385         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
44386         REPLACE_SPRINTF.
44387         * lib/stdio_.h (sprintf): New declaration.
44388         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
44389         REPLACE_SPRINTF.
44390
44391 2007-03-06  Bruno Haible  <bruno@clisp.org>
44392
44393         * modules/vsprintf-posix-tests: New file.
44394         * tests/test-vsprintf-posix.c: New file.
44395         * tests/test-sprintf-posix.h: New file.
44396
44397         * modules/vsprintf-posix: New file.
44398         * lib/vsprintf.c: New file.
44399         * m4/vsprintf-posix.m4: New file.
44400         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
44401         REPLACE_VSPRINTF.
44402         * lib/stdio_.h (vsprintf): New declaration.
44403         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
44404         REPLACE_VSPRINTF.
44405
44406 2007-03-06  Bruno Haible  <bruno@clisp.org>
44407
44408         * modules/vsnprintf (Depend-on): Remove minmax.
44409
44410 2007-03-06  Bruno Haible  <bruno@clisp.org>
44411
44412         * modules/snprintf-posix-tests: New file.
44413         * tests/test-snprintf-posix.c: New file.
44414
44415         * modules/snprintf-posix: New file.
44416         * m4/snprintf-posix.m4: New file.
44417         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
44418         gl_FUNC_SNPRINTF.
44419         (gl_FUNC_SNPRINTF): Invoke it.
44420         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
44421         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
44422         is set.
44423         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
44424
44425 2007-03-06  Bruno Haible  <bruno@clisp.org>
44426
44427         * modules/vsnprintf-posix-tests: New file.
44428         * tests/test-vsnprintf-posix.c: New file.
44429         * tests/test-snprintf-posix.h: New file.
44430
44431         * modules/vsnprintf-posix: New file.
44432         * m4/vsnprintf-posix.m4: New file.
44433         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
44434         gl_FUNC_VSNPRINTF.
44435         (gl_FUNC_VSNPRINTF): Invoke it.
44436         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
44437         * lib/stdio_.h (vsnprintf): Define as a replacement if
44438         REPLACE_VSNPRINTF is set.
44439         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
44440
44441 2007-03-06  Bruno Haible  <bruno@clisp.org>
44442
44443         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
44444         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
44445
44446 2007-03-06  Bruno Haible  <bruno@clisp.org>
44447
44448         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
44449         (asinl): Declare also if HAVE_DECL_ASINL is set.
44450         (atanl): Declare also if HAVE_DECL_ATANL is set.
44451         (ceill): Declare also if HAVE_DECL_CEILL is set.
44452         (cosl): Declare also if HAVE_DECL_COSL is set.
44453         (expl): Declare also if HAVE_DECL_EXPL is set.
44454         (floorl): Declare also if HAVE_DECL_FLOORL is set.
44455         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
44456         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
44457         (logl): Declare also if HAVE_DECL_LOGL is set.
44458         (sinl): Declare also if HAVE_DECL_SINL is set.
44459         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
44460         (tanl): Declare also if HAVE_DECL_TANL is set.
44461         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
44462         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
44463         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
44464         declaration of frexpl, ldexpl.
44465         * modules/printf-frexpl (Depends-on): Add math.
44466         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
44467
44468 2007-03-05  Bruno Haible  <bruno@clisp.org>
44469
44470         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
44471         frexpl and ldexpl are declared.
44472         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
44473
44474 2007-03-05  Bruno Haible  <bruno@clisp.org>
44475
44476         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
44477         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
44478
44479 2007-03-05  Bruno Haible  <bruno@clisp.org>
44480
44481         * lib/stdio_.h: Include <stddef.h>.
44482
44483 2007-03-05  Bruno Haible  <bruno@clisp.org>
44484
44485         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
44486
44487 2007-03-05  Bruno Haible  <bruno@clisp.org>
44488
44489         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
44490         NetBSD 4, from Ralf Wildenhues.
44491
44492 2007-03-04  Bruno Haible  <bruno@clisp.org>
44493
44494         * lib/vasprintf.h: Update #if logic for the case when the functions
44495         exist but are overridden.
44496
44497 2007-03-04  Bruno Haible  <bruno@clisp.org>
44498
44499         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
44500         implementations: glibc-2.4 and MacOS X 10.3.
44501         * tests/test-vasnprintf-posix.c (test_function): Test also the case
44502         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
44503         * tests/test-vasprintf-posix.c (test_function): Likewise.
44504
44505 2007-03-04  Bruno Haible  <bruno@clisp.org>
44506
44507         * modules/vasprintf-posix-tests: New file.
44508         * tests/test-vasprintf-posix.c: New file.
44509
44510         * modules/vasprintf-posix: New file.
44511         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
44512         defined.
44513         * m4/vasprintf-posix.m4: New file.
44514         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
44515         gl_FUNC_VASPRINTF.
44516         (gl_FUNC_VASPRINTF): Invoke it.
44517         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
44518         here.
44519         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
44520
44521 2007-03-04  Bruno Haible  <bruno@clisp.org>
44522
44523         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
44524         REPLACE_GETTIMEOFDAY.
44525         * modules/sys_time (Makefile.am): Likewise.
44526         * m4/sys_time_h.m4: Likewise.
44527         * m4/gettimeofday.m4: Likewise.
44528
44529 2007-03-04  Bruno Haible  <bruno@clisp.org>
44530
44531         * modules/vasnprintf-posix-tests: New file.
44532         * tests/test-vasnprintf-posix.c: New file.
44533
44534         * modules/vasnprintf-posix: New file.
44535         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
44536         printf-frexpl.h.
44537         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
44538         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
44539         REPLACE_VASNPRINTF is defined.
44540         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
44541         gl_FUNC_VASNPRINTF.
44542         (gl_FUNC_VASNPRINTF): Invoke it.
44543         * m4/vasnprintf-posix.m4: New file.
44544         * m4/printf.m4: New file.
44545
44546 2007-03-04  Bruno Haible  <bruno@clisp.org>
44547
44548         Compile progreloc.c only if --enable-relocatable is specified.
44549         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
44550         if --enable-relocatable was specified.
44551         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
44552         lib_SOURCES.
44553
44554 2007-03-04  Jim Meyering  <jim@meyering.net>
44555
44556         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
44557         Use it consistently, rather than enumerating errno constants.
44558
44559 2007-03-04  Bruno Haible  <bruno@clisp.org>
44560
44561         * modules/xvasprintf-tests: New file.
44562         * tests/test-xvasprintf.c: New file.
44563
44564         * modules/vasprintf-tests: New file.
44565         * tests/test-vasprintf.c: New file.
44566
44567         * modules/vasnprintf-tests: New file.
44568         * tests/test-vasnprintf.c: New file.
44569
44570         * modules/vsnprintf-tests: New file.
44571         * tests/test-vsnprintf.c: New file.
44572
44573         * modules/snprintf-tests: New file.
44574         * tests/test-snprintf.c: New file.
44575
44576 2007-03-04  Bruno Haible  <bruno@clisp.org>
44577
44578         Compile relocatable.c only if --enable-relocatable is specified.
44579         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
44580         gl_RELOCATABLE_LIBRARY.
44581         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
44582         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
44583         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
44584         gl_RELOCATABLE_LIBRARY.
44585         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
44586         (Makefile.am): Remove lib_SOURCES.
44587         * modules/relocatable-lib-lgpl (configure.ac): Invoke
44588         gl_RELOCATABLE_LIBRARY.
44589         (Makefile.am): Remove lib_SOURCES.
44590         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
44591         always.
44592         * modules/relocatable-prog-wrapper (configure.ac): Invoke
44593         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
44594
44595 2007-03-04  Bruno Haible  <bruno@clisp.org>
44596
44597         * modules/argmatch-tests: New file.
44598         * tests/test-argmatch.c: New file.
44599
44600         * tests/test-allocsa.c (main): Halve the number of loop runs.
44601
44602         * modules/alloca-opt-tests: New file.
44603         * tests/test-alloca-opt.c: New file.
44604
44605 2007-03-04  Jim Meyering  <jim@meyering.net>
44606
44607         Work around difference between Linux ACLs and Solaris 10 ZFS.
44608         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
44609         for EINVAL.
44610
44611 2007-03-03  Bruno Haible  <bruno@clisp.org>
44612
44613         * modules/relocatable-prog (Depends-on): Add back progreloc's
44614         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
44615
44616 2007-03-03  Bruno Haible  <bruno@clisp.org>
44617
44618         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
44619         * modules/relocatable-lib: New file.
44620
44621 2007-03-03  Bruno Haible  <bruno@clisp.org>
44622
44623         * modules/relocatable-prog: Renamed from modules/relocatable.
44624         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
44625
44626 2007-03-03  Bruno Haible  <bruno@clisp.org>
44627
44628         * modules/relocatable-script (Files): Add doc/relocatable.texi,
44629         m4/relocatable-lib.m4.
44630         (Depends-on): Remove 'relocatable'.
44631         (configure.ac): Add gl_RELOCATABLE_NOP.
44632
44633 2007-03-03  Bruno Haible  <bruno@clisp.org>
44634
44635         * modules/relocatable-prog-wrapper: New file.
44636         * modules/relocatable (Depends-on): Add it. Remove all other
44637         dependencies except progname.
44638         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
44639
44640         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
44641         (gl_FUNC_STRERROR): Nop.
44642         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
44643
44644         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
44645         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
44646
44647         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
44648         (gl_FUNC_READLINK): Update.
44649
44650         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
44651
44652 2007-03-03  Bruno Haible  <bruno@clisp.org>
44653
44654         * lib/xreadlink.c: Include <unistd.h> unconditionally.
44655         * modules/xreadlink (Depends-on): Add unistd.
44656         * modules/xreadlink-with-size (Depends-on): Likewise.
44657
44658 2007-03-03  Bruno Haible  <bruno@clisp.org>
44659
44660         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
44661         extracted from gt_FUNC_SETENV.
44662         (gt_FUNC_SETENV): Remove macro.
44663         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
44664         remove gt_FUNC_SETENV.
44665
44666 2007-03-03  Bruno Haible  <bruno@clisp.org>
44667
44668         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
44669         ENABLE_RELOCATABLE here.
44670         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
44671
44672 2007-03-03  Bruno Haible  <bruno@clisp.org>
44673
44674         * modules/rbtreehash-list-tests (Depends-on): Add progname.
44675         * tests/test-rbtreehash_list.c: Include progname.h.
44676         (main): Call set_program_name.
44677
44678         * modules/rbtree-oset-tests (Depends-on): Add progname.
44679         * tests/test-rbtree_oset.c: Include progname.h.
44680         (main): Call set_program_name.
44681
44682         * modules/rbtree-list-tests (Depends-on): Add progname.
44683         * tests/test-rbtree_list.c: Include progname.h.
44684         (main): Call set_program_name.
44685
44686         * modules/linked-list-tests (Depends-on): Add progname.
44687         * tests/test-linked_list.c: Include progname.h.
44688         (main): Call set_program_name.
44689
44690 2007-03-03  Bruno Haible  <bruno@clisp.org>
44691
44692         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
44693         All uses of __restrict changed to _Restrict_.
44694         * lib/glob_.h (__restrict): Remove macro.
44695
44696 2007-03-02  Bruno Haible  <bruno@clisp.org>
44697
44698         * modules/gettext (configure.ac): Require gettext infrastructure
44699         from version 0.16.1.
44700
44701 2007-03-02  Bruno Haible  <bruno@clisp.org>
44702
44703         * modules/linkedhash-list-tests (Depends-on): Add progname.
44704         * tests/test-linkedhash_list.c: Include progname.h.
44705         (main): Call set_program_name.
44706
44707         * modules/carray-list-tests (Depends-on): Add progname.
44708         * tests/test-carray_list.c: Include progname.h.
44709         (main): Call set_program_name.
44710
44711         * modules/avltreehash-list-tests (Depends-on): Add progname.
44712         * tests/test-avltreehash_list.c: Include progname.h.
44713         (main): Call set_program_name.
44714
44715         * modules/avltree-oset-tests (Depends-on): Add progname.
44716         * tests/test-avltree_oset.c: Include progname.h.
44717         (main): Call set_program_name.
44718
44719         * modules/avltree-list-tests (Depends-on): Add progname.
44720         * tests/test-avltree_list.c: Include progname.h.
44721         (main): Call set_program_name.
44722
44723         * modules/array-oset-tests (Depends-on): Add progname.
44724         * tests/test-array_oset.c: Include progname.h.
44725         (main): Call set_program_name.
44726
44727         * modules/array-list-tests (Depends-on): Add progname.
44728         * tests/test-array_list.c: Include progname.h.
44729         (main): Call set_program_name.
44730
44731         * modules/argp-tests (Depends-on): Add progname.
44732         * tests/test-argp.c: Include argp.h first. Include progname.h.
44733         (main): Call set_program_name.
44734
44735 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
44736
44737         * doc/gnulib-tool.texi (Initial import): Reword description of
44738         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
44739         limited effect even if defined after the first system include.
44740
44741 2007-03-01  Bruno Haible  <bruno@clisp.org>
44742
44743         * build-aux/config.libpath: Update to libtool-1.5.22.
44744         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
44745
44746 2007-03-01  Bruno Haible  <bruno@clisp.org>
44747
44748         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
44749         foo_CFLAGS.
44750         Reported by Ralf Wildenhues.
44751
44752 2007-03-01  Bruno Haible  <bruno@clisp.org>
44753
44754         * build-aux/install-reloc: Remove object files left over by some
44755         compilers.
44756         Reported by Ralf Wildenhues.
44757
44758 2007-03-01  Bruno Haible  <bruno@clisp.org>
44759
44760         * build-aux/install-reloc: Break long lines.
44761
44762 2007-03-01  Bruno Haible  <bruno@clisp.org>
44763
44764         * doc/relocatable.texi: Document that it may not work on OpenBSD.
44765         Reported by Ralf Wildenhues.
44766
44767 2007-03-01  Bruno Haible  <bruno@clisp.org>
44768
44769         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
44770         include ordering constraints.
44771
44772 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
44773
44774         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
44775         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
44776         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
44777         as another example.
44778         * lib/time_.h: Fix misspelling.
44779         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
44780         Require gl_HEADER_TIME_H_DEFAULTS.
44781         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
44782         * m4/time_r.m4 (gl_TIME_R): Likewise.
44783         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
44784
44785 2007-03-01  Bruno Haible  <bruno@clisp.org>
44786
44787         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
44788         * m4/utimens.m4 (gl_UTIMENS): Likewise.
44789
44790 2007-03-01  Jim Meyering  <jim@meyering.net>
44791
44792         * modules/xreadlink (Maintainer): Add my name.
44793         * modules/xreadlink-with-size (Depends-on): Alphabetize.
44794
44795 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
44796             Bruno Haible  <bruno@clisp.org>
44797
44798         * build-aux/install-reloc: Compile also c-ctype.c.
44799         * build-aux/relocatable.sh.in: New file.
44800         * doc/relocatable.texi: New file.
44801         * doc/relocatable-maint.texi: New file.
44802         * doc/gnulib.texi: Include relocatable-maint.texi.
44803         * lib/progreloc.c: Include unistd.h unconditionally.
44804         * lib/relocwrapper.c: Include unistd.h unconditionally.
44805         Include c-ctype.h.
44806         (add_dotbin): Use c_tolower.
44807         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
44808         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
44809         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
44810         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
44811         to m4/relocatable-lib.m4.
44812         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
44813         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
44814         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
44815         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
44816         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
44817         * modules/relocatable: New file.
44818         * modules/relocatable-lib: New file.
44819         * modules/relocatable-script: New file.
44820
44821 2007-02-28  Bruno Haible  <bruno@clisp.org>
44822
44823         Import --enable-relocatable infrastructure.
44824         * build-aux/config.libpath: New file, from GNU gettext.
44825         * build-aux/install-reloc: New file, from GNU gettext.
44826         * build-aux/reloc-ldflags: New file, from GNU gettext.
44827         * lib/relocatable.h: New file, from GNU gettext.
44828         * lib/relocatable.c: New file, from GNU gettext.
44829         * lib/relocwrapper.c: New file, from GNU gettext.
44830         * m4/relocatable.m4: New file, from GNU gettext.
44831
44832 2007-02-28  Bruno Haible  <bruno@clisp.org>
44833
44834         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
44835
44836         * modules/xreadlink: New file, from GNU gettext with modifications.
44837         * lib/xreadlink.c: New file, from GNU gettext.
44838         * lib/xreadlink.h: Add comments.
44839         (xreadlink): New declaration.
44840
44841         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
44842         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
44843         lib/xreadlink-with-size.c.
44844         (configure.ac): Remove gl_XREADLINK invocation.
44845         (Makefile.am): Augment lib_SOURCES.
44846         * m4/xreadlink.m4: Remove file.
44847         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
44848         (xreadlink_with_size): Renamed from xreadink.
44849         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
44850         * modules/canonicalize (Depends-on): Replace xreadlink with
44851         xreadlink-with-size.
44852         * lib/canonicalize.c (canonicalize_filename_mode): Update.
44853
44854 2007-02-25  Jim Meyering  <jim@meyering.net>
44855
44856         * build-aux/announce-gen: When complaining about excess arguments,
44857         list them.
44858
44859 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
44860
44861         * README: Document signed integer overflow situation more
44862         accurately.
44863
44864 2007-02-25  Bruno Haible  <bruno@clisp.org>
44865
44866         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
44867         'a' or 'A' conversion.
44868
44869 2007-02-25  Bruno Haible  <bruno@clisp.org>
44870
44871         * modules/filename: Renamed from modules/pathname.
44872         (Files): Replace lib/pathname.h with lib/filename.h. Replace
44873         lib/concatpath.c with lib/concat-filename.c.
44874         (Makefile.am): Update.
44875         (Include): Replace pathname.h with filename.h.
44876         * lib/filename.h: Renamed from lib/pathname.h.
44877         (concatenated_filename): Renamed from concatenated_pathname.
44878         * lib/concat-filename.c: Renamed from lib/concatpath.c.
44879         (concatenated_filename): Renamed from concatenated_pathname.
44880         * lib/findprog.c: Include filename.h instead of pathname.h.
44881         (find_in_path): Update.
44882         * lib/javacomp.c: Include filename.h instead of pathname.h.
44883         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
44884         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
44885         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
44886         is_oldgcj_14_13_usable, is_javac_usable): Update.
44887         * lib/javaexec.c: Include filename.h instead of pathname.h.
44888         (execute_java_class): Update.
44889         * modules/findprog: Update.
44890         * modules/javacomp: Update.
44891         * modules/javaexec: Update.
44892         * MODULES.html.sh (File system functions): Add 'filename', remove
44893         'pathname'.
44894
44895 2007-02-25  Bruno Haible  <bruno@clisp.org>
44896
44897         * modules/printf-frexpl-tests: New file.
44898         * tests/test-printf-frexpl.c: New file.
44899
44900         * modules/printf-frexpl: New file.
44901         * lib/printf-frexpl.h: New file.
44902         * lib/printf-frexpl.c: New file.
44903         * m4/printf-frexpl.m4: New file.
44904
44905 2007-02-25  Bruno Haible  <bruno@clisp.org>
44906
44907         * modules/printf-frexp-tests: New file.
44908         * tests/test-printf-frexp.c: New file.
44909
44910         * modules/printf-frexp: New file.
44911         * lib/printf-frexp.h: New file.
44912         * lib/printf-frexp.c: New file.
44913         * m4/printf-frexp.m4: New file.
44914
44915 2007-02-25  Bruno Haible  <bruno@clisp.org>
44916
44917         Assume automake >= 1.10 for the tests.
44918         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
44919         * modules/arctwo-tests: Likewise.
44920         * modules/argp-tests: Likewise.
44921         * modules/avltree-list-tests: Likewise.
44922         * modules/avltree-oset-tests: Likewise.
44923         * modules/avltreehash-list-tests: Likewise.
44924         * modules/carray-list-tests: Likewise.
44925         * modules/crc-tests: Likewise.
44926         * modules/des-tests: Likewise.
44927         * modules/gc-arcfour-tests: Likewise.
44928         * modules/gc-arctwo-tests: Likewise.
44929         * modules/gc-des-tests: Likewise.
44930         * modules/gc-hmac-md5-tests: Likewise.
44931         * modules/gc-hmac-sha1-tests: Likewise.
44932         * modules/gc-md2-tests: Likewise.
44933         * modules/gc-md4-tests: Likewise.
44934         * modules/gc-md5-tests: Likewise.
44935         * modules/gc-pbkdf2-sha1-tests: Likewise.
44936         * modules/gc-rijndael-tests: Likewise.
44937         * modules/gc-sha1-tests: Likewise.
44938         * modules/gc-tests: Likewise.
44939         * modules/getaddrinfo-tests: Likewise.
44940         * modules/hmac-md5-tests: Likewise.
44941         * modules/hmac-sha1-tests: Likewise.
44942         * modules/linked-list-tests: Likewise.
44943         * modules/linkedhash-list-tests: Likewise.
44944         * modules/lock-tests: Likewise.
44945         * modules/md2-tests: Likewise.
44946         * modules/md4-tests: Likewise.
44947         * modules/md5-tests: Likewise.
44948         * modules/rbtree-list-tests: Likewise.
44949         * modules/rbtree-oset-tests: Likewise.
44950         * modules/rbtreehash-list-tests: Likewise.
44951         * modules/read-file-tests: Likewise.
44952         * modules/rijndael-tests: Likewise.
44953         * modules/stdint-tests: Likewise.
44954         * modules/tls-tests: Likewise.
44955
44956 2007-02-24  Bruno Haible  <bruno@clisp.org>
44957
44958         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
44959         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
44960         function; instead check whether isnan with a double argument links.
44961         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
44962         function; instead check whether isnan with a 'long double' argument
44963         links.
44964         Reported by Eric Blake <ebb9@byu.net>.
44965
44966 2007-02-24  Bruno Haible  <bruno@clisp.org>
44967
44968         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
44969         defined.
44970         * lib/isnanl.c: Remove all code. Just include isnan.c.
44971         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
44972
44973 2007-02-25  Jim Meyering  <jim@meyering.net>
44974
44975         Avoid conflicting types for 'unsetenv' on FreeBSD.
44976         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
44977         conflicting with FreeBSD's (5.0 and 6.1) function declaration
44978         in stdlib.h.
44979
44980 2007-02-24  Bruno Haible  <bruno@clisp.org>
44981
44982         * modules/isnanl-nolibm-tests: New file.
44983         * tests/test-isnanl.c: New file.
44984
44985         * modules/isnanl-nolibm: New file.
44986         * lib/isnanl.h: New file.
44987         * lib/isnanl.c: New file.
44988         * m4/isnanl.m4: New file.
44989
44990 2007-02-24  Bruno Haible  <bruno@clisp.org>
44991
44992         * modules/isnan-nolibm-tests: New file.
44993         * tests/test-isnan.c: New file.
44994
44995         * modules/isnan-nolibm: New file.
44996         * lib/isnan.h: New file.
44997         * lib/isnan.c: New file.
44998         * m4/isnan.m4: New file.
44999
45000 2007-02-24  Bruno Haible  <bruno@clisp.org>
45001
45002         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
45003         assume that an exponent fits in 20 bits.
45004
45005 2007-02-24  Jim Meyering  <jim@meyering.net>
45006
45007         * m4/regex.m4: Update the description of the configure-time option,
45008         --without-included-regex, to state accurately what the defaults are,
45009         and perhaps to give people an idea why using this option is risky.
45010
45011 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
45012
45013         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
45014         loops on small arguments.  This attempts to avoid the problem
45015         Bruno Haible reported for AIX 4.3.2 in
45016         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
45017
45018 2007-02-23  Bruno Haible  <bruno@clisp.org>
45019
45020         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
45021         Needed for help2man.
45022
45023 2007-02-23  Karl Berry  <karl@gnu.org>
45024
45025         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
45026         exists, foo.h should be cvs-ignored, not committed.
45027
45028 2007-02-23  Eric Blake  <ebb9@byu.net>
45029
45030         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
45031         * lib/stat-time.h (includes): Likewise.
45032         * lib/utimecmp.c (includes): Likewise.
45033         * lib/utimens.h (includes): Likewise.
45034         * lib/getdate.y (includes): Also include "timespec.h" for use
45035         internal to the module.
45036         * modules/utimens (Depends-on): Revert yesterday's patch.
45037         * modules/nanosleep (Depends-on): Add missing dependency.
45038
45039 2007-02-22  Bruno Haible  <bruno@clisp.org>
45040
45041         * lib/glob.c: Don't include getlogin_r.h.
45042
45043 2007-02-22  Jim Meyering  <jim@meyering.net>
45044
45045         * modules/utimens (Depends-on): Add timespec, required for
45046         utimens.h's inclusion of timespec.h.
45047
45048 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
45049
45050         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
45051         long unreadable paths in GNU/Linux.  Problem reported by Andreas
45052         Schwab in
45053         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
45054         I'll try to think of a better way to fix the Solaris problem.
45055
45056         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
45057         like glibc; on Solaris 10, it fails with errno == EINVAL.
45058         POSIX says the behavior is unspecified if the first argument is NULL,
45059         so play it safe and never pass NULL to the system getcwd.
45060
45061 2007-02-21  Jim Meyering  <jim@meyering.net>
45062
45063         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
45064         of gettimeofday.  It would conflict with the one now always
45065         provided via sys_time_.h.  Reported by Matthew Woehlke, as
45066         an IRIX 6.5 build failure.
45067
45068 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
45069
45070         Minor fixups to port to Solaris 10 with Sun C 5.8.
45071         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
45072         * modules/getcwd (Depends-on): Add dirfd.
45073         * lib/putenv.c (putenv): #undef it.
45074         (rpl_putenv): New decl.
45075         (malloc, free): Include <stdlib.h> rather than prototyping separately.
45076
45077 2007-02-20  Bruno Haible  <bruno@clisp.org>
45078
45079         * modules/stdio-tests: New file.
45080         * tests/test-stdio.c: New file.
45081
45082         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
45083         (Depends-on): Add stdio.
45084         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
45085         (Include): Use <stdio.h> instead of vsnprintf.h.
45086         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
45087         HAVE_DECL_VSNPRINTF.
45088         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
45089
45090         * modules/snprintf (Files): Remove lib/snprintf.h.
45091         (Depends-on): Add stdio.
45092         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
45093         (Include): Use <stdio.h> instead of snprintf.h.
45094         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
45095         HAVE_DECL_SNPRINTF.
45096         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
45097         * lib/getaddrinfo.c: Likewise.
45098
45099         * modules/stdio: New file.
45100         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
45101         * lib/snprintf.h: Remove file.
45102         * lib/vsnprintf.h: Remove file.
45103         * lib/.cppi-disable: Remove snprintf.h.
45104         * m4/stdio_h.m4: New file.
45105         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
45106
45107 2007-02-20  Jim Meyering  <jim@meyering.net>
45108
45109         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
45110         used by e.g., mingw.  From Bruno Haible.
45111
45112 2007-02-19  Bruno Haible  <bruno@clisp.org>
45113
45114         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
45115         warnings.
45116         Reported by Ben Pfaff <blp@cs.stanford.edu>.
45117
45118 2007-02-19  Bruno Haible  <bruno@clisp.org>
45119
45120         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
45121         from mingw users.
45122
45123 2007-02-19  Bruno Haible  <bruno@clisp.org>
45124
45125         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
45126         warnings.
45127         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
45128
45129 2007-02-19  Jim Meyering  <jim@meyering.net>
45130
45131         Don't use FD after a successful "fdopendir (fd)".
45132         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
45133         Reset it by calling dirfd on the just-obtained DIR*.
45134
45135         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
45136         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
45137
45138 2007-02-18  Bruno Haible  <bruno@clisp.org>
45139
45140         * lib/readlink.c: Include <unistd.h>.
45141         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
45142         HAVE_READLINK.
45143         * modules/readlink (Depends-on): Add unistd.
45144         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45145         (Include): Add <unistd.h>.
45146
45147         * lib/getlogin_r.h: Remove file.
45148         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
45149         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
45150         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
45151         HAVE_DECL_GETLOGIN_R.
45152         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
45153         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45154         (Include): Use <unistd.h> instead of getlogin_r.h.
45155
45156         * lib/getcwd.h: Remove file.
45157         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
45158         * lib/xgetcwd.c: Likewise.
45159         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
45160         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
45161         * modules/getcwd (Files): Remove lib/getcwd.h.
45162         (Depends-on): Add unistd.
45163         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45164         (Include): Use <unistd.h> instad of getcwd.h.
45165
45166         * lib/ftruncate.c: Include <unistd.h> first.
45167         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
45168         Set HAVE_FTRUNCATE.
45169         * modules/ftruncate (Depends-on): Add unistd.
45170         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45171
45172         * lib/fchdir.c: Include <unistd.h> first.
45173         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
45174         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
45175         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
45176         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45177         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
45178
45179         * lib/dup2.c: Include <unistd.h> first.
45180         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
45181         HAVE_DUP2.
45182         * modules/dup2 (Depends-on): Add unistd.
45183         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45184
45185         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
45186         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
45187         REPLACE_CHOWN. Don't define chown as a macro here.
45188         * modules/chown (Depends-on): Add unistd.
45189         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45190
45191         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
45192         Add definition for GL_LINK_WARNING.
45193         (chown, dup2): New declarations.
45194         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
45195         link warning.
45196         (ftruncate): New declaration.
45197         (getcwd): New declaration, taken from old getcwd.h.
45198         (getlogin_r): New declaration, taken from old getlogin_r.h.
45199         (readlink): New declaration.
45200         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
45201         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
45202         (gl_PREREQ_UNISTD): Remove macro.
45203         (gl_UNISTD_MODULE_INDICATOR): New macro.
45204         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
45205         many new variables. Don't set UNISTD_H.
45206         * modules/unistd (Description): Change.
45207         (Depends-on): Add link-warning.
45208         (configure.ac): Update.
45209         (Makefile.am): Create unistd.h always. Substitute many new variables
45210         into it.
45211
45212 2007-02-18  Bruno Haible  <bruno@clisp.org>
45213
45214         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
45215         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
45216         HAVE_GETSUBOPT.
45217         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
45218         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
45219         * lib/getsubopt.h: Remove file.
45220         * modules/getsubopt (Files): Remove lib/getsubopt.h.
45221         (Depends-on): Add stdlib.
45222         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45223         (Includes): Use <stdlib.h> instead of getsubopt.h.
45224         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
45225         Set HAVE_GETSUBOPT.
45226         * lib/getsubopt.c: Don't include getsubopt.h.
45227
45228 2007-02-18  Bruno Haible  <bruno@clisp.org>
45229
45230         * modules/fchdir (Depends-on): Add dup2.
45231
45232 2007-02-18  Bruno Haible  <bruno@clisp.org>
45233
45234         * lib/stdlib_.h: Handle glibc's special invocation convention
45235         specially.
45236
45237 2007-02-18  Bruno Haible  <bruno@clisp.org>
45238
45239         * modules/stdlib-tests: New file.
45240         * tests/test-stdlib.c: New file.
45241
45242         * modules/mkstemp (Files): Remove lib/mkstemp.h.
45243         (Depends-on): Add stdlib.
45244         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45245         (Includes): Use <stdlib.h> instead of mkstemp.h.
45246         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
45247         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
45248         * lib/mkstemp.c: Don't include mkstemp.h.
45249         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
45250         * lib/stdlib--.h: Don't include mkstemp.h.
45251
45252         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
45253         (Depends-on): Add stdlib.
45254         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45255         (Includes): Use <stdlib.h> instead of mkdtemp.h.
45256         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
45257         HAVE_MKDTEMP.
45258         * lib/mkdtemp.c: Don't include mkdtemp.h.
45259         * lib/clean-temp.c: Don't include mkdtemp.h.
45260
45261         * modules/exit (Files): Remove lib/exit.h.
45262         (Depends-on): Add stdlib.
45263         (Makefile.am): Remove lib_SOURCES.
45264         (Include): Use <stdlib.h> instead of exit.h.
45265         * lib/argmatch.c: Don't include exit.h.
45266         * lib/execute.c: Likewise.
45267         * lib/pagealign_alloc.c: Likewise.
45268         * lib/pipe.c: Likewise.
45269         * lib/wait-process.c: Likewise.
45270         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
45271         * lib/exitfail.c: Likewise.
45272         * lib/savewd.c: Likewise.
45273         * lib/xsetenv.c: Likewise.
45274
45275         * modules/stdlib: New file.
45276         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
45277         and extra comments about mkstemp().
45278         * lib/exit.h: Remove file.
45279         * lib/mkdtemp.h: Remove file.
45280         * lib/mkstemp.h: Remove file.
45281         * m4/stdlib_h.m4: New file.
45282         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
45283
45284 2007-02-18  Bruno Haible  <bruno@clisp.org>
45285
45286         * modules/math-tests: New file.
45287         * tests/test-math.c: New file.
45288
45289         * modules/math: New file.
45290         * modules/mathl (Files): Remove lib/mathl.h.
45291         (Depends-on): Add math.
45292         (Makefile.am): Don't mention mathl.h.
45293         (Include): Use <math.h> instead of mathl.h.
45294         * lib/math_.h: New file.
45295         * lib/mathl.h: Remove file.
45296         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
45297         mathl.h.
45298         * lib/asinl.c: Likewise.
45299         * lib/atanl.c: Likewise.
45300         * lib/ceill.c: Likewise.
45301         * lib/cosl.c: Likewise.
45302         * lib/expl.c: Likewise.
45303         * lib/floorl.c: Likewise.
45304         * lib/frexpl.c: Likewise.
45305         * lib/ldexpl.c: Likewise.
45306         * lib/logl.c: Likewise.
45307         * lib/sincosl.c: Likewise.
45308         * lib/sinl.c: Likewise.
45309         * lib/sqrtl.c: Likewise.
45310         * lib/tanl.c: Likewise.
45311         * lib/trigl.c: Likewise.
45312         * m4/math_h.m4: New file.
45313         * MODULES.html.sh (Mathematics): Add math.
45314
45315 2007-02-17  Bruno Haible  <bruno@clisp.org>
45316
45317         * modules/wctype-tests: New file.
45318         * tests/test-wctype.c: New file.
45319
45320         * modules/wchar-tests: New file.
45321         * tests/test-wchar.c: New file.
45322
45323         * modules/unistd-tests: New file.
45324         * tests/test-unistd.c: New file.
45325
45326         * modules/time-tests: New file.
45327         * tests/test-time.c: New file.
45328
45329         * modules/sysexits-tests: New file.
45330         * tests/test-sysexits.c: New file.
45331
45332         * modules/sys_time-tests: New file.
45333         * tests/test-sys_time.c: New file.
45334
45335         * modules/sys_stat-tests: New file.
45336         * tests/test-sys_stat.c: New file.
45337
45338         * modules/sys_socket-tests: New file.
45339         * tests/test-sys_socket.c: New file.
45340
45341         * modules/sys_select-tests: New file.
45342         * tests/test-sys_select.c: New file.
45343
45344         * modules/string-tests: New file.
45345         * tests/test-string.c: New file.
45346
45347         * modules/stdbool-tests: New file.
45348         * tests/test-stdbool.c: New file.
45349
45350         * modules/netinet_in-tests: New file.
45351         * tests/test-netinet_in.c: New file.
45352
45353         * modules/inttypes-tests: New file.
45354         * tests/test-inttypes.c: New file.
45355
45356         * modules/fcntl-tests: New file.
45357         * tests/test-fcntl.c: New file.
45358
45359         * modules/byteswap-tests: New file.
45360         * tests/test-byteswap.c: New file.
45361
45362         * modules/arpa_inet-tests: New file.
45363         * tests/test-arpa_inet.c: New file.
45364
45365 2007-02-17  Bruno Haible  <bruno@clisp.org>
45366
45367         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
45368         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
45369         if the corresponding module is not enabled. Emit link warnings if
45370         the function is used nevertheless.
45371         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
45372         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
45373         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
45374         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
45375         * modules/inttypes (Depends-on): Add link-warning.
45376         (Makefile.am): Copy the contents of build-aux/link-warning.h into
45377         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
45378         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
45379         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
45380         * modules/imaxdiv (configure.ac): Likewise.
45381         * modules/strtoimax (configure.ac): Likewise.
45382         * modules/strtoumax (configure.ac): Likewise.
45383
45384 2007-02-17  Bruno Haible  <bruno@clisp.org>
45385
45386         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
45387         gl_STRING_MODULE_INDICATOR_DEFAULTS.
45388         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
45389         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
45390
45391 2007-02-17  Bruno Haible  <bruno@clisp.org>
45392
45393         * modules/link-warning: New file.
45394         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
45395         * lib/string_.h (GL_LINK_WARNING): Remove definition.
45396         * modules/string (Depends-on): Add link-warning.
45397         (Makefile.am): Copy the contents of build-aux/link-warning.h into
45398         string.h.
45399         * MODULES.html.sh (Support for building libraries and executables): Add
45400         link-warning.
45401
45402 2007-02-17  Bruno Haible  <bruno@clisp.org>
45403
45404         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
45405         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
45406         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
45407         long lines.
45408
45409 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
45410             Bruno Haible  <bruno@clisp.org>
45411
45412         * modules/tmpfile: New file.
45413         * lib/tmpfile.c: New file.
45414         * m4/tmpfile.m4: New file.
45415         * MODULES.html.sh (func_all_modules): New section "Input/output".
45416
45417 2007-02-15  Bruno Haible  <bruno@clisp.org>
45418
45419         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
45420         (supports_delete_on_close): New function.
45421         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
45422
45423 2007-02-14  Bruno Haible  <bruno@clisp.org>
45424
45425         * modules/mbspcasecmp-tests: New file.
45426         * tests/test-mbspcasecmp.sh: New file.
45427         * tests/test-mbspcasecmp.c: New file.
45428
45429         New module mbspcasecmp.
45430         * modules/mbspcasecmp: New file.
45431         * lib/mbspcasecmp.c: New file.
45432         * lib/string_.h (strncasecmp): Change warning message.
45433         (mbspcasecmp): New declaration.
45434         * m4/mbspcasecmp.m4: New file.
45435         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
45436         GNULIB_MBSPCASECMP.
45437         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
45438         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
45439
45440 2007-02-14  Bruno Haible  <bruno@clisp.org>
45441
45442         * modules/mbsncasecmp-tests: New file.
45443         * tests/test-mbsncasecmp.sh: New file.
45444         * tests/test-mbsncasecmp.c: New file.
45445
45446         New module mbsncasecmp.
45447         * modules/mbsncasecmp: New file.
45448         * lib/mbsncasecmp.c: New file.
45449         * lib/string_.h (mbsncasecmp): New declaration.
45450         * m4/mbsncasecmp.m4: New file.
45451         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
45452         GNULIB_MBSNCASECMP.
45453         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
45454         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
45455
45456 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
45457
45458         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
45459         Verify that it doesn't overlap with our flags.
45460         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
45461         do not have the desired effect in multibyte locales; instead, use
45462         mbscasecmp.
45463         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
45464         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
45465         we don't require GNU fnmatch ourselves (if our users require it, they
45466         should do so explicitly).
45467
45468         Fix regex code so it doesn't rely on strcasecmp.
45469         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
45470         Otherwise, include gnulib's langinfo.h.
45471         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
45472         undesirable behavior in non-C locales.  Instead, rely on localecharset.
45473         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
45474         * modules/regex (FILES): Remove m4/codeset.m4.
45475         (Depends-on): Add localcharset.  Remove strcase.
45476
45477 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45478
45479         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
45480         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
45481
45482 2007-02-13  Bruno Haible  <bruno@clisp.org>
45483
45484         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
45485         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45486
45487 2007-02-12  Bruno Haible  <bruno@clisp.org>
45488
45489         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
45490         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
45491         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
45492         time warning rather than a link error.
45493
45494 2007-02-12  Bruno Haible  <bruno@clisp.org>
45495
45496         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
45497         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
45498         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45499
45500 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
45501
45502         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
45503         args, not 2.
45504
45505 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
45506
45507         New module 'time', so that apps can include <time.h> as per
45508         POSIX and GNU instead of separate include files like time_r.h
45509         and timegm.h.  This implementation tries out a simpler approach
45510         for replacing decls in standard include files (as compared to
45511         the string module), somewhat as an experiment.
45512
45513         * config/srclist.txt: Comment out mktime.c for now.
45514         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
45515         since it doesn't apply any more.  Use generic wording instead.
45516         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
45517         'time'.
45518         * lib/time_.h, m4/time_h.m4, modules/time: New files.
45519         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
45520         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
45521         Don't include <sys/types.h>; no longer needed since we assume C89.
45522         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
45523         * lib/strftime.c: Likewise.
45524         * lib/time_r.c: Likewise.
45525         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
45526         * lib/nanosleep.c: Include <time.h> first, to check interface.
45527         * lib/strptime.c: Likewise.
45528         * lib/time_r.c: Likewise.
45529         * lib/timegm.c: Likewise.
45530         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
45531         needed.
45532         * lib/timegm.c: Don't include timegm.h; no longer needed.
45533         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
45534         time.h now handles any problems in that area.
45535         (struct timespec, nanosleep): Remove; time.h now arranges for these.
45536         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
45537         that time.h defines struct timespec.
45538         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
45539         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
45540         handles that.
45541         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
45542         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
45543         needed.  Set REPLACE_LOCALTIME.
45544         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
45545         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
45546         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
45547         nanosleep; time_h.m4 now does that.  Don't require
45548         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
45549         module handles this now.
45550         * modules/getdate (Depends-on): Remove timespec.  Add time.
45551         * modules/nanosleep (Depends-on): Likewise.
45552         * modules/stat-time (Depends-on): Likewise.
45553         * modules/nanosleep (Include): Include time.h, not timespec.h.
45554         * modules/strptime (Files): Remove lib/strptime.h.
45555         (Depends-on): Add extensions, time.
45556         (Include): Include time.h, not strptime.h.
45557         * modules/time_r (Files): Remove lib/time_r.h.
45558         (Depends-on): Add time.
45559         (Include): Include time.h, not time_r.h.
45560         * modules/timegm: Likewise.
45561         * modules/timespec (Description): Now does timespec-related decls
45562         of our own, instead of struct timespec itself.
45563         (Depends-on): Add time; remove extensions.
45564         (Maintainer): Add self.
45565         * modules/utimecmp (Depends-on): Add time; remove timespec.
45566         * modules/utimens (Depends-on): Likewise.
45567         * modules/xnanosleep (Depends-on): Likewise.
45568
45569 2007-02-11  Bruno Haible  <bruno@clisp.org>
45570
45571         * lib/c-strstr.c: Include allocsa.h.
45572         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
45573         * lib/c-strcasestr.c: Include allocsa.h.
45574         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
45575         * lib/strcasestr.c: Include allocsa.h.
45576         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
45577         * lib/mbsstr.c: Include allocsa.h.
45578         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
45579         allocsa/freesa instead of malloc/free.
45580         * lib/mbscasestr.c: Include allocsa.h.
45581         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
45582         allocsa/freesa instead of malloc/free.
45583         * modules/c-strstr (Depends-on): Add allocsa.
45584         * modules/c-strcasestr (Depends-on): Likewise.
45585         * modules/strcasestr (Depends-on): Likewise.
45586         * modules/mbsstr (Depends-on): Likewise.
45587         * modules/mbscasestr (Depends-on): Likewise.
45588
45589 2007-02-11  Bruno Haible  <bruno@clisp.org>
45590
45591         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
45592
45593         * modules/mbsspn-tests: New file.
45594         * tests/test-mbsspn.sh: New file.
45595         * tests/test-mbsspn.c: New file.
45596
45597 2007-02-11  Bruno Haible  <bruno@clisp.org>
45598
45599         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
45600
45601         * modules/mbspbrk-tests: New file.
45602         * tests/test-mbspbrk.sh: New file.
45603         * tests/test-mbspbrk.c: New file.
45604
45605 2007-02-11  Bruno Haible  <bruno@clisp.org>
45606
45607         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
45608         unneeded cast.
45609
45610         * modules/mbscspn-tests: New file.
45611         * tests/test-mbscspn.sh: New file.
45612         * tests/test-mbscspn.c: New file.
45613
45614 2007-02-11  Bruno Haible  <bruno@clisp.org>
45615
45616         * modules/mbscasecmp-tests: New file.
45617         * tests/test-mbscasecmp.sh: New file.
45618         * tests/test-mbscasecmp.c: New file.
45619
45620 2007-02-11  Bruno Haible  <bruno@clisp.org>
45621
45622         Ensure O(n) worst-case complexity of mbscasestr.
45623         * lib/mbscasestr.c: Include stdbool.h.
45624         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
45625         functions.
45626         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
45627         the bookkeeping indicates that it's worth it.
45628         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
45629
45630         * modules/mbscasestr-tests: New file.
45631         * tests/test-mbscasestr1.c: New file.
45632         * tests/test-mbscasestr2.sh: New file.
45633         * tests/test-mbscasestr2.c: New file.
45634         * tests/test-mbscasestr3.sh: New file.
45635         * tests/test-mbscasestr3.c: New file.
45636         * tests/test-mbscasestr4.sh: New file.
45637         * tests/test-mbscasestr4.c: New file.
45638         * m4/locale-tr.m4: New file.
45639
45640 2007-02-11  Bruno Haible  <bruno@clisp.org>
45641
45642         Ensure O(n) worst-case complexity of mbsstr.
45643         * lib/mbsstr.c: Include stdbool.h.
45644         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
45645         functions.
45646         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
45647         bookkeeping indicates that it's worth it.
45648         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
45649
45650         * modules/mbsstr-tests: New file.
45651         * tests/test-mbsstr1.c: New file.
45652         * tests/test-mbsstr2.sh: New file.
45653         * tests/test-mbsstr2.c: New file.
45654         * tests/test-mbsstr3.sh: New file.
45655         * tests/test-mbsstr3.c: New file.
45656         * m4/locale-fr.m4: New file.
45657
45658 2007-02-11  Bruno Haible  <bruno@clisp.org>
45659
45660         * lib/mbsrchr.c (mbsrchr): Fix bug.
45661
45662         * modules/mbsrchr-tests: New file.
45663         * tests/test-mbsrchr.sh: New file.
45664         * tests/test-mbsrchr.c: New file.
45665
45666 2007-02-11  Bruno Haible  <bruno@clisp.org>
45667
45668         * lib/mbschr.c (mbschr): Fix bug.
45669
45670         * modules/mbschr-tests: New file.
45671         * tests/test-mbschr.sh: New file.
45672         * tests/test-mbschr.c: New file.
45673         * m4/locale-zh.m4: New file.
45674
45675 2007-02-11  Bruno Haible  <bruno@clisp.org>
45676
45677         Support for copying multibyte string iterators.
45678         * lib/mbiter.h: Include <string.h>.
45679         (mbiter_multi_copy): New function.
45680         (mbi_copy): New macro.
45681         * lib/mbuiter.h: Include <string.h>.
45682         (mbuiter_multi_copy): New function.
45683         (mbui_copy): New macro.
45684
45685 2007-02-11  Bruno Haible  <bruno@clisp.org>
45686
45687         New module mbslen.
45688         * modules/mbslen: New file.
45689         * lib/mbslen.c: New file.
45690         * lib/string_.h (mbslen): New declaration.
45691         * m4/mbslen.m4: New file.
45692         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
45693         GNULIB_MBSLEN.
45694         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
45695         * MODULES.html.sh (Internationalization functions): Add mbslen.
45696
45697 2007-02-11  Bruno Haible  <bruno@clisp.org>
45698
45699         Ensure O(n) worst-case complexity of strcasestr substitute.
45700         * lib/strcasestr.c: Include stdbool.h.
45701         (knuth_morris_pratt): New function.
45702         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
45703         bookkeeping indicates that it's worth it.
45704         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
45705
45706         * modules/strcasestr-tests: New file.
45707         * tests/test-strcasestr.c: New file.
45708
45709 2007-02-11  Bruno Haible  <bruno@clisp.org>
45710
45711         Ensure O(n) worst-case complexity of c_strcasestr.
45712         * lib/c-strcasestr.c: Include stdbool.h, string.h.
45713         (knuth_morris_pratt): New function.
45714         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
45715         the bookkeeping indicates that it's worth it.
45716         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
45717
45718         * modules/c-strcasestr-tests: New file.
45719         * tests/test-c-strcasestr.c: New file.
45720
45721 2007-02-11  Bruno Haible  <bruno@clisp.org>
45722
45723         Ensure O(n) worst-case complexity of c_strstr.
45724         * lib/c-strstr.c: Include stdbool.h, string.h.
45725         (knuth_morris_pratt): New function.
45726         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
45727         bookkeeping indicates that it's worth it.
45728         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
45729
45730         * lib/c-strstr.c: Complete rewrite for maintainability.
45731
45732         * modules/c-strstr-tests: New file.
45733         * tests/test-c-strstr.c: New file.
45734
45735 2007-02-11  Bruno Haible  <bruno@clisp.org>
45736
45737         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
45738         5.2.1 and earlier, whereby \055 was treated just like the range
45739         delimiter '-'.
45740         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
45741
45742 2007-02-08  Bruno Haible  <bruno@clisp.org>
45743
45744         * modules/regex (Depends-on): Add stdbool.
45745         Reported by Dalibor Topic <robilad@kaffe.org>.
45746
45747 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
45748
45749         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
45750         Prefer returning from main to exiting from it.
45751         Remove unnecessary parens after sizeof.
45752
45753 2007-02-05  Bruno Haible  <bruno@clisp.org>
45754
45755         New module mbssep.
45756         * modules/mbssep: New file.
45757         * lib/mbssep.c: New file.
45758         * lib/string_.h (strsep): Add a conditional link warning.
45759         (mbssep): New declaration.
45760         * m4/mbssep.m4: New file.
45761         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
45762         GNULIB_MBSSEP.
45763         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
45764         * MODULES.html.sh (Internationalization functions): Add mbssep.
45765
45766 2007-02-05  Bruno Haible  <bruno@clisp.org>
45767
45768         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
45769         Optimize search in case of 1 delimiter.
45770
45771 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
45772
45773         * lib/acl.h: Include sys/types.h before sys/acl.h.
45774
45775 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
45776
45777         Merge upstream fix for glibc bugzilla #3957:
45778
45779         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
45780
45781         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
45782         bit for RE_HAT_LISTS_NOT_NEWLINE.
45783         (build_charclass_op): Remove bogus comment.
45784
45785 2007-02-05  Simon Josefsson  <simon@josefsson.org>
45786
45787         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
45788
45789 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
45790
45791         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
45792         * lib/memmem.c [!defined _LIBC]: Include config.h.
45793
45794 2007-02-04  Bruno Haible  <bruno@clisp.org>
45795
45796         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
45797         warning message.
45798
45799 2007-02-04  Bruno Haible  <bruno@clisp.org>
45800
45801         New module mbstok_r.
45802         * modules/mbstok_r: New file.
45803         * lib/mbstok_r.c: New file.
45804         * lib/string_.h (strtok_r): Change argument names to match the
45805         comments. Add a conditional link warning.
45806         (mbstok_r): New declaration.
45807         * m4/mbstok_r.m4: New file.
45808         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
45809         GNULIB_MBSTOK_R.
45810         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
45811         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
45812
45813 2007-02-04  Bruno Haible  <bruno@clisp.org>
45814
45815         New module mbsspn.
45816         * modules/mbsspn: New file.
45817         * lib/mbsspn.c: New file.
45818         * lib/string_.h (strspn): Add a conditional link warning.
45819         (mbsspn): New declaration.
45820         * m4/mbsspn.m4: New file.
45821         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
45822         GNULIB_MBSSPN.
45823         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
45824         * MODULES.html.sh (Internationalization functions): Add mbsspn.
45825
45826 2007-02-04  Bruno Haible  <bruno@clisp.org>
45827
45828         New module mbspbrk.
45829         * modules/mbspbrk: New file.
45830         * lib/mbspbrk.c: New file.
45831         * lib/string_.h (strpbrk): Add a conditional link warning.
45832         (mbspbrk): New declaration.
45833         * m4/mbspbrk.m4: New file.
45834         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
45835         GNULIB_MBSPBRK.
45836         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
45837         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
45838
45839 2007-02-04  Bruno Haible  <bruno@clisp.org>
45840
45841         New module mbscspn.
45842         * modules/mbscspn: New file.
45843         * lib/mbscspn.c: New file.
45844         * lib/string_.h (strcspn): Add a conditional link warning.
45845         (mbscspn): New declaration.
45846         * m4/mbscspn.m4: New file.
45847         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
45848         GNULIB_MBSCSPN.
45849         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
45850         * MODULES.html.sh (Internationalization functions): Add mbscspn.
45851
45852 2007-02-04  Bruno Haible  <bruno@clisp.org>
45853
45854         New module mbscasestr, reduced goal of strcasestr.
45855         * modules/mbscasestr: New file.
45856         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
45857         (mbscasestr): Renamed from strcasestr.
45858         * lib/strcasestr.c: Don't include mbuiter.h.
45859         (strcasestr): Remove support for multibyte locales.
45860         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
45861         Change the conditional link warning.
45862         (mbscasestr): New declaration.
45863         * m4/mbscasestr.m4: New file.
45864         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
45865         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
45866         REPLACE_STRCASESTR.
45867         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
45868         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
45869         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
45870         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
45871         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
45872         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
45873         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
45874         (Depends-on): Remove mbuiter.
45875         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
45876
45877 2007-02-04  Bruno Haible  <bruno@clisp.org>
45878
45879         Simplify handling of strncasecmp.
45880         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
45881         the conditional link warning.
45882         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
45883         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
45884         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
45885         * modules/strcase (configure.ac): Don't invoke
45886         gl_STRING_MODULE_INDICATOR.
45887         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
45888
45889 2007-02-04  Bruno Haible  <bruno@clisp.org>
45890
45891         New module mbscasecmp, reduced goal of strcasecmp.
45892         * modules/mbscasecmp: New file.
45893         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
45894         (mbscasecmp): Renamed from strcasecmp.
45895         * lib/strcasecmp.c: Don't include mbuiter.h.
45896         (strcasecmp): Remove support for multibyte locales.
45897         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
45898         Change the conditional link warning.
45899         (mbscasecmp): New declaration.
45900         * m4/mbscasecmp.m4: New file.
45901         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
45902         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
45903         REPLACE_STRCASECMP.
45904         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
45905         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
45906         GNULIB_MBSCASECMP.
45907         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
45908         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
45909         * modules/strcase (Files): Remove m4/mbrtowc.m4.
45910         (Depends-on): Remove mbuiter.
45911         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
45912
45913 2007-02-04  Bruno Haible  <bruno@clisp.org>
45914
45915         New module mbsstr. Remove module strstr.
45916         * modules/mbsstr: New file.
45917         * modules/strstr: Remove file.
45918         * lib/mbsstr.c: Renamed from lib/strstr.c.
45919         (mbsstr): Renamed from strstr.
45920         * lib/string_.h (strstr): Remove declaration. Change the conditional
45921         link warning.
45922         (mbsstr): New declaration.
45923         * m4/mbsstr.m4: New file.
45924         * m4/strstr.m4: Remove file.
45925         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
45926         REPLACE_STRSTR.
45927         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
45928         Don't initialize GNULIB_STRSTR.
45929         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
45930         substitute GNULIB_STRSTR and REPLACE_STRSTR.
45931         * MODULES.html.sh (Internationalization functions): Add mbsstr.
45932         (Support for systems lacking ANSI C 89): Remove strstr.
45933
45934 2007-02-04  Bruno Haible  <bruno@clisp.org>
45935
45936         New module mbsrchr.
45937         * modules/mbsrchr: New file.
45938         * lib/mbsrchr.c: New file.
45939         * lib/string_.h (strrchr): Add a conditional link warning.
45940         (mbsrchr): New declaration.
45941         * m4/mbsrchr.m4: New file.
45942         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
45943         GNULIB_MBSRCHR.
45944         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
45945         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
45946
45947 2007-02-04  Bruno Haible  <bruno@clisp.org>
45948
45949         New module mbschr.
45950         * modules/mbschr: New file.
45951         * lib/mbschr.c: New file.
45952         * lib/string_.h (strchr): Add a conditional link warning.
45953         (mbschr): New declaration.
45954         * m4/mbschr.m4: New file.
45955         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
45956         GNULIB_MBSCHR.
45957         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
45958         * MODULES.html.sh (Internationalization functions): Add mbschr.
45959
45960 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
45961
45962         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
45963
45964         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
45965
45966 2007-02-04  Bruno Haible  <bruno@clisp.org>
45967
45968         New module description section 'configure.ac-early'.
45969         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
45970         (func_get_autoconf_early_snippet): New function.
45971         (func_import, func_create_testdir): Use it. Remove special cases for
45972         modules 'extensions' and 'lock'.
45973         * modules/extensions (configure.ac-early): Require
45974         gl_USE_SYSTEM_EXTENSIONS.
45975         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
45976
45977 2007-02-04  Bruno Haible  <bruno@clisp.org>
45978
45979         Make use of gcj-4.3's -fsource and -ftarget option.
45980         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
45981         and if so try the options -fsource and -ftarget.
45982         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
45983         source_version, ftarget_option, target_version arguments.
45984         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
45985         (is_envjavac_oldgcj_14_14_usable): Renamed from
45986         is_envjavac_gcj_14_14_usable.
45987         (is_envjavac_oldgcj_14_13_usable): Renamed from
45988         is_envjavac_gcj_14_13_usable.
45989         (is_gcj_present): Update.
45990         (is_gcj_43, is_gcj43_usable): New functions.
45991         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
45992         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
45993         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
45994         try the options -fsource and -ftarget.
45995
45996 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
45997
45998         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
45999         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
46000         larger value.
46001
46002 2007-02-03  Jim Meyering  <jim@meyering.net>
46003
46004         Give tools a better chance to allocate space for very large buffers.
46005         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
46006
46007         Make pwd and readlink work also when run with an unreadable parent dir
46008         on systems with openat support.
46009         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
46010         provided getcwd function, even when we have openat support.
46011         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
46012
46013 2007-02-02  Bruno Haible  <bruno@clisp.org>
46014
46015         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
46016         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
46017         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
46018         portability problems if one of these functions is only used on specific
46019         platforms.
46020         Reported by Paul Eggert.
46021
46022 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
46023
46024         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
46025         is causing more trouble than it's curing.
46026         * lib/regex_internal.h (__mempcpy): Remove.
46027         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
46028         (and make the code a tad smaller to boot).
46029         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
46030
46031 2007-02-02  Jim Meyering  <jim@meyering.net>
46032
46033         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
46034         section, not in the Makefile.am: one.
46035
46036 2007-02-02  Eric Blake  <ebb9@byu.net>
46037
46038         * lib/strchrnul.c: Always include config.h first.
46039
46040         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
46041         gnulib strstr is not necessary here.
46042
46043 2007-02-02  Simon Josefsson  <simon@josefsson.org>
46044
46045         * m4/socklen.m4: Fix typo.
46046
46047 2007-02-02  Eric Blake  <ebb9@byu.net>
46048
46049         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
46050         * modules/netinet_in (Makefile.am): Likewise.
46051
46052 2007-02-01  Bruno Haible  <bruno@clisp.org>
46053
46054         * lib/string_.h (GL_LINK_WARNING): New macro.
46055         (strcasecmp, strstr, strcasestr): If provided by the system,
46056         conditionally define as a macro that leads to a warning instead of to
46057         an error.
46058         (strncasecmp): Conditionally define as a macro that leads to a warning.
46059
46060 2007-02-01  Karl Berry  <karl@gnu.org>
46061
46062         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
46063
46064 2007-02-01  Bruno Haible  <bruno@clisp.org>
46065
46066         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
46067         renamings.
46068
46069 2007-02-01  Eric Blake  <ebb9@byu.net>
46070
46071         * modules/regex (Depends-on): Revert dependence on mempcpy.
46072         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
46073         module's definition of mempcpy.
46074         Reported by Paul Eggert.
46075
46076 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
46077
46078         * lib/string_.h: If the gnulib module XYZ is not present, undefine
46079         the symbol XYZ before redefining it.  This fixes a problem with
46080         programs that don't use XYZ, when compiled on systems that define
46081         XYZ to something else.
46082
46083 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
46084
46085         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
46086         occurs when "mkdir -m foo" creates a setgid directory that is (1)
46087         writeable to group or other and (2) is intended to have a special
46088         mode bit that is set or cleared.  In such a case, the directory
46089         should be neither group- nor other-writeable until the special
46090         mode bits are right.
46091
46092 2007-01-31  Eric Blake  <ebb9@byu.net>
46093
46094         * modules/mountlist (Depends-on): Add strstr.
46095
46096         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
46097         bug.
46098         * modules/string (Makefile.am): Remove redundant replacement.
46099         * modules/regex (Depends-on): Add mempcpy.
46100
46101 2007-01-31  Bruno Haible  <bruno@clisp.org>
46102
46103         New module description field 'Link'.
46104         * gnulib-tool (func_usage): Document --extract-link-directive.
46105         (sed_extract_prog): Recognize 'Link' directive.
46106         (func_get_link_directive): New function.
46107         (func_import): Show summary of link directives.
46108         Handle --extract-link-directive option.
46109         * modules/acl (Link): New section.
46110         * modules/clock-time (Link): New section.
46111         * modules/euidaccess (Link): New section.
46112         * modules/gettext (Link): New section.
46113         * modules/iconv (Link): New section.
46114         * modules/lock (Link): New section.
46115         * modules/nanosleep (Link): New section.
46116         * modules/readline (Link): New section.
46117
46118 2007-01-27  Bruno Haible  <bruno@clisp.org>
46119
46120         Enforce the use of gnulib modules for unportable <string.h> functions.
46121         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
46122         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
46123         (gl_HEADER_STRING_H_BODY): Require it.
46124         * lib/string_.h: If the gnulib module XYZ is not present, redefine
46125         the symbol XYZ to one that gives a link error.
46126         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
46127         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
46128         * modules/mempcpy (configure.ac): Likewise.
46129         * modules/memrchr (configure.ac): Likewise.
46130         * modules/stpcpy (configure.ac): Likewise.
46131         * modules/stpncpy (configure.ac): Likewise.
46132         * modules/strcase (configure.ac): Likewise.
46133         * modules/strcasestr (configure.ac): Likewise.
46134         * modules/strchrnul (configure.ac): Likewise.
46135         * modules/strdup (configure.ac): Likewise.
46136         * modules/strndup (configure.ac): Likewise.
46137         * modules/strnlen (configure.ac): Likewise.
46138         * modules/strpbrk (configure.ac): Likewise.
46139         * modules/strsep (configure.ac): Likewise.
46140         * modules/strstr (configure.ac): Likewise.
46141         * modules/strtok_r (configure.ac): Likewise.
46142
46143 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
46144
46145         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
46146
46147 2007-01-30  Jim Meyering  <jim@meyering.net>
46148
46149         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
46150
46151 2007-01-29  Bruno Haible  <bruno@clisp.org>
46152
46153         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
46154         * lib/execute.c: Likewise.
46155         * lib/pipe.c: Likewise.
46156         * lib/printf-args.h: Likewise.
46157         * lib/printf-args.c: Likewise.
46158         * lib/printf-parse.c: Likewise.
46159         * lib/vasnprintf.c: Likewise.
46160
46161 2007-01-29  Eric Blake  <ebb9@byu.net>
46162
46163         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
46164         declaration.
46165
46166 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
46167
46168         * lib/strptime.h (strptime): Use 'restrict' for args where
46169         POSIX requires this.
46170         * lib/strptime.c (strptime): Likewise.
46171         Change license notice from LGPL to GPL, since gnulib-tool will
46172         change this as needed.
46173         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
46174         defined.
46175         Include "strptime.h" first, to check interface.
46176         Do not #undef _LIBC and _NL_CURRENT.
46177         Do not include <stdlib.h>; no longer needed.
46178         Include "time_r.h" and declare ptime_locale_status
46179         only if _LIBC is not defined.
46180         (__P): Remove unused macro.
46181         (match_string): Bring back glibc version, but use it only if _LIBC
46182         is defined.
46183         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
46184         Remove unnecessary assertion and abort() call.
46185         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
46186         * m4/strptime.m4: Fix serial number comment.
46187         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
46188         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
46189         (Depends-on): Add time_r.
46190
46191 2007-01-29  Bruno Haible  <bruno@clisp.org>
46192
46193         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
46194         strptime.
46195         * modules/strptime (Depends-on): Add stdbool.
46196         * lib/strptime.h: Include <time.h> always. Add comments.
46197
46198 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
46199
46200         * modules/strptime: New file.
46201         * lib/strptime.h: New file.
46202         * lib/strptime.c: New file.
46203         * m4/strptime.m4: New file.
46204
46205 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
46206
46207         * MODULES.html.sh: New module mpsort.
46208         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
46209
46210         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
46211         a circularity problem with HP-UX ia64 reported by Bob Proulx in
46212         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
46213         All uses changed.
46214         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
46215         All uses changed.
46216         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
46217         to _Restrict_.
46218         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
46219         the parameter matches the prototype.
46220
46221 2007-01-28  Jim Meyering  <jim@meyering.net>
46222
46223         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
46224         sys/time.h here, reverting that part of the previous patch:
46225         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
46226
46227 2007-01-28  Bruno Haible  <bruno@clisp.org>
46228
46229         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
46230         value of $(SYS_TIME_H).
46231         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
46232         remove it conditionally, too. [added by Jim Meyering]
46233         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
46234         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
46235         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
46236         GETTIMEOFDAY_REPLACEMENT to 1.
46237
46238 2007-01-28  Bruno Haible  <bruno@clisp.org>
46239
46240         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
46241         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
46242         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
46243         Set UNISTD_H instead of UNISTD_H2.
46244         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
46245
46246 2007-01-28  Bruno Haible  <bruno@clisp.org>
46247
46248         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
46249         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
46250
46251 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46252
46253         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
46254         (func_create_testdir): Ensure C locale for `grep' and `tr'
46255         character ranges.
46256         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
46257         ACLOCAL_AMFLAGS parsing state machine.
46258
46259 2007-01-27  Bruno Haible  <bruno@clisp.org>
46260
46261         * modules/unistr/base: Update.
46262
46263 2007-01-27  Bruno Haible  <bruno@clisp.org>
46264
46265         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
46266         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
46267         * modules/unistr/u32-mbtouc-unsafe: Renamed from
46268         modules/unistr/u32-mbtouc.
46269         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
46270         * lib/unistr.h: Update.
46271         * lib/linebreak.c: Update.
46272         * modules/unistr/u32-mbtouc: Renamed from
46273         modules/unistr/u32-mbtouc-safe.
46274         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
46275         * lib/unistr.h: Update.
46276         * lib/unistr/u32-to-u8.c: Update.
46277         * lib/unistr/u32-to-u16.c: Update.
46278
46279 2007-01-27  Bruno Haible  <bruno@clisp.org>
46280
46281         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
46282         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
46283         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
46284         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
46285         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
46286         * modules/unistr/u16-mbtouc-unsafe: Renamed from
46287         modules/unistr/u16-mbtouc.
46288         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
46289         * lib/unistr.h: Update.
46290         * lib/linebreak.c: Update.
46291         * modules/linebreak: Update.
46292         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
46293         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
46294         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
46295         * modules/unistr/u16-mbtouc: Renamed from
46296         modules/unistr/u16-mbtouc-safe.
46297         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
46298         * lib/unistr.h: Update.
46299         * lib/unistr/u16-to-u8.c: Update.
46300         * modules/unistr/u16-to-u8: Update.
46301         * lib/unistr/u16-to-u32.c: Update.
46302         * modules/unistr/u16-to-u32: Update.
46303
46304 2007-01-27  Bruno Haible  <bruno@clisp.org>
46305
46306         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
46307         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
46308         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
46309         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
46310         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
46311         * modules/unistr/u8-mbtouc-unsafe: Renamed from
46312         modules/unistr/u8-mbtouc.
46313         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
46314         * lib/unistr.h: Update.
46315         * lib/striconveh.c: Update.
46316         * modules/striconveh: Update.
46317         * lib/linebreak.c: Update.
46318         * modules/linebreak: Update.
46319         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
46320         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
46321         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
46322         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
46323         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
46324         * lib/unistr.h: Update.
46325         * lib/striconveh.c: Update.
46326         * modules/striconveh: Update.
46327         * lib/unistr/u8-to-u16.c: Update.
46328         * modules/unistr/u8-to-u16: Update.
46329         * lib/unistr/u8-to-u32.c: Update.
46330         * modules/unistr/u8-to-u32: Update.
46331
46332 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46333
46334         Sync from Libtool.
46335         * lib/argz.c: Do not include strings.h nor memory.h, include
46336         string.h unconditionally.  Patch by Simon Josefsson.
46337
46338 2007-01-27  Bruno Haible  <bruno@clisp.org>
46339
46340         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
46341         from gl_HEADER_STRING_H_BODY.
46342         (gl_HEADER_STRING_H_BODY): Require it.
46343         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
46344         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
46345         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
46346         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
46347         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
46348         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
46349         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
46350         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
46351         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
46352         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
46353         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
46354         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
46355         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
46356         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
46357         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
46358
46359 2007-01-27  Bruno Haible  <bruno@clisp.org>
46360
46361         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
46362         check_PROGRAMS into noinst_PROGRAMS.
46363         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
46364         check_PROGRAMS in this case.
46365         (func_import): Set for_test to false.
46366         (func_create_testdir): Set for_test to true.
46367
46368 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
46369             Bruno Haible  <bruno@clisp.org>
46370
46371         * modules/strcasestr (Files): Remove lib/strcasestr.h.
46372         (Depends-on): Add string.
46373         (Includes): Use <string.h> instead of strcasestr.h.
46374         * modules/string (Makefile.am): Also substitute the value of
46375         REPLACE_STRCASESTR.
46376         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
46377         assume strcasestr is declared in <string.h> not <strings.h>. Also
46378         set REPLACE_STRCASESTR.
46379         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
46380         REPLACE_STRCASESTR.
46381         * lib/strcasestr.h: Remove file.
46382         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
46383         * lib/string_.h (strcasestr): New declaration.
46384
46385 2007-01-27  Bruno Haible  <bruno@clisp.org>
46386
46387         * lib/string_.h: Use 'extern'.
46388
46389 2007-01-27  Jim Meyering  <jim@meyering.net>
46390
46391         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
46392         of set-but-not-used local, "q".
46393
46394         * lib/mempcpy.c: Include <config.h> before <string.h>.
46395         This fixes a compilation error on HP-UX, due to the system's
46396         "restrict"-using mempcpy prototype.
46397
46398 2007-01-26  Bruno Haible  <bruno@clisp.org>
46399
46400         Small optimization.
46401         * lib/javacomp.c: Include c-strstr.h.
46402          (is_envjavac_gcj): Use c_strstr instead of strstr.
46403         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
46404
46405 2007-01-26  Bruno Haible  <bruno@clisp.org>
46406
46407         * MODULES.html.sh (Unicode string functions): Add the new modules.
46408
46409         * modules/uniconv/u32-strconv-to-locale: New file.
46410         * lib/uniconv/u32-strconv-to-locale.c: New file.
46411
46412         * modules/uniconv/u16-strconv-to-locale: New file.
46413         * lib/uniconv/u16-strconv-to-locale.c: New file.
46414
46415         * modules/uniconv/u8-strconv-to-locale: New file.
46416         * lib/uniconv/u8-strconv-to-locale.c: New file.
46417
46418         * modules/uniconv/u32-strconv-from-locale: New file.
46419         * lib/uniconv/u32-strconv-from-locale.c: New file.
46420
46421         * modules/uniconv/u16-strconv-from-locale: New file.
46422         * lib/uniconv/u16-strconv-from-locale.c: New file.
46423
46424         * modules/uniconv/u8-strconv-from-locale: New file.
46425         * lib/uniconv/u8-strconv-from-locale.c: New file.
46426
46427         * modules/uniconv/u32-strconv-to-enc: New file.
46428         * lib/uniconv/u32-strconv-to-enc.c: New file.
46429         * modules/uniconv/u32-strconv-to-enc-tests: New file.
46430         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
46431
46432         * modules/uniconv/u16-strconv-to-enc: New file.
46433         * lib/uniconv/u16-strconv-to-enc.c: New file.
46434         * lib/uniconv/u-strconv-to-enc.h: New file.
46435         * modules/uniconv/u16-strconv-to-enc-tests: New file.
46436         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
46437
46438         * modules/uniconv/u8-strconv-to-enc: New file.
46439         * lib/uniconv/u8-strconv-to-enc.c: New file.
46440         * modules/uniconv/u8-strconv-to-enc-tests: New file.
46441         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
46442
46443         * modules/uniconv/u32-strconv-from-enc: New file.
46444         * lib/uniconv/u32-strconv-from-enc.c: New file.
46445         * modules/uniconv/u32-strconv-from-enc-tests: New file.
46446         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
46447
46448         * modules/uniconv/u16-strconv-from-enc: New file.
46449         * lib/uniconv/u16-strconv-from-enc.c: New file.
46450         * modules/uniconv/u16-strconv-from-enc-tests: New file.
46451         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
46452
46453         * modules/uniconv/u8-strconv-from-enc: New file.
46454         * lib/uniconv/u8-strconv-from-enc.c: New file.
46455         * lib/uniconv/u-strconv-from-enc.h: New file.
46456         * modules/uniconv/u8-strconv-from-enc-tests: New file.
46457         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
46458
46459         * modules/uniconv/u32-conv-from-enc: New file.
46460         * lib/uniconv/u32-conv-from-enc.c: New file.
46461         * modules/uniconv/u32-conv-from-enc-tests: New file.
46462         * tests/uniconv/test-u32-conv-from-enc.c: New file.
46463
46464         * modules/uniconv/u16-conv-from-enc: New file.
46465         * lib/uniconv/u16-conv-from-enc.c: New file.
46466         * lib/uniconv/u-conv-from-enc.h: New file.
46467         * modules/uniconv/u16-conv-from-enc-tests: New file.
46468         * tests/uniconv/test-u16-conv-from-enc.c: New file.
46469
46470         * modules/uniconv/u8-conv-from-enc: New file.
46471         * lib/uniconv/u8-conv-from-enc.c: New file.
46472         * modules/uniconv/u8-conv-from-enc-tests: New file.
46473         * tests/uniconv/test-u8-conv-from-enc.c: New file.
46474
46475         * modules/uniconv/base: New file.
46476         * lib/uniconv.h: New file.
46477
46478 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
46479
46480         * doc/gnulib-tool.texi (Initial import): Update to match current
46481         behavior with strdup module.
46482         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
46483         * lib/memmem.h: Remove; all uses removed.  This is now done
46484         by <string.h>.
46485         * lib/mempcpy.h: Likewise.
46486         * lib/memrchr.h: Likewise.
46487         * lib/stpcpy.h: Likewise.
46488         * lib/stpncpy.h: Likewise.
46489         * lib/strcase.h: Likewise.
46490         * lib/strchrnul.h: Likewise.
46491         * lib/strdup.h: Likewise.
46492         * lib/strndup.h: Likewise.
46493         * lib/strnlen.h: Likewise.
46494         * lib/strpbrk.h: Likewise.
46495         * lib/strsep.h: Likewise.
46496         * lib/strstr.h: Likewise.
46497         * lib/strtok_r.h: Likewise.
46498         * lib/string_.h: New file.
46499         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
46500         Rely on <string.h> instead.
46501         * lib/canon-host.c: Likewise.
46502         * lib/chdir-long.c: Likewise.
46503         * lib/concatpath.c: Likewise.
46504         * lib/exclude.c: Likewise.
46505         * lib/fchdir.c: Likewise.
46506         * lib/getaddrinfo.c: Likewise.
46507         * lib/getcwd.c: Likewise.
46508         * lib/getsubopt.c: Likewise.
46509         * lib/glob.c: Likewise.
46510         * lib/hard-locale.c: Likewise.
46511         * lib/iconvme.c: Likewise.
46512         * lib/javacomp.c: Likewise.
46513         * lib/mempcpy.c: Likewise.
46514         * lib/memrchr.c: Likewise.
46515         * lib/regex_internal.h: Likewise.
46516         * lib/stpncpy.c: Likewise.
46517         * lib/strcasecmp.c: Likewise.
46518         * lib/strchrnul.c: Likewise.
46519         * lib/strdup.c: Likewise.
46520         * lib/striconv.c: Likewise.
46521         * lib/striconveh.c: Likewise.
46522         * lib/striconveha.c: Likewise.
46523         * lib/strncasecmp.c: Likewise.
46524         * lib/strndup.c: Likewise.
46525         * lib/strnlen.c: Likewise.
46526         * lib/strsep.c: Likewise.
46527         * lib/strstr.c: Likewise.
46528         * lib/strtok_r.c: Likewise.
46529         * lib/userspec.c: Likewise.
46530         * lib/w32spawn.h: Likewise.
46531         * lib/xstrndup.c: Likewise.
46532         * lib/mountlist.c (strstr): Remove decl.
46533         * m4/string_h.m4: New file.
46534         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
46535         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
46536         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
46537         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
46538         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
46539         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
46540         Set REPLACE_STRCASECMP if necessary.
46541         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
46542         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
46543         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
46544         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
46545         HAVE_DECL_STRDUP if necessary.
46546         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
46547         since gl_FUNC_STRNDUP does that now.
46548         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
46549         Check for decl here...
46550         (gl_PREREQ_STRNLEN): ... not here.
46551         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
46552         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
46553         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
46554         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
46555         necessary.
46556         * modules/string: New file.
46557         * modules/memmem (Files): Remove special-purpose include file.
46558         (Depends-on): Add string.
46559         (Include): Include <string.h>, not the removed file.
46560         * modules/mempcpy: Likewise.
46561         * modules/memrchr: Likewise.
46562         * modules/stpcpy: Likewise.
46563         * modules/stpncpy: Likewise.
46564         * modules/strcase: Likewise.
46565         * modules/strchrnul: Likewise.
46566         * modules/strdup: Likewise.
46567         * modules/strndup: Likewise.
46568         * modules/strnlen: Likewise.
46569         * modules/strpbrk: Likewise.
46570         * modules/strsep: Likewise.
46571         * modules/strstr: Likewise.
46572         * modules/strtok_r: Likewise.
46573         * tests/test-dirname.c: Don't include "strdup.h", since
46574         <string.h> now suffices.
46575         * tests/test-memmem.c: Don't include "memmem.h", since
46576         <string.h> now suffices.
46577
46578 2007-01-25  Bruno Haible  <bruno@clisp.org>
46579
46580         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
46581         *resultp is 0.
46582
46583         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
46584         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
46585         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
46586         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
46587
46588         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
46589         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
46590         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
46591         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
46592         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
46593         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
46594
46595 2007-01-24  Bruno Haible  <bruno@clisp.org>
46596
46597         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
46598         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
46599         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
46600         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
46601         gl_FUNC_FTS_CORE.
46602         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
46603         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
46604         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
46605         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
46606         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
46607         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
46608         gl_FUNC_FCHOWNAT.
46609         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
46610         gl_FUNC_STRFTIME.
46611         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
46612         Reported by Ralf Wildenhues.
46613
46614 2007-01-24  Bruno Haible  <bruno@clisp.org>
46615
46616         Drop AC_REQUIRE calls that are redundant with the module dependencies.
46617         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
46618         gl_GETADDRINFO.
46619         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
46620         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
46621         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
46622
46623 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
46624
46625         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
46626         Don't use 'exit'; just return from 'main'.
46627         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
46628
46629         * lib/fnmatch_.h: Readjust white space and comments to match
46630         glibc, to avoid spurious diffs.
46631
46632 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
46633
46634         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
46635         2004-12-01 change by Jakub Jelinek, since this code won't compile
46636         if !LIBC.  Problem reported by Bob Proulx.
46637
46638 2007-01-23  Bruno Haible  <bruno@clisp.org>
46639
46640         * lib/striconveh.c: Include c-strcaseeq.h.
46641         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
46642         * modules/striconveh (Depends-on): Add c-strcaseeq.
46643
46644 2007-01-23  Bruno Haible  <bruno@clisp.org>
46645
46646         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
46647
46648         * modules/c-strcaseeq: New file.
46649         * lib/c-strcaseeq.h: New file.
46650
46651         * modules/streq: New file.
46652         * lib/streq.h: New file.
46653
46654 2007-01-23  Bruno Haible  <bruno@clisp.org>
46655
46656         * modules/striconveha-tests: New file.
46657         * tests/test-striconveha.c: New file.
46658
46659         * lib/striconveha.h: Include <stdbool.h>.
46660         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
46661         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
46662         (mem_iconveha_notranslit): Renamed from mem_iconveha.
46663         (mem_iconveha): New function.
46664         (str_iconveha_notranslit): Renamed from str_iconveha.
46665         (str_iconveha): New function.
46666         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
46667         c-strcase.
46668
46669 2007-01-23  Bruno Haible  <bruno@clisp.org>
46670
46671         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
46672         encodings without forgiving before trying any encoding with handler.
46673         (str_iconveha): Try all encodings without forgiving before trying any
46674         encoding with handler.
46675
46676 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
46677
46678         Import the following changes from libc.
46679
46680         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
46681
46682         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
46683
46684         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
46685
46686         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
46687         normal_bracket label.
46688
46689         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
46690
46691         [BZ #361]
46692         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
46693         to normal_bracket after fetching the next character.
46694
46695 2007-01-22  Bruno Haible  <bruno@clisp.org>
46696
46697         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
46698         argument.
46699         * lib/striconveh.c (iconv_carefully_1): New function.
46700         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
46701         argument.
46702         (str_cd_iconveh): Update.
46703         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
46704         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
46705         * tests/test-striconveh.c (MAGIC): New macro.
46706         (new_offsets): New function.
46707         (main): Test call with and without offsets.
46708
46709 2007-01-22  Bruno Haible  <bruno@clisp.org>
46710
46711         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
46712         * modules/sys_select (Makefile.am): Likewise.
46713         * modules/sys_socket (Makefile.am): Likewise.
46714         * modules/sys_time (Makefile.am): Likewise.
46715
46716 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
46717
46718         * modules/gettimeofday (License): Change from GPL to LGPL, since
46719         gettimeofday is a library function.
46720
46721 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46722
46723         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
46724
46725 2007-01-21  Bruno Haible  <bruno@clisp.org>
46726
46727         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
46728
46729 2007-01-21  Bruno Haible  <bruno@clisp.org>
46730
46731         * modules/striconveha: New file.
46732         * lib/striconveha.h: New file.
46733         * lib/striconveha.c: New file.
46734         * MODULES.html.sh (Internationalization functions): Add striconveha.
46735         * lib/striconv.c (str_iconv): Optimize the case of an empty input
46736         string.
46737         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
46738
46739 2007-01-21  Bruno Haible  <bruno@clisp.org>
46740
46741         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
46742         * lib/striconveh.c (str_iconveh): Likewise.
46743
46744 2007-01-21  Bruno Haible  <bruno@clisp.org>
46745
46746         * lib/striconveh.h (mem_iconveh): New declaration.
46747         * lib/striconveh.c (mem_iconveh): New function.
46748         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
46749
46750 2007-01-21  Bruno Haible  <bruno@clisp.org>
46751
46752         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
46753
46754         * lib/striconveh.h (mem_cd_iconveh): Change specification.
46755         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
46756         original result buffer.
46757         (str_cd_iconveh): Update.
46758         * tests/test-striconveh.c (main): Update.
46759
46760         * lib/striconv.h (mem_cd_iconv): Change specification.
46761         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
46762         result buffer.
46763         (str_cd_iconv): Update.
46764         * tests/test-striconv.c (main): Update.
46765
46766 2007-01-21  Bruno Haible  <bruno@clisp.org>
46767
46768         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
46769
46770 2007-01-20  Jim Meyering  <jim@meyering.net>
46771
46772         * lib/userspec.c (parse_with_separator): If a user or group string
46773         starts with "+", skip the corresponding name-to-ID look-up, since
46774         such a look-up must fail: user and group names may not include "+".
46775
46776 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
46777
46778         * lib/poll.c: Include sys/time.h and time.h unconditionally,
46779         since we now assume the sys_time module.
46780         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
46781         check for sys/time.h; no longer needed.
46782         * modules/poll (Depends-on): Depend on sys_time.
46783
46784 2007-01-18  Bruno Haible  <bruno@clisp.org>
46785
46786         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
46787         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
46788
46789         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
46790         gettimeofday.
46791
46792         * tests/test-gettimeofday.c: Include <time.h>.
46793         (dummy): Remove variable.
46794
46795         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
46796         gl_HEADER_SYS_TIME_H.
46797         (gl_HEADER_SYS_TIME_H): New macro.
46798
46799         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
46800         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
46801         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
46802         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
46803         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
46804         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
46805         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
46806         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
46807         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
46808         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
46809         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
46810
46811         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
46812         last change; it caused a compilation error when cross-compiling to
46813         Cygwin.
46814
46815 2007-01-18  Jim Meyering  <jim@meyering.net>
46816
46817         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
46818         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
46819         than the race-prone "test -d sys || mkdir sys".
46820         (configure.ac): Use AC_PROG_MKDIR_P.
46821         * modules/sys_select: Likewise.
46822         * modules/sys_socket: Likewise.
46823         * modules/sys_time: Likewise.
46824
46825 2007-01-18  Eric Blake  <ebb9@byu.net>
46826
46827         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
46828         replace gettimeofday.
46829         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
46830         name, to avoid infinite recursion.
46831
46832 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
46833
46834         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
46835         module sys_time.
46836         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
46837         assume timespec.h defines struct timeval.
46838         * lib/settime.c: Likewise.
46839         * lib/utimens.c: Likewise.
46840         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
46841         since we now assume the gettimeofday module.
46842         * lib/tempname.c (__gen_tempname): Likewise.
46843         * lib/gettimeofday.h: Remove.
46844         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
46845         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
46846         Include <time.h>, for 'time()'.
46847         (localtime_buffer_addr): Also use this workaround if
46848         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
46849         to simplify the uses.  All uses changed.
46850         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
46851         that #undef is inside {}, and 'const' follows type name consistently.
46852         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
46853         (gettimeofday): Do not use the maximum possible value for
46854         tv->tv_usec, since that might break usages other than ls.c.
46855         Instead, we'll leave ls.c alone.  This undoes today's patch
46856         by Bruno.  Add a compile-time warning for 1s-clock resolution;
46857         we've never observed the problem but might as well keep the
46858         canary.
46859         * lib/nanosleep.c: Include timespec.h first, for interface check.
46860         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
46861         now assume the sys_time module.
46862         * lib/tempname.c: Likewise.
46863         * lib/timespec.h: Likewise.
46864         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
46865         needed.
46866         * lib/strftime.c: Likewise.
46867         * lib/timespec.h: Likewise.
46868         * lib/posixtm.c: Include posixtm.h first, for interface check.
46869         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
46870         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
46871         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
46872         * lib/sys_time_.h: New file.
46873         * lib/timespec.h (struct timespec): Use long int, not long.
46874         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
46875         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
46876         Remove obsolescent call to AC_HEADER_TIME.
46877         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
46878         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
46879         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
46880         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
46881         Likewise.
46882         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
46883         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
46884         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
46885         into the sys_time module.  Check for gettimeofday just once.
46886         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
46887         for gettimeofday signature to just check the signature.  Merely
46888         compile it, since linking doesn't test signature.  Improve test for
46889         whether gettimeofday.o is actually needed.
46890         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
46891         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
46892         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
46893         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
46894         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
46895         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
46896         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
46897         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
46898         than worrying about sys/time.h.
46899         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
46900         Don't bother worrying about TIME_WITH_SYS_TIME.
46901         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
46902         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
46903         * m4/sys_time_h.m4: New file.
46904         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
46905         Don't include sys/time.h.  Return from main rather than exiting.
46906         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
46907         all uses changed.
46908         * modules/gethrxtime (Depends-on): Add sys_time.
46909         * modules/gettime (Depends-on): Likewise.
46910         * modules/gettimeofday (Depends-on): Likewise.
46911         * modules/nanosleep (Depends-on): Likewise.
46912         * modules/settime (Depends-on): Likewise.
46913         * modules/tempname (Depends-on): Likewise.
46914         * modules/utimens (Depends-on): Likewise.
46915         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
46916         (Include:) Change back to <sys/time.h>.
46917         (Maintainer:) Add self.
46918         * modules/sys_time: New file.
46919         * modules/tempname (Depends-on): Add gettimeofday.
46920         * tests/test-gettimeofday.c: Include <sys/time.h>
46921         rather than gettimeofday.h.
46922
46923 2007-01-17  Bruno Haible  <bruno@clisp.org>
46924
46925         * gnulib-tool (func_get_license): Revert last patch. Instead, let
46926         the license default to GPL.
46927         (func_create_testdir): Don't complain if a module is LGPL and its
46928         tests module depends on GPLed modules.
46929
46930 2007-01-17  Bruno Haible  <bruno@clisp.org>
46931
46932         * lib/gettimeofday.c (gettimeofday): Add code for the case
46933         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
46934         maximum possible value for tv->tv_usec, rather than the minimum one.
46935
46936 2005-10-08  Martin Lambers  <marlam@marlam.de>
46937 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
46938 2007-01-16  Bruno Haible  <bruno@clisp.org>
46939
46940         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
46941         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
46942         gl_FUNC_GETTIMEOFDAY.
46943         (Include): Add gettimeofday.h.
46944         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
46945         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
46946         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
46947         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
46948         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
46949         * lib/gettimeofday.h: New file.
46950         * lib/gettimeofday.c: Include <sys/timeb.h>.
46951         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
46952         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
46953         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
46954         fall back on time().
46955
46956         * tests/test-gettimeofday.c: New file.
46957         * modules/gettimeofday-tests: New file.
46958
46959 2007-01-16  Eric Blake  <ebb9@byu.net>
46960
46961         * modules/fnmatch (Depends-on): Depend on wchar.
46962         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
46963         * m4/fnmatch.m4: Likewise.
46964         * modules/mbchar (Makefile.am): Assume <wchar.h>.
46965         * m4/mbchar.m4: Likewise.
46966         * modules/mbswidth (Depends-on): Depend on wchar.
46967         * lib/mbswidth.c: Assume <wchar.h>.
46968         * m4/mbswidth.m4: Likewise.
46969         * modules/quotearg (Depends-on): Depend on wchar.
46970         * lib/quotearg.c: Assume <wchar.h>.
46971         * m4/quotearg.m4: Likewise.
46972         * modules/regex (Depends-on): Depend on wchar.
46973         * lib/regex_internal.h: Assume <wchar.h>.
46974         * m4/regex.m4: Likewise.
46975         * modules/stdint (Depends-on): Depend on wchar.
46976         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
46977         * m4/stdint.m4: Likewise.
46978         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
46979         * modules/strftime (Depends-on): Depend on wchar.
46980         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
46981         * modules/strtol (Depends-on): Depend on wchar.
46982         * lib/strtol.c: Assume <wchar.h>.
46983         * modules/wcwidth (Depends-on): Depend on wchar.
46984         * lib/wcwidth.h: Assume <wchar.h>.
46985         * m4/wcwidth.m4: Likewise.
46986
46987 2007-01-16  Bruno Haible  <bruno@clisp.org>
46988
46989         * modules/csharpexec-script: New, created from...
46990         * modules/csharpexec: ... this.
46991
46992 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
46993
46994         * modules/javaexec-script: New, created from...
46995         * modules/javaexec: ... this.
46996
46997 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46998
46999         * modules/poll (Dependencies): Add sys_select.
47000
47001 2007-01-15  Jim Meyering  <jim@meyering.net>
47002
47003         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
47004         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
47005         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
47006         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
47007
47008 2007-01-15  Bruno Haible  <bruno@clisp.org>
47009
47010         * modules/striconveh: New file.
47011         * lib/striconveh.h: New file.
47012         * lib/striconveh.c: New file.
47013         * MODULES.html.sh (Internationalization functions): Add striconveh.
47014
47015         * modules/striconveh-tests: New file.
47016         * tests/test-striconveh.c: New file.
47017
47018 2007-01-15  Bruno Haible  <bruno@clisp.org>
47019
47020         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
47021         not from GNU libiconv or GNU libc.
47022
47023 2007-01-15  Bruno Haible  <bruno@clisp.org>
47024
47025         * doc/gnulib-intro.texi (Copyright): Explain the different license
47026         terms for module descriptions, autoconf macros, tests, documentation.
47027
47028 2007-01-14  Bruno Haible  <bruno@clisp.org>
47029
47030         * modules/striconv-tests: New file.
47031         * tests/test-striconv.c: New file.
47032
47033 2007-01-14  Bruno Haible  <bruno@clisp.org>
47034
47035         * modules/iconv-tests: New file.
47036         * tests/test-iconv.c: New file.
47037
47038 2007-01-14  Bruno Haible  <bruno@clisp.org>
47039
47040         * gnulib-tool (func_get_license): For test modules, use the license of
47041         the main module.
47042
47043 2007-01-14  Bruno Haible  <bruno@clisp.org>
47044
47045         * modules/iconv (Include): Clarify that <iconv.h> can only be included
47046         if iconv is found to exist.
47047
47048 2007-01-14  Bruno Haible  <bruno@clisp.org>
47049
47050         * modules/c-ctype-tests: New file.
47051         * tests/test-c-ctype.c: New file.
47052
47053 2007-01-14  Bruno Haible  <bruno@clisp.org>
47054
47055         * modules/binary-io-tests: New file.
47056         * tests/test-binary-io.sh: New file.
47057         * tests/test-binary-io.c: New file.
47058
47059 2007-01-14  Bruno Haible  <bruno@clisp.org>
47060
47061         * modules/array-oset-tests: New file.
47062         * tests/test-array_oset.c: New file.
47063
47064 2007-01-14  Bruno Haible  <bruno@clisp.org>
47065
47066         * modules/array-list-tests: New file.
47067         * tests/test-array_list.c: New file.
47068
47069 2007-01-14  Bruno Haible  <bruno@clisp.org>
47070
47071         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
47072         and make.
47073         Reported by Simon Josefsson in
47074         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
47075
47076 2007-01-14  Bruno Haible  <bruno@clisp.org>
47077
47078         * modules/allocsa-tests: New file.
47079         * tests/test-allocsa.c: New file.
47080
47081 2007-01-14  Bruno Haible  <bruno@clisp.org>
47082
47083         * modules/fchdir (Depends-on): Add absolute-header.
47084         * modules/unistd (Depends-on): Likewise.
47085
47086 2006-12-30  Bruno Haible  <bruno@clisp.org>
47087
47088         * modules/fchdir: New file.
47089         * modules/unistd (Files): Add lib/unistd_.h.
47090         (Makefile.am): Generate unistd.h from unistd_.h.
47091         * lib/fchdir.c: New file.
47092         * lib/dirent_.h: New file.
47093         * lib/unistd_.h: New file.
47094         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
47095         * m4/fchdir.m4: New file.
47096         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
47097         (gl_HEADER_UNISTD): Invoke it.
47098         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
47099         function.
47100         * lib/backupfile.c (opendir, closedir): Undefine.
47101         * lib/chown.c (open, close): Undefine.
47102         * lib/clean-temp.c (open, close): Undefine.
47103         * lib/copy-file.c (open, close): Undefine.
47104         * lib/execute.c (open, close): Undefine.
47105         * lib/fsusage.c (open, close): Undefine.
47106         * lib/gc-gnulib.c (open, close): Undefine.
47107         * lib/getcwd.c (opendir, closedir): Undefine.
47108         * lib/glob.c (opendir, closedir): Undefine.
47109         * lib/javacomp.c (open, close): Undefine.
47110         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
47111         * lib/openat-proc.c (open, close): Undefine.
47112         * lib/pagealign_alloc.c (open, close): Undefine.
47113         * lib/pipe.c (open, close): Undefine.
47114         * lib/progreloc.c (open, close): Undefine.
47115         * lib/savedir.c (opendir, closedir): Undefine.
47116         * lib/utime.c (open, close): Undefine.
47117         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
47118
47119 2007-01-10  Bruno Haible  <bruno@clisp.org>
47120
47121         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
47122
47123 2007-01-12  Eric Blake  <ebb9@byu.net>
47124
47125         Provide a robust <wchar.h>.  Further simplifications are now
47126         possible in other modules, but not included here.
47127         * modules/wchar: New module.
47128         * m4/wchar.m4: New file.
47129         * lib/wchar_.h: Likewise.
47130         * modules/mbchar (Depends-on): Depend on wchar, as the first use
47131         of the new module.
47132         * MODULES.html.sh (Extended multibyte and wide character utilities):
47133         New section.
47134
47135 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
47136
47137         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
47138         to a reasonable default for memory allocation.
47139         (xreadlink): Don't allocate a huge buffer, to work around a buggy
47140         file system that reports garbage st_size values for symlinks.
47141         Problem reported by Liyang Hu.
47142
47143 2007-01-11  Simon Josefsson  <simon@josefsson.org>
47144
47145         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
47146         Emacs .#* auto-save files).
47147
47148 2007-01-11  Bruno Haible  <bruno@clisp.org>
47149
47150         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
47151         directory.
47152
47153 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
47154
47155         Use @...@ consistently in lib/wctype_.h.
47156         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
47157         on it being set to 1 or 0.
47158         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
47159         go back to AC_SUBSTing it.
47160         * modules/wctype (Makefile.am): Undo previous change.
47161
47162 2007-01-10  Eric Blake  <ebb9@byu.net>
47163
47164         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
47165         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
47166         * modules/wctype (Makefile.am): Likewise.
47167         Reported by Chris McGuire.
47168
47169 2007-01-10  Jim Meyering  <jim@meyering.net>
47170
47171         fts.c: a small readability/maintainability improvement
47172         * lib/fts.c (fts_read): Make this code slightly more readable and
47173         maintainable by hoisting the "sp->fts_cur = p" assignments to
47174         immediately follow the statements that set P.  Derived from
47175         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
47176
47177 2007-01-10  Eric Blake  <ebb9@byu.net>
47178
47179         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
47180         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
47181         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
47182         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
47183         Reported by Chris McGuire.
47184
47185 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47186
47187         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
47188         in sed script.
47189
47190 2007-01-09  Bruno Haible  <bruno@clisp.org>
47191
47192         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
47193         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
47194         variables.
47195         (func_module): Use them.
47196
47197 2007-01-09  Bruno Haible  <bruno@clisp.org>
47198
47199         * modules/unistr/base: New file.
47200         * lib/unistr.h: New file.
47201
47202         * modules/unistr/u8-to-u16: New file.
47203         * lib/unistr/u8-to-u16.c: New file.
47204
47205         * modules/unistr/u8-to-u32: New file.
47206         * lib/unistr/u8-to-u32.c: New file.
47207
47208         * modules/unistr/u16-to-u8: New file.
47209         * lib/unistr/u16-to-u8.c: New file.
47210
47211         * modules/unistr/u16-to-u32: New file.
47212         * lib/unistr/u16-to-u32.c: New file.
47213
47214         * modules/unistr/u32-to-u8: New file.
47215         * lib/unistr/u32-to-u8.c: New file.
47216
47217         * modules/unistr/u32-to-u16: New file.
47218         * lib/unistr/u32-to-u16.c: New file.
47219
47220         * modules/unistr/u8-check: New file.
47221         * modules/unistr/u16-check: New file.
47222         * modules/unistr/u32-check: New file.
47223         * lib/unistr/u8-check.c: New file.
47224         * lib/unistr/u16-check.c: New file.
47225         * lib/unistr/u32-check.c: New file.
47226
47227         * modules/unistr/u8-chr: New file.
47228         * modules/unistr/u16-chr: New file.
47229         * modules/unistr/u32-chr: New file.
47230         * lib/unistr/u8-chr.c: New file.
47231         * lib/unistr/u16-chr.c: New file.
47232         * lib/unistr/u32-chr.c: New file.
47233
47234         * modules/unistr/u8-cmp: New file.
47235         * modules/unistr/u16-cmp: New file.
47236         * modules/unistr/u32-cmp: New file.
47237         * lib/unistr/u8-cmp.c: New file.
47238         * lib/unistr/u16-cmp.c: New file.
47239         * lib/unistr/u32-cmp.c: New file.
47240
47241         * modules/unistr/u8-cpy: New file.
47242         * modules/unistr/u16-cpy: New file.
47243         * modules/unistr/u32-cpy: New file.
47244         * lib/unistr/u8-cpy.c: New file.
47245         * lib/unistr/u16-cpy.c: New file.
47246         * lib/unistr/u32-cpy.c: New file.
47247         * lib/unistr/u-cpy.h: New file.
47248
47249         * modules/unistr/u8-cpy-alloc: New file.
47250         * modules/unistr/u16-cpy-alloc: New file.
47251         * modules/unistr/u32-cpy-alloc: New file.
47252         * lib/unistr/u8-cpy-alloc.c: New file.
47253         * lib/unistr/u16-cpy-alloc.c: New file.
47254         * lib/unistr/u32-cpy-alloc.c: New file.
47255         * lib/unistr/u-cpy-alloc.h: New file.
47256
47257         * modules/unistr/u8-endswith: New file.
47258         * modules/unistr/u16-endswith: New file.
47259         * modules/unistr/u32-endswith: New file.
47260         * lib/unistr/u8-endswith.c: New file.
47261         * lib/unistr/u16-endswith.c: New file.
47262         * lib/unistr/u32-endswith.c: New file.
47263         * lib/unistr/u-endswith.h: New file.
47264
47265         * modules/unistr/u8-mblen: New file.
47266         * modules/unistr/u16-mblen: New file.
47267         * modules/unistr/u32-mblen: New file.
47268         * lib/unistr/u8-mblen.c: New file.
47269         * lib/unistr/u16-mblen.c: New file.
47270         * lib/unistr/u32-mblen.c: New file.
47271
47272         * modules/unistr/u8-mbtouc: New file.
47273         * modules/unistr/u16-mbtouc: New file.
47274         * modules/unistr/u32-mbtouc: New file.
47275         * lib/unistr/u8-mbtouc.c: New file.
47276         * lib/unistr/u16-mbtouc.c: New file.
47277         * lib/unistr/u32-mbtouc.c: New file.
47278
47279         * modules/unistr/u8-mbtouc-safe: New file.
47280         * modules/unistr/u16-mbtouc-safe: New file.
47281         * modules/unistr/u32-mbtouc-safe: New file.
47282         * lib/unistr/u8-mbtouc-safe.c: New file.
47283         * lib/unistr/u16-mbtouc-safe.c: New file.
47284         * lib/unistr/u32-mbtouc-safe.c: New file.
47285
47286         * modules/unistr/u8-move: New file.
47287         * modules/unistr/u16-move: New file.
47288         * modules/unistr/u32-move: New file.
47289         * lib/unistr/u8-move.c: New file.
47290         * lib/unistr/u16-move.c: New file.
47291         * lib/unistr/u32-move.c: New file.
47292         * lib/unistr/u-move.h: New file.
47293
47294         * modules/unistr/u8-next: New file.
47295         * modules/unistr/u16-next: New file.
47296         * modules/unistr/u32-next: New file.
47297         * lib/unistr/u8-next.c: New file.
47298         * lib/unistr/u16-next.c: New file.
47299         * lib/unistr/u32-next.c: New file.
47300
47301         * modules/unistr/u8-prev: New file.
47302         * modules/unistr/u16-prev: New file.
47303         * modules/unistr/u32-prev: New file.
47304         * lib/unistr/u8-prev.c: New file.
47305         * lib/unistr/u16-prev.c: New file.
47306         * lib/unistr/u32-prev.c: New file.
47307
47308         * modules/unistr/u8-set: New file.
47309         * modules/unistr/u16-set: New file.
47310         * modules/unistr/u32-set: New file.
47311         * lib/unistr/u8-set.c: New file.
47312         * lib/unistr/u16-set.c: New file.
47313         * lib/unistr/u32-set.c: New file.
47314         * lib/unistr/u-set.h: New file.
47315
47316         * modules/unistr/u8-startswith: New file.
47317         * modules/unistr/u16-startswith: New file.
47318         * modules/unistr/u32-startswith: New file.
47319         * lib/unistr/u8-startswith.c: New file.
47320         * lib/unistr/u16-startswith.c: New file.
47321         * lib/unistr/u32-startswith.c: New file.
47322         * lib/unistr/u-startswith.h: New file.
47323
47324         * modules/unistr/u8-stpcpy: New file.
47325         * modules/unistr/u16-stpcpy: New file.
47326         * modules/unistr/u32-stpcpy: New file.
47327         * lib/unistr/u8-stpcpy.c: New file.
47328         * lib/unistr/u16-stpcpy.c: New file.
47329         * lib/unistr/u32-stpcpy.c: New file.
47330         * lib/unistr/u-stpcpy.h: New file.
47331
47332         * modules/unistr/u8-stpncpy: New file.
47333         * modules/unistr/u16-stpncpy: New file.
47334         * modules/unistr/u32-stpncpy: New file.
47335         * lib/unistr/u8-stpncpy.c: New file.
47336         * lib/unistr/u16-stpncpy.c: New file.
47337         * lib/unistr/u32-stpncpy.c: New file.
47338         * lib/unistr/u-stpncpy.h: New file.
47339
47340         * modules/unistr/u8-strcat: New file.
47341         * modules/unistr/u16-strcat: New file.
47342         * modules/unistr/u32-strcat: New file.
47343         * lib/unistr/u8-strcat.c: New file.
47344         * lib/unistr/u16-strcat.c: New file.
47345         * lib/unistr/u32-strcat.c: New file.
47346         * lib/unistr/u-strcat.h: New file.
47347
47348         * modules/unistr/u8-strchr: New file.
47349         * modules/unistr/u16-strchr: New file.
47350         * modules/unistr/u32-strchr: New file.
47351         * lib/unistr/u8-strchr.c: New file.
47352         * lib/unistr/u16-strchr.c: New file.
47353         * lib/unistr/u32-strchr.c: New file.
47354
47355         * modules/unistr/u8-strcmp: New file.
47356         * modules/unistr/u16-strcmp: New file.
47357         * modules/unistr/u32-strcmp: New file.
47358         * lib/unistr/u8-strcmp.c: New file.
47359         * lib/unistr/u16-strcmp.c: New file.
47360         * lib/unistr/u32-strcmp.c: New file.
47361
47362         * modules/unistr/u8-strcpy: New file.
47363         * modules/unistr/u16-strcpy: New file.
47364         * modules/unistr/u32-strcpy: New file.
47365         * lib/unistr/u8-strcpy.c: New file.
47366         * lib/unistr/u16-strcpy.c: New file.
47367         * lib/unistr/u32-strcpy.c: New file.
47368         * lib/unistr/u-strcpy.h: New file.
47369
47370         * modules/unistr/u8-strcspn: New file.
47371         * modules/unistr/u16-strcspn: New file.
47372         * modules/unistr/u32-strcspn: New file.
47373         * lib/unistr/u8-strcspn.c: New file.
47374         * lib/unistr/u16-strcspn.c: New file.
47375         * lib/unistr/u32-strcspn.c: New file.
47376         * lib/unistr/u-strcspn.h: New file.
47377
47378         * modules/unistr/u8-strdup: New file.
47379         * modules/unistr/u16-strdup: New file.
47380         * modules/unistr/u32-strdup: New file.
47381         * lib/unistr/u8-strdup.c: New file.
47382         * lib/unistr/u16-strdup.c: New file.
47383         * lib/unistr/u32-strdup.c: New file.
47384         * lib/unistr/u-strdup.h: New file.
47385
47386         * modules/unistr/u8-strlen: New file.
47387         * modules/unistr/u16-strlen: New file.
47388         * modules/unistr/u32-strlen: New file.
47389         * lib/unistr/u8-strlen.c: New file.
47390         * lib/unistr/u16-strlen.c: New file.
47391         * lib/unistr/u32-strlen.c: New file.
47392         * lib/unistr/u-strlen.h: New file.
47393
47394         * modules/unistr/u8-strmblen: New file.
47395         * modules/unistr/u16-strmblen: New file.
47396         * modules/unistr/u32-strmblen: New file.
47397         * lib/unistr/u8-strmblen.c: New file.
47398         * lib/unistr/u16-strmblen.c: New file.
47399         * lib/unistr/u32-strmblen.c: New file.
47400
47401         * modules/unistr/u8-strmbtouc: New file.
47402         * modules/unistr/u16-strmbtouc: New file.
47403         * modules/unistr/u32-strmbtouc: New file.
47404         * lib/unistr/u8-strmbtouc.c: New file.
47405         * lib/unistr/u16-strmbtouc.c: New file.
47406         * lib/unistr/u32-strmbtouc.c: New file.
47407
47408         * modules/unistr/u8-strncat: New file.
47409         * modules/unistr/u16-strncat: New file.
47410         * modules/unistr/u32-strncat: New file.
47411         * lib/unistr/u8-strncat.c: New file.
47412         * lib/unistr/u16-strncat.c: New file.
47413         * lib/unistr/u32-strncat.c: New file.
47414         * lib/unistr/u-strncat.h: New file.
47415
47416         * modules/unistr/u8-strncmp: New file.
47417         * modules/unistr/u16-strncmp: New file.
47418         * modules/unistr/u32-strncmp: New file.
47419         * lib/unistr/u8-strncmp.c: New file.
47420         * lib/unistr/u16-strncmp.c: New file.
47421         * lib/unistr/u32-strncmp.c: New file.
47422
47423         * modules/unistr/u8-strncpy: New file.
47424         * modules/unistr/u16-strncpy: New file.
47425         * modules/unistr/u32-strncpy: New file.
47426         * lib/unistr/u8-strncpy.c: New file.
47427         * lib/unistr/u16-strncpy.c: New file.
47428         * lib/unistr/u32-strncpy.c: New file.
47429         * lib/unistr/u-strncpy.h: New file.
47430
47431         * modules/unistr/u8-strnlen: New file.
47432         * modules/unistr/u16-strnlen: New file.
47433         * modules/unistr/u32-strnlen: New file.
47434         * lib/unistr/u8-strnlen.c: New file.
47435         * lib/unistr/u16-strnlen.c: New file.
47436         * lib/unistr/u32-strnlen.c: New file.
47437         * lib/unistr/u-strnlen.h: New file.
47438
47439         * modules/unistr/u8-strpbrk: New file.
47440         * modules/unistr/u16-strpbrk: New file.
47441         * modules/unistr/u32-strpbrk: New file.
47442         * lib/unistr/u8-strpbrk.c: New file.
47443         * lib/unistr/u16-strpbrk.c: New file.
47444         * lib/unistr/u32-strpbrk.c: New file.
47445         * lib/unistr/u-strpbrk.h: New file.
47446
47447         * modules/unistr/u8-strrchr: New file.
47448         * modules/unistr/u16-strrchr: New file.
47449         * modules/unistr/u32-strrchr: New file.
47450         * lib/unistr/u8-strrchr.c: New file.
47451         * lib/unistr/u16-strrchr.c: New file.
47452         * lib/unistr/u32-strrchr.c: New file.
47453
47454         * modules/unistr/u8-strspn: New file.
47455         * modules/unistr/u16-strspn: New file.
47456         * modules/unistr/u32-strspn: New file.
47457         * lib/unistr/u8-strspn.c: New file.
47458         * lib/unistr/u16-strspn.c: New file.
47459         * lib/unistr/u32-strspn.c: New file.
47460         * lib/unistr/u-strspn.h: New file.
47461
47462         * modules/unistr/u8-strstr: New file.
47463         * modules/unistr/u16-strstr: New file.
47464         * modules/unistr/u32-strstr: New file.
47465         * lib/unistr/u8-strstr.c: New file.
47466         * lib/unistr/u16-strstr.c: New file.
47467         * lib/unistr/u32-strstr.c: New file.
47468         * lib/unistr/u-strstr.h: New file.
47469
47470         * modules/unistr/u8-strtok: New file.
47471         * modules/unistr/u16-strtok: New file.
47472         * modules/unistr/u32-strtok: New file.
47473         * lib/unistr/u8-strtok.c: New file.
47474         * lib/unistr/u16-strtok.c: New file.
47475         * lib/unistr/u32-strtok.c: New file.
47476         * lib/unistr/u-strtok.h: New file.
47477
47478         * modules/unistr/u8-uctomb: New file.
47479         * modules/unistr/u16-uctomb: New file.
47480         * modules/unistr/u32-uctomb: New file.
47481         * lib/unistr/u8-uctomb.c: New file.
47482         * lib/unistr/u16-uctomb.c: New file.
47483         * lib/unistr/u32-uctomb.c: New file.
47484
47485         * MODULES.html.sh (Unicode string functions): Add the new modules.
47486
47487 2007-01-08  Bruno Haible  <bruno@clisp.org>
47488
47489         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
47490         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
47491         subdirectories.
47492
47493 2007-01-08  Karl Berry  <karl@gnu.org>
47494
47495         * doc/error.texi: mention that main() fns must set program_name
47496         when progname is used.
47497
47498 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
47499
47500         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
47501         WCTYPE_H is empty, for the benefit of builds from non-distclean
47502         directories.  Problem reported by Eric Blake in
47503         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
47504
47505 2007-01-08  Bruno Haible  <bruno@clisp.org>
47506
47507         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
47508         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
47509         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
47510         PROVIDE_CANONICALIZE_FILENAME_MODE.
47511         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
47512
47513 2007-01-08  Bruno Haible  <bruno@clisp.org>
47514
47515         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
47516         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
47517         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
47518         * lib/fts.c: Likewise.
47519         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
47520
47521 2006-12-25  Bruno Haible  <bruno@clisp.org>
47522
47523         * modules/utf8-ucs4-safe: New file.
47524         * lib/utf8-ucs4-safe.h: New file.
47525         * lib/unistr/utf8-ucs4-safe.c: New file.
47526
47527         * modules/utf16-ucs4-safe: New file.
47528         * lib/utf16-ucs4-safe.h: New file.
47529         * lib/unistr/utf16-ucs4-safe.c: New file.
47530
47531         * MODULES.html.sh (Unicode string functions): Add the new modules.
47532
47533 2007-01-08  Bruno Haible  <bruno@clisp.org>
47534
47535         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
47536         (Depends-on): Add unitypes.
47537         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
47538         (u8_mbtouc_aux): Move out to separate file.
47539         (u8_mbtouc): Use ucs4_t, uint8_t types.
47540         * lib/unistr/utf8-ucs4.c: New file.
47541
47542         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
47543         (Depends-on): Add unitypes.
47544         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
47545         (u16_mbtouc_aux): Move out to separate file.
47546         (u16_mbtouc): Use ucs4_t, uint16_t types.
47547         * lib/unistr/utf16-ucs4.c: New file.
47548
47549         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
47550         (Depends-on): Add unitypes.
47551         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
47552         (u8_uctomb_aux): Move out to separate file.
47553         (u8_uctomb): Use ucs4_t, uint8_t types.
47554         * lib/unistr/ucs4-utf8.c: New file.
47555
47556         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
47557         (Depends-on): Add unitypes.
47558         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
47559         (u16_uctomb_aux): Move out to separate file.
47560         (u16_uctomb): Use ucs4_t, uint16_t types.
47561         * lib/unistr/ucs4-utf16.c: New file.
47562
47563 2006-12-25  Bruno Haible  <bruno@clisp.org>
47564
47565         * modules/unitypes: New file.
47566         * lib/unitypes.h: New file.
47567         * MODULES.html.sh (func_all_modules): New section "Unicode string
47568         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
47569         this section. Add unitypes.
47570
47571 2007-01-08  Bruno Haible  <bruno@clisp.org>
47572
47573         Avoid variable names that conflict with those from libtool.
47574         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
47575         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
47576         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
47577         library_names_spec to acl_library_names_spec, hardcode_* to
47578         acl_hardcode_*.
47579         Reported by Ralf Wildenhues.
47580
47581 2007-01-08  Bruno Haible  <bruno@clisp.org>
47582
47583         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
47584         definition.
47585         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
47586         definition.
47587         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
47588         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
47589         definition.
47590         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
47591         definition.
47592         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
47593         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
47594         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
47595         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
47596         definition.
47597         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
47598         definition.
47599         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
47600         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
47601         GC_USE_<algorithm>.
47602         * lib/gc-libgcrypt.c: Likewise.
47603         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
47604         * modules/gc-arctwo (configure.ac): Likewise.
47605         * modules/gc-des (configure.ac): Likewise.
47606         * modules/gc-hmac-md5 (configure.ac): Likewise.
47607         * modules/gc-hmac-sha1 (configure.ac): Likewise.
47608         * modules/gc-md2 (configure.ac): Likewise.
47609         * modules/gc-md4 (configure.ac): Likewise.
47610         * modules/gc-md5 (configure.ac): Likewise.
47611         * modules/gc-random (configure.ac): Likewise.
47612         * modules/gc-rijndael (configure.ac): Likewise.
47613         * modules/gc-sha1 (configure.ac): Likewise.
47614
47615 2007-01-08  Bruno Haible  <bruno@clisp.org>
47616
47617         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
47618         macro definition.
47619         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
47620         definition.
47621         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
47622         definition.
47623         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
47624         * modules/fcntl-safer (configure.ac): Likewise.
47625         * modules/fopen-safer (configure.ac): Likewise.
47626         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
47627         GNULIB_FWRITEERROR macro definition.
47628
47629 2007-01-08  Bruno Haible  <bruno@clisp.org>
47630
47631         * m4/gnulib-common.m4: New file.
47632         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
47633         (func_get_filelist): Add m4/gnulib-common.m4.
47634
47635 2007-01-08  Bruno Haible  <bruno@clisp.org>
47636
47637         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
47638         command.
47639
47640 2007-01-08  Jim Meyering  <jim@meyering.net>
47641
47642         Use a more robust test for a "can't happen" condition.
47643         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
47644         narrowed the st_size value.  Presuming the "can't happen" condition
47645         is true, that narrowing could conceivably convert an invalid st_size
47646         value into a valid one.  Instead, use a change based on Matthew
47647         Woehlke's original patch.
47648
47649         Slight readability improvement: use an assert-like macro
47650         in place of literal "abort ()" uses.
47651         * lib/fts.c (fts_assert): Define.
47652         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
47653         Use this macro instead of a bare 'abort'.
47654
47655 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
47656
47657         Don't worry about using IRIX 5.3's wctype.h broken definitions;
47658         simply work around them.
47659         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
47660         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
47661         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
47662         declaring.
47663         Don't bother to define as macros, since the standard doesn't require it.
47664         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
47665         longer worry about IRIX 5.3.
47666         (HAVE_WCTYPE_CTMP_BUG): Remove.
47667
47668 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
47669
47670         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
47671         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
47672         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
47673         Problems reported by Georg Schwarz for IRIX 5.3.
47674
47675         * gnulib-tool (autoconf_minversion): Take the maximum version number
47676         found, not the minimum.  Problem reported by James Youngman.
47677
47678 2007-01-03  Karl Berry  <karl@gnu.org>
47679
47680         * doc/error.texi: new file, explaining interaction with progname.
47681         * doc/gnulib.texi: include it.  Update copyright.
47682
47683 2007-01-03  Simon Josefsson  <simon@josefsson.org>
47684
47685         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
47686         AC_CANONICAL_HOST, to improve autobuild outputs.
47687
47688 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
47689             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
47690
47691         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
47692         sockets, server sockets, and other file descriptors.  Count errors
47693         to compute the return value.  Reorder the code a bit to be easier
47694         to follow.  Don't set event bits that were not requested (except
47695         POLLERR and POLLHUP).
47696
47697 2007-01-01  Bruno Haible  <bruno@clisp.org>
47698
47699         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
47700
47701 2007-01-03  Jim Meyering  <jim@meyering.net>
47702
47703         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
47704
47705 2007-01-02  Bruno Haible  <bruno@clisp.org>
47706
47707         * modules/settime (Include): Require timespec.h.
47708         * modules/nanosleep (Include): Likewise.
47709
47710 2007-01-01  Bruno Haible  <bruno@clisp.org>
47711
47712         * gnulib-tool (func_emit_copyright_notice): Bump year.
47713         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
47714
47715 2007-01-01  Bruno Haible  <bruno@clisp.org>
47716
47717         Improve support for OpenBSD.
47718         * build-aux/config.rpath (libname_spec): Export.
47719         (library_names_spec): New variable. Export.
47720         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
47721         library_names_spec from the config.rpath output. Locate shared library
47722         through the name pattern in library_names_spec.
47723
47724 2007-01-01  Eric Blake  <ebb9@byu.net>
47725
47726         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
47727
47728 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
47729
47730         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
47731         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
47732         assume the C locale, and avoid an "eval" that could cause trouble.
47733         Problem with SORT reported by Bob Proulx.
47734
47735         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
47736         Define.  Trivial patch from Henning Nielsen Lund, originally
47737         sent to bug-grep@gnu.org today.
47738
47739 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
47740
47741         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
47742         struct stat.  Problem reported by Henning Nielsen Lund.
47743         * lib/acl.c: Include acl.h first, to check interface.  Don't
47744         bother to include sys/types.h and sys/stat.h again.
47745
47746 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
47747
47748         Import the following change from libc; problem reported by
47749         Sven Verdoolaege.
47750
47751         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
47752
47753         [BZ #1373]
47754         * lib/argp.h: Remove __NTH for __argp_usage inline function.
47755
47756 2006-12-28  Jim Meyering  <jim@meyering.net>
47757
47758         * build-aux/announce-gen: Do not assume that the package
47759         builds any of tar.gz, tar.bz2, and .xdelta files.
47760         Suggestion from Simon Josefsson.
47761
47762 2006-12-28  Simon Josefsson  <simon@josefsson.org>
47763
47764         * modules/announce-gen: New file.
47765
47766 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
47767
47768         * lib/mbchar.h: Just include <wctype.h>; the wctype module
47769         handles its gotchas now.
47770         * lib/mbswidth.c: Likewise.
47771         * lib/wcwidth.h: Likewise.
47772         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
47773         and iswcntrl; the wctype module does this stuff now.
47774         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
47775         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
47776         * modules/mbchar (Depends-on): Add wctype.
47777         * modules/mbswidth (Depends-on): Likewise.
47778         * modules/wcwidth (Depends-on): Likewise.
47779
47780 2006-12-27  Eric Blake  <ebb9@byu.net>
47781
47782         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
47783         module uses more than what <wctype.h> is required to provide.
47784
47785 2006-12-26  Eric Blake  <ebb9@byu.net>
47786
47787         * gnulib-tool (sed_extract_prog): Avoid space-tab.
47788
47789 2006-12-26  Eric Blake  <ebb9@byu.net>
47790
47791         * modules/absolute-header: New module.
47792         * modules/fcntl (Depends-on): Depend on it.
47793         * modules/inttypes (Depends-on): Likewise.
47794         * modules/stdint (Depends-on): Likewise.
47795         * modules/sys_stat (Depends-on): Likewise.
47796         * modules/wctype (Depends-on): Likewise.
47797         * MODULES.html.sh (Support for building libraries and
47798         executables): Document it.
47799
47800 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
47801
47802         * gnulib-tool (SED): Remove, undoing previous change.
47803         The problem was that it broke coreutils on Solaris, because
47804         "sed --posix" leaked into a makefile.
47805         (sed): New alias, if 'alias' and GNU sed.
47806
47807 2006-12-24  Jim Meyering  <jim@meyering.net>
47808
47809         Work around an fchownat bug in glibc-2.4:
47810         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
47811         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
47812         in spite of the -P option.
47813         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
47814         New macros.
47815         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
47816         * modules/openat (Files): Add lib/fchownat.c.
47817         * lib/openat.c (fchownat): Don't define here.  Move to...
47818         * lib/fchownat.c: ...this new file.
47819
47820 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
47821
47822         Fix bug reported by Bruno Haible in
47823         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
47824         where quotearg.c didn't compile on Mac OS X 10.2 because it
47825         lacks <wchar.h> and wint_t.
47826         * lib/wctype_.h (__wctype_wint_t): New type.
47827         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
47828         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
47829         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
47830         Arg is now of type __wctype_wint_t, not wint_t.
47831         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
47832         substitute HAVE_WINT_T.
47833         * modules/wctype (Files): Add m4/wint_t.m4.
47834         (wctype.h): Substitute HAVE_WINT_T.
47835
47836 2006-12-23  Bruno Haible  <bruno@clisp.org>
47837
47838         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
47839
47840 2006-12-23  Bruno Haible  <bruno@clisp.org>
47841
47842         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
47843         S_ISLNK.
47844         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
47845         mingw.
47846
47847 2006-12-22  Bruno Haible  <bruno@clisp.org>
47848
47849         * lib/copy-file.c: Include acl.h.
47850         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
47851         Close the file descriptors only after being done with copy_acl.
47852         * modules/copy-file (Depends-on): Add acl.
47853
47854 2006-12-22  Bruno Haible  <bruno@clisp.org>
47855
47856         * gnulib-tool (SED): New variable.
47857         Use $SED instead of sed everywhere.
47858
47859 2006-12-22  Bruno Haible  <bruno@clisp.org>
47860
47861         * modules/no-c++: New file.
47862         * m4/no-c++.m4: New file.
47863         * MODULES.html.sh (Support for building libraries and executables):
47864         Add no-c++.
47865
47866 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
47867
47868         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
47869         Include <limits.h>, and use its INT_MAX to rewrite the
47870         j loop so that it does not overflow 'int'.  Problem reported by
47871         Ralf Wildenhues in
47872         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
47873         Play it safe by shifting left by 1 rather than multiplying by 2,
47874         as GCC is less likely to optimize this away when the value
47875         is signed (when it assumes overflow leads to undefined behavior).
47876         Also, don't assume time_t uses two's complement.
47877
47878 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
47879
47880         * MODULES.html.sh: New module wctype.
47881         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
47882         * lib/fnmatch.c: Don't bother to include <wchar.h> before
47883         <wctype.h>, since the new wctype module should fix this.
47884         * lib/quotearg.c: Include <wctype.h> unconditionally, since
47885         the wctype module should arrange for it.
47886         * lib/regex_internal.h: Likewise.
47887         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
47888         since the wctype module should handle this now.
47889         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
47890         * modules/fnmatch (Depends-on): Add wctype.
47891         * modules/quotearg (Depends-on): Likewise.
47892         * modules/regex (Depends-on): Likewise.
47893
47894 2006-12-19  Bruno Haible  <bruno@clisp.org>
47895
47896         * lib/strdup.h [C++]: Wrap definitions in extern "C".
47897         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
47898
47899 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47900
47901         * modules/savewd (Depends-on): Fix dependency on fcntl.
47902
47903 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
47904
47905         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
47906         conforms to C99, rather than relying on the user's environment
47907         setting of STDINT_H.
47908
47909 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
47910         and Eric Blake  <ebb9@byu.net>
47911
47912         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
47913         This is more consistent with the other defines here.
47914         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
47915         Port to z/OS.  Problem reported by Paul Gilmartin.
47916         Change local vars to use gl_ prefix rather than ac_.
47917         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
47918         with other defines.
47919         * modules/double-slash-root: New module.
47920         * modules/dirname (Files): Remove m4/double-slash-root.m4.
47921         (Depends-on): Add double-slash-root.
47922         * MODULES.html.sh (File system functions): Mention new module.
47923
47924 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
47925
47926         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
47927         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
47928         This is for the benefit of gzip, which doesn't do i18n.
47929
47930 2006-12-12  Jim Meyering  <jim@meyering.net>
47931
47932         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
47933         Reported by Andreas Schwab <schwab@suse.de>.
47934
47935 2006-12-12  Bruno Haible  <bruno@clisp.org>
47936
47937         Merge these changes.
47938         2006-09-05  Bruno Haible  <bruno@clisp.org>
47939         * lib/iconvme.c (iconv_string): No need to save and restore errno when
47940         iconv_alloc succeeded.
47941         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
47942         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
47943         test for " && dest " at the end - dest is always != NULL there. Call
47944         iconv with 4xNULL arguments initially, to reset the state. Call iconv
47945         with 2xNULL arguments, also to flush the state storage. Handle the
47946         IRIX iconv behaviour. Realloc the final result, to throw away unused
47947         memory.
47948
47949 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
47950
47951         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
47952         and fchmodat unconditionally, since glibc 2.4 has them.
47953         Problem reported by Arkadiusz Miskiewicz.
47954
47955 2006-12-10  Bruno Haible  <bruno@clisp.org>
47956
47957         * gnulib-tool (func_import): Show the include files only for those
47958         modules that are copied and specified.
47959         Reported by Karl Berry.
47960
47961 2006-12-08  Jim Meyering  <jim@meyering.net>
47962
47963         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
47964         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
47965
47966         * build-aux/announce-gen: Add two new options, both optional:
47967         --bootstrap-tools=TOOL_LIST
47968               a comma-separated list of tools, e.g.,
47969               autoconf,automake,bison,gnulib
47970         --gnulib-snapshot-date=DATE
47971               if gnulib is in the bootstrap tool list,
47972               then report this as the snapshot date.
47973               If not specified, use the current date/time.
47974               If you specify a date here, be sure it's UTC.
47975
47976 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47977
47978         * tests/test-argp-2.sh: Fix test to match actual output.
47979         (func_compare): Fix sed script to be portable.
47980
47981 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
47982
47983         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
47984         workaround for this case.  It is not autoconfigured now; offhand
47985         it's hard to see how to autoconfigure it.
47986
47987 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
47988
47989         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
47990         a directory that is about to be chowned.  Such a directory's
47991         initial file permissions should permit the owner only and this
47992         should not be changed until after the chown, since the group and
47993         other bits would be incorrect if they granted permission before
47994         the chown.
47995
47996         Fix porting problem for iswctype reported by Georg Schwarz in:
47997         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
47998         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
47999         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
48000         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
48001         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
48002
48003 2006-12-03  Jim Meyering  <jim@meyering.net>
48004
48005         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
48006         p->fts_statp may not yet be defined.
48007         (fts_read): Instead, set it in the caller, once p->fts_statp is
48008         sure to be defined, and corresponds to a top-level directory.
48009         This bug made du -x fail.  Here's the coreutils test case:
48010         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
48011         Reported by Mike Frysinger.
48012
48013 2006-12-01  Jim Meyering  <jim@meyering.net>
48014
48015         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
48016         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
48017         Reported by Simon Josefsson.
48018
48019 2006-11-30  Jim Meyering  <jim@meyering.net>
48020
48021         * m4/warning.m4: Use the all-permissive copyright notice
48022         recommended by RMS (rather than LGPL).
48023         * m4/vararrays.m4: Likewise.
48024         * m4/flexmember.m4: Likewise.
48025
48026 2006-11-29  Bruno Haible  <bruno@clisp.org>
48027
48028         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
48029         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
48030         using +=.
48031         Reported by Simon Josefsson <simon@josefsson.org>.
48032
48033 2006-11-28  James Youngman <jay@gnu.org>
48034
48035         * README: Advise users that they might find the bug-gnulib@gnu.org
48036         and autotools-announce@gnu.org mailing lists useful.
48037
48038 2006-11-28  Bruno Haible  <bruno@clisp.org>
48039
48040         * m4/ptrdiff_max.m4: Remove file.
48041
48042 2006-11-21  Bruno Haible  <bruno@clisp.org>
48043
48044         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
48045         _AC_COMPUTE_INT.
48046         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
48047         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
48048         _AC_COMPUTE_INT.
48049         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
48050         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
48051         _AC_COMPUTE_INT.
48052         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
48053
48054 2006-11-28  Jim Meyering  <jim@meyering.net>
48055
48056         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
48057         warning from "gcc -Wshadow" about shadowing the builtin.
48058
48059 2006-11-27  Bruno Haible  <bruno@clisp.org>
48060
48061         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
48062         _AC_COMPUTE_INT.
48063         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
48064
48065 2006-11-27  Bruno Haible  <bruno@clisp.org>
48066             Paul Eggert  <eggert@cs.ucla.edu>
48067
48068         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
48069
48070 2006-11-26  Bruno Haible  <bruno@clisp.org>
48071
48072         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
48073         noinst_LTLIBRARIES.
48074
48075 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
48076             Bruno Haible  <bruno@clisp.org>
48077
48078         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
48079         if compiling with "gcc -ansi".
48080
48081 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
48082
48083         Fix some incompatibilities with gcc -ansi -pedantic.
48084         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
48085         if compiling pedantically with GCC, unless it's C99 or later.
48086         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
48087         it mishandles gcc -ansi -pedantic as well.
48088         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
48089         if gcc -pedantic.
48090         * lib/regexec.c (check_node_accept_bytes): Don't use auto
48091         initializers for struct if -pedantic, unless it's C99 or later.
48092
48093 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
48094
48095         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
48096         Don't close an fd more than once. Identical atimes indicate
48097         success, not failure.
48098
48099 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
48100
48101         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
48102
48103 2006-11-23  Jim Meyering  <jim@meyering.net>
48104
48105         * build-aux/announce-gen: New file.  From coreutils.
48106
48107 2006-11-22  Jim Meyering  <jim@meyering.net>
48108
48109         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
48110         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
48111         (fts_read): Use a temporary to narrow the overused st_size member
48112         before using it in a switch statement.  Reported by Matthew Woehlke.
48113
48114         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
48115         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
48116
48117 2006-11-20  Bruno Haible  <bruno@clisp.org>
48118
48119         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
48120         changequote instead of pairs of brackets.
48121         Reported by Andreas Schwab <schwab@suse.de>.
48122
48123 2006-11-21  Jim Meyering  <jim@meyering.net>
48124
48125         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
48126         so as to remain compatible with older compilers.
48127         Patch from Michael Deutschmann.
48128
48129 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
48130
48131         * MODULES.html.sh (File system functions): Add openat.
48132
48133         * lib/openat.h (rpl_fstatat): New macro, if
48134         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
48135         (fstatat): Define to rpl_fstatat under the same conditions,
48136         unless COMPILING_FSTATAT.
48137         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
48138         seems to have the bug.
48139         * lib/fstatat.c: New file.
48140         * modules/openat (Files): Add it.
48141
48142 2006-11-20  Bruno Haible  <bruno@clisp.org>
48143
48144         * Makefile: New file.
48145
48146 2006-11-20  Jim Meyering  <jim@meyering.net>
48147
48148         The beginnings of syntax-related checks for gnulib.
48149         * lib/Makefile: New file.
48150         * lib/t-idcache: New script.  Ensure that the two halves of
48151         idcache.c stay in sync.
48152
48153         * lib/idcache.c: Adjust comments in user- and group- portions to
48154         be more accurate, and to be consistent with one another.
48155
48156 2006-11-20  Jim Meyering  <jim@meyering.net>
48157
48158         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
48159         continue using the flexible array member (thus, this module performs
48160         half as many malloc calls), with the addition that...
48161         (getgroup, getuser): Consistently record a non-match via an empty
48162         "name" string, and map an empty string match to a NULL return value.
48163         * modules/idcache (Depends-on): Re-add flexmember.
48164
48165         * lib/idcache.c (getuser): Remove all uses of the register keyword.
48166         (getuidbyname, getgroup, getgidbyname): Likewise.
48167
48168         Use cleaner syntax: NULL rather than 0.
48169         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
48170
48171 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
48172
48173         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
48174         It mishandled the case where the group was missing.
48175         Problem reported by Greg Schafer.
48176         * modules/idcache: Likewise.
48177
48178 2006-11-18  Jim Meyering  <jim@meyering.net>
48179
48180         * check-module (%exempt_header): Add exception for some
48181         conditionally-included headers.
48182
48183         * modules/i-ring (Depends-on): Add verify.
48184         (License): Change to LGPL.
48185
48186 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
48187
48188         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
48189         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
48190         and inttostr.h.  Use snprintf rather than uinttostr, so that
48191         LGPLed code doesn't depend on GPLed.
48192
48193 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
48194
48195         * modules/inline (License): Change from GPL to LGPL.
48196
48197 2006-11-17  Jim Meyering  <jim@meyering.net>
48198
48199         * modules/d-type (License): Switch to LGPL.
48200
48201 2006-11-15  Bruno Haible  <bruno@clisp.org>
48202
48203         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
48204
48205 2006-11-15  Eric Blake  <ebb9@byu.net>
48206
48207         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
48208         the module dependency.
48209
48210 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48211             Bruno Haible  <bruno@clisp.org>
48212
48213         * gnulib-tool (func_create_testdir): Add license consistency check.
48214
48215 2006-11-15  Eric Blake  <ebb9@byu.net>
48216
48217         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
48218         random "(cached)" in configure output.
48219
48220 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48221
48222         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
48223         test for conforming inttypes.h is both announced and cached.
48224
48225         * MODULES.html.sh (seen_modules, seen_files): New variables.
48226         (func_module): Rewrite to use a few less gnulib-tool and sed
48227         invocations.  Avoid a couple of quadratic algorithms for ...
48228         (missed_modules, missed_files): ... these, with ...
48229         (func_append, func_tmpdir): ... these new functions, from
48230         gnulib-tool.  Analogously, install traps for cleanup.
48231
48232         * tests/test-gc.c (main): Remove unused variables.
48233         * tests/test-read-file.c: Include stdlib.h, for 'free'.
48234
48235 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
48236
48237         * modules/inttostr (License): Change to LGPL.
48238
48239 2006-11-14  Eric Blake  <ebb9@byu.net>
48240
48241         * modules/tempname (License): Change to LGPL.
48242
48243 2006-11-14  Eric Blake  <ebb9@byu.net>
48244
48245         * doc/functions.texi (Function Portability): *printf functions on
48246         Cygwin now understand all POSIX size specifiers.
48247
48248 2006-11-14  Bruno Haible  <bruno@clisp.org>
48249
48250         * modules/c-ctype (License): Change to LGPL.
48251
48252 2006-11-12  Bruno Haible  <bruno@clisp.org>
48253
48254         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
48255         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
48256         for GNOME libraries, for which the include files are installed in
48257         subdirectories of $prefix/include.
48258
48259 2006-11-12  Bruno Haible  <bruno@clisp.org>
48260
48261         * m4/lib-link.m4: Require at least autoconf-2.54.
48262         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
48263         name to underscores for the --with option.
48264
48265 2006-11-13  Bruno Haible  <bruno@clisp.org>
48266
48267         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
48268         the tests directory.
48269         Reported by Ralf Wildenhues.
48270
48271 2006-11-13  Bruno Haible  <bruno@clisp.org>
48272
48273         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
48274         (func_emit_initmacro_end): Undo the override here.
48275         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
48276         Works around the famous automake error in coreutils.
48277
48278 2006-11-13  Eric Blake  <ebb9@byu.net>
48279
48280         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
48281         element, not its node.
48282
48283 2006-11-12  Bruno Haible  <bruno@clisp.org>
48284
48285         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
48286         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
48287
48288 2006-11-12  Bruno Haible  <bruno@clisp.org>
48289
48290         * gnulib-tool: New option --local-symlink.
48291         (func_usage): Document it.
48292         (lsymbolic): New variable.
48293         (func_import, func_create_testdir): If --symlink was not specified,
48294         test whether --local-symlink was specified and the file comes from
48295         the local_gnulib_dir.
48296
48297 2006-11-12  Bruno Haible  <bruno@clisp.org>
48298
48299         * gnulib-tool (func_ln): New function.
48300         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
48301
48302 2006-11-12  Bruno Haible  <bruno@clisp.org>
48303
48304         Finish support for source files in subdirectories.
48305         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
48306         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
48307         AUTOMAKE_OPTIONS.
48308         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
48309
48310 2006-11-12  Bruno Haible  <bruno@clisp.org>
48311
48312         * gnulib-tool (func_get_automake_snippet): Synthesize also an
48313         EXTRA_lib_SOURCES augmentation.
48314         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
48315
48316 2006-11-12  Jim Meyering  <jim@meyering.net>
48317
48318         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
48319         file descriptors.  This also averts a failure on systems with
48320         native openat support when a traversed directory lacks "x" access.
48321         * lib/fts_.h: Include "i-ring.h"
48322         (struct FTS) [fts_fd_ring]: New member.
48323         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
48324         (FCHDIR): Add parentheses.
48325         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
48326         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
48327         When descending, rather than simply closing the previous
48328         fts_cwd_fd value, push that file descriptor onto the ring.
48329         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
48330         (fts_open): Initialize the new fd_ring member.
48331         (fts_close): Clear the ring.
48332         (fts_safe_changedir): When possible, use our new fd_ring to skip
48333         the diropen and fstat and dev/ino comparison that would normally
48334         accompany a virtual `chdir ("..")'.
48335
48336         * modules/fts (Depends-on): Add i-ring.
48337         * modules/i-ring: New module.
48338         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
48339         * m4/i-ring.m4: New file.
48340
48341 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48342
48343         * gnulib-tool (func_create_testdir): Fix replacement of
48344         `build-aux' in configure.ac.  Run autotools in gltests
48345         subdirectory.
48346         (func_create_testdir, func_create_megatestdir, test): There is
48347         no need for '--force' in most autotool invocations in a new
48348         tree.  Actually fail the whole test if any of the tools, or the
48349         configure or make stages fail.
48350
48351         Sync from Automake.
48352         * build-aux/gnupload: Revert last change.  Add pointer to upload
48353         instructions of the GNU Maintenance Instructions.
48354         Suggestion by Karl Berry.
48355
48356 2006-11-10  Jim Meyering  <jim@meyering.net>
48357
48358         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
48359
48360 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
48361
48362         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
48363         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
48364         (bind_textdomain_codeset) [! ENABLE_NLS]:
48365         Evaluate all the arguments.  That way, callers get compatible behavior
48366         if the arguments have side effects.  Also, it avoids some GCC
48367         diagnostics in some cases; Joel E. Denny reported problems when Bison
48368         was configured with --enable-gcc-warnigs.
48369
48370 2006-11-10  Jim Meyering  <jim@meyering.net>
48371
48372         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
48373         relevant options in CFLAGS (like -O, -fno-inline) are taken into
48374         account.
48375
48376 2006-11-10  Jim Meyering  <jim@meyering.net>
48377
48378         * modules/inline: New file/module.
48379         * modules/xalloc (Files): Remove m4/inline.m4.
48380         (Depends-on): Add inline, instead.
48381         * modules/oset: Likewise.
48382         * modules/list: Likewise.
48383
48384 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
48385
48386         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
48387         Problem reported by Matthew Woehlke.
48388
48389 2006-11-09  Bruno Haible  <bruno@clisp.org>
48390
48391         * lib/tempname.c (gen_tempname): Remove variant that invokes
48392         __gen_tempname.
48393         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
48394         __gen_tempname.
48395
48396 2006-11-08  Bruno Haible  <bruno@clisp.org>
48397
48398         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
48399         to 'yes' instead of 'cross-compiling'.
48400
48401 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
48402
48403         * lib/quotearg.h (quotearg_free): New decl.
48404         * lib/quotearg.c (quotearg_free): New function.
48405         (slot0, nslots, slotvec0, slotvec):
48406         Now file-scope so that quotearg_free can get at them.
48407
48408 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48409
48410         Sync from Automake.
48411         * build-aux/gnupload: Add missing 'gnu' to example URL.
48412         Report by Karl Berry.
48413
48414 2006-11-08  Bruno Haible  <bruno@clisp.org>
48415
48416         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
48417         Suggested by Paul Eggert.
48418
48419 2006-11-08  Jim Meyering  <jim@meyering.net>
48420
48421         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
48422         It's already included if !_LIBC.
48423         (fts_safe_changedir): Add a comment.
48424
48425 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
48426
48427         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
48428         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
48429         Matthew Woehlke.
48430
48431         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
48432         definitions up, to avoid colliding with change below.
48433         (static_inline) [HAVE_INLINE]: New macro.
48434         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
48435         Provide extern decls when !HAVE_INLINE.  Do not define unless
48436         static_inline is defined, either by us or by xmalloc.c.  Use
48437         static_inline rather than static inline.
48438         (XCALLOC): Optimize sizeof(T) = 1 case.
48439         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
48440
48441 2006-11-07  Bruno Haible  <bruno@clisp.org>
48442
48443         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
48444         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
48445         AC_C_INLINE.
48446         * modules/xalloc (Files): Add m4/inline.m4.
48447
48448 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48449
48450         * README: Fix typo.
48451         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
48452         (Miscellanous Notes): ...from this.
48453
48454 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
48455
48456         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
48457         Mention that offsetof should be used instead of sizeof.
48458         From Bruno Haible.
48459
48460 2006-11-07  Bruno Haible  <bruno@clisp.org>
48461
48462         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
48463
48464 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
48465
48466         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
48467         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
48468         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
48469         (gl_tree_add_before, gl_tree_add_after):
48470         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
48471         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
48472         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
48473         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
48474         (gl_linked_add_after, gl_linked_add_at): Likewise.
48475         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
48476         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
48477         (gl_tree_add_before, gl_tree_add_after): Likewise.
48478         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
48479         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
48480         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
48481
48482 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48483
48484         * lib/gl_oset.h: Use C comment style, not C++ comment style.
48485
48486 2006-11-06  Bruno Haible  <bruno@clisp.org>
48487
48488         * m4/inline.m4: New file.
48489         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
48490         * modules/list (Files): Add m4/inline.m4.
48491         * modules/oset (Files): Likewise.
48492
48493 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
48494
48495         * lib/idcache.c: Include <stddef.h>, for offsetof.
48496         (struct userid.name): Change from char * to a flexible array member.
48497         All uses changed.
48498         * modules/idcache (Depends-on): Add flexmember.
48499
48500         * MODULES.html.sh (Core language properties): New module flexmember.
48501         * modules/flexmember, m4/flexmember.m4: New files.
48502
48503         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
48504         inline functions that are identical with the old xnmalloc_inline,
48505         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
48506         that we can avoid some unnecessary integer multiplications and
48507         divisions in the common case where the element size is known at
48508         compile time.
48509         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
48510         needed.
48511         (xnboundedmalloc): Remove.
48512         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
48513         arguments, for consistency with rest of this header.
48514         (xcharalloc): Rewrite using XNMALLOC.
48515         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
48516         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
48517         versions have been moved to lib/xalloc.h and renamed to be the
48518         non-*_inline versions.
48519         (xmalloc, xrealloc): Implement without reference to the xnmalloc
48520         and xnrealloc functions, since those functions are now inline and
48521         now call us.
48522         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
48523         renaming described above.
48524         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
48525         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
48526         captures the dependency in AC_C_INLINE.
48527
48528         New module canonicalize-lgpl, proposed by Charles Wilson in
48529         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
48530         with a few small changes afterwards.
48531         * MODULES.html.sh (File system functions): New module
48532         canonicalize-lgpl.
48533         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
48534         and canonicalize_file_name.
48535         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
48536         * modules/canonicalize-lgpl: New files.
48537
48538 2006-11-05  Bruno Haible  <bruno@clisp.org>
48539
48540         * gnulib-tool (func_import, func_create_testdir): Create directories
48541         also for files in subdirectories of lib/.
48542
48543 2006-11-05  Bruno Haible  <bruno@clisp.org>
48544
48545         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
48546         ANSI C compliant.
48547
48548 2006-11-03  Bruno Haible  <bruno@clisp.org>
48549
48550         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
48551         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
48552         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
48553         (xnboundedmalloc): New inline function.
48554         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
48555         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
48556         xmalloc.
48557         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
48558         xmalloc.
48559         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
48560         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
48561         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
48562         xmalloc.
48563         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
48564         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
48565         xmalloc.
48566         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
48567         gl_tree_add_after): Use XMALLOC instead of xmalloc.
48568         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
48569         xmalloc.
48570         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
48571         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
48572         gl_tree_add_after): Use XMALLOC instead of xmalloc.
48573         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
48574         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
48575         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
48576         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
48577
48578 2006-11-03  Bruno Haible  <bruno@clisp.org>
48579
48580         * lib/c-ctype.h [C++]: Define functions without name mangling.
48581         * lib/fwriteerror.h [C++]: Likewise.
48582         * lib/gcd.h [C++]: Likewise.
48583         * lib/linebreak.h [C++]: Likewise.
48584
48585 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
48586
48587         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
48588         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
48589         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
48590         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
48591         Check for functions and headers just once.
48592         Check for declaration of canonicalize_file_name.
48593         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
48594
48595 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
48596
48597         * gnulib-tool (func_import): Fix typo in actioncmd.
48598
48599 2006-11-02  Bruno Haible  <bruno@clisp.org>
48600
48601         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
48602         newline sequence in the Makefile.am snippet as a space, like "make"
48603         does.
48604         Reported by Roger Persson <perrog@gmail.com>.
48605
48606 2006-11-01  Bruno Haible  <bruno@clisp.org>
48607
48608         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
48609         already declared in <string.h>.
48610         * lib/strcase.h (strncasecmp): Don't declare it if yes.
48611
48612 2006-11-01  Bruno Haible  <bruno@clisp.org>
48613
48614         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
48615         * lib/strcase.h: Include <string.h>.
48616         (strcasecmp): Define to rpl_strcasecmp here.
48617
48618 2006-11-01  Bruno Haible  <bruno@clisp.org>
48619
48620         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
48621
48622 2006-11-01  Eric Blake  <ebb9@byu.net>
48623
48624         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
48625
48626         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
48627
48628 2006-10-29  Bruno Haible  <bruno@clisp.org>
48629
48630         Make it compile in C++ mode.
48631         * lib/full-write.c (full_rw): Add a cast.
48632
48633 2006-11-01  Bruno Haible  <bruno@clisp.org>
48634
48635         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
48636         be POSIX compliant.
48637         Reported by Roger Persson <perrog@gmail.com>.
48638
48639 2006-11-01  Eric Blake  <ebb9@byu.net>
48640
48641         * lib/getopt_.h: Fix comments.
48642
48643 2006-10-31  Eric Blake  <ebb9@byu.net>
48644
48645         * modules/tmpdir (Depends-on): Add sys_stat.
48646         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
48647         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
48648         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
48649         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
48650         tempname.
48651
48652 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
48653
48654         Avoid some C++ diagnostics reported by Bruno Haible.
48655         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
48656         xmalloc.
48657         (quotearg_alloc): Use xcharalloc rather than xmalloc.
48658         (struct slotvec): Move to top level.
48659         (quotearg_n_options): Rewrite to avoid xmalloc.
48660         * lib/xalloc.h (xcharalloc): New function.
48661         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
48662         [defined __cplusplus]: Add function template that provides result
48663         type propagation.  This part of the change is from Bruno Haible.
48664
48665 2006-10-29  Bruno Haible  <bruno@clisp.org>
48666
48667         Make it compile in C++ mode.
48668         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
48669         * lib/strnlen1.c (strnlen1): Cast memchr result.
48670         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
48671         * lib/clean-temp.c (string_equals, string_hash): Add casts.
48672         (create_temp_dir): Rename local variable 'template'.
48673         (compile_csharp_using_sscli): Add cast.
48674         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
48675         * lib/findprog.c (find_in_path): Likewise.
48676         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
48677         * lib/wait-process.c (register_slave_subprocess): Likewise.
48678
48679 2006-10-22  Bruno Haible  <bruno@clisp.org>
48680
48681         * modules/tsearch: New file.
48682         * lib/tsearch.h: New file.
48683         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
48684         * m4/tsearch.m4: New file.
48685         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
48686
48687 2006-10-29  Eric Blake  <ebb9@byu.net>
48688
48689         * lib/arcfour.c: Assume config.h.
48690         * lib/arctwo.c: Likewise.
48691         * lib/base64.c: Likewise.
48692         * lib/check-version.c: Likewise.
48693         * lib/crc.c: Likewise.
48694         * lib/des.c: Likewise.
48695         * lib/gc-gnulib.c: Likewise.
48696         * lib/gc-libgcrypt.c: Likewise.
48697         * lib/gc-pbkdf2-sha1.c: Likewise.
48698         * lib/getaddrinfo.c: Likewise.
48699         * lib/getdelim.c: Likewise.
48700         * lib/getline.c: Likewise.
48701         * lib/hmac-md5.c: Likewise.
48702         * lib/hmac-sha1.c: Likewise.
48703         * lib/iconvme.c: Likewise.
48704         * lib/md2.c: Likewise.
48705         * lib/md4.c: Likewise.
48706         * lib/memxor.c: Likewise.
48707         * lib/read-file.c: Likewise.
48708         * lib/readline.c: Likewise.
48709         * lib/rijndael-alg-fst.c: Likewise.
48710         * lib/rijndael-api-fst.c: Likewise.
48711         * lib/xgetdomainname.c: Likewise.
48712
48713 2006-10-28  Eric Blake  <ebb9@byu.net>
48714
48715         * lib/xstrndup.c: Assume config.h.
48716
48717 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
48718
48719         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
48720         stat-macros.h is now for our own macros, whereas stat_h is for
48721         macros in the <sys/stat.h> name space.
48722         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
48723         (STAT_MACROS_H): Remove.
48724         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
48725         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
48726         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
48727         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
48728         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
48729         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
48730         Move these macros to ...
48731         * lib/stat_.h: here.  Don't include stat-macros.h.
48732         * lib/canonicalize.c: Don't include stat-macros.h.
48733         * lib/chown.c: Likewise.
48734         * lib/euidaccess.c: Likewise.
48735         * lib/file-type.c: Likewise.
48736         * lib/filemode.c: Likewise.
48737         * lib/glob.c: Likewise.
48738         * lib/isapipe.c: Likewise.
48739         * lib/lchown.c: Likewise.
48740         * lib/lstat.c: Likewise.
48741         * lib/mkdir-p.c: Likewise.
48742         * lib/rmdir.c: Likewise.
48743         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
48744         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
48745         unless mkdir isn't declared, to speed up 'configure'.
48746         Always create sys/stat.h, since it's unlikely any real sys/stat.h
48747         would define all the S_* symbols.
48748         * modules/canonicalize (Depends-on):
48749         Depend on sys_stat, not stat-macros.
48750         * modules/chown: Likewise.
48751         * modules/euidaccess: Likewise.
48752         * modules/filemode: Likewise.
48753         * modules/file-type: Likewise.
48754         * modules/glob: Likewise.
48755         * modules/isapipe: Likewise.
48756         * modules/lchown: Likewise.
48757         * modules/lstat: Likewise.
48758         * modules/mkancesdirs: Likewise.
48759         * modules/rmdir: Likewise.
48760         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
48761         * modules/modechange: Likewise.
48762         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
48763         (configure.ac): Remove gl_STAT_MACROS.
48764         * modules/sys_stat (Depends-on): Remove stat-macros.
48765
48766 2006-10-27  Bruno Haible  <bruno@clisp.org>
48767
48768         * m4/signed.m4: Remove file.
48769         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
48770         invocation.
48771         * modules/vasnprintf (Files): Remove m4/signed.m4.
48772
48773 2006-10-27  Bruno Haible  <bruno@clisp.org>
48774
48775         Update to GNU gettext 0.16.
48776         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
48777         m4/inttypes-h.m4, m4/signed.m4.
48778         * m4/gettext.m4: Update to GNU gettext 0.16.
48779         * m4/intl.m4: New file, from GNU gettext.
48780         * m4/intldir.m4: New file, from GNU gettext.
48781         * config/srclist.txt: Update
48782
48783 2006-10-27  Eric Blake  <ebb9@byu.net>
48784
48785         * MODULES.html.sh: Document tempname.
48786         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
48787         dependencies.
48788         (Files): Move lib/tempname.c...
48789         * modules/tempname: ...to this new module.
48790         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
48791         (gl_PREREQ_TEMPNAME): Move...
48792         * m4/tempname.m4: ...to this new file.
48793         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
48794         * modules/sys_stat (Depends-on): Add stat-macros.
48795         * lib/stat_.h (includes): Pick up stat macros.
48796         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
48797         if stat macros are broken.
48798         * lib/tempname.c (includes): No need to include "stat-macros.h".
48799         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
48800         (direxists, __path_search) [!_LIBC]: Don't compile these in
48801         gnulib; the tmpdir module covers that.
48802         * lib/tempname.h: New file.
48803
48804 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
48805
48806         * COPYING: Explain how gnulib-tool converts licence headers.
48807         Almost all wording by Eric Blake.
48808
48809 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
48810
48811         * lib/mbchar.h (is_basic_table): Make read-only.
48812         * lib/mbchar.c (is_basic_table): Likewise.
48813         Reported by John Darrington.
48814
48815 2006-10-25  Bruno Haible  <bruno@clisp.org>
48816
48817         * lib/progname.h (set_program_name): Undefine before defining.
48818
48819 2006-10-25  Bruno Haible  <bruno@clisp.org>
48820
48821         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
48822         false for non-gcc C++ compilers.
48823         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
48824
48825 2006-10-24  Bruno Haible  <bruno@clisp.org>
48826
48827         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
48828         iconv implementations like Irix iconv.
48829
48830 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
48831
48832         * modules/vararrays: New file.
48833         * m4/vararrays.m4: New file, taken from diffutils.
48834         * MODULES.html.sh: New module vararrays.
48835
48836 2006-10-24  Karl Berry  <karl@gnu.org>
48837
48838         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
48839         Don't call GNU Unix.
48840
48841 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48842
48843         * users.txt: Add Libtool.
48844
48845         Sync from Libtool:
48846
48847         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
48848
48849         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
48850         to gnulib's policy of including config.h unconditionally.
48851
48852 2006-10-24  Bruno Haible  <bruno@clisp.org>
48853
48854         * modules/wcwidth (Files): Add m4/wint_t.m4.
48855         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
48856         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
48857
48858 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
48859
48860         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
48861         to pacify GCC with some -W flags enabled.  Problem reported by
48862         Bruno Haible.
48863
48864 2006-10-24  Jim Meyering  <jim@meyering.net>
48865
48866         * MODULES.html.sh: Remove uinttostr.  It's not a module.
48867         Reported by Karl Berry.
48868
48869 2006-10-23  Bruno Haible  <bruno@clisp.org>
48870
48871         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
48872
48873 2006-10-24  Bruno Haible  <bruno@clisp.org>
48874
48875         * lib/gl_list.h: Use C comment style, not C++ comment style.
48876
48877 2006-10-23  Eric Blake  <ebb9@byu.net>
48878
48879         * lib/getaddrinfo.c (includes): Add missing include.
48880
48881 2006-10-23  Bruno Haible  <bruno@clisp.org>
48882             Paul Eggert  <eggert@cs.ucla.edu>
48883
48884         Ability to rename obstack_free.
48885         * lib/obstack.h (__obstack_free): New macro. Declare instead of
48886         obstack_free.
48887         (obstack_free): Invoke the __obstack_free macro.
48888         * lib/obstack.c (obstack_free): Use __obstack_free macro.
48889
48890 2006-10-23  Bruno Haible  <bruno@clisp.org>
48891             Paul Eggert  <eggert@cs.ucla.edu>
48892
48893         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
48894         __argc, __argv from the declaration. (They are defined as macros on
48895         mingw.)
48896
48897 2006-10-22  Bruno Haible  <bruno@clisp.org>
48898
48899         * doc/gnulib-intro.texi: New file.
48900         * doc/gnulib.texi: Include it.
48901
48902 2006-10-21  Bruno Haible  <bruno@clisp.org>
48903
48904         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
48905         "Introduction", "Miscellanous Notes", "Particular Modules".
48906
48907 2006-10-21  Bruno Haible  <bruno@clisp.org>
48908
48909         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
48910         Change mostlyclean-local rule to avoid sh syntax error from bash
48911         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
48912
48913 2006-10-23  Jim Meyering  <jim@meyering.net>
48914
48915         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
48916         in place of snprintf.
48917
48918         * modules/inttostr (Files): Add lib/uinttostr.c.
48919         * lib/uinttostr.c (inttostr): New file/function.
48920         * lib/inttostr.h (uinttostr): Declare.
48921         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
48922         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
48923         Add uinttostr.
48924         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
48925
48926 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
48927
48928         * lib/canonicalize.c (ELOOP): Define if not already defined.
48929         Problem reported by Bruno Haible in
48930         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
48931
48932 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
48933
48934         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
48935         Problem reported by Perry Smith and Ville Laurikari.
48936
48937         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
48938         uses.
48939
48940 2006-10-19  Bruno Haible  <bruno@clisp.org>
48941
48942         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
48943         for mingw.
48944
48945 2006-10-19  Bruno Haible  <bruno@clisp.org>
48946
48947         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
48948         Needed for mingw.
48949
48950 2006-10-19  Bruno Haible  <bruno@clisp.org>
48951
48952         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
48953
48954 2006-10-19  Bruno Haible  <bruno@clisp.org>
48955
48956         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
48957         it.
48958
48959 2006-10-19  Bruno Haible  <bruno@clisp.org>
48960
48961         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
48962         invocation.
48963
48964 2006-10-19  Bruno Haible  <bruno@clisp.org>
48965
48966         * gnulib-tool (func_create_testdir): Don't include ftruncate and
48967         mountlist by default.
48968
48969 2006-10-16  Bruno Haible  <bruno@clisp.org>
48970
48971         * lib/c-strstr.c: Include c-strstr.h.
48972
48973 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
48974
48975         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
48976         in a slash.
48977
48978 2006-10-18  Bruno Haible  <bruno@clisp.org>
48979
48980         * lib/lock.h [C++]: Wrap definitions in extern "C".
48981
48982 2006-10-18  Bruno Haible  <bruno@clisp.org>
48983
48984         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
48985         gl_LIBOBJS list.
48986
48987 2006-10-18  Bruno Haible  <bruno@clisp.org>
48988
48989         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
48990
48991 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
48992
48993         * lib/xstrtol.h: Include gettext.h.
48994         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
48995         Problem reported by Eric Blake.
48996         * modules/xstrtol (Depends-on): Add gettext-h.
48997
48998 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
48999
49000         * lib/strftime.c (advance): New macro.
49001         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
49002         incomplete type, so you can't add 0 to it.  Problem and patch
49003         reported by Eelco Dolstra for dietlibc.
49004
49005 2006-10-18  Jim Meyering  <jim@meyering.net>
49006
49007         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
49008         type for a local, and rename it: s/up/user_proc/.
49009
49010 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
49011
49012         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
49013         READ_UTMP_USER_PROCESS.
49014         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
49015
49016 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
49017
49018         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
49019         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
49020
49021 2006-10-17  Eric Blake  <ebb9@byu.net>
49022
49023         * lib/sigprocmask.c (sigprocmask): Fix typo.
49024
49025         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
49026
49027         * modules/clean-temp (Makefile.am): Don't add to make output...
49028         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
49029         config.h.
49030
49031 2006-10-17  Bruno Haible  <bruno@clisp.org>
49032
49033         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
49034         differently if DEFAULT_TEXT_DOMAIN is set.
49035
49036 2006-10-16  Bruno Haible  <bruno@clisp.org>
49037
49038         * lib/clean-temp.c: Include fwriteerror.h.
49039
49040 2006-10-16  Bruno Haible  <bruno@clisp.org>
49041
49042         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
49043
49044 2006-10-16  Bruno Haible  <bruno@clisp.org>
49045
49046         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
49047         * lib/sigprocmask.h: Include <sys/types.h>.
49048         (sigset_t): Use the system's definition if present.
49049
49050 2006-10-17  Eric Blake  <ebb9@byu.net>
49051
49052         * lib/xvasprintf.c (includes): Assume config.h.
49053         * lib/xasprintf.c (includes): Likewise.
49054
49055 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
49056
49057         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
49058         at least as wide as intmax_t.
49059
49060 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
49061
49062         (Imported from Automake.)
49063         * build-aux/gnupload: Update to version 1.1 of directive file.
49064
49065 2006-10-16  Eric Blake  <ebb9@byu.net>
49066
49067         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
49068         match Automake 1.10a.
49069
49070 2006-10-14  Bruno Haible  <bruno@clisp.org>
49071
49072         * modules/sigprocmask: New file.
49073         * lib/sigprocmask.h: New file.
49074         * lib/sigprocmask.c: New file.
49075         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
49076         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
49077         request sigprocmask.o.
49078         (gl_PREREQ_SIGPROCMASK): New macro.
49079         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
49080         (Depends-on): Add sigprocmask.
49081         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
49082         gt_SIGNALBLOCKING. Test for 'raise' only once.
49083         * lib/fatal-signal.c: Include sigprocmask.h.
49084         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
49085         unblock_fatal_signals): Define always.
49086         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
49087         sigprocmask.
49088
49089 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
49090
49091         Sync from Automake.
49092         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
49093         which incorrectly sets the mode of an existing destination
49094         directory.  In some cases the unpatched install-sh could do the
49095         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
49096         system.  We hope this is rare in practice, but it's clearly worth
49097         fixing.  Problem reported by Alex Unleashed in
49098         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
49099         Also, don't bother to check for -m bugs unless we're using -m;
49100         suggested by Stepan Kasal.
49101
49102 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49103
49104         Sync from Automake.
49105         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
49106         `-c' flag, so they appear at the same position as in %FASTDEP%
49107         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
49108         which ignores unknown options only after the first non-option.
49109         Bug report against M4 by Nelson H. F. Beebe.
49110
49111 2006-10-13  Jim Meyering  <jim@meyering.net>
49112
49113         Fix a bug in yesterday's change.
49114         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
49115         p->fts_statp->st_dev would be used uninitialized.
49116         Ensures that we always call fts_stat on the very first entry.
49117         Miklos Szeredi reported that find -xdev stopped working.
49118
49119 2006-10-12  Bruno Haible  <bruno@clisp.org>
49120
49121         * gnulib-tool (func_get_automake_snippet): Append an automatically
49122         computed EXTRA_DIST augmentation.
49123         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
49124         * modules/alloca-opt (Makefile.am): Likewise.
49125         * modules/allocsa (Makefile.am): Likewise.
49126         * modules/arcfour (Makefile.am): Likewise.
49127         * modules/arctwo (Makefile.am): Likewise.
49128         * modules/argmatch (Makefile.am): Likewise.
49129         * modules/argz (Makefile.am): Likewise.
49130         * modules/atexit (Makefile.am): Likewise.
49131         * modules/backupfile (Makefile.am): Likewise.
49132         * modules/byteswap (Makefile.am): Likewise.
49133         * modules/c-strtod (Makefile.am): Likewise.
49134         * modules/c-strtold (Makefile.am): Likewise.
49135         * modules/calloc (Makefile.am): Likewise.
49136         * modules/canon-host (Makefile.am): Likewise.
49137         * modules/canonicalize (Makefile.am): Likewise.
49138         * modules/chdir-long (Makefile.am): Likewise.
49139         * modules/chdir-safer (Makefile.am): Likewise.
49140         * modules/check-version (Makefile.am): Likewise.
49141         * modules/chown (Makefile.am): Likewise.
49142         * modules/cloexec (Makefile.am): Likewise.
49143         * modules/close-stream (Makefile.am): Likewise.
49144         * modules/closeout (Makefile.am): Likewise.
49145         * modules/crc (Makefile.am): Likewise.
49146         * modules/csharpexec (Makefile.am): Likewise.
49147         * modules/cycle-check (Makefile.am): Likewise.
49148         * modules/des (Makefile.am): Likewise.
49149         * modules/dev-ino (Makefile.am): Likewise.
49150         * modules/dirfd (Makefile.am): Likewise.
49151         * modules/dirname (Makefile.am): Likewise.
49152         * modules/dup2 (Makefile.am): Likewise.
49153         * modules/eealloc (Makefile.am): Likewise.
49154         * modules/error (Makefile.am): Likewise.
49155         * modules/euidaccess (Makefile.am): Likewise.
49156         * modules/exclude (Makefile.am): Likewise.
49157         * modules/exitfail (Makefile.am): Likewise.
49158         * modules/fcntl-safer (Makefile.am): Likewise.
49159         * modules/fcntl (Makefile.am): Likewise.
49160         * modules/file-type (Makefile.am): Likewise.
49161         * modules/fileblocks (Makefile.am): Likewise.
49162         * modules/filemode (Makefile.am): Likewise.
49163         * modules/filenamecat (Makefile.am): Likewise.
49164         * modules/fnmatch (Makefile.am): Likewise.
49165         * modules/fopen-safer (Makefile.am): Likewise.
49166         * modules/fpending (Makefile.am): Likewise.
49167         * modules/fprintftime (Makefile.am): Likewise.
49168         * modules/free (Makefile.am): Likewise.
49169         * modules/fsusage (Makefile.am): Likewise.
49170         * modules/ftruncate (Makefile.am): Likewise.
49171         * modules/fts (Makefile.am): Likewise.
49172         * modules/gc-arcfour (Makefile.am): Likewise.
49173         * modules/gc-des (Makefile.am): Likewise.
49174         * modules/gc-hmac-md5 (Makefile.am): Likewise.
49175         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
49176         * modules/gc-md4 (Makefile.am): Likewise.
49177         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
49178         * modules/gc-sha1 (Makefile.am): Likewise.
49179         * modules/gc (Makefile.am): Likewise.
49180         * modules/getaddrinfo (Makefile.am): Likewise.
49181         * modules/getcwd (Makefile.am): Likewise.
49182         * modules/getdelim (Makefile.am): Likewise.
49183         * modules/getdomainname (Makefile.am): Likewise.
49184         * modules/getgroups (Makefile.am): Likewise.
49185         * modules/gethostname (Makefile.am): Likewise.
49186         * modules/gethrxtime (Makefile.am): Likewise.
49187         * modules/getline (Makefile.am): Likewise.
49188         * modules/getloadavg (Makefile.am): Likewise.
49189         * modules/getlogin_r (Makefile.am): Likewise.
49190         * modules/getndelim2 (Makefile.am): Likewise.
49191         * modules/getopt (Makefile.am): Likewise.
49192         * modules/getpagesize (Makefile.am): Likewise.
49193         * modules/getpass-gnu (Makefile.am): Likewise.
49194         * modules/getpass (Makefile.am): Likewise.
49195         * modules/getsubopt (Makefile.am): Likewise.
49196         * modules/gettime (Makefile.am): Likewise.
49197         * modules/gettimeofday (Makefile.am): Likewise.
49198         * modules/getugroups (Makefile.am): Likewise.
49199         * modules/getusershell (Makefile.am): Likewise.
49200         * modules/glob (Makefile.am): Likewise.
49201         * modules/group-member (Makefile.am): Likewise.
49202         * modules/hard-locale (Makefile.am): Likewise.
49203         * modules/hash (Makefile.am): Likewise.
49204         * modules/hmac-md5 (Makefile.am): Likewise.
49205         * modules/hmac-sha1 (Makefile.am): Likewise.
49206         * modules/human (Makefile.am): Likewise.
49207         * modules/idcache (Makefile.am): Likewise.
49208         * modules/imaxabs (Makefile.am): Likewise.
49209         * modules/imaxdiv (Makefile.am): Likewise.
49210         * modules/inet_ntop (Makefile.am): Likewise.
49211         * modules/inet_pton (Makefile.am): Likewise.
49212         * modules/intprops (Makefile.am): Likewise.
49213         * modules/inttostr (Makefile.am): Likewise.
49214         * modules/inttypes (Makefile.am): Likewise.
49215         * modules/isapipe (Makefile.am): Likewise.
49216         * modules/javaversion (Makefile.am): Likewise.
49217         * modules/lchmod (Makefile.am): Likewise.
49218         * modules/lchown (Makefile.am): Likewise.
49219         * modules/localcharset (Makefile.am): Likewise.
49220         * modules/long-options (Makefile.am): Likewise.
49221         * modules/lstat (Makefile.am): Likewise.
49222         * modules/malloc (Makefile.am): Likewise.
49223         * modules/mathl (Makefile.am): Likewise.
49224         * modules/mbchar (Makefile.am): Likewise.
49225         * modules/md2 (Makefile.am): Likewise.
49226         * modules/md4 (Makefile.am): Likewise.
49227         * modules/md5 (Makefile.am): Likewise.
49228         * modules/memcasecmp (Makefile.am): Likewise.
49229         * modules/memchr (Makefile.am): Likewise.
49230         * modules/memcmp (Makefile.am): Likewise.
49231         * modules/memcoll (Makefile.am): Likewise.
49232         * modules/memcpy (Makefile.am): Likewise.
49233         * modules/memmem (Makefile.am): Likewise.
49234         * modules/memmove (Makefile.am): Likewise.
49235         * modules/mempcpy (Makefile.am): Likewise.
49236         * modules/memrchr (Makefile.am): Likewise.
49237         * modules/memset (Makefile.am): Likewise.
49238         * modules/memxor (Makefile.am): Likewise.
49239         * modules/mkancesdirs (Makefile.am): Likewise.
49240         * modules/mkdir-p (Makefile.am): Likewise.
49241         * modules/mkdir (Makefile.am): Likewise.
49242         * modules/mkdtemp (Makefile.am): Likewise.
49243         * modules/mkstemp (Makefile.am): Likewise.
49244         * modules/mktime (Makefile.am): Likewise.
49245         * modules/modechange (Makefile.am): Likewise.
49246         * modules/mountlist (Makefile.am): Likewise.
49247         * modules/nanosleep (Makefile.am): Likewise.
49248         * modules/obstack (Makefile.am): Likewise.
49249         * modules/openat (Makefile.am): Likewise.
49250         * modules/pagealign_alloc (Makefile.am): Likewise.
49251         * modules/pathmax (Makefile.am): Likewise.
49252         * modules/physmem (Makefile.am): Likewise.
49253         * modules/poll (Makefile.am): Likewise.
49254         * modules/posixtm (Makefile.am): Likewise.
49255         * modules/posixver (Makefile.am): Likewise.
49256         * modules/putenv (Makefile.am): Likewise.
49257         * modules/quote (Makefile.am): Likewise.
49258         * modules/quotearg (Makefile.am): Likewise.
49259         * modules/raise (Makefile.am): Likewise.
49260         * modules/read-file (Makefile.am): Likewise.
49261         * modules/readline (Makefile.am): Likewise.
49262         * modules/readlink (Makefile.am): Likewise.
49263         * modules/readtokens (Makefile.am): Likewise.
49264         * modules/readutmp (Makefile.am): Likewise.
49265         * modules/realloc (Makefile.am): Likewise.
49266         * modules/regex (Makefile.am): Likewise.
49267         * modules/rename-dest-slash (Makefile.am): Likewise.
49268         * modules/rename (Makefile.am): Likewise.
49269         * modules/rijndael (Makefile.am): Likewise.
49270         * modules/rmdir (Makefile.am): Likewise.
49271         * modules/rpmatch (Makefile.am): Likewise.
49272         * modules/safe-read (Makefile.am): Likewise.
49273         * modules/safe-write (Makefile.am): Likewise.
49274         * modules/same-inode (Makefile.am): Likewise.
49275         * modules/same (Makefile.am): Likewise.
49276         * modules/save-cwd (Makefile.am): Likewise.
49277         * modules/savedir (Makefile.am): Likewise.
49278         * modules/setenv (Makefile.am): Likewise.
49279         * modules/settime (Makefile.am): Likewise.
49280         * modules/sha1 (Makefile.am): Likewise.
49281         * modules/sig2str (Makefile.am): Likewise.
49282         * modules/snprintf (Makefile.am): Likewise.
49283         * modules/stat-macros (Makefile.am): Likewise.
49284         * modules/stat-time (Makefile.am): Likewise.
49285         * modules/stdbool (Makefile.am): Likewise.
49286         * modules/stdint (Makefile.am): Likewise.
49287         * modules/stdlib-safer (Makefile.am): Likewise.
49288         * modules/stpcpy (Makefile.am): Likewise.
49289         * modules/stpncpy (Makefile.am): Likewise.
49290         * modules/strcase (Makefile.am): Likewise.
49291         * modules/strcasestr (Makefile.am): Likewise.
49292         * modules/strchrnul (Makefile.am): Likewise.
49293         * modules/strcspn (Makefile.am): Likewise.
49294         * modules/strdup (Makefile.am): Likewise.
49295         * modules/strerror (Makefile.am): Likewise.
49296         * modules/strftime (Makefile.am): Likewise.
49297         * modules/strndup (Makefile.am): Likewise.
49298         * modules/strnlen (Makefile.am): Likewise.
49299         * modules/strpbrk (Makefile.am): Likewise.
49300         * modules/strsep (Makefile.am): Likewise.
49301         * modules/strstr (Makefile.am): Likewise.
49302         * modules/strtod (Makefile.am): Likewise.
49303         * modules/strtoimax (Makefile.am): Likewise.
49304         * modules/strtok_r (Makefile.am): Likewise.
49305         * modules/strtol (Makefile.am): Likewise.
49306         * modules/strtoll (Makefile.am): Likewise.
49307         * modules/strtoul (Makefile.am): Likewise.
49308         * modules/strtoull (Makefile.am): Likewise.
49309         * modules/strtoumax (Makefile.am): Likewise.
49310         * modules/strverscmp (Makefile.am): Likewise.
49311         * modules/sys_socket (Makefile.am): Likewise.
49312         * modules/sys_stat (Makefile.am): Likewise.
49313         * modules/sysexits (Makefile.am): Likewise.
49314         * modules/time_r (Makefile.am): Likewise.
49315         * modules/timegm (Makefile.am): Likewise.
49316         * modules/timespec (Makefile.am): Likewise.
49317         * modules/tmpfile-safer (Makefile.am): Likewise.
49318         * modules/trim (Makefile.am): Likewise.
49319         * modules/unistd-safer (Makefile.am): Likewise.
49320         * modules/unlinkdir (Makefile.am): Likewise.
49321         * modules/unlocked-io (Makefile.am): Likewise.
49322         * modules/userspec (Makefile.am): Likewise.
49323         * modules/utime (Makefile.am): Likewise.
49324         * modules/utimecmp (Makefile.am): Likewise.
49325         * modules/utimens (Makefile.am): Likewise.
49326         * modules/vasnprintf (Makefile.am): Likewise.
49327         * modules/vasprintf (Makefile.am): Likewise.
49328         * modules/vsnprintf (Makefile.am): Likewise.
49329         * modules/xalloc (Makefile.am): Likewise.
49330         * modules/xgetcwd (Makefile.am): Likewise.
49331         * modules/xnanosleep (Makefile.am): Likewise.
49332         * modules/xreadlink (Makefile.am): Likewise.
49333         * modules/xstrtod (Makefile.am): Likewise.
49334         * modules/xstrtol (Makefile.am): Likewise.
49335         * modules/xstrtold (Makefile.am): Likewise.
49336         * modules/yesno (Makefile.am): Likewise.
49337         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
49338
49339 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
49340
49341         * modules/error (Makefile.am): Distribute files through
49342         EXTRA_DIST, not lib_SOURCES.
49343
49344 2006-10-12  Eric Blake  <ebb9@byu.net>
49345
49346         * modules/error (Makefile.am): Distribute files in /lib.
49347         * modules/obstack (Makefile.am): Likewise.
49348
49349 2006-10-12  Bruno Haible  <bruno@clisp.org>
49350
49351         * modules/acl (Makefile.am): Distribute all files in lib/ through
49352         EXTRA_DIST.
49353         * modules/arcfour (Makefile.am): Likewise.
49354         * modules/arctwo (Makefile.am): Likewise.
49355         * modules/argmatch (Makefile.am): Likewise.
49356         * modules/argz (Makefile.am): Likewise.
49357         * modules/atexit (Makefile.am): Likewise.
49358         * modules/backupfile (Makefile.am): Likewise.
49359         * modules/c-strtod (Makefile.am): Likewise.
49360         * modules/c-strtold (Makefile.am): Likewise.
49361         * modules/calloc (Makefile.am): Likewise.
49362         * modules/canon-host (Makefile.am): Likewise.
49363         * modules/canonicalize (Makefile.am): Likewise.
49364         * modules/chdir-long (Makefile.am): Likewise.
49365         * modules/chdir-safer (Makefile.am): Likewise.
49366         * modules/check-version (Makefile.am): Likewise.
49367         * modules/chown (Makefile.am): Likewise.
49368         * modules/cloexec (Makefile.am): Likewise.
49369         * modules/close-stream (Makefile.am): Likewise.
49370         * modules/closeout (Makefile.am): Likewise.
49371         * modules/crc (Makefile.am): Likewise.
49372         * modules/cycle-check (Makefile.am): Likewise.
49373         * modules/des (Makefile.am): Likewise.
49374         * modules/dirfd (Makefile.am): Likewise.
49375         * modules/dirname (Makefile.am): Likewise.
49376         * modules/dup2 (Makefile.am): Likewise.
49377         * modules/euidaccess (Makefile.am): Likewise.
49378         * modules/exclude (Makefile.am): Likewise.
49379         * modules/exitfail (Makefile.am): Likewise.
49380         * modules/fcntl-safer (Makefile.am): Likewise.
49381         * modules/file-type (Makefile.am): Likewise.
49382         * modules/fileblocks (Makefile.am): Likewise.
49383         * modules/filemode (Makefile.am): Likewise.
49384         * modules/filenamecat (Makefile.am): Likewise.
49385         * modules/fnmatch (Makefile.am): Likewise.
49386         * modules/fopen-safer (Makefile.am): Likewise.
49387         * modules/fpending (Makefile.am): Likewise.
49388         * modules/fprintftime (Makefile.am): Likewise.
49389         * modules/free (Makefile.am): Likewise.
49390         * modules/fsusage (Makefile.am): Likewise.
49391         * modules/ftruncate (Makefile.am): Likewise.
49392         * modules/fts (Makefile.am): Likewise.
49393         * modules/gc (Makefile.am): Likewise.
49394         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
49395         * modules/getaddrinfo (Makefile.am): Likewise.
49396         * modules/getcwd (Makefile.am): Likewise.
49397         * modules/getdelim (Makefile.am): Likewise.
49398         * modules/getdomainname (Makefile.am): Likewise.
49399         * modules/getgroups (Makefile.am): Likewise.
49400         * modules/gethostname (Makefile.am): Likewise.
49401         * modules/gethrxtime (Makefile.am): Likewise.
49402         * modules/getline (Makefile.am): Likewise.
49403         * modules/getloadavg (Makefile.am): Likewise.
49404         * modules/getlogin_r (Makefile.am): Likewise.
49405         * modules/getopt (Makefile.am): Likewise.
49406         * modules/getpass (Makefile.am): Likewise.
49407         * modules/getpass-gnu (Makefile.am): Likewise.
49408         * modules/getsubopt (Makefile.am): Likewise.
49409         * modules/gettime (Makefile.am): Likewise.
49410         * modules/gettimeofday (Makefile.am): Likewise.
49411         * modules/getugroups (Makefile.am): Likewise.
49412         * modules/getusershell (Makefile.am): Likewise.
49413         * modules/glob (Makefile.am): Likewise.
49414         * modules/group-member (Makefile.am): Likewise.
49415         * modules/hard-locale (Makefile.am): Likewise.
49416         * modules/hash (Makefile.am): Likewise.
49417         * modules/hmac-md5 (Makefile.am): Likewise.
49418         * modules/hmac-sha1 (Makefile.am): Likewise.
49419         * modules/human (Makefile.am): Likewise.
49420         * modules/idcache (Makefile.am): Likewise.
49421         * modules/imaxabs (Makefile.am): Likewise.
49422         * modules/imaxdiv (Makefile.am): Likewise.
49423         * modules/inet_ntop (Makefile.am): Likewise.
49424         * modules/inet_pton (Makefile.am): Likewise.
49425         * modules/inttostr (Makefile.am): Likewise.
49426         * modules/isapipe (Makefile.am): Likewise.
49427         * modules/lchown (Makefile.am): Likewise.
49428         * modules/long-options (Makefile.am): Likewise.
49429         * modules/lstat (Makefile.am): Likewise.
49430         * modules/malloc (Makefile.am): Likewise.
49431         * modules/mathl (Makefile.am): Likewise.
49432         * modules/mbchar (Makefile.am): Likewise.
49433         * modules/md2 (Makefile.am): Likewise.
49434         * modules/md4 (Makefile.am): Likewise.
49435         * modules/md5 (Makefile.am): Likewise.
49436         * modules/memcasecmp (Makefile.am): Likewise.
49437         * modules/memchr (Makefile.am): Likewise.
49438         * modules/memcmp (Makefile.am): Likewise.
49439         * modules/memcoll (Makefile.am): Likewise.
49440         * modules/memcpy (Makefile.am): Likewise.
49441         * modules/memmem (Makefile.am): Likewise.
49442         * modules/memmove (Makefile.am): Likewise.
49443         * modules/mempcpy (Makefile.am): Likewise.
49444         * modules/memrchr (Makefile.am): Likewise.
49445         * modules/memset (Makefile.am): Likewise.
49446         * modules/memxor (Makefile.am): Likewise.
49447         * modules/mkancesdirs (Makefile.am): Likewise.
49448         * modules/mkdir (Makefile.am): Likewise.
49449         * modules/mkdir-p (Makefile.am): Likewise.
49450         * modules/mkdtemp (Makefile.am): Likewise.
49451         * modules/mkstemp (Makefile.am): Likewise.
49452         * modules/mktime (Makefile.am): Likewise.
49453         * modules/modechange (Makefile.am): Likewise.
49454         * modules/mountlist (Makefile.am): Likewise.
49455         * modules/nanosleep (Makefile.am): Likewise.
49456         * modules/openat (Makefile.am): Likewise.
49457         * modules/pagealign_alloc (Makefile.am): Likewise.
49458         * modules/physmem (Makefile.am): Likewise.
49459         * modules/poll (Makefile.am): Likewise.
49460         * modules/posixtm (Makefile.am): Likewise.
49461         * modules/posixver (Makefile.am): Likewise.
49462         * modules/putenv (Makefile.am): Likewise.
49463         * modules/quote (Makefile.am): Likewise.
49464         * modules/quotearg (Makefile.am): Likewise.
49465         * modules/raise (Makefile.am): Likewise.
49466         * modules/read-file (Makefile.am): Likewise.
49467         * modules/readline (Makefile.am): Likewise.
49468         * modules/readlink (Makefile.am): Likewise.
49469         * modules/readtokens (Makefile.am): Likewise.
49470         * modules/readutmp (Makefile.am): Likewise.
49471         * modules/realloc (Makefile.am): Likewise.
49472         * modules/regex (Makefile.am): Likewise.
49473         * modules/rename (Makefile.am): Likewise.
49474         * modules/rename-dest-slash (Makefile.am): Likewise.
49475         * modules/rijndael (Makefile.am): Likewise.
49476         * modules/rmdir (Makefile.am): Likewise.
49477         * modules/rpmatch (Makefile.am): Likewise.
49478         * modules/safe-read (Makefile.am): Likewise.
49479         * modules/safe-write (Makefile.am): Likewise.
49480         * modules/same (Makefile.am): Likewise.
49481         * modules/save-cwd (Makefile.am): Likewise.
49482         * modules/savedir (Makefile.am): Likewise.
49483         * modules/setenv (Makefile.am): Likewise.
49484         * modules/settime (Makefile.am): Likewise.
49485         * modules/sha1 (Makefile.am): Likewise.
49486         * modules/sig2str (Makefile.am): Likewise.
49487         * modules/snprintf (Makefile.am): Likewise.
49488         * modules/stdlib-safer (Makefile.am): Likewise.
49489         * modules/stpcpy (Makefile.am): Likewise.
49490         * modules/stpncpy (Makefile.am): Likewise.
49491         * modules/strcase (Makefile.am): Likewise.
49492         * modules/strcasestr (Makefile.am): Likewise.
49493         * modules/strchrnul (Makefile.am): Likewise.
49494         * modules/strcspn (Makefile.am): Likewise.
49495         * modules/strdup (Makefile.am): Likewise.
49496         * modules/strerror (Makefile.am): Likewise.
49497         * modules/strftime (Makefile.am): Likewise.
49498         * modules/strndup (Makefile.am): Likewise.
49499         * modules/strnlen (Makefile.am): Likewise.
49500         * modules/strpbrk (Makefile.am): Likewise.
49501         * modules/strsep (Makefile.am): Likewise.
49502         * modules/strstr (Makefile.am): Likewise.
49503         * modules/strtod (Makefile.am): Likewise.
49504         * modules/strtoimax (Makefile.am): Likewise.
49505         * modules/strtok_r (Makefile.am): Likewise.
49506         * modules/strtol (Makefile.am): Likewise.
49507         * modules/strtoll (Makefile.am): Likewise.
49508         * modules/strtoul (Makefile.am): Likewise.
49509         * modules/strtoull (Makefile.am): Likewise.
49510         * modules/strtoumax (Makefile.am): Likewise.
49511         * modules/strverscmp (Makefile.am): Likewise.
49512         * modules/time_r (Makefile.am): Likewise.
49513         * modules/timegm (Makefile.am): Likewise.
49514         * modules/tmpfile-safer (Makefile.am): Likewise.
49515         * modules/unistd-safer (Makefile.am): Likewise.
49516         * modules/unlinkdir (Makefile.am): Likewise.
49517         * modules/userspec (Makefile.am): Likewise.
49518         * modules/utime (Makefile.am): Likewise.
49519         * modules/utimecmp (Makefile.am): Likewise.
49520         * modules/utimens (Makefile.am): Likewise.
49521         * modules/vasnprintf (Makefile.am): Likewise.
49522         * modules/vasprintf (Makefile.am): Likewise.
49523         * modules/vsnprintf (Makefile.am): Likewise.
49524         * modules/xalloc (Makefile.am): Likewise.
49525         * modules/xgetcwd (Makefile.am): Likewise.
49526         * modules/xnanosleep (Makefile.am): Likewise.
49527         * modules/xreadlink (Makefile.am): Likewise.
49528         * modules/xstrtod (Makefile.am): Likewise.
49529         * modules/xstrtol (Makefile.am): Likewise.
49530         * modules/xstrtold (Makefile.am): Likewise.
49531         * modules/yesno (Makefile.am): Likewise.
49532
49533 2006-10-12  Jim Meyering  <jim@meyering.net>
49534
49535         * m4/getloadavg.m4: Revert the change below.
49536
49537         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
49538         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
49539         fail with a symlink, which is what coreutils' ./bootstrap now
49540         creates by default.
49541
49542 2006-10-12  Bruno Haible  <bruno@clisp.org>
49543
49544         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
49545         mingw.
49546         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
49547         MSVC and mingw explicitly.
49548
49549 2006-10-11  Simon Josefsson  <jas@extundo.com>
49550             Bruno Haible  <bruno@clisp.org>
49551
49552         Add support for multiple gnulib-tool invocations in the scope of a
49553         single configure.ac file.
49554         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
49555         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
49556         with the same contents as the _LIBADD variable.
49557         (func_emit_initmacro_start, func_emit_initmacro_end,
49558         func_emit_initmacro_done): New functions.
49559         (func_import, func_create_testdir): Invoke them. Allow the identifiers
49560         gl_LIBOBJS and gl_LTLIBOBJS.
49561
49562 2006-10-11  Bruno Haible  <bruno@clisp.org>
49563
49564         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
49565         (func_create_testdir): Don't create po/Makefile.am, don't invoke
49566         autoreconf. Instead, invoke autopoint explicitly but move back the
49567         *.m4 files from gnulib.
49568
49569 2006-10-11  Bruno Haible  <bruno@clisp.org>
49570
49571         * gnulib-tool (func_usage): Make module names after --create-testdir
49572         optional.
49573         (func_create_testdir): If no module was specified, use nearly all
49574         modules.
49575
49576 2006-10-12  Jim Meyering  <jim@meyering.net>
49577
49578         Big performance improvement for fts-based tools that use FTS_NOSTAT.
49579         Avoid spurious inode-mismatch problems on non-POSIX file systems.
49580         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
49581         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
49582         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
49583         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
49584         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
49585         (fts_set_stat_required): New function.
49586         (fts_open): Defer the calls to fts_stat, if possible or requested.
49587         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
49588         into fts_stat itself.
49589         (fts_read): Perform any required (deferred) fts_stat call.
49590         (fts_build): Likewise, for the directory we're about to open and read.
49591         In the readdir loop, carefully decide whether each entry will require
49592         an eventual call to fts_stat, using dirent.d_type info if available.
49593         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
49594         a command line argument into this function.  Update all callers.
49595         Map a return value of FTS_DOT to FTS_D for a command line argument.
49596         * modules/fts (Depends-on): Add d-type.  Alphabetize.
49597         Thanks to Miklos Szeredi for his tenacity and for the initial
49598         bug report about "find" failing on a FUSE-based file system.
49599
49600         * lib/fts.c (fts_open): Use consistent indentation.
49601
49602 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
49603
49604         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
49605         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
49606         reported by Jim Meyering.  All uses of cache variables renamed
49607         to match Autoconf's.
49608         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
49609         the other one.
49610
49611         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
49612         Fix misspelling in diagnostic.
49613
49614 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
49615
49616         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
49617         defined.  Problem reported by Matthew Woehlke.
49618
49619         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
49620         Add support for Tandem NonStop R series.
49621         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
49622         Use new macro.
49623
49624         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
49625         (has_trailing_slash): Omit size arg; all callers changed.
49626         Omit 'inline', since it doesn't help performance and we'd
49627         need to configure it.
49628         Don't count //, ///, etc. as having a trailing slash.
49629         As a side effect, this removes a C99ism reported by Matthew Woehlke.
49630         (rpl_rename_dest_slash): On failure, use rename's errno rather
49631         than (in some cases) an incorrect or junk errno.
49632         Simplify code by removing need to compute length; this does
49633         cause it to make two passes instead of one over the file name,
49634         but it's worth it.
49635
49636         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
49637         change, since Autoconf's version may no longer be appropriate now
49638         that we are using CVS Autoconf's version.  Add support for Tandem.
49639
49640 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
49641             Bruno Haible  <bruno@clisp.org>
49642
49643         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
49644         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
49645         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
49646         gl_AC_TYPE_LONG_LONG.
49647
49648         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
49649         instead of HAVE_LONG_LONG.
49650         * lib/printf-args.c (printf_fetchargs): Likewise.
49651         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
49652         * lib/vasnprintf.c (VASNPRINTF): Likewise.
49653         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
49654         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
49655         gl_AC_TYPE_LONG_LONG.
49656
49657 2006-10-11  Bruno Haible  <bruno@clisp.org>
49658
49659         * m4/longlong.m4: Add comments.
49660         * m4/ulonglong.m4: Likewise.
49661
49662 2006-10-10  Bruno Haible  <bruno@clisp.org>
49663
49664         Make it possible to #define stpcpy, strdup to aliases.
49665         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
49666         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
49667
49668 2006-10-10  Bruno Haible  <bruno@clisp.org>
49669
49670         Make it possible to #define gcd to an alias.
49671         * lib/gcd.c: Include config.h.
49672
49673 2006-10-10  Bruno Haible  <bruno@clisp.org>
49674
49675         Make it possible to #define c_isascii to an alias.
49676         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
49677         defined. Undefine the macros before defining them, to avoid gcc
49678         warnings.
49679         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
49680         define NO_C_CTYPE_MACROS early.
49681
49682 2006-10-10  Bruno Haible  <bruno@clisp.org>
49683
49684         Make it possible to #define set_program_name to an alias.
49685         * lib/progname.c: Don't undefine set_program_name; instead, undefine
49686         ENABLE_RELOCATABLE early.
49687
49688 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
49689
49690         Port to Tandem NSK OSS, which has 64-bit signed int but at most
49691         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
49692         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
49693         More generally, don't assume that 64-bit signed int is available
49694         if unsigned int is, and vice versa.
49695         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
49696         unsigned symbols, not on their signed counterparts.
49697         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
49698         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
49699         (UINT64_C, UINTMAX_C):
49700         Likewise.
49701         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
49702         unsigned counterparts.
49703         (Have_long_long, Unsigned): New macros.
49704         (Int): Renamed from INT.
49705         (strtoimax): Use the new macros.
49706         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
49707         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
49708         * modules/inttypes (inttypes.h): Substitute
49709         HAVE_UNSIGNED_LONG_LONG_INT.
49710         * modules/stdint (stdint.h): Likewise.
49711         (Files): Add m4/ulonglong.m4.
49712
49713 2006-10-10  Bruno Haible  <bruno@clisp.org>
49714
49715         Fix a gcc -Wshadow warning.
49716         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
49717         to 'bucket'.
49718         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
49719         gl_linked_indexof_from_to): Likewise.
49720         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
49721         Likewise.
49722         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
49723         Likewise.
49724         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
49725         Reported by Eric Blake.
49726
49727 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
49728
49729         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
49730         for NetBSD.  Problem reported by Bruno Haible.
49731
49732 2006-10-09  Jim Meyering  <jim@meyering.net>
49733
49734         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
49735         Patch from Bruno Haible.
49736
49737 2006-10-09  Jim Meyering  <jim@meyering.net>
49738
49739         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
49740         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
49741         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
49742
49743 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
49744
49745         Don't include <config.h> twice; this doesn't work in some cases,
49746         e.g., when config.h has "#define intmax_t long long int" and
49747         we include <config.h>, <inttypes.h>, <config.h> in that order.
49748         Problem reported by Matthew Woehlke in:
49749         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
49750         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
49751         * lib/fts-cycle.c: Don't include config.h.
49752         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
49753         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
49754         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
49755         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
49756         inttypes.h.
49757         * lib/xstrtoumax.c: Likewise.
49758         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
49759         __strtol and the like, so that this module is more like its siblings.
49760         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
49761         Remove; no longer needed now that we assume gnulib inttypes.h.
49762
49763 2006-10-08  Bruno Haible  <bruno@clisp.org>
49764
49765         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
49766         option.
49767
49768 2006-10-07  Jim Meyering  <jim@meyering.net>
49769
49770         * modules/inttypes (inttypes.h): Revert what seems to have been
49771         an inadvertent part of today's change: use "|", not "/" in the
49772         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
49773
49774 2006-10-07  Bruno Haible  <bruno@clisp.org>
49775
49776         * modules/sublist: New file.
49777
49778 2006-10-07  Bruno Haible  <bruno@clisp.org>
49779
49780         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
49781         * modules/argz (argz.h): Likewise.
49782         * modules/arpa_inet (arpa/inet.h): Likewise.
49783         * modules/byteswap (byteswap.h): Likewise.
49784         * modules/configmake (configmake.h): Likewise.
49785         * modules/fcntl (fcntl.h): Likewise.
49786         * modules/fnmatch (fnmatch.h): Likewise.
49787         * modules/getopt (getopt.h): Likewise.
49788         * modules/glob (glob.h): Likewise.
49789         * modules/inttypes (inttypes.h): Likewise.
49790         * modules/netinet_in (netinet/in.h): Likewise.
49791         * modules/poll (poll.h): Likewise.
49792         * modules/stdbool (stdbool.h): Likewise.
49793         * modules/stdint (stdint.h): Likewise.
49794         * modules/sys_select (sys/select.h): Likewise.
49795         * modules/sys_socket (sys/socket.h): Likewise.
49796         * modules/sys_stat (sys/stat.h): Likewise.
49797         * modules/sysexits (sysexits.h): Likewise.
49798         * modules/unistd (unistd.h): Likewise.
49799         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
49800         Add a "DO NOT EDIT" comment to the generated file.
49801         (func_import): Likewise for gnulib-comp.m4.
49802
49803 2006-10-07  Bruno Haible  <bruno@clisp.org>
49804
49805         * lib/gl_sublist.h: New file.
49806         * lib/gl_sublist.c: New file.
49807
49808 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
49809
49810         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
49811         name (relative to the original working directory) and the file
49812         name component (relative to the temporary working directory).  All
49813         callers changed.
49814         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
49815         * lib/mkdir-p.c (make_dir_parents): Likewise.
49816         * lib/mkdir-p.h (make_dir_parents): Likewise.
49817
49818 2006-10-06  Eric Blake  <ebb9@byu.net>
49819
49820         Define several macros for use by the clean-temp module.
49821         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
49822         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
49823         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
49824
49825         * lib/clean-temp.h (close_stream_temp): New declaration.
49826         * lib/clean-temp.c (includes): Pull in headers according to what
49827         other modules are in use.
49828         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
49829
49830 2006-10-06  Bruno Haible  <bruno@clisp.org>
49831
49832         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
49833         instead of fopen, fwriteerror.
49834
49835 2006-10-06  Bruno Haible  <bruno@clisp.org>
49836
49837         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
49838         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
49839         int.
49840         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
49841         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
49842         Return an error indicator.
49843         Suggested by Eric Blake.
49844
49845 2006-10-06  Bruno Haible  <bruno@clisp.org>
49846
49847         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
49848         Reported by Eric Blake.
49849
49850 2006-10-06  Bruno Haible  <bruno@clisp.org>
49851
49852         * modules/closeout (Description): Mention stderr too.
49853
49854 2006-10-06  Bruno Haible  <bruno@clisp.org>
49855         and Paul Eggert  <eggert@cs.ucla.edu>
49856
49857         * lib/closeout.c (close_stdout): Also close stderr.
49858         * lib/closeout.h: Update comment.
49859
49860 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
49861
49862         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
49863         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
49864         * lib/dirchownmod.c: Include lchown.h.
49865         * lib/lchown.c: Don't include files that lchown.h now includes.
49866         Don't declare chown, since lchown.h now does that.
49867         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
49868         (lchown): Define to rpl_chown if lchown is declared but
49869         does not exist.  Declare using a prototype if lchown is not
49870         declared.  Add a copyright notice.
49871         * lib/mkstemp.h: Include <unistd.h>.
49872         * lib/openat.c: Include lchown.h.
49873
49874         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
49875         we now test for that separately.
49876         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
49877         rather than O_NOFOLLOW, when testing whether it's possible to
49878         avoid a race condition reliably.
49879         * lib/savewd.c (savewd_chdir): Likewise.
49880
49881         Remove macros that are no longer needed now that stdint.h is
49882         reliable.
49883         * lib/fsusage.c (UINTMAX_MAX): Remove.
49884         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
49885         * lib/utimecmp.c (SIZE_MAX): Remove.
49886
49887         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
49888
49889         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
49890         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
49891         O_NOATIME works.
49892
49893 2006-10-05  Bruno Haible  <bruno@clisp.org>
49894
49895         * lib/gl_list.h (gl_sortedlist_search_from_to,
49896         gl_sortedlist_indexof_from_to): New declarations.
49897         (gl_list_implementation): New fields sortedlist_search_from_to,
49898         sortedlist_indexof_from_to.
49899         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
49900         inline functions.
49901         * lib/gl_list.c (gl_sortedlist_search_from_to,
49902         gl_sortedlist_indexof_from_to): New functions.
49903         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
49904         function.
49905         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
49906         (gl_array_sortedlist_search_from_to): New function.
49907         (gl_array_list_implementation): Update.
49908         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
49909         function.
49910         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
49911         (gl_carray_sortedlist_search_from_to): New function.
49912         (gl_carray_list_implementation): Update.
49913         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
49914         gl_linked_sortedlist_indexof_from_to): New functions.
49915         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
49916         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
49917         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
49918         gl_tree_sortedlist_indexof_from_to): New functions.
49919         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
49920         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
49921         Update.
49922         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
49923         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
49924         Update.
49925
49926 2006-10-05  Bruno Haible  <bruno@clisp.org>
49927
49928         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
49929         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
49930         (struct gl_list_implementation): Add fields search_from_to,
49931         indexof_from_to. Remove fields search, indexof.
49932         (gl_list_search): Use the search_from_to method.
49933         (gl_list_search_from, gl_list_search_from_to): New functions.
49934         (gl_list_indexof): Use the indexof_from_to method.
49935         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
49936         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
49937         (gl_list_search_from, gl_list_search_from_to): New functions.
49938         (gl_list_indexof): Use the indexof_from_to method.
49939         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
49940         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
49941         gl_array_indexof. Add start_index, end_index arguments.
49942         (gl_array_search_from_to): Renamed from gl_array_search. Add
49943         start_index, end_index arguments.
49944         (gl_array_remove, gl_array_list_implementation): Update.
49945         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
49946         gl_carray_indexof. Add start_index, end_index arguments.
49947         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
49948         start_index, end_index arguments.
49949         (gl_carray_remove, gl_carray_list_implementation): Update.
49950         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
49951         gl_linked_search. Add start_index, end_index arguments.
49952         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
49953         start_index, end_index arguments.
49954         (gl_linked_remove): Update.
49955         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
49956         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
49957         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
49958         field to 'size_t'.
49959         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
49960         gl_tree_search. Add start_index, end_index arguments.
49961         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
49962         start_index, end_index arguments.
49963         (gl_tree_remove): Update.
49964         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
49965         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
49966         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
49967         function.
49968         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
49969         gl_tree_search. Add start_index, end_index arguments.
49970         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
49971         start_index, end_index arguments.
49972         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
49973         Update.
49974         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
49975
49976 2006-10-05  Bruno Haible  <bruno@clisp.org>
49977
49978         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
49979
49980         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
49981         fwriteerror_temp): New declarations.
49982         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
49983         (descriptors): New variable.
49984         (cleanup): First, close the descriptors.
49985         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
49986         fclose_temp, fwriteerror_temp): New functions.
49987
49988 2006-10-04  Jim Meyering  <jim@meyering.net>
49989
49990         * lib/fts.c (fts_open): Tiny comment change.
49991
49992 2006-10-04  Bruno Haible  <bruno@clisp.org>
49993
49994         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
49995         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
49996         gl_LOCK_BODY.
49997         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
49998         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
49999         gl_LOCK_EARLY_BODY.
50000         (gl_LOCK): Require gl_LOCK_BODY.
50001
50002 2006-10-04  Bruno Haible  <bruno@clisp.org>
50003
50004         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
50005         (gl_oset_search_atleast): New declaration.
50006         (struct gl_oset_implementation): Add field 'search_atleast'.
50007         (gl_oset_search_atleast): New inline function.
50008         * lib/gl_oset.c (gl_oset_search_atleast): New function.
50009         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
50010         (gl_array_oset_implementation): Update.
50011         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
50012         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
50013         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
50014
50015 2006-10-04  Bruno Haible  <bruno@clisp.org>
50016
50017         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
50018
50019 2006-10-03  Bruno Haible  <bruno@clisp.org>
50020
50021         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
50022         from gl_avltreehash_list_implementation.
50023
50024 2006-10-03  Bruno Haible  <bruno@clisp.org>
50025
50026         * lib/gl_oset.c (gl_oset_add): Fix return type.
50027
50028 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
50029
50030         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
50031
50032 2006-10-02  Eric Blake  <ebb9@byu.net>
50033
50034         * modules/strnlen (Depends-on): Add extensions.
50035
50036 2006-10-02  Eric Blake  <ebb9@byu.net>
50037
50038         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
50039         definition in 2.60+.
50040
50041 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
50042
50043         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
50044         checks.
50045
50046 2006-10-02  Bruno Haible  <bruno@clisp.org>
50047
50048         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
50049         to the AUTOMAKE_OPTIONS.
50050         Reported by Jim Meyering.
50051
50052 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
50053
50054         Work around bug in Solaris 10 /proc file system:
50055         /proc/self/fd/NNN/.. isn't the parent directory of
50056         the directory whose file descriptor is NNN.  This needs to
50057         be worked around at run time, not compile time, since a
50058         program might be built on Solaris 8, where things work, and
50059         run on Solaris 10.
50060         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
50061         to use the following interface instead:
50062         (OPENAT_BUFFER_SIZE): New macro.
50063         (openat_proc_name): New function.
50064         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
50065         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
50066         Likewise.
50067         * lib/openat-proc.c: New file.
50068         * modules/openat (Files): Add lib/openat-proc.c.
50069         (Depends-on): Add same-inode, stdbool.
50070         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
50071
50072 2006-09-29  Bruno Haible  <bruno@clisp.org>
50073
50074         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
50075         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
50076         argument. Set stdout_closed before testing for ferror, not after.
50077         (fwriteerror, fwriteerror_no_ebadf): New functions.
50078
50079 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50080
50081         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
50082
50083 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
50084
50085         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
50086         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
50087
50088 2006-09-28  Jim Meyering  <jim@meyering.net>
50089
50090         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
50091         Include <unistd.h>.
50092
50093 2006-09-28  Bruno Haible  <bruno@clisp.org>
50094
50095         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
50096         * modules/linkedhash-list (Depends-on): Likewise.
50097         * modules/rbtreehash-list (Depends-on): Likewise.
50098
50099 2006-09-28  Bruno Haible  <bruno@clisp.org>
50100
50101         * lib/strndup.h: Simplify the redefinition of strndup.
50102         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
50103         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
50104
50105 2006-09-28  Bruno Haible  <bruno@clisp.org>
50106
50107         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
50108         * lib/gl_linkedhash_list.c: Likewise.
50109         * lib/gl_rbtreehash_list.c: Likewise.
50110
50111 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
50112
50113         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
50114         getaddrinfo.
50115
50116         * lib/__fpending.h: Don't include <stdio_ext.h> unless
50117         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
50118         it causes <stdio_ext.h> to cause a compile-time error.
50119         Problem reported by Nelson H. F. Beebe.
50120         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
50121         of HAVE_DECL___PENDING.
50122
50123         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
50124         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
50125         declaration.
50126
50127 2006-09-27  Jim Meyering  <jim@meyering.net>
50128
50129         This file could end up with a definition for a function
50130         named __strndup, rather than rpl_strndup on a system with
50131         incomplete weak_alias support.
50132         * lib/strndup.c (strndup): Rename from __strndup.
50133         Remove #defines that used to map __strndup to strndup.
50134         Don't use K&R prototypes.
50135         Remove LIBC-related code, since this file is not sync'd with glibc.
50136         * lib/strndup.h: Revamp, accordingly.
50137         * m4/strndup.m4: Modernize.
50138
50139 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
50140
50141         * modules/savewd (Depends-on): Add 'raise'.
50142         * lib/savewd.c: Include <signal.h>, for 'raise'.
50143
50144 2006-09-26  Jim Meyering  <jim@meyering.net>
50145
50146         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
50147         when we detect Darwin 8.7.0's acl_get_file bug.
50148         Rearrange to perform the new (below) run-test while $LIBS
50149         contains any acl-related library.  Set USE_ACL at the end.
50150         (gl_ACL_GET_FILE): New function.
50151
50152 2006-09-26  Eric Blake  <ebb9@byu.net>
50153
50154         * lib/verror.c: Include <config.h> unconditionally.
50155
50156 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
50157
50158         * modules/clock-time (Maintainer): Add self.
50159         * modules/getlogin_r (Depends-on): Add extensions.
50160
50161 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50162
50163         * modules/clock-time: New module.
50164         * modules/nanosleep (Depends-on): Add clock-time.
50165         * modules/gethrxtime (Depends-on): Likewise.
50166         * modules/gettime (Depends-on): Likewise.
50167         * modules/settime (Depends-on): Likewise.
50168
50169         * modules/fts-lgpl: Depend on openat.
50170         * modules/mkancesdirs: Depend on savewd.
50171         * modules/mkdir-p: Likewise.
50172
50173 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50174
50175         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
50176
50177         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
50178         `gl_have_arbitrary_file_name_length_limit' to
50179         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
50180         actually works between configure runs.
50181
50182 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50183             Bruno Haible  <bruno@clisp.org>
50184
50185         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
50186
50187 2006-09-25  Jim Meyering  <jim@meyering.net>
50188
50189         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
50190         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
50191
50192 2006-09-25  Eric Blake  <ebb9@byu.net>
50193
50194         * gnulib-tool (func_import, func_create_testdir): Fix typos in
50195         exec's in 2006-09-18 patch when shuffling fds.
50196
50197 2006-09-25  Bruno Haible  <bruno@clisp.org>
50198
50199         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
50200         Reported by Jim Meyering.
50201
50202 2006-09-24  Jim Meyering  <jim@meyering.net>
50203
50204         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
50205         compare a pointer against a literal "0".  That caused failures with
50206         at least HP-UX's hpcc.
50207
50208 2006-09-22  Simon Josefsson  <jas@extundo.com>
50209
50210         * modules/gc-sha1:
50211         * modules/gc-md4:
50212         * modules/gc-hmac-sha1:
50213         * modules/gc-hmac-md5:
50214         * modules/gc-des:
50215         * modules/gc-arcfour: Distribute more files.
50216
50217 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50218
50219         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
50220         (gl_linked_iterator_from_to): Initialize struct completely.
50221         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
50222         (gl_tree_iterator_from_to): Likewise
50223         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
50224         * lib/gl_array_list.c [lint] (gl_array_iterator)
50225         (gl_array_iterator_from_to): Likewise.
50226         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
50227         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
50228         (gl_carray_iterator_from_to): Likewise.
50229
50230         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
50231         * lib/md4.c (md4_process_block): Remove unused variable.
50232         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
50233         parentheses for clarity.
50234
50235 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50236
50237         * modules/bison-i18n (Depends-on): Add gettext.
50238
50239 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50240
50241         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
50242         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
50243         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
50244         also add missing comma that caused broken test.
50245         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
50246         stdlib.h, for `abort'.
50247         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
50248         variables.
50249         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
50250         include unistd.h if present, for `rmdir'.
50251         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
50252         variables.
50253         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
50254         in the process include standard headers for prototypes.
50255         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
50256         gets declared on GNU/Linux.
50257         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
50258         unistd.h, for `rmdir'.
50259         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
50260
50261         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
50262         always true.
50263         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
50264
50265         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
50266
50267 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50268
50269         * gnulib-tool (func_version): Create output all at once.  This
50270         may help avoid triggering unnecessary SIGPIPEs, and at any
50271         rate it doesn't hurt.
50272
50273 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50274             Bruno Haible  <bruno@clisp.org>
50275
50276         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
50277         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
50278         * m4/signed.m4 (bh_C_SIGNED): Likewise.
50279
50280         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
50281         (gl_FUNC_VASPRINTF): Invoke it.
50282
50283 2006-09-22  Bruno Haible  <bruno@clisp.org>
50284
50285         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
50286         getloadavg.c as first argument.
50287
50288 2006-09-22  Bruno Haible  <bruno@clisp.org>
50289
50290         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
50291         at the beginning of the gl_INIT macro.
50292         * modules/getloadavg (configure.ac): Pass $gl_source_base to
50293         gl_GETLOADAVG.
50294
50295 2006-09-22  Bruno Haible  <bruno@clisp.org>
50296
50297         * gnulib-tool (func_create_megatestdir): Don't include the config-h
50298         module.
50299         Suggested by Ralf Wildenhues.
50300
50301 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
50302
50303         Import this patch from libc:
50304
50305         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
50306
50307         * lib/regex_internal.c (re_string_reconstruct): Handle
50308         offset < pstr->valid_raw_len && pstr->offsets_needed case.
50309         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
50310         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
50311         re_string_context_at.
50312
50313         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
50314         now requires it.
50315         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
50316         gl_REGEX now does it for us.
50317         (gl_REGEX): Add test taken from
50318         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
50319
50320         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
50321         Check that large offsets work.  Modernize Autoconf usages.
50322         Prefer "yes" to mean a good thing rather than a bad.
50323         Don't put "#define mkstemp" in config.h, as this might interfere
50324         with standard system headers that "#define mkstemp mkstemp64".
50325
50326         * modules/mkstemp (Depends-on): Add extensions, so that
50327         mkstemp is visible on some platforms.
50328         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
50329         (Include): Change to "mkstemp.h" from <stdlib.h>.
50330         (Files): Add mkstemp.h.
50331
50332         * lib/mkstemp.h: New file, since some standard headers
50333         #define mkstemp.
50334         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
50335         Include "mkstemp.h".
50336         Make the _LIBC code resemble glibc original more,
50337         e.g., use K&R style.
50338         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
50339         (mkstemp): Remove, since mkstemp.h does this for us.
50340         * lib/stdlib--.h: Include mkstemp.h.
50341
50342         Import this patch from libc:
50343
50344         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
50345
50346         * lib/tempname.c (__gen_tempname): Change attempts_min
50347         into a macro.  Use preprocessor to decide how to initialize
50348         attempts [Coverity CID 67].
50349
50350 2006-09-20  Bruno Haible  <bruno@clisp.org>
50351
50352         * lib/mkdtemp.c: Import from libc.
50353         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
50354                 * sysdeps/posix/tempname.c (__gen_tempname): Change
50355                 attempts_min into a macro.  Use preprocessor to decide how to
50356                 initialize attempts [Coverity CID 67].
50357         2001-11-27  Paul Eggert  <eggert@twinsun.com>
50358                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
50359                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
50360
50361 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50362
50363         * gnulib-tool (func_exit): New function, to allow to pass the
50364         exit status portably through the trap.  Use everywhere.
50365         (--help, --version): Signal a write error.
50366         (trap): catch SIGPIPE, for write errors.
50367         Exit at the end of the trap, with the correct exit status.
50368
50369 2006-09-19  Karl Berry  <karl@gnu.org>
50370
50371         * doc/gnulib.texi: note about the license texinfo files.
50372
50373 2006-09-19  Eric Blake  <ebb9@byu.net>
50374
50375         * gnulib-tool: Avoid space-tab.
50376
50377 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
50378
50379         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
50380         that prevented coreutils 6.1 from building.  Problem reported
50381         by Petter Reinholdtsen.
50382
50383 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
50384
50385         * gnulib-tool (avoidlist): Fix typo that broke options like
50386         --avoid=lock that are used by coreutils bootstrap.
50387
50388 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
50389
50390         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
50391         more systematically.
50392
50393 2006-09-18  Jim Meyering  <jim@meyering.net>
50394
50395         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
50396
50397 2006-09-18  Bruno Haible  <bruno@clisp.org>
50398
50399         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
50400
50401 2006-09-18  Bruno Haible  <bruno@clisp.org>
50402
50403         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
50404         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
50405         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
50406         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
50407         * m4/gettext.m4: Require autoconf >= 2.52.
50408         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
50409         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
50410         of gl_cv_header_inttypes_h.
50411
50412 2006-09-18  Bruno Haible  <bruno@clisp.org>
50413
50414         * lib/javaversion.c: Include configmake.h.
50415
50416 2006-09-18  Bruno Haible  <bruno@clisp.org>
50417
50418         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
50419         avoid that the while loops be executed in a subshell.
50420
50421 2006-09-18  Bruno Haible  <bruno@clisp.org>
50422
50423         * MODULES.html.sh (func_module): Break long lines.
50424         Suggested by Bruce Korb <bkorb@gnu.org>.
50425
50426 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50427
50428         Speed up by a factor of 1.12.
50429         * gnulib-tool (nl): New variable.
50430         (func_import): Rewrite include directive extraction to only read each
50431         directive once.
50432
50433 2006-09-17  Bruno Haible  <bruno@clisp.org>
50434
50435         * modules/javaversion (Makefile.am): Remove DEFS setting.
50436         (Depends-on): Add configmake, for PKGDATADIR definition.
50437
50438 2006-09-17  Bruno Haible  <bruno@clisp.org>
50439
50440         * gnulib-tool (func_create_testdir): Rewrite all files at once.
50441
50442 2006-09-17  Bruno Haible  <bruno@clisp.org>
50443
50444         * gnulib-tool (func_append): New function, stolen from libtool.m4.
50445         (func_modules_transitive_closure, func_modules_add_dummy,
50446         func_modules_to_filelist, func_import, func_create_testdir,
50447         func_create_megatestdir, ...): Use it wherever possible.
50448         Suggested by Ralf Wildenhues.
50449
50450 2006-09-16  Karl Berry  <karl@gnu.org>
50451
50452         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
50453         to avoid sectioning errors.
50454         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
50455         [ifinfo]: blank line after @center-ed titles.
50456         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
50457         Spell FSF address consistently with others.
50458         (These changes approved by rms.)
50459
50460 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50461
50462         Speed up by a factor of 1.61.
50463         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
50464         already checked module names again.
50465
50466 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50467
50468         Speed up by a factor of 1.13.
50469         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
50470         for new_files, and the input to func_add_or_update.
50471
50472 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50473
50474         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
50475         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
50476
50477 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
50478
50479         * modules/mkancesdirs (Depends-on): Add fcntl.
50480         * modules/savewd: New file.
50481         * MODULES.html.sh (File system functions): Add savewd.
50482
50483         * modules/configmake (Makefile.am): Add support for the
50484         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
50485
50486 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
50487
50488         * m4/savewd.m4: New file.
50489
50490 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
50491
50492         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
50493         (dirchownmod): New arg FD.  All callers changed.
50494         Use FD rather than opening the directory ourself, as opening is
50495         now the caller's responsibility.
50496         * lib/dirchownmod.h: Likewise.
50497         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
50498         hosts that require <sys/types.h> before <sys/stat.h>.  Include
50499         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
50500         (test_dir): Remove.
50501         (mkancesdirs): Return length of prefix of FILE that has already
50502         been made, or -2 if there is a child doing the work.  Redo
50503         algorithm so that it is O(N) rather than O(N**2).  Optimize away
50504         ".", and treat ".." specially since it might stray back into
50505         already-created areas.  Use a subprocess if necessary.  New arg
50506         WD; all users changed.  MAKE_DIR function should now return 1
50507         if it creates a directory that is not readable.  Return -2 if
50508         a child process is spun off.
50509         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
50510         Adjust signature to match code.
50511         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
50512         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
50513         all users changed.
50514         * lib/savewd.c, lib/savewd.h: New files.
50515
50516 2006-09-15  Jim Meyering  <jim@meyering.net>
50517
50518         * modules/rename-dest-slash: New module.
50519         * MODULES.html.sh (posix_compat): Add it here.
50520
50521         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
50522
50523 2006-09-15  Jim Meyering  <jim@meyering.net>
50524
50525         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
50526         file.
50527
50528         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
50529
50530 2006-09-15  Jim Meyering  <jim@meyering.net>
50531
50532         * lib/rename-dest-slash.c (has_trailing_slash): Use
50533         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
50534         (rpl_rename_dest_slash): Perform the cheaper trailing slash
50535         test before testing whether SRC is a directory.
50536         Suggestions from Bruno Haible.
50537
50538         Avoid a warning about an unused variable.
50539         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
50540         into the #ifdef block where it's used.
50541
50542         * lib/rename-dest-slash.c: New file.
50543
50544 2006-09-14  Bruno Haible  <bruno@clisp.org>
50545
50546         * lib/allocsa.c: Include <config.h> unconditionally.
50547         * lib/asnprintf.c: Likewise.
50548         * lib/asprintf.c: Likewise.
50549         * lib/c-strcasecmp.c: Likewise.
50550         * lib/c-strcasestr.c: Likewise.
50551         * lib/c-strncasecmp.c: Likewise.
50552         * lib/c-strstr.c: Likewise.
50553         * lib/classpath.c: Likewise.
50554         * lib/clean-temp.c: Likewise.
50555         * lib/concatpath.c: Likewise.
50556         * lib/copy-file.c: Likewise.
50557         * lib/csharpcomp.c: Likewise.
50558         * lib/csharpexec.c: Likewise.
50559         * lib/execute.c: Likewise.
50560         * lib/fatal-signal.c: Likewise.
50561         * lib/findprog.c: Likewise.
50562         * lib/fwriteerror.c: Likewise.
50563         * lib/gl_array_list.c: Likewise.
50564         * lib/gl_array_oset.c: Likewise.
50565         * lib/gl_avltree_list.c: Likewise.
50566         * lib/gl_avltree_oset.c: Likewise.
50567         * lib/gl_avltreehash_list.c: Likewise.
50568         * lib/gl_carray_list.c: Likewise.
50569         * lib/gl_linked_list.c: Likewise.
50570         * lib/gl_linkedhash_list.c: Likewise.
50571         * lib/gl_list.c: Likewise.
50572         * lib/gl_oset.c: Likewise.
50573         * lib/gl_rbtree_list.c: Likewise.
50574         * lib/gl_rbtree_oset.c: Likewise.
50575         * lib/gl_rbtreehash_list.c: Likewise.
50576         * lib/imaxabs.c: Likewise.
50577         * lib/imaxdiv.c: Likewise.
50578         * lib/javacomp.c: Likewise.
50579         * lib/javaexec.c: Likewise.
50580         * lib/javaversion.c: Likewise.
50581         * lib/linebreak.c: Likewise.
50582         * lib/localcharset.c: Likewise.
50583         * lib/lock.c: Likewise.
50584         * lib/mbchar.c: Likewise.
50585         * lib/mbswidth.c: Likewise.
50586         * lib/mkdtemp.c: Likewise.
50587         * lib/pipe.c: Likewise.
50588         * lib/printf-args.c: Likewise.
50589         * lib/printf-parse.c: Likewise.
50590         * lib/progname.c: Likewise.
50591         * lib/progreloc.c: Likewise.
50592         * lib/readlink.c: Likewise.
50593         * lib/sh-quote.c: Likewise.
50594         * lib/stpcpy.c: Likewise.
50595         * lib/stpncpy.c: Likewise.
50596         * lib/strcasecmp.c: Likewise.
50597         * lib/strcasestr.c: Likewise.
50598         * lib/strcspn.c: Likewise.
50599         * lib/striconv.c: Likewise.
50600         * lib/strncasecmp.c: Likewise.
50601         * lib/strnlen1.c: Likewise.
50602         * lib/strstr.c: Likewise.
50603         * lib/strtok_r.c: Likewise.
50604         * lib/tls.c: Likewise.
50605         * lib/tmpdir.c: Likewise.
50606         * lib/unicodeio.c: Likewise.
50607         * lib/unsetenv.c: Likewise.
50608         * lib/vasnprintf.c: Likewise.
50609         * lib/vasprintf.c: Likewise.
50610         * lib/wait-process.c: Likewise.
50611         * lib/xallocsa.c: Likewise.
50612         * lib/xsetenv.c: Likewise.
50613         * lib/xstriconv.c: Likewise.
50614
50615 2006-09-13  Simon Josefsson  <jas@extundo.com>
50616
50617         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
50618         that internally, suggested by Ralf Wildenhues
50619         <Ralf.Wildenhues@gmx.de>.
50620
50621 2006-09-13  Simon Josefsson  <jas@extundo.com>
50622
50623         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
50624         @LIBOBJS@.
50625         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50626
50627 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
50628
50629         * lib/_fpending.c: Include <config.h> unconditionally, since we no
50630         longer worry about uses that don't define HAVE_CONFIG_H.
50631         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
50632         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
50633         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
50634         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
50635         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
50636         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
50637         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
50638         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
50639         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
50640         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
50641         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
50642         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
50643         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
50644         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
50645         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
50646         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
50647         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
50648         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
50649         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
50650         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
50651         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
50652         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
50653         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
50654         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
50655         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
50656         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
50657         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
50658         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
50659         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
50660         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
50661         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
50662         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
50663         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
50664         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
50665         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
50666         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
50667         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
50668         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
50669         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
50670         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
50671         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
50672         Likewise.
50673
50674 2006-09-13  Eric Blake  <ebb9@byu.net>
50675
50676         * lib/getopt.c: Fix typo in last commit.
50677
50678 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
50679
50680         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
50681         dgettext.
50682
50683 2006-09-12  Jim Meyering  <jim@meyering.net>
50684
50685         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
50686         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
50687         Reported by Nelson H. F. Beebe.
50688
50689 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
50690
50691         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
50692         program_invocation_name and program_invocation_short_name are
50693         initialized.
50694         * lib/argp-namefrob.h: Move declarations of program_invocation_name
50695         and program_invocation_short_name to argp.h, so they are visible
50696         to user programs.
50697         * lib/argp.h: Likewise
50698
50699 2006-09-10  Bruno Haible  <bruno@clisp.org>
50700
50701         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
50702         m4/inttypes_h.m4, m4/uintmax_t.m4.
50703
50704 2006-09-10  Bruno Haible  <bruno@clisp.org>
50705
50706         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
50707         gl_AC_TYPE_UINTMAX_T.
50708
50709 2006-09-10  Bruno Haible  <bruno@clisp.org>
50710
50711         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
50712
50713 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
50714
50715         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
50716         convention.  Text proposed by Bruno Haible.
50717         (struct argp_option): Document the use of N_() wrappers.
50718
50719         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
50720         '\v', and translate the two parts separately, instead of feeding
50721         the whole string to gettext.  This allows to exclude
50722         '\v' from the strings visible to the translator by writing doc
50723         strings as N_("..") "\v" N_("..").
50724
50725 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
50726
50727         * config/srclist.txt: Undo latest change; the bug was fixed.
50728
50729 2006-09-09  Bruno Haible  <bruno@clisp.org>
50730
50731         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
50732         assignments if building a library without libtool.
50733         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
50734         in func_emit_lib_Makefile_am.
50735         (func_import): When building a static library libfoo.a, arrange to
50736         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
50737         (func_create_testdir): Likewise.
50738         * modules/gc (configure.ac, Makefile.am): If building statically,
50739         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
50740         * modules/iconvme (configure.ac, Makefile.am): Likewise.
50741         * modules/striconv (configure.ac, Makefile.am): Likewise.
50742         Based on a suggestion by Ralf Wildenhues.
50743
50744 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
50745
50746         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
50747         Check for unistd.h too, since Autoconf doesn't assume POSIX.
50748         Also:
50749
50750         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
50751         Add year_2050_test to catch glibc bug 2821
50752         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
50753
50754         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
50755         Prefer #ifdef to #if.
50756
50757         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
50758         Return from 'main' instead of calling 'exit'.
50759
50760 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
50761
50762         * lib/mktime.c (guess_time_tm): Fix bug where mktime
50763         returned the maximum time_t value rather than (time_t) -1.
50764         Problem originally reported by William Bardwell
50765         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
50766
50767         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
50768         Moved to here ...
50769         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
50770         ... from here.
50771
50772 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
50773
50774         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
50775         2821 is fixed.
50776
50777 2006-09-08  Jim Meyering  <jim@meyering.net>
50778
50779         Don't make generated files read-only.  That would bother too many
50780         people.  However, do retain the ability to work when targets are
50781         read-only: remove the destination and temporary files before writing
50782         them (when generated via sed or echo), or by using the -f option for
50783         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
50784         * modules/alloca-opt, modules/argz, modules/arpa_inet:
50785         * modules/byteswap, modules/configmake, modules/fcntl:
50786         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
50787         * modules/localcharset, modules/netinet_in, modules/poll:
50788         * modules/stdbool, modules/stdint, modules/sys_select:
50789         * modules/sys_socket, modules/sys_stat, modules/sysexits:
50790
50791 2006-09-08  Jim Meyering  <jim@meyering.net>
50792
50793         Avoid new build failure on FreeBSD 6.0.
50794         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
50795         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
50796         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
50797
50798 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50799
50800         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
50801
50802 2006-09-07  Jim Meyering  <jim@meyering.net>
50803
50804         Fix global typo in last change: use chmod u-w, not chmod u-x.
50805         Spotted by Paul Eggert and Bruce Korb.
50806         * modules/alloca-opt, modules/argz, modules/arpa_inet:
50807         * modules/byteswap, modules/configmake, modules/fcntl:
50808         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
50809         * modules/localcharset, modules/netinet_in, modules/poll:
50810         * modules/stdbool, modules/stdint, modules/sys_select:
50811         * modules/sys_socket, modules/sys_stat, modules/sysexits:
50812
50813 2006-09-06  Jim Meyering  <jim@meyering.net>
50814
50815         Make generated files be read-only.
50816         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
50817         Ensure that each generated file is now read-only.
50818         * modules/argz: Likewise.
50819         * modules/arpa_inet: Likewise.
50820         * modules/byteswap: Likewise.
50821         * modules/configmake: Likewise.
50822         * modules/fcntl: Likewise.
50823         * modules/fnmatch: Likewise.
50824         * modules/getopt: Likewise.
50825         * modules/glob: Likewise.
50826         * modules/inttypes: Likewise.
50827         * modules/netinet_in: Likewise.
50828         * modules/poll: Likewise.
50829         * modules/stdbool: Likewise.
50830         * modules/stdint: Likewise.
50831         * modules/sys_select: Likewise.
50832         * modules/sys_socket: Likewise.
50833         * modules/sys_stat: Likewise.
50834         * modules/sysexits: Likewise.
50835         * modules/localcharset: Same as above, but continue using temporary
50836         file named "t-$@" (why different?) rather than the "$@-t" used
50837         everywhere else.
50838
50839         * modules/sysexits (Makefile.am): Replace literal occurrences
50840         of "sysexit.h" more readable, and more consistent, "$@".
50841
50842 2006-09-06  Bruno Haible  <bruno@clisp.org>
50843
50844         * modules/striconv: New file.
50845         * modules/xstriconv: New file.
50846         * MODULES.html.sh (Internationalization functions): Add striconv,
50847         xstriconv.
50848
50849 2006-09-06  Bruno Haible  <bruno@clisp.org>
50850
50851         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
50852         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
50853         not using libtool correctly.
50854
50855 2006-09-06  Bruno Haible  <bruno@clisp.org>
50856
50857         * lib/striconv.h: New file.
50858         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
50859         iconvstring.c.
50860         * lib/xstriconv.h: New file.
50861         * lib/xstriconv.c: New file.
50862
50863 2006-09-06  Bruno Haible  <bruno@clisp.org>
50864
50865         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
50866         lib_..._LDFLAGS.
50867
50868 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50869
50870         * lib/argz_.h: Sync from Libtool.
50871
50872         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
50873                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
50874
50875         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
50876
50877 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
50878
50879         * modules/trim: New file.
50880
50881 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
50882
50883         * lib/trim.h: New file.
50884         * lib/trim.c: New file.
50885
50886 2006-09-05  Bruno Haible  <bruno@clisp.org>
50887
50888         * MODULES.html.sh (String handling): Add trim.
50889
50890 2006-09-04  Karl Berry  <karl@gnu.org>
50891
50892         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
50893         until next release.
50894
50895 2006-09-03  Bruno Haible  <bruno@clisp.org>
50896
50897         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
50898         correctly.
50899
50900 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
50901
50902         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
50903         not gl_GETLOADAVG.  Omit unneeded semicolons.
50904         Problems reported by Ralf Wildenhues in
50905         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
50906         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
50907         at the end, which is the usual gnulib style.
50908
50909         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
50910         of doing all the work ourselves.
50911         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
50912         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
50913
50914 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
50915
50916         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
50917         Problem reported by Ralf Wildenhues in
50918         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
50919
50920         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
50921         HAVE_STRUCT_STATFS_F_FSTYPENAME.
50922
50923 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
50924
50925         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
50926         yesterday's patch by changing test -n to test -z.
50927
50928 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
50929
50930         * modules/getloadavg (Files): Add m4/getloadavg.m4.
50931         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
50932         the former is now obsolescent.
50933
50934         * modules/chdir-long (Depends-on): Add fcntl.
50935
50936 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
50937
50938         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
50939         obsolescent, and programs should use gnulib instead.
50940         * m4/getloadavg.m4: New file, with contents taken from Autoconf
50941         but with prefixes changed.
50942
50943 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
50944
50945         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
50946         or stdbool.h, because they might not exist while configuring.
50947
50948         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
50949         Don't include unistd.h or limits.h; not needed, since chdir-long.h
50950         does that for us.
50951         (O_DIRECTORY): Remove.
50952
50953 2006-08-31  Eric Blake  <ebb9@byu.net>
50954
50955         * gnulib-tool: Don't let emacs change spaces to TAB.
50956
50957 2006-08-31  Bruno Haible  <bruno@clisp.org>
50958
50959         * gnulib-tool: When calling func_import more than once, do it in a
50960         subshell.
50961         Reported by Eric Blake <ebb9@byu.net>.
50962
50963 2006-08-31  Bruno Haible  <bruno@clisp.org>
50964
50965         * gnulib-tool (nl): Remove variable.
50966         (sed_transform_lib_file): Use more robust test for config-h module.
50967         (func_import): Fix typo in 2006-08-25 patch.
50968
50969 2006-08-31  Bruno Haible  <bruno@clisp.org>
50970
50971         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
50972         specified, augment Makefile.am variables instead of assigning them.
50973
50974 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
50975
50976         Work around a bug in both the Linux and SunOS 64-bit kernels:
50977         nanosleep mishandles sleeps for longer than 2**31 seconds.
50978         Problem reported by Frank v Waveren in
50979         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
50980         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
50981         Check for nanosleep bug.
50982         (LIB_NANOSLEEP): Append clock_gettime library if needed.
50983
50984 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
50985
50986         Work around a bug in both the Linux and SunOS 64-bit kernels:
50987         nanosleep mishandles sleeps for longer than 2**31 seconds.
50988         Problem reported by Frank v Waveren in
50989         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
50990         * lib/nanosleep.c (BILLION): New constant.
50991         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
50992         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
50993         implementation.
50994
50995 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
50996
50997         * modules/nanosleep (Depends-on): Add gettime.
50998
50999 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
51000         and Simon Josefsson  <jas@extundo.com>
51001         and Oskar Liljeblad  <oskar@osk.mine.nu>
51002
51003         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
51004         * gnulib-tool (func_import): New license type 'unmodifiable license
51005         text'.
51006         * modules/fdl: Use it.  Longer description.
51007         * module/gpl, module/lgpl: New files.
51008
51009 2006-08-30  Jim Meyering  <jim@meyering.net>
51010
51011         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
51012         shadowing the parameter.
51013
51014 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51015
51016         Sync from Libtool:
51017
51018         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51019
51020         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
51021         sharing with gnulib.  Report by Eric Blake.
51022
51023 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
51024
51025         * modules/isapipe: New file.
51026         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
51027
51028 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
51029
51030         * modules/configmake (Makefile.am): Add a comment, and omit
51031         the CONFIGMAKE_ prefix from generated macro names.  Suggested
51032         by Bruno Haible.
51033
51034 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
51035
51036         * m4/isapipe.m4: New file.
51037
51038 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
51039
51040         * lib/isapipe.c, lib/isapipe.h: New files.
51041
51042 2006-08-29  Jim Meyering  <jim@meyering.net>
51043
51044         * modules/configmake (Makefile.am): Make configmake.h depend on
51045         Makefile.  Otherwise, a stale configmake.h could hang around.
51046
51047 2006-08-29  Eric Blake  <ebb9@byu.net>
51048
51049         * lib/error.c (error_at_line, print_errno_message): Match libc, after
51050         resolution of upstream bug 3044.
51051
51052 2006-08-29  Bruno Haible  <bruno@clisp.org>
51053
51054         * modules/localcharset (Depends-on): Add configmake.
51055         (Makefile.am): Remove setting of LIBDIR through DEFS.
51056
51057 2006-08-29  Bruno Haible  <bruno@clisp.org>
51058
51059         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
51060         defined.
51061
51062 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
51063
51064         * modules/fcntl: New file.
51065         * modules/chdir-safer (Depends-on): Add fcntl.
51066         * modules/fts: Likewise.
51067         * modules/mkdir-p: Likewise.
51068
51069         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
51070         This undoes the most recent change, since we're now addressing the
51071         problem in a different way.
51072
51073         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
51074         into output, since the output might be called Makefile.am even
51075         if $makefile_name is something different.
51076         (func_import): Use $makefile_am rather than
51077         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
51078         empty.
51079
51080         * modules/inttypes (Files): Add m4/inttypes-h.m4.
51081
51082 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
51083
51084         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
51085         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
51086         recent change to stdint.m4, since we're now addressing the problem in a
51087         different way.
51088
51089 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
51090
51091         * m4/fcntl_h.m4: New file.
51092
51093 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
51094
51095         * lib/fcntl_.h: New file.
51096         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
51097         the fcntl module.
51098         * lib/dirchownmod.c: Likewise.
51099         * lib/fts.c: Likewise.
51100
51101         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
51102         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
51103         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
51104         just before including <inttypes.h>, to avoid circular inclusion.
51105
51106 2006-08-28  Jim Meyering  <jim@meyering.net>
51107
51108         * doc/visibility.texi: Actually read and correct the grammar of the
51109         sentence affected by yesterday's change.
51110
51111 2006-08-28  Eric Blake  <ebb9@byu.net>
51112
51113         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
51114         needs wrapper.
51115
51116 2006-08-28  Eric Blake  <ebb9@byu.net>
51117
51118         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
51119
51120 2006-08-28  Eric Blake  <ebb9@byu.net>
51121
51122         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
51123
51124 2006-08-28  Bruno Haible  <bruno@clisp.org>
51125
51126         * modules/c-strstr: New file, from GNU gettext.
51127         * MODULES.html.sh (String handling): Add c-strstr.
51128
51129 2006-08-28  Bruno Haible  <bruno@clisp.org>
51130
51131         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
51132         macros.
51133         Reported by Eric Blake.
51134
51135 2006-08-28  Bruno Haible  <bruno@clisp.org>
51136
51137         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
51138         (VASNPRINTF): Return a string of length > INT_MAX without failing.
51139         * lib/vasprintf.c: Include errno.h, limits.h.
51140         (EOVERFLOW): New fallback definition.
51141         (vasprintf): Test here whether the string length is > INT_MAX.
51142         * lib/vsnprintf.c: Include errno.h, limits.h.
51143         (EOVERFLOW): New fallback definition.
51144         (vsnprintf): Fix bug when generated string was too long for the buffer.
51145         Test here whether the string length is > INT_MAX.
51146
51147 2006-08-28  Bruno Haible  <bruno@clisp.org>
51148
51149         * lib/inttypes_.h (SCNX*): Remove definitions.
51150         Reported by Eric Blake.
51151
51152 2006-08-28  Bruno Haible  <bruno@clisp.org>
51153
51154         * lib/c-strstr.h: New file, from GNU gettext.
51155         * lib/c-strstr.c: New file, from GNU gettext.
51156
51157 2006-08-28  Bruno Haible  <bruno@clisp.org>
51158
51159         * gnulib-tool: Reorder some statements.
51160
51161 2006-08-28  Bruno Haible  <bruno@clisp.org>
51162
51163         * gnulib-tool: New option --makefile-name.
51164         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
51165         $makefile_name.
51166         (func_import): Write $makefile_name to the cache file, and read it from
51167         there unless explicitly specified. Use $makefile_name as file name
51168         instead of Makefile.am. Adjust the recommendations accordingly.
51169
51170 2006-08-28  Bruno Haible  <bruno@clisp.org>
51171
51172         * gnulib-tool (func_verify_module): Check against misapplying patch.
51173
51174 2006-08-28  Bruno Haible  <bruno@clisp.org>
51175
51176         * gnulib-tool (func_relativize, func_relconcat): New functions.
51177         Give an error if --local-dir is given with --update.
51178         Remove trailing slashes from $local_gnulib_dir.
51179         (func_import): Store the relativized $local_gnulib_dir in
51180         gnulib-cache.m4, and read it from there if not specified explicitly.
51181
51182 2006-08-28  Bruno Haible  <bruno@clisp.org>
51183
51184         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
51185         is the current directory. Respect also $local_gnulib_dir.
51186
51187 2006-08-28  Bruno Haible  <bruno@clisp.org>
51188             Simon Josefsson  <jas@extundo.com>
51189
51190         BeOS portability.
51191         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
51192
51193 2006-08-27  Jim Meyering  <jim@meyering.net>
51194
51195         * doc/visibility.texi: Remove duplicate word: "pointer".
51196
51197 2006-08-26  Bruno Haible  <bruno@clisp.org>
51198
51199         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
51200         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
51201         (Makefile.am): Create inttypes.h from inttypes_.h.
51202         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
51203
51204         * modules/imaxabs: New file.
51205
51206         * modules/imaxdiv: New file.
51207
51208 2006-08-26  Bruno Haible  <bruno@clisp.org>
51209
51210         * m4/inttypes.m4: New file.
51211         * m4/_inttypes_h.m4: Remove file.
51212         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
51213         PRI_MACROS_BROKEN.
51214         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
51215
51216         * m4/imaxabs.m4: New file.
51217
51218         * m4/imaxdiv.m4: New file.
51219
51220 2006-08-26  Bruno Haible  <bruno@clisp.org>
51221
51222         * lib/inttypes_.h: New file.
51223         * lib/inttypes.h: Remove file.
51224         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
51225
51226         * lib/imaxabs.c: New file.
51227
51228         * lib/imaxdiv.c: New file.
51229
51230 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
51231
51232         New config-h module, so that "make" output needn't be cluttered
51233         by -DHAVE_CONFIG_H.
51234         * MODULES.html.sh (Support for building libraries and executables):
51235         Add config-h.
51236         * modules/config-h: New file.
51237         * gnulib-tool (nl, sed_transform_lib_file): New vars.
51238         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
51239         the config-h module is used.
51240
51241         New configmake module, so that "make" output needn't be cluttered
51242         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
51243         * MODULES.html.sh (Support for building libraries and executables):
51244         Add configmake.
51245         * modules/configmake: New file.
51246
51247 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
51248
51249         * m4/config-h.m4: New file.
51250
51251 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
51252
51253         * config/srclist.txt: Add elisp-comp.
51254
51255 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
51256
51257         * MODULES.html.sh (Support for building libraries and executables):
51258         Add elisp-comp.
51259         * build-aux/elisp-comp: New file.
51260         * modules/elisp-comp: New file.
51261
51262 2006-08-24  Bruno Haible  <bruno@clisp.org>
51263
51264         * gnulib-tool (func_create_testdir): Use non-default values of
51265         sourcebase and m4base.
51266
51267 2006-08-24  Bruno Haible  <bruno@clisp.org>
51268
51269         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
51270         HTML structure.
51271
51272 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
51273
51274         * modules/openat (Depends-on): Add lchown.
51275
51276 2006-08-23  Bruno Haible  <bruno@clisp.org>
51277
51278         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
51279         of gl_LOCK_EARLY instead of gl_LOCK.
51280
51281 2006-08-23  Bruno Haible  <bruno@clisp.org>
51282
51283         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
51284         on OSF/1 to no.
51285         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
51286
51287 2006-08-23  Bruno Haible  <bruno@clisp.org>
51288
51289         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
51290         as unusable.
51291
51292         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
51293         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
51294         (gl_LOCK): New macro.
51295
51296 2006-08-22  Simon Josefsson  <jas@extundo.com>
51297
51298         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
51299         to md5 module.
51300
51301 2006-08-22  Simon Josefsson  <jas@extundo.com>
51302
51303         * MODULES.html.sh: Add "Support for maintaining and release
51304         projects".
51305
51306         * build-aux/gnupload: New file, from coreutils.
51307
51308 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
51309
51310         Avoid the need for AC_LIBSOURCES in m4 macros.
51311         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
51312         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
51313         * modules/check-version (EXTRA_DIST): Add check-version.h.
51314         * modules/crc (EXTRA_DIST): Add crc.h.
51315         * modules/des (EXTRA_DIST): Add des.h.
51316         * modules/gc (EXTRA_DIST): Add gc.h.
51317         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
51318         * modules/getline (EXTRA_DIST): Add getline.h.
51319         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
51320         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
51321         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
51322         * modules/md2 (EXTRA_DIST): Add md2.h.
51323         * modules/md4 (EXTRA_DIST): Add md4.h.
51324         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
51325         * modules/read-file (EXTRA_DIST): Add read-file.h.
51326         * modules/readline (EXTRA_DIST): Add readline.h.
51327         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
51328         rijndael-api-fst.h.
51329
51330 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
51331
51332         * m4/rijndael.m4 (gl_ARCFOUR):
51333         * m4/arctwo.m4 (gl_ARCTWO):
51334         * m4/check-version.m4 (gl_CHECK_VERSION):
51335         * m4/crc.m4 (gl_CRC):
51336         * m4/des.m4 (gl_DES):
51337         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
51338         * m4/gc.m4 (gl_GC):
51339         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
51340         * m4/getline.m4 (gl_FUNC_GETLINE):
51341         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
51342         * m4/hmac-md5.m4 (gl_HMAC_MD5):
51343         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
51344         * m4/md2.m4 (gl_MD2):
51345         * m4/md4.m4 (gl_MD4):
51346         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
51347         * m4/read-file.m4 (gl_FUNC_READ_FILE):
51348         * m4/readline.m4 (gl_FUNC_READLINE):
51349         * m4/rijndael.m4 (gl_RIJNDAEL):
51350         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
51351         to get the necessary .h files and whatnot.
51352
51353 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
51354
51355         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
51356         gnulib rather than the other way around.
51357         * config/srclistvars.sh (COREUTILS): Remove.
51358
51359 2006-08-22  Jim Meyering  <jim@meyering.net>
51360
51361         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
51362
51363         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
51364
51365 2006-08-22  Eric Blake  <ebb9@byu.net>
51366
51367         * modules/regexprops-generic: New file.
51368         * MODULES.html.sh (Support for building documentation): List it.
51369
51370 2006-08-22  Eric Blake  <ebb9@byu.net>
51371
51372         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
51373         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
51374         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
51375         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
51376
51377 2006-08-22  Bruno Haible  <bruno@clisp.org>
51378
51379         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
51380         and lib_LTLIBRARIES like the other lib_* variables.
51381
51382 2006-08-22  Bruno Haible  <bruno@clisp.org>
51383
51384         * build-aux/x-to-1.in: New file, from GNU gettext.
51385
51386 2006-08-22  Bruno Haible  <bruno@clisp.org>
51387
51388         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
51389         <utmpx.h> exists.
51390
51391 2006-08-22  Bruno Haible  <bruno@clisp.org>
51392
51393         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
51394         <utmpx.h> exists.
51395
51396 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
51397
51398         BeOS portability.
51399         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
51400         exist.
51401         Problem reported by Bruno Haible.
51402
51403 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
51404
51405         Avoid the need for AC_LIBSOURCES in m4 macros.
51406         * modules/acl (EXTRA_DIST): Add acl.h.
51407         * modules/argmatch (Files): Add m4/argmatch.m4.
51408         (configure.ac): Add gl_ARGMATCH.
51409         (EXTRA_DIST): Renamed from lib_SOURCES, for
51410         consistency with the other modules.  Remove argmatch.c.
51411         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
51412         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
51413         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
51414         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
51415         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
51416         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
51417         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
51418         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
51419         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
51420         * modules/closeout (EXTRA_DIST): Add closeout.h.
51421         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
51422         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
51423         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
51424         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
51425         dirname.h; remove basename.c and stripslash.c.
51426         * modules/exclude (EXTRA_DIST): Add exclude.h.
51427         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
51428         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
51429         * modules/file-type (EXTRA_DIST): Add file-type.h.
51430         * modules/filemode (EXTRA_DIST): Add filemode.h.
51431         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
51432         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
51433         * modules/fpending (EXTRA_DIST): Add __fpending.h.
51434         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
51435         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
51436         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
51437         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
51438         * modules/getdate (EXTRA_DIST): Add getdate.c.
51439         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
51440         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
51441         * modules/getpass (EXTRA_DIST): Add getpass.h.
51442         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
51443         * modules/group-member (EXTRA_DIST): Add group-member.h.
51444         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
51445         * modules/hash (EXTRA_DIST): Add hash.h.
51446         * modules/human (EXTRA_DIST): Add human.h.
51447         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
51448         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
51449         * modules/lchown (EXTRA_DIST): Add lchown.h.
51450         * modules/long-options (EXTRA_DIST): Add long-options.h.
51451         * modules/lstat (EXTRA_DIST): Add lstat.h.
51452         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
51453         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
51454         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
51455         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
51456         * modules/memxor (EXTRA_DIST): Add memxor.h.
51457         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
51458         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
51459         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
51460         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
51461         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
51462         * modules/physmem (EXTRA_DIST): Add physmem.h.
51463         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
51464         * modules/posixver (EXTRA_DIST): Add posixver.h.
51465         * modules/quote (EXTRA_DIST): Add quote.h.
51466         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
51467         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
51468         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
51469         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
51470         regex_internal.h regexec.c.
51471         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
51472         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
51473         * modules/same (EXTRA_DIST): Add same.h.
51474         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
51475         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
51476         * modules/savedir (EXTRA_DIST): Add savedir.h.
51477         * modules/sha1 (EXTRA_DIST): Add sha1.h.
51478         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
51479         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
51480         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
51481         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
51482         * modules/strdup (EXTRA_DIST): Add strdup.h.
51483         * modules/strftime (EXTRA_DIST): Add strftime.h.
51484         * modules/strndup (EXTRA_DIST): Add strndup.h.
51485         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
51486         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
51487         * modules/time_r (EXTRA_DIST): Add time_r.h.
51488         * modules/timespec (EXTRA_DIST): Add timespec.h.
51489         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
51490         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
51491         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
51492         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
51493         * modules/userspec (EXTRA_DIST): Add userspec.h.
51494         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
51495         * modules/utimens (EXTRA_DIST): Add utimens.h.
51496         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
51497         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
51498         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
51499         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
51500         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
51501         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
51502         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
51503         * modules/yesno (EXTRA_DIST): Add yesno.h.
51504
51505 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
51506
51507         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
51508
51509         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
51510         * m4/dev-ino.m4, same-inode.m4: Remove.
51511
51512         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
51513         * m4/acl.m4 (AC_FUNC_ACL):
51514         * m4/backupfile.m4 (gl_BACKUPFILE):
51515         * m4/c-strtod.m4 (gl_C99_STRTOLD):
51516         * m4/canon-host.m4 (gl_CANON_HOST):
51517         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
51518         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
51519         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
51520         * m4/cloexec.m4 (gl_CLOEXEC):
51521         * m4/close-stream.m4 (gl_CLOSE_STREAM):
51522         * m4/closeout.m4 (gl_CLOSEOUT):
51523         * m4/dirfd.m4 (gl_FUNC_DIRFD):
51524         * m4/dirname.m4 (gl_DIRNAME):
51525         * m4/exclude.m4 (gl_EXCLUDE):
51526         * m4/exitfail.m4 (gl_EXITFAIL):
51527         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
51528         * m4/file-type.m4 (gl_FILE_TYPE):
51529         * m4/filemode.m4 (gl_FILEMODE):
51530         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
51531         * m4/fpending.m4 (gl_FUNC_FPENDING):
51532         * m4/fprintftime.m4 (gl_FPRINTFTIME):
51533         * m4/fts.m4 (gl_FUNC_FTS):
51534         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
51535         * m4/getdate.m4 (gl_GETDATE):
51536         * m4/gethrxtime.m4 (gl_GETHRXTIME):
51537         * m4/getpagesize.m4 (gl_GETPAGESIZE):
51538         * m4/getpass.m4 (gl_FUNC_GETPASS):
51539         * m4/gettime.m4 (gl_GETTIME):
51540         * m4/getugroups.m4 (gl_GETUGROUPS):
51541         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
51542         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
51543         * m4/hard-locale.m4 (gl_HARD_LOCALE):
51544         * m4/hash.m4 (gl_HASH):
51545         * m4/idcache.m4 (gl_IDCACHE):
51546         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
51547         * m4/lchown.m4 (gl_FUNC_LCHOWN):
51548         * m4/long-options.m4 (gl_LONG_OPTIONS):
51549         * m4/lstat.m4 (gl_FUNC_LSTAT):
51550         * m4/md5.m4 (gl_MD5):
51551         * m4/memcasecmp.m4 (gl_MEMCASECMP):
51552         * m4/memcoll.m4 (gl_MEMCOLL):
51553         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
51554         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
51555         * m4/memxor.m4 (gl_MEMXOR):
51556         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
51557         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
51558         * m4/modechange.m4 (gl_MODECHANGE):
51559         * m4/mountlist.m4 (gl_MOUNTLIST):
51560         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
51561         * m4/openat.m4 (gl_FUNC_OPENAT):
51562         * m4/pathmax.m4 (gl_PATHMAX):
51563         * m4/physmem.m4 (gl_PHYSMEM):
51564         * m4/posixtm.m4 (gl_POSIXTM):
51565         * m4/posixver.m4 (gl_POSIXVER):
51566         * m4/quote.m4 (gl_QUOTE):
51567         * m4/quotearg.m4 (gl_QUOTEARG):
51568         * m4/readtokens.m4 (gl_READTOKENS):
51569         * m4/readutmp.m4 (gl_READUTMP):
51570         * m4/regex.m4 (gl_REGEX):
51571         * m4/safe-read.m4 (gl_SAFE_READ):
51572         * m4/safe-write.m4 (gl_SAFE_WRITE):
51573         * m4/same.m4 (gl_SAME):
51574         * m4/save-cwd.m4 (gl_SAVE_CWD):
51575         * m4/savedir.m4 (gl_SAVEDIR):
51576         * m4/settime.m4 (gl_SETTIME):
51577         * m4/sha1.m4 (gl_SHA1):
51578         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
51579         * m4/stat-macros.m4 (gl_STAT_MACROS):
51580         * m4/stat-time.m4 (gl_STAT_TIME):
51581         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
51582         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
51583         * m4/strdup.m4 (gl_FUNC_STRDUP):
51584         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
51585         * m4/strndup.m4 (gl_FUNC_STRNDUP):
51586         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
51587         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
51588         * m4/time_r.m4 (gl_TIME_R):
51589         * m4/timespec.m4 (gl_TIMESPEC):
51590         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
51591         * m4/unlinkdir.m4 (gl_UNLINKDIR):
51592         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
51593         * m4/userspec.m4 (gl_USERSPEC):
51594         * m4/utimecmp.m4 (gl_UTIMECMP):
51595         * m4/utimens.m4 (gl_UTIMENS):
51596         * m4/xalloc.m4 (gl_XALLOC):
51597         * m4/xgetcwd.m4 (gl_XGETCWD):
51598         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
51599         * m4/xreadlink.m4 (gl_XREADLINK):
51600         * m4/xstrtod.m4 (gl_XSTRTOD):
51601         * m4/yesno.m4 (gl_YESNO):
51602         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
51603         to get the necessary .h files and whatnot.
51604
51605 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
51606             Bruno Haible  <bruno@clisp.org>
51607
51608         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
51609         /bin/sh understanding of '!' conditional negation.
51610
51611 2006-08-21  Jim Meyering  <jim@meyering.net>
51612
51613         * modules/openat (Depends-on): Really alphabetize.
51614
51615         * modules/acl (Depends-on): Add error and quote.
51616
51617         * check-module (find_included_lib_files): Add at-func.c to the
51618         ok-to-include-more-than-once white list.
51619
51620         * modules/openat (Depends-on): Add lstat.  Alphabetize.
51621
51622 2006-08-21  Bruno Haible  <bruno@clisp.org>
51623
51624         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
51625         Emit a pkgdata_DATA variable only if some snippets add contents to it.
51626         Reported by Martin Lambers <marlam@marlam.de>.
51627
51628 2006-08-21  Bruno Haible  <bruno@clisp.org>
51629
51630         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
51631         specify an installation location, don't emit a noinst_LIBRARIES or
51632         noinst_LTLIBRARIES assignment.
51633
51634 2006-08-21  Bruno Haible  <bruno@clisp.org>
51635
51636         BeOS portability.
51637         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
51638         BeOS has mbrtowc() but no <wctype.h>.
51639
51640 2006-08-21  Bruno Haible  <bruno@clisp.org>
51641
51642         BeOS portability.
51643         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
51644         exist.
51645
51646 2006-08-21  Bruno Haible  <bruno@clisp.org>
51647
51648         BeOS portability.
51649         * lib/mbchar.h: Include <wctype.h> only if it exists.
51650
51651 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
51652
51653         Remove files that are no longer needed by their respective modules.
51654         * m4/obstack.m4: Remove.
51655         * m4/strerror_r.m4: Remove.
51656         * m4/uint32_t.m4: Remove.
51657         * m4/uintptr_t.m4: Remove.
51658         * m4/ullong_max.m4: Remove.
51659         * m4/xstrtoimax.m4: Remove.
51660         * m4/xstrtoumax.m4: Remove.
51661
51662         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
51663         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
51664         dependencies now capture this.
51665
51666         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
51667         Do not use AC_LIBSOURCES, since gnulib modules now do this.
51668         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
51669         * m4/human.m4 (gl_HUMAN): Likewise.
51670         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
51671         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
51672
51673         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
51674
51675         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
51676         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
51677         stdint.
51678         * m4/human.m4 (gl_HUMAN): Likewise.
51679         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
51680         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
51681         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
51682         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
51683         * m4/xstrtol (gl_XSTRTOL): Likewise.
51684
51685         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
51686         AC_TYPE_LONG_LONG_INT.
51687         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
51688         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
51689         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
51690         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
51691
51692         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
51693         on stdbool.
51694
51695         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
51696         (gl_PREREQ_XSTRTOUL): Remove.
51697
51698         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
51699
51700         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
51701         mode.
51702
51703 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
51704
51705         Add and change modules to make it easier for coreutils to use
51706         gnulib-tool.
51707         * modules/backupfile (Files): Remove m4/d-ino.m4.
51708         (Depends-on): Add d-ino.
51709         * modules/cycle-check (Depends-on): Add stdint.
51710         (lib_SOURCES): Add cycle-check.h.
51711         * modules/d-ino: New module.
51712         * modules/d-type: New module.
51713         * modules/error (Files): Remove m4/strerror_r.m4.
51714         * modules/filemode (Files): Add m4/st_dm_mode.m4.
51715         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
51716         m4/inttypes_h.m4, m4/uintmax_t.m4.
51717         (Depends-on): Add stdint.
51718         (lib_SOURCES): Add fsusage.h.
51719         * modules/getcwd (Files): Remove d-ino.m4.
51720         (Depends-on): Add d-ino.
51721         * modules/getndelim2 (Depends-on): Add stdint.
51722         * modules/glob (Files): Remove m4/d-type.m4.
51723         (Depends-on): Add d-type.
51724         * modules/host-os: New module.
51725         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
51726         m4/inttypes_h.m4, m4/uintmax_t.m4.
51727         * Depends-on: Add stdint.
51728         (lib_SOURCES): Add human.h.
51729         * modules/inttostr (Files): Remove m4/intmax_t.m4,
51730         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
51731         m4/uintmax_t.m4, m4/ulonglong.m4.
51732         (Depends-on): Add stdint.
51733         (EXTRA_DIST): Add inttostr.h.
51734         * modules/lchmod: New module.
51735         * modules/link-follow: New module.
51736         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
51737         (Depends-on): Add lchmod.
51738         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
51739         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
51740         (Depends-on): Add stdint.
51741         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
51742         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
51743         (Depends-on): Add stdint.
51744         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
51745         * modules/perl: New module.
51746         * modules/regex (Depends-on): Add stdint.
51747         * modules/rmdir-errno: New module.
51748         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
51749         m4/intmax_t.m4.
51750         (Depends-on): Add stdint.
51751         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
51752         m4/uintmax_t.m4.
51753         (Depends-on): Add stdint.
51754         * modules/unlink-busy: New module.
51755         * modules/utimecmp (Depends-on): Add stdint.
51756         * modules/uptime: New module.
51757         * modules/winsz-ioctl: New module.
51758         * modules/winsz-termios: New module.
51759         * modules/xnanosleep (Depends-on): Add nanosleep.
51760         * modules/ullong_max: Remove.
51761         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
51762         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
51763         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
51764         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
51765         (Depends-on): Add inttypes.
51766         (lib_SOURCES): Add xstrtol.h.
51767         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
51768         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
51769         * MODULES.html.sh: Move 'assert' into the assert section.
51770         Move 'dummy' into the linking section.
51771         Remove ullong_max.
51772         Add section for compatibility checks for POSIX:2001 functions,
51773         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
51774         winsz-ioctl, and winsz-termios into it.
51775         Add lchmod.
51776         Add top-level Misc section and put host-os, perl, and uptime
51777         into it.
51778
51779 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
51780
51781         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
51782         now assume the stdint module.  Do not include inttypes.h.
51783         * lib/fsusage.h: Likewise.
51784         * lib/getndelim2.c: Likewise.
51785         * lib/human.h: Likewise.
51786         * lib/inttostr.h: Likewise.
51787         * lib/obstack.c: Likewise.
51788         * lib/regex_internal.h: Likewise.
51789         * lib/tempname.c: Likewise.
51790         * lib/utimecmp.c: Likewise.
51791         * lib/xstrtol.h: Likewise.
51792
51793         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
51794
51795         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
51796         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
51797         * lib/xtime.h: Likewise.
51798
51799 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
51800
51801         * modules/openat (Files): Add lib/fchmodat.c.
51802         Fixes problem reported by Jay Youngman.
51803
51804 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
51805
51806         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
51807         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
51808
51809 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
51810             Bruno Haible  <bruno@clisp.org>
51811
51812         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
51813         and is a script that invokes bison. Tighten the code. Add comments.
51814
51815 2006-08-18  Jim Meyering  <jim@meyering.net>
51816
51817         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
51818         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
51819         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
51820         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
51821
51822 2006-08-18  Bruno Haible  <bruno@clisp.org>
51823
51824         * modules/bison-i18n: New file.
51825         * MODULES.html.sh (Internationalization functions): Add it.
51826
51827 2006-08-18  Bruno Haible  <bruno@clisp.org>
51828
51829         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
51830         sys/statvfs.h. When getmntinfo was found, check its declaration and
51831         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
51832
51833 2006-08-18  Bruno Haible  <bruno@clisp.org>
51834
51835         * m4/bison-i18n.m4: New file, from bison.
51836
51837 2006-08-18  Bruno Haible  <bruno@clisp.org>
51838
51839         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
51840         (ME_DUMMY): Treat "kernfs" as a dummy.
51841         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
51842
51843 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
51844
51845         Update from coreutils.
51846
51847         2006-08-15  Jim Meyering  <jim@meyering.net>
51848
51849         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
51850
51851         2006-01-17  Jim Meyering  <jim@meyering.net>
51852
51853         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
51854
51855         2006-01-11  Jim Meyering  <jim@meyering.net>
51856
51857         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
51858         Check for the lchmod function.
51859
51860 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
51861
51862         Update from coreutils.
51863
51864         * lib/__fpending.h: Add copyright notice.
51865         * lib/fprintftime.h: Likewise.
51866         * lib/savedir.c: Use (C) in copyright notice.
51867         * lib/savedir.h: Likewise.
51868
51869         2006-08-15  Jim Meyering  <jim@meyering.net>
51870
51871         * lib/at-func.c: New file, with the logic of all emulated at-functions.
51872         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
51873         in support of the EXPECTED_ERRNO macro.
51874         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
51875         definitions.  Instead, define the appropriate symbols and include
51876         "at-func.c".
51877         * lib/mkdirat.c (mkdirat): Likewise.
51878         * lib/fchmodat.c (fchmodat): Likewise.
51879         (ENOSYS): Remove definition.
51880         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
51881         it.  Don't include "unistd--.h" -- it wasn't ever used.
51882
51883         2006-01-17  Jim Meyering  <jim@meyering.net>
51884
51885         Rewrite fts.c not to change the current working directory,
51886         by using openat, fstatat, fdopendir, etc..
51887
51888         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
51889         (HAVE_OPENAT_SUPPORT): Define.
51890         [_LIBC] (fchdir): Don't undef or define; no longer used.
51891         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
51892         Now, this `function' always succeeds, and consumes its file descriptor
51893         parameter -- so callers must not close such FDs.  Update callers.
51894         (diropen_fd, opendirat, cwd_advance_fd): New functions.
51895         (diropen): Add parameter, SP.  Adjust all callers.
51896         Implement using diropen_fd, rather than open.
51897         (fts_open): Initialize new member, fts_cwd_fd.
51898         Remove fts_rft-setting code.
51899         (fts_close): Close fts_cwd_fd, if necessary.
51900         (__opendir2): Define in terms of opendir or opendirat,
51901         depending on whether the FST_NOCHDIR flag is set.
51902         (fts_build): Since fts_safe_changedir consumes its FD, and since
51903         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
51904         and close the dup'd file descriptor upon failure.
51905         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
51906         (fts_safe_changedir): Tweak semantics to reflect that this function
51907         now calls cwd_advance_fd and hence consumes its FD argument.
51908         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
51909         [struct FTS] (fts_rft): Remove now-unused member.
51910         [struct FTS] (fts_cycle.state): Improve comment.
51911
51912         * lib/openat.c (openat_needs_fchdir): New function.
51913         * lib/openat.h (openat_needs_fchdir): Declare it.
51914
51915 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
51916
51917         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
51918         Problem and fix reported by Pádraig Brady in
51919         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
51920
51921 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
51922
51923         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
51924
51925 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
51926
51927         * lib/memcoll.c (memcoll): Optimize for the common case where the
51928         arguments are bytewise equal.
51929
51930 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
51931
51932         * doc/regexprops-generic.texi: Add a copyright notice.
51933
51934 2006-08-15  Bruno Haible  <bruno@clisp.org>
51935
51936         * modules/tmpdir (License): Change to LGPL.
51937
51938 2006-08-15  Bruno Haible  <bruno@clisp.org>
51939
51940         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
51941         module.
51942
51943 2006-08-14  Simon Josefsson  <jas@extundo.com>
51944
51945         * config/srclist.txt: Add gnupload.
51946
51947 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
51948
51949         Change copyright notice from LGPL 2 to GPL 2, since that's the
51950         standard form used in the gnulib repository.
51951         * tests/test-lock.c: Likewise.
51952         * tests/test-stdint.c: Likewise.
51953         * tests/test-tls.c: Likewise.
51954
51955         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
51956         prelude-manager.  User shorter URLs for GNU projects, without '?'.
51957         Add copyright notice.
51958
51959         * check-module: Add copyright notice.  Output a copyright
51960         notice if "--version" is specified.
51961         * modules/COPYING: New file.
51962         * tests/test-getaddrinfo.c: Add copyright notice.
51963         * tests/test-verify.c: Likewise.
51964
51965 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
51966
51967         Change copyright notice from LGPL 2 to GPL 2, since that's the
51968         standard form used in the gnulib repository.
51969         * lib/lock.c: LGPL -> GPL.
51970         * lib/lock.h: Likewise.
51971         * lib/strnlen1.c: Likewise.
51972         * lib/strnlen1.h: Likewise.
51973         * lib/tls.c: Likewise.
51974         * lib/tls.h: Likewise.
51975         * lib/tmpdir.c: Likewise.
51976
51977         * lib/TODO: Remove; this belongs only in coreutils.
51978
51979 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
51980
51981         Add copyright notices to long-enough files that lack them, since
51982         otherwise the files aren't clearly free.  Use the same notice that
51983         getdate.texi already uses.
51984         * doc/alloca-opt.texi: Add copyright notice.
51985         * doc/alloca.texi: Likewise.
51986         * doc/ctime.texi: Likewise.
51987         * doc/functions.texi: Likewise.
51988         * doc/gcd.texi: Likewise.
51989         * doc/gnulib-tool.texi: Likewise.
51990         * doc/inet_ntoa.texi: Likewise.
51991         * doc/visibility.texi: Likewise.
51992
51993         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
51994         * doc/quote.texi: Add copyright notice.
51995
51996         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
51997         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
51998         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
51999         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
52000         is now obsolete, and give a pointer to the Sun list.
52001         Add copyright notice.
52002
52003 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
52004
52005         * config/srclistvars.sh: Add copyright notice.
52006
52007 2006-08-14  Eric Blake  <ebb9@byu.net>
52008
52009         Import the following change from libc:
52010
52011         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
52012
52013         Upstream bug 2997.
52014         * lib/misc/error.c: Add space between program name and message if file
52015         name is missing.
52016
52017 2006-08-12  Karl Berry  <karl@gnu.org>
52018
52019         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
52020         remove, these originate in gnulib now.
52021
52022 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52023
52024         * doc/Makefile (standards.info standards.html standards.dvi):
52025         Also depend on make-stds.texi.
52026
52027 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
52028
52029         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
52030         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
52031
52032         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
52033         in wchar_t.  Problem reported by Eric Blake.
52034
52035         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
52036         LEN is smaller than SIZE.  Suggested by Bruno Haible.
52037         Also, help the compiler to keep LEN in a register.
52038
52039 2006-08-11  Eric Blake  <ebb9@byu.net>
52040
52041         * users.txt: Sort.  Add tar.
52042
52043 2006-08-11  Bruno Haible  <bruno@clisp.org>
52044
52045         * users.txt: New file.
52046
52047 2006-08-11  Bruno Haible  <bruno@clisp.org>
52048
52049         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
52050         before <wchar.h>. Needed for OSF/1 and BSD/OS.
52051
52052 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
52053
52054         * modules/snprintf (Depends-on): Remove minmax.
52055         (Maintainer): Add self and Bruno.
52056
52057 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
52058
52059         * lib/.cppi-disable: Add snprintf.h, socket_.h.
52060         * lib/snprintf.c: Include <errno.h> and <limits.h>.
52061         (EOVERFLOW): Define if the system does not.
52062         Do not include "minmax.h"; it wasn't used.
52063         (snprintf): Don't assume size_t promotes to an unsigned type.
52064         Fix bug when generated string was too long for the buffer: the
52065         buffer's contents are supposed to be the initial prefix of the
52066         output.  Don't assume vasnprintf returns EOVERFLOW if the size
52067         exceeds INT_MAX; do the check ourselves.
52068
52069         Import the following changes from libc:
52070
52071         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
52072
52073         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
52074         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
52075         set wc to the byte which couldn't be converted.
52076         (re_string_reconstruct): Don't clear valid_raw_len before calling
52077         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
52078         tip_context using re_string_context_at.
52079
52080         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
52081
52082         * lib/posix/regex.h: g++ still cannot handled [restrict].
52083
52084         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
52085
52086         * lib/posix/regex.h: Remove special handling for VMS.
52087
52088 2006-08-10  Jim Meyering  <jim@meyering.net>
52089
52090         * modules/same-inode: New module.
52091         * modules/dev-ino: New module.
52092         * modules/cycle-check: Depend on these modules, rather than simply
52093         including their .h files.
52094         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
52095         required via m4/cycle-check.m4.
52096         * modules/same: Depend on new same-inode module, rather than
52097         including same-inode.h.
52098         * modules/chdir-safer: New file.
52099
52100         * modules/chown (Depends-on): Add stat-macros.
52101
52102 2006-08-10  Jim Meyering  <jim@meyering.net>
52103
52104         * m4/cycle-check.m4: New file.
52105         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
52106         * m4/dev-ino.m4, m4/same-inode.m4: New files.
52107
52108 2006-08-10  Eric Blake  <ebb9@byu.net>
52109
52110         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
52111         in from original proposal.
52112
52113 2006-08-10  Eric Blake  <ebb9@byu.net>
52114         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
52115
52116         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
52117         namespace.
52118
52119 2006-08-10  Bruno Haible  <bruno@clisp.org>
52120
52121         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
52122         as well.
52123
52124 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
52125
52126         Sync from coreutils.
52127
52128         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
52129
52130         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
52131         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
52132
52133 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
52134
52135         * modules/restrict: Remove; no longer needed now that we assume
52136         Autoconf 2.59 or later.
52137         * MODULES.html.sh: Remove 'restrict'.
52138         * modules/argp (Depends-on): Remove 'restrict'.
52139         * modules/base64 (Depends-on): Likewise.
52140         * modules/gc (Depends-on): Likewise.
52141         * modules/getaddrinfo (Depends-on): Likewise.
52142         * modules/glob (Depends-on): Likewise.
52143         * modules/inet_ntop (Depends-on): Likewise.
52144         * modules/inet_pton (Depends-on): Likewise.
52145         * modules/memxor (Depends-on): Likewise.
52146         * modules/regex (Depends-on): Likewise.
52147         * modules/strtok_r (Depends-on): Likewise.
52148         * modules/time_r (Depends-on): Likewise.
52149
52150 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
52151
52152         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
52153         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
52154         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
52155         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
52156         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
52157         * m4/memxor.m4 (gl_MEMXOR): Likewise.
52158         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
52159         gl_C_RESTRICT replaced by AC_C_RESTRICT.
52160
52161         Merge from coreutils.
52162         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
52163         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
52164         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
52165         * m4/time_r.m4 (gl_TIME_R): Likewise.
52166
52167 2006-08-09  Karl Berry  <karl@gnu.org>
52168
52169         * config/srclist.txt: no more gettext-tools, per Bruno.
52170
52171 2006-08-08  Eric Blake  <ebb9@byu.net>
52172
52173         * modules/verror: New module.
52174         * MODULES.html.sh: Document it.
52175
52176 2006-08-08  Eric Blake  <ebb9@byu.net>
52177
52178         * lib/verror.h, lib/verror.c: New files.
52179
52180 2006-08-08  Eric Blake  <ebb9@byu.net>
52181
52182         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
52183         verror_at_line output complies with GNU Coding Standards even when
52184         file is NULL.
52185
52186 2006-08-07  Bruno Haible  <bruno@clisp.org>
52187
52188         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
52189         versions of AIX.
52190         Reported by Ralf Wildenhues.
52191
52192 2006-08-07  Bruno Haible  <bruno@clisp.org>
52193
52194         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
52195         in an AC_DEFUN. Needed so that the autoconf snippets can use
52196         AC_REQUIRE.
52197
52198 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52199
52200         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
52201         Initialize pkgdata_DATA.
52202         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
52203         overriding it.
52204
52205 2006-08-06  Eric Blake  <ebb9@byu.net>
52206
52207         * lib/error.h: Fold in some upstream changes from glibc.
52208         * lib/error.c: Likewise.
52209
52210 2006-08-04  Bruno Haible  <bruno@clisp.org>
52211
52212         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
52213         Make the mostlyclean-local rule depend on mostlyclean-generic.
52214         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
52215
52216 2006-07-31  Bruno Haible  <bruno@clisp.org>
52217
52218         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
52219         <stdlib.h>, <string.h>.
52220
52221 2006-07-30  Bruno Haible  <bruno@clisp.org>
52222
52223         * modules/readlink (License): Change to LGPL.
52224
52225 2006-07-30  Bruno Haible  <bruno@clisp.org>
52226
52227         * modules/javaversion (Makefile.am): Distribute javaversion.java and
52228         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
52229         set PKGDATADIR to point to it.
52230
52231 2006-07-30  Bruno Haible  <bruno@clisp.org>
52232
52233         * modules/csharpexec (configure.ac): Comment out macro invocation.
52234         * modules/javaexec (configure.ac): Likewise.
52235         * modules/javacomp-script (configure.ac): Likewise.
52236
52237         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
52238
52239 2006-07-30  Bruno Haible  <bruno@clisp.org>
52240
52241         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
52242         linked-list.
52243
52244 2006-07-30  Bruno Haible  <bruno@clisp.org>
52245
52246         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
52247
52248 2006-07-30  Bruno Haible  <bruno@clisp.org>
52249
52250         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
52251         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
52252         get removed.
52253
52254 2006-07-29  Bruno Haible  <bruno@clisp.org>
52255
52256         Make it possible for gnulib-tool to work with locally modified or
52257         augmented gnulib repositories.
52258         * gnulib-tool (func_usage): Document --local-dir option.
52259         (local_gnulib_dir): New variable.
52260         Handle --local-dir option.
52261         (func_lookup_file): New function.
52262         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
52263         (func_get_description, func_get_filelist, func_get_description,
52264         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
52265         func_get_automake_snippet, func_get_include_directive,
52266         func_get_license, func_get_maintainer): Use func_lookup_file.
52267         (func_import, func_create_testdir): Use func_lookup_file.
52268
52269 2006-07-29  Bruno Haible  <bruno@clisp.org>
52270
52271         * modules/setenv (Depends-on): Add unistd.
52272
52273 2006-07-29  Bruno Haible  <bruno@clisp.org>
52274
52275         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
52276
52277 2006-07-29  Bruno Haible  <bruno@clisp.org>
52278
52279         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
52280
52281 2006-07-29  Bruno Haible  <bruno@clisp.org>
52282
52283         * gnulib-tool (import, update): If there is no Makefile.am, look at
52284         aclocal.m4, instead of bailing out.
52285
52286 2006-07-29  Bruno Haible  <bruno@clisp.org>
52287
52288         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
52289         Categorize the options by when they are useful.
52290
52291 2006-07-29  Bruno Haible  <bruno@clisp.org>
52292
52293         * gnulib-tool (func_usage): Document option --no-libtool.
52294         Handle option --no-libtool.
52295         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
52296         for changed semantics of $libtool variable.
52297         (func_import): Likewise. If libtool is not used, show this through
52298         an option --no-libtool.
52299         (func_create_testdir): Update.
52300
52301 2006-07-29  Bruno Haible  <bruno@clisp.org>
52302
52303         * gnulib-tool (func_import): Extend error message about missing
52304         --doc-base.
52305
52306 2006-07-29  Bruno Haible  <bruno@clisp.org>
52307
52308         * gnulib-tool (func_import): Don't create the $docbase directory if
52309         there is no file to store there.
52310
52311 2006-07-29  Bruno Haible  <bruno@clisp.org>
52312
52313         * gnulib-tool (autoconf_minversion): If a --dir option is given and
52314         relevant, look for configure.ac there, not in the current directory.
52315         Also use a simple search for AC_PREREQ, not "autoconf --trace".
52316
52317 2006-07-29  Bruno Haible  <bruno@clisp.org>
52318
52319         * gnulib-tool (SORT): New variable.
52320         (func_usage): Undocument --assume-autoconf option.
52321         Remove --assume-autoconf option handling.
52322         (autoconf_minversion): Determine from the contents of configure.ac.
52323         (func_import): Remove autoconf_minversion handling.
52324         Suggested by Eric Blake.
52325
52326 2006-07-29  Bruno Haible  <bruno@clisp.org>
52327
52328         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
52329
52330 2006-07-29  Bruno Haible  <bruno@clisp.org>
52331
52332         * config/srclist.txt (*setenv.[ch]): Remove rules.
52333
52334 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52335
52336         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
52337
52338 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52339
52340         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
52341         arpa/inet.h.
52342
52343 2006-07-28  Simon Josefsson  <jas@extundo.com>
52344
52345         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
52346         * modules/inet_pton (Depends-on): Likewise.
52347
52348 2006-07-28  Simon Josefsson  <jas@extundo.com>
52349
52350         * m4/netinet_in_h.m4: New file.
52351
52352 2006-07-28  Simon Josefsson  <jas@extundo.com>
52353
52354         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
52355         #include's.
52356
52357 2006-07-28  Simon Josefsson  <jas@extundo.com>
52358
52359         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
52360         #include's.
52361
52362 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
52363
52364         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
52365         setgid on directories only if they set these bits.
52366         * lib/modechange.h: Remove obsolete comment about masks.
52367
52368 2006-07-28  Eric Blake  <ebb9@byu.net>
52369
52370         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
52371         macro expansion.
52372
52373 2006-07-28  Bruno Haible  <bruno@clisp.org>
52374
52375         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
52376
52377 2006-07-28  Bruno Haible  <bruno@clisp.org>
52378
52379         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
52380
52381 2006-07-28  Bruno Haible  <bruno@clisp.org>
52382
52383         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
52384         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
52385         Define fallbacks.
52386         Avoids link error on FreeBSD 4.x.
52387         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
52388
52389         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
52390         encoding.
52391         * lib/mbswidth.c (iswcntrl): Likewise.
52392
52393 2006-07-27  Bruno Haible  <bruno@clisp.org>
52394
52395         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
52396         test.
52397
52398 2006-07-27  Bruno Haible  <bruno@clisp.org>
52399
52400         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
52401         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
52402         defined.
52403
52404 2006-07-26  Eric Blake  <ebb9@byu.net>
52405
52406         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
52407
52408 2006-07-26  Eric Blake  <ebb9@byu.net>
52409
52410         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
52411         like mingw that lack mkstemp.
52412         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
52413         avoid compilation warning on mingw.
52414
52415 2006-07-26  Bruno Haible  <bruno@clisp.org>
52416
52417         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
52418         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
52419         INT_FAST*_MIN, INTPTR_MIN.
52420
52421 2006-07-25  Bruno Haible  <bruno@clisp.org>
52422
52423         * modules/version-etc (Depends-on): Add stdarg.
52424
52425 2006-07-25  Bruno Haible  <bruno@clisp.org>
52426
52427         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
52428         complex commands.
52429
52430 2006-07-25  Bruno Haible  <bruno@clisp.org>
52431
52432         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
52433         defined in <stdarg.h> or config.h.
52434
52435 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
52436
52437         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
52438         (gl_STDIO_SAFER): Remove.
52439
52440 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
52441
52442         * MODULES.html.sh (File stream based Input/Output):
52443         Add fopen-safer, tmpfile-safer; remove stdio-safer.
52444         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
52445         * modules/fopen-safer, modules/tmpfile-safer: New files.
52446         * modules/stdio-safer: Remove.
52447
52448 2006-07-24  Bruno Haible  <bruno@clisp.org>
52449
52450         * modules/tmpdir: New file.
52451         * MODULES.html.sh (File system functions): Add it.
52452
52453 2006-07-24  Bruno Haible  <bruno@clisp.org>
52454
52455         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
52456         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
52457
52458 2006-07-24  Bruno Haible  <bruno@clisp.org>
52459
52460         * modules/clean-temp: New file.
52461
52462 2006-07-24  Bruno Haible  <bruno@clisp.org>
52463
52464         * m4/tmpdir.m4: New file, from GNU gettext.
52465
52466 2006-07-24  Bruno Haible  <bruno@clisp.org>
52467
52468         * lib/tmpdir.h: New file, from GNU gettext.
52469         * lib/tmpdir.c: New file, from GNU gettext.
52470
52471 2006-07-24  Bruno Haible  <bruno@clisp.org>
52472
52473         * lib/clean-temp.h: New file, from GNU gettext.
52474         * lib/clean-temp.c: New file, from GNU gettext.
52475
52476 2006-07-23  Eric Blake  <ebb9@byu.net>
52477
52478         * modules/stdio-safer (Files): Add tmpfile-safer.c.
52479         (Depends-on): Add binary-io.
52480
52481 2006-07-23  Eric Blake  <ebb9@byu.net>
52482
52483         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
52484
52485 2006-07-23  Eric Blake  <ebb9@byu.net>
52486
52487         * lib/tmpfile-safer.c: New file.
52488         * lib/stdio-safer.h (fopen_safer): Add prototype.
52489         * lib/stdio--.h (tmpfile): Make safer.
52490
52491 2006-07-23  Bruno Haible  <bruno@clisp.org>
52492
52493         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
52494         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
52495         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
52496         gl_linked_remove_at): Use it.
52497
52498 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52499         and Simon Josefsson <jas@extundo.com>
52500
52501         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
52502
52503         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
52504
52505 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
52506
52507         * modules/close-stream: New file.
52508         * modules/closeout (Description): Make it clear that it exits
52509         with a diagnostic on error.
52510         (Depends-on): Add close-stream.  Remove fpending, stdbool.
52511         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
52512
52513 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
52514
52515         * m4/close-stream.m4: New file.
52516
52517 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
52518
52519         * lib/close-stream.c, lib/close-stream.h: New files.
52520
52521 2006-07-22  Bruno Haible  <bruno@clisp.org>
52522
52523         Merge from GNU gettext 0.15.
52524
52525         2006-05-01  Bruno Haible  <bruno@clisp.org>
52526
52527                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
52528
52529         2006-07-22  Bruno Haible  <bruno@clisp.org>
52530
52531                 * modules/javaversion: New file.
52532                 * MODULES.html.sh (Java): Add javaversion.
52533
52534         2006-03-12  Bruno Haible  <bruno@clisp.org>
52535
52536                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
52537
52538         2005-12-04  Bruno Haible  <bruno@clisp.org>
52539
52540                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
52541                 (untested).
52542
52543         2006-06-21  Bruno Haible  <bruno@clisp.org>
52544
52545                 Avoid warnings from recent versions of mcs.
52546                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
52547                 -o, -L, -r any more. Use options documented since mcs-1.0
52548                 instead. Similarly for -g.
52549
52550         2005-12-04  Bruno Haible  <bruno@clisp.org>
52551
52552                 * build-aux/csharpcomp.sh.in: Suffix for resources is
52553                 .resources, not .resource.
52554
52555         2005-07-09  Bruno Haible  <bruno@clisp.org>
52556
52557                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
52558                 add a .dll suffix.
52559                 Reported by Mark Junker <mjscod@gmx.de>.
52560
52561         2006-07-22  Bruno Haible  <bruno@clisp.org>
52562
52563                 * modules/gettext: Upgrade to gettext-0.15.
52564                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
52565                 m4/visibility.m4.
52566                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
52567
52568 2006-07-22  Bruno Haible  <bruno@clisp.org>
52569
52570         Merge from GNU gettext 0.15.
52571
52572         2006-03-25  Bruno Haible  <bruno@clisp.org>
52573
52574                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
52575
52576         2006-07-21  Bruno Haible  <bruno@clisp.org>
52577
52578                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
52579                 "1.1".
52580
52581         2006-05-09  Bruno Haible  <bruno@clisp.org>
52582
52583                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
52584                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
52585                 for the conftestver execution.
52586
52587         2006-05-01  Bruno Haible  <bruno@clisp.org>
52588
52589                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
52590                 optional target-version argument. Verify that the compiler
52591                 groks source of the specified source-version, or add -source
52592                 option as necessary. Verify that the compiler produces
52593                 bytecode in the specified target-version, or add -target and
52594                 -source options as necessary. Make the result of the test
52595                 available as variable CONF_JAVAC. Also log error output in
52596                 config.log.
52597
52598         2006-03-11  Bruno Haible  <bruno@clisp.org>
52599
52600                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
52601
52602         2006-05-09  Bruno Haible  <bruno@clisp.org>
52603
52604                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
52605                 CLASSPATH_SEPARATOR to a semicolon.
52606
52607         2006-03-12  Bruno Haible  <bruno@clisp.org>
52608
52609                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
52610                 available as variable CONF_JAVA, for subsequent autoconf
52611                 tests. Also log error output in config.log.
52612
52613         2006-07-19  Bruno Haible  <bruno@clisp.org>
52614
52615                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
52616                 that getline works on glibc2 systems. Needed to avoid trouble
52617                 in relocatable.c.
52618                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
52619
52620         2005-12-04  Bruno Haible  <bruno@clisp.org>
52621
52622                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
52623                 launcher (untested).
52624
52625         2005-12-04  Bruno Haible  <bruno@clisp.org>
52626
52627                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
52628
52629         2006-07-22  Bruno Haible  <bruno@clisp.org>
52630
52631                 * gettext.m4: Update from GNU gettext-0.15.
52632                 * nls.m4: Likewise.
52633                 * po.m4: Likewise.
52634                 * inttypes-pri.m4: Likewise.
52635                 * inttypes-h.m4: Renamed from inttypes.m4.
52636                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
52637
52638 2006-07-22  Bruno Haible  <bruno@clisp.org>
52639
52640         Merge from GNU gettext 0.15.
52641
52642         2005-07-05  Bruno Haible  <bruno@clisp.org>
52643
52644                 * printf-args.c (printf_fetchargs): Work around broken
52645                 definition of wint_t on mingw.
52646
52647         2005-02-12  Bruno Haible  <bruno@clisp.org>
52648
52649                 * xallocsa.h: Add extern "C" for C++.
52650
52651         2006-05-17  Bruno Haible  <bruno@clisp.org>
52652
52653                 Cygwin portability.
52654                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
52655
52656         2006-04-30  Bruno Haible  <bruno@clisp.org>
52657
52658                 * progreloc.c: Include <mach-o/dyld.h> if available.
52659                 (find_executable): Use _NSGetExecutablePath when possible.
52660
52661         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
52662
52663                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
52664                 function.
52665
52666         2005-12-29  Bruno Haible  <bruno@clisp.org>
52667
52668                 * progreloc.c (set_program_name_and_installdir): Fix
52669                 compilation error.
52670
52671         2005-12-04  Bruno Haible  <bruno@clisp.org>
52672
52673                 Cygwin portability.
52674                 * progreloc.c: Include <windows.h> also on Cygwin.
52675                 (find_executable): Add support for Cygwin.
52676                 (set_program_name_and_installdir): Handle also platforms with
52677                 nonempty EXEEXT.
52678
52679         2006-07-11  Bruno Haible  <bruno@clisp.org>
52680
52681                 * javacomp.c: Fix a comment.
52682                 Reported by Jim Meyering.
52683
52684         2006-04-30  Bruno Haible  <bruno@clisp.org>
52685
52686                 * javacomp.h (compile_java_class): Add source_version,
52687                 target_version arguments.
52688                 * javacomp.c: Rewritten to choose only a compiler that
52689                 respects the specified source_version and target_version.
52690
52691         2006-06-27  Bruno Haible  <bruno@clisp.org>
52692
52693                 Assume correct S_ISDIR macro.
52694                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
52695
52696         2006-07-22  Bruno Haible  <bruno@clisp.org>
52697
52698                 * javaversion.h: New file, from GNU gettext.
52699                 * javaversion.c: New file, from GNU gettext.
52700                 * javaversion.java: New file, from GNU gettext.
52701                 * javaversion.class: New file, from GNU gettext.
52702
52703         2006-05-17  Bruno Haible  <bruno@clisp.org>
52704
52705                 Cygwin portability.
52706                 * javaexec.c (execute_java_class): Test for jview program
52707                 also on Cygwin.
52708
52709         2006-04-09  Bruno Haible  <bruno@clisp.org>
52710
52711                 * fatal-signal.c: Don't include string.h.
52712                 (at_fatal_signal): Use a copying loop instead of memcpy.
52713
52714         2005-12-04  Bruno Haible  <bruno@clisp.org>
52715
52716                 * csharpexec.c: Add support for 'clix' launcher (untested).
52717                 (execute_csharp_using_sscli): New function.
52718                 (execute_csharp_program): Call it.
52719
52720         2006-06-21  Bruno Haible  <bruno@clisp.org>
52721
52722                 Avoid warnings from recent versions of mcs.
52723                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
52724                 -o, -L, -r any more. Use options documented since mcs-1.0
52725                 instead. Similarly for -g.
52726
52727         2005-07-09  Bruno Haible  <bruno@clisp.org>
52728
52729                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
52730                 add a .dll suffix.
52731                 Reported by Mark Junker <mjscod@gmx.de>.
52732
52733         2006-06-17  Bruno Haible  <bruno@clisp.org>
52734
52735                 * config.charset: Update for NetBSD 3.0.
52736
52737         2006-05-17  Bruno Haible  <bruno@clisp.org>
52738
52739                 Cygwin portability.
52740                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
52741
52742         2006-05-16  Bruno Haible  <bruno@clisp.org>
52743
52744                 * localcharset.c [CYGWIN]: Include <windows.h>.
52745                 (get_charset_aliases): For Cygwin, return the same CPxxx
52746                 aliases list as under WIN32.
52747                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
52748                 the environment variables. Fall back to GetACP().
52749
52750         2006-04-05  Bruno Haible  <bruno@clisp.org>
52751
52752                 * config.charset: Update Juan Manuel Guerrero's address.
52753
52754         2005-02-12  Bruno Haible  <bruno@clisp.org>
52755
52756                 * allocsa.h: Add extern "C" for C++.
52757
52758         2005-02-10  Bruno Haible  <bruno@clisp.org>
52759
52760                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
52761                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
52762
52763         2006-07-22  Bruno Haible  <bruno@clisp.org>
52764
52765                 * gettext.h: Update to GNU gettext-0.15.
52766
52767 2006-07-22  Bruno Haible  <bruno@clisp.org>
52768
52769         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
52770         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
52771         lib-prefix.m4, longdouble.m4, ssize_t.m4.
52772
52773 2006-07-21  Eric Blake  <ebb9@byu.net>
52774
52775         * modules/stdlib-safer: New file.
52776         * MODULES.html.sh (File stream based Input/Output): Add
52777         stdlib-safer.
52778
52779 2006-07-21  Eric Blake  <ebb9@byu.net>
52780
52781         * lib/stdlib-safer.h: New file from coreutils, required by
52782         stdlib--.h.
52783
52784 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
52785
52786         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
52787
52788 2006-07-20  Bruno Haible  <bruno@clisp.org>
52789
52790         * gnulib-tool: Recognize new option --assume-autoconf.
52791         (autoconf_minversion): New variable.
52792         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
52793
52794 2006-07-20  Bruno Haible  <bruno@clisp.org>
52795
52796         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
52797
52798 2006-07-19  Derek R. Price  <derek@ximbiot.com>
52799
52800         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
52801         Reindent and repaginate.
52802
52803 2006-07-19  Derek Price  <derek@ximbiot.com>
52804
52805         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
52806         Correct grammar.
52807
52808 2006-07-17  Bruno Haible  <bruno@clisp.org>
52809
52810         * modules/list: New file.
52811         * modules/array-list: New file.
52812         * modules/carray-list, modules/carray-list-tests: New files.
52813         * modules/linked-list, modules/linked-list-tests: New files.
52814         * modules/avltree-list, modules/avltree-list-tests: New files.
52815         * modules/rbtree-list, modules/rbtree-list-tests: New files.
52816         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
52817         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
52818         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
52819         * modules/oset: New file.
52820         * modules/array-oset: New file.
52821         * modules/avltree-oset, modules/avltree-oset-tests: New files.
52822         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
52823         * tests/test-carray_list.c: New file.
52824         * tests/test-linked_list.c: New file.
52825         * tests/test-avltree_list.c: New file.
52826         * tests/test-rbtree_list.c: New file.
52827         * tests/test-linkedhash_list.c: New file.
52828         * tests/test-avltreehash_list.c: New file.
52829         * tests/test-rbtreehash_list.c: New file.
52830         * tests/test-avltree_oset.c: New file.
52831         * tests/test-rbtree_oset.c: New file.
52832         * MODULES.html.sh (Container data structures): New section.
52833
52834 2006-07-17  Bruno Haible  <bruno@clisp.org>
52835
52836         * m4/gl_list.m4: New file.
52837
52838 2006-07-17  Bruno Haible  <bruno@clisp.org>
52839
52840         * lib/gl_list.h: New file.
52841         * lib/gl_list.c: New file.
52842         * lib/gl_array_list.h: New file.
52843         * lib/gl_array_list.c: New file.
52844         * lib/gl_carray_list.h: New file.
52845         * lib/gl_carray_list.c: New file.
52846         * lib/gl_linked_list.h: New file.
52847         * lib/gl_linked_list.c: New file.
52848         * lib/gl_anylinked_list1.h: New file.
52849         * lib/gl_anylinked_list2.h: New file.
52850         * lib/gl_avltree_list.h: New file.
52851         * lib/gl_avltree_list.c: New file.
52852         * lib/gl_anyavltree_list1.h: New file.
52853         * lib/gl_anyavltree_list2.h: New file.
52854         * lib/gl_rbtree_list.h: New file.
52855         * lib/gl_rbtree_list.c: New file.
52856         * lib/gl_anyrbtree_list1.h: New file.
52857         * lib/gl_anyrbtree_list2.h: New file.
52858         * lib/gl_anytree_list1.h: New file.
52859         * lib/gl_anytree_list2.h: New file.
52860         * lib/gl_linkedhash_list.h: New file.
52861         * lib/gl_linkedhash_list.c: New file.
52862         * lib/gl_anyhash_list1.h: New file.
52863         * lib/gl_anyhash_list2.h: New file.
52864         * lib/gl_avltreehash_list.h: New file.
52865         * lib/gl_avltreehash_list.c: New file.
52866         * lib/gl_rbtreehash_list.h: New file.
52867         * lib/gl_rbtreehash_list.c: New file.
52868         * lib/gl_anytreehash_list1.h: New file.
52869         * lib/gl_anytreehash_list2.h: New file.
52870
52871         * lib/gl_oset.h: New file.
52872         * lib/gl_oset.c: New file.
52873         * lib/gl_array_oset.h: New file.
52874         * lib/gl_array_oset.c: New file.
52875         * lib/gl_avltree_oset.h: New file.
52876         * lib/gl_avltree_oset.c: New file.
52877         * lib/gl_rbtree_oset.h: New file.
52878         * lib/gl_rbtree_oset.c: New file.
52879         * lib/gl_anytree_oset.h: New file.
52880
52881 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
52882
52883         * m4/mkancesdirs.m4: New file.
52884         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
52885         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
52886         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
52887         it.
52888
52889 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
52890
52891         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
52892         * lib/mkancesdirs.h: New files.
52893         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
52894         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
52895         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
52896         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
52897         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
52898         callers changed.  Revamp internals significantly, by not
52899         attempting to create directories that are temporarily more
52900         permissive than the final results.  Do not attempt to use
52901         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
52902         This removes some race conditions, fixes some bugs, and simplifies
52903         things.  Use new dirchownmod function to do owner and mode changes.
52904         * lib/mkdir-p.h: Likewise.
52905         * lib/modechange.c (octal_to_mode): New function.
52906         (struct mode_change): New member mentioned.
52907         (make_node_op_equals): New arg mentioned.  All callers changed.
52908         (mode_compile): Keep track of which mode bits the user has explicitly
52909         mentioned.
52910         (mode_adjust): New arg DIR, so that we implement the X op correctly.
52911         New arg PMODE_BITS, to keep track of which mode bits the user
52912         mentioned; it treats S_ISUID and S_ISGID speciall.
52913         All callers changed.
52914         * lib/modechange.h: Likewise.
52915
52916 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
52917
52918         * MODULES.html.sh: Add mkancestors.
52919         * modules/mkancesdirs: New module.
52920         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
52921         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
52922         The chdir-safer and afs files are now orphans; I'll remove them
52923         unless someone speaks up.
52924         Add lib/dirchownmod.c, lib/dirchownmod.h.
52925         (Depends-on): Remove alloca, chown, save-cwd, dirname.
52926         Add lchown, mkancesdirs.
52927         (Maintainer): Add self.
52928
52929 2006-07-15  Karl Berry  <karl@gnu.org>
52930
52931         * gnulib-tool: help message wording/arrangement.
52932
52933 2006-07-14  Simon Josefsson  <jas@extundo.com>
52934
52935         * doc/gnulib.texi (Libtool and Windows): New section.
52936
52937 2006-07-12  Simon Josefsson  <jas@extundo.com>
52938
52939         * modules/gendocs (License): Fix license, approved by Karl.
52940
52941 2006-07-12  Eric Blake  <ebb9@byu.net>
52942
52943         * MODULES.html.sh: Add gendocs.
52944
52945 2006-07-11  Eric Blake  <ebb9@byu.net>
52946
52947         * modules/fdl: New module, to install doc/fdl.texi.
52948         * MODULES.html.sh: Add new section for documentation modules.
52949         * gnulib-tool: Avoid space-tab.
52950         (--doc-base): New option, to manage files from doc.
52951
52952 2006-07-11  Eric Blake  <ebb9@byu.net>
52953
52954         * m4/absolute-header.m4: Fix comments to match recent change.
52955
52956 2006-07-11  Eric Blake  <ebb9@byu.net>
52957
52958         * gnulib-tool: List --doc-base before --tests-base.
52959
52960 2006-07-11  Derek R. Price  <derek@ximbiot.com>
52961
52962         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
52963
52964 2006-07-11  Bruno Haible  <bruno@clisp.org>
52965
52966         * README: Mention where to put documentation.
52967
52968 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52969
52970         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
52971
52972 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
52973
52974         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
52975         to stdint.m4.
52976
52977 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
52978
52979         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
52980         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
52981         "no/such/file/stdint.h" when there is no such file, so that
52982         the resulting C code can be parsed by dodgy compilers.
52983         Problems reported by Bob Proulx.
52984
52985 2006-07-10  Derek R. Price  <derek@ximbiot.com>
52986
52987         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
52988         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
52989         macros into the GNU _D_EXACT_NAMLEN.
52990         * lib/savedir.c:  Likewise.
52991         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
52992
52993 2006-07-10  Derek R. Price  <derek@ximbiot.com>
52994         and Paul Eggert  <eggert@cs.ucla.edu>
52995
52996         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
52997         * m4/savedir.m4:
52998         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
52999         macros into the GNU _D_EXACT_NAMLEN.
53000
53001 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
53002
53003         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
53004         around the absolute name, to work around a problem with the HP-UX
53005         11.23 native C compiler, reported by Bob Proulx.
53006
53007 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
53008
53009         * doc/maintain.texi, make-stds.texi: Sync from
53010         <http://savannah.gnu.org/projects/gnustandards>.
53011
53012 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
53013
53014         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
53015
53016 2006-07-09  Jim Meyering  <jim@meyering.net>
53017
53018         * m4/glob.m4: Remove a doubled word in a comment.
53019
53020 2006-07-09  Jim Meyering  <jim@meyering.net>
53021
53022         * lib/argp-pv.c: Remove a doubled word in a comment.
53023         * lib/check-version.c (check_version): Likewise.
53024         * lib/javacomp.c (compile_java_class): Likewise.
53025
53026 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
53027
53028         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
53029         for the benefit of people using Autoconf 2.60.  If you want to
53030         support older Autoconf versions you can copy m4/onceonly_2_57.m4
53031         (or m4/onceonly.m4, if pre-2.57) manually.
53032
53033 2006-07-08  Jim Meyering  <jim@meyering.net>
53034
53035         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
53036         comment.
53037         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
53038         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
53039         comment.
53040
53041 2006-07-08  Jim Meyering  <jim@meyering.net>
53042
53043         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
53044
53045 2006-07-07  Simon Josefsson  <jas@extundo.com>
53046
53047         * tests/test-crc.c: Change expected crc value, the test vector
53048         were probably computed using the old broken crc.c?
53049
53050 2006-07-06  Simon Josefsson  <jas@extundo.com>
53051
53052         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
53053         now the canonical place for the M4 file).
53054
53055         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
53056         from the sys_socket dependency now.
53057
53058         * modules/inet_pton (Files): Ditto.
53059
53060         * modules/inet_ntop (Files): Ditto.
53061
53062 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
53063
53064         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
53065         not gl_PREREQ_GETUSERSHELL.
53066
53067 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53068
53069         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
53070         with only one argument, for Autoconf 2.60.
53071         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
53072         expand to nothing, so add a shell command to avoid syntax error.
53073         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
53074
53075 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53076
53077         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
53078
53079 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
53080
53081         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
53082         no longer needed.  Check for isblank decl.
53083         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
53084         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
53085         of existence.
53086
53087 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
53088
53089         * lib/getloadavg.c: Use __VMS, not VMS.
53090         * lib/getopt.c: Likewise.
53091         * lib/getpagesize.h: Likewise.
53092         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
53093         and probably does not work.
53094
53095 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
53096
53097         * lib/.cppi-disable: Add wcwidth.
53098         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
53099         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
53100         (ISGRAPH): Remove.  All uses changed to isgraph.
53101         (FOLD) [!defined _LIBC]: Remove special case.
53102         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
53103         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
53104         HAVE_ISBLANK.
53105         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
53106         case.
53107
53108 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
53109
53110         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
53111         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
53112         brackets.  Other minor changes to suppress some compiler
53113         warnings.
53114
53115 2006-07-06  Derek R. Price  <derek@ximbiot.com>
53116         and Paul Eggert  <eggert@cs.ucla.edu>
53117
53118         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
53119         of invoking obsolescent AC_HEADER_DIRENT macro.
53120         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
53121         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
53122         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
53123         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
53124         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
53125         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
53126         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
53127         * m4/readdir.m4: Remove; no longer needed.
53128
53129 2006-07-06  Derek R. Price  <derek@ximbiot.com>
53130         and Paul Eggert  <eggert@cs.ucla.edu>
53131
53132         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
53133         Don't worry about this obsolete case any more.
53134         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
53135         directories.
53136         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
53137         worry about this obsolete case any more.
53138         * lib/fts.c: Likewise.
53139         * lib/getcwd.c: Likewise.
53140         * lib/glob.h: Likewise.
53141         * lib/savedir.c: Likewise.
53142
53143 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
53144
53145         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
53146         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
53147         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
53148         needed.
53149         All uses removed.
53150         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
53151         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
53152         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
53153         needed.
53154         * m4/getdate.m4 (gl_GETDATE): Likewise.
53155         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
53156         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
53157         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
53158         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
53159         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
53160         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
53161         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
53162         needed.
53163
53164 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
53165
53166         * lib/memcasecmp.c: Include <limits.h>.
53167         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
53168         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
53169         Don't assume isdigit succeeds only on '0' through '9'.
53170
53171 2006-07-05  Eric Blake  <ebb9@byu.net>
53172
53173         * modules/getaddrinfo (Depends-on): Add snprintf.
53174
53175 2006-07-05  Eric Blake  <ebb9@byu.net>
53176
53177         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
53178         to avoid 'header present but could not be compiled' on cygwin.
53179
53180 2006-07-05  Eric Blake  <ebb9@byu.net>
53181
53182         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
53183         missing from netdb.h.
53184         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
53185
53186 2006-07-05  Derek R. Price  <derek@ximbiot.com>
53187
53188         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
53189         no longer needed.
53190         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
53191         * m4/getdate.m4 (gl_GETDATE): Likewise.
53192         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
53193         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
53194         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
53195         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
53196         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
53197
53198 2006-07-05  Derek R. Price  <derek@ximbiot.com>
53199
53200         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
53201         All uses of is_space replaced by isspace.
53202         * lib/exit.h: Don't talk about STDC_HEADERS.
53203         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
53204         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
53205         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
53206         replaced by isprint etc.
53207         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
53208         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
53209         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
53210         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
53211         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
53212         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
53213
53214 2006-07-05  Bruno Haible  <bruno@clisp.org>
53215
53216         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
53217         the function exists, before testing against AIX.
53218         Reported by Martin Lambers <marlam@marlam.de>.
53219
53220 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
53221
53222         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
53223         From Mark D. Baushke.
53224
53225 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
53226
53227         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
53228         to the absolute name, not just one, to bypass Sun C 5.8's
53229         "warning: #include of /usr/include/... may be non-portable".
53230
53231 2006-07-04  Eric Blake  <ebb9@byu.net>
53232
53233         * modules/dirname-tests: New test module.
53234         * tests/test-dirname.c: New file, replacing dirname.c
53235         TEST_DIRNAME section that was recently deleted.
53236
53237 2006-07-04  Bruno Haible  <bruno@clisp.org>
53238
53239         Assume ANSI C header files and <ctype.h> functions.
53240         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
53241         (mbsnwidth): Use isprint, iscntrl instead.
53242
53243 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
53244
53245         Merge from coreutils.
53246         * MODULES.html.sh: Add xstrtold.
53247         * modules/xstrtold: New file.
53248         * modules/cycle-check (Files): Add lib/same-inode.h.
53249         * modules/dirname (Files): Add m4/double-slash-root.m4.
53250         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
53251         * modules/mkdir-p (Files): Add lib/same-inode.h.
53252         * modules/same (Files): Add lib/same-inode.h.
53253
53254 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
53255
53256         * m4/absolute-header.m4: Renamed from full-header-path.m4.
53257         This is to keep the terminology clean; POSIX talks about
53258         "absolute pathnames", not "full pathnames", but the GNU
53259         Coding Standards say to use "path" for something else;
53260         so use "absolute" to keep both sides happy.
53261         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
53262         Set gl_absolute_header, not gl_full_header_path.
53263         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
53264         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
53265         All uses changed.
53266
53267         Merge from coreutils.
53268
53269         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
53270
53271         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
53272         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
53273         want to require the building of c-strtod.o.
53274         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
53275         needs -lm directly.
53276         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
53277
53278         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
53279
53280         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
53281         --as-needed option if available.  Problem reported by Albert Chin in
53282         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
53283         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
53284         cc merely issues a bunch of annoying warnings for --as-needed
53285         (this problem was reported by Bob Proulx).  Also, try linking with
53286         -lm to detect a bug in binutils 2.16 (this problem was reported
53287         by Ralf Wildenhues).
53288
53289         2006-06-18  Jim Meyering  <jim@meyering.net>
53290
53291         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
53292         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
53293         macro.
53294         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
53295         also check for glibc-2.4's abort-inducing bug.
53296
53297         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
53298         Low-probability clean-up should be to use rmdir to get rid of
53299         the just-created directory, not unlink.
53300
53301         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
53302         configure fail, and request a bug report to inform us about it.
53303         Add a comment that, barring reports to the contrary, in 2007 we'll
53304         assume ftruncate is universally available.
53305
53306         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
53307
53308         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
53309
53310         2006-03-12  Jim Meyering  <jim@meyering.net>
53311
53312         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
53313         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
53314         * m4/same.m4 (gl_SAME): Likewise.
53315         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
53316
53317         2006-03-11  Eric Blake  <ebb9@byu.net>
53318
53319         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
53320         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
53321         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
53322         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
53323
53324 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
53325
53326         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
53327         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
53328         reported by Mark D. Baushke, one in
53329         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
53330
53331         Merge from coreutils.
53332
53333         * lib/.cppi-disable: Add stdint_.h.
53334         * lib/.cvsignore: Add stdint.h.
53335
53336         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
53337
53338         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
53339         both double and long double versions.
53340         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
53341         * lib/xstrtold.c: New file.
53342         * lib/xstrtod.h (xstrtold): New decl.
53343
53344         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
53345
53346         * lib/filemode.c (setst): Remove.
53347         (strmode): Rewrite to avoid setst.  This makes the code shorter,
53348         (arguably) clearer, and the generated code is a bit smaller on my
53349         Debian GNU/Linux stable x86 host.
53350
53351         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
53352
53353         * lib/filemode.c: Include "filemode.h" first, to test the interface.
53354         Assume that filemode.h includes sys/types.h and sys/stat.h.
53355         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
53356         (ftypelet): Reorder to put common cases first, for efficiency.
53357         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
53358         to do 'M'.
53359         (strmode): Renamed from mode_string, and now stores 12 bytes instead
53360         of 10, for compatibility with FreeBSD.  All callers changed.
53361         (filemodestring): Now stores 12 bytes instead of 10, and sets file
53362         types that can't be deduced solely from st_mode.  First arg is now a
53363         const pointer.
53364         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
53365         (strmode): Renamed from mode_string.
53366         (filemodestring): New decl.
53367         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
53368         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
53369         needed.
53370         (S_ISPORT, S_ISWHT): New macros, if not already defined.
53371
53372         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
53373
53374         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
53375         fsusage.h now does that.  Include fsusage.h first, to test interface.
53376         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
53377         at most one method (the old code could have generated decls that
53378         didn't conform to C89, not that this was ever exercised).
53379         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
53380
53381         2006-03-19  Jim Meyering  <jim@meyering.net>
53382
53383         Work even in a chroot where d_ino values for entries in "/"
53384         don't match the stat.st_ino values for the same names.
53385         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
53386         number, iterate through all entries again, using lstat instead.
53387         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
53388         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
53389
53390         * lib/getcwd.c (__getcwd): Clarify a comment.
53391         Use memcpy in place of a call to strcpy.
53392
53393         2006-03-12  Jim Meyering  <jim@meyering.net>
53394
53395         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
53396         matches that of the current directory (which we're about to chdir ".."
53397         out of), then save the dev-ino of the parent, instead.
53398
53399         * lib/same-inode.h (SAME_INODE): New file/macro.
53400         * lib/chdir-safer.c (SAME_INODE): Remove definition.
53401         Include "same-inode.h", instead.
53402         * lib/same.c: Likewise.
53403         * lib/cycle-check.h: Include "same-inode.h".
53404         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
53405         * lib/cycle-check.c (SAME_INODE): Remove definition.
53406         * lib/root-dev-ino.h: Include "same-inode.h".
53407
53408         2006-03-11  Eric Blake  <ebb9@byu.net>
53409
53410         * lib/same.c (same_name): s/base_name/last_component/
53411         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
53412         * lib/filenamecat.c (file_name_concat): Likewise.
53413
53414         2006-03-11  Eric Blake  <ebb9@byu.net>,
53415                     Paul Eggert  <eggert@cs.ucla.edu>
53416
53417         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
53418         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
53419         drive prefix.
53420         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
53421         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
53422         (last_component): New method.
53423         * lib/dirname.c (dir_len): Determine when drive letters need a
53424         subsequent slash.  Preserve // when it is special.
53425         (dir_name): Don't append dot when drive letter is absolute.
53426         [TEST_DIRNAME]: Move into a full-blown gnulib test.
53427         * lib/basename.c (base_name): New semantics - malloc the result.
53428         Preserve // when it is special.  Preserve relative files that look
53429         like drive letters.
53430         (base_len): Preserve // when it is special.
53431         (last_component): New method, similar to old base_name semantics.
53432         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
53433         base_name.  Strip redundant slashes from ///.
53434
53435 2006-07-03  Jim Meyering  <jim@meyering.net>
53436
53437         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
53438         macro is used before the first cycle_check call.
53439
53440 2006-07-03  Eric Blake  <ebb9@byu.net>
53441
53442         * modules/dirname (Depends-on): Add xstrndup.
53443
53444 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
53445
53446         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
53447         test cases, so that config.log is a bit easier to follow.
53448
53449 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
53450
53451         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
53452         both are 64 bits, since this seems to be the tradition, and this
53453         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
53454         we ever run into a host that prefers long long to long in this
53455         case, we'll need another configure-time test.  Problem reported by
53456         Jim Meyering.
53457
53458 2006-07-02  Eric Blake  <ebb9@byu.net>
53459
53460         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
53461
53462 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
53463
53464         * modules/inttypes (Depends-on): No longer depends on stdint.
53465         * modules/stdint (Description): Say more about assumptions.
53466         Say that the fast types might differ.  Say macros are used.
53467         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
53468         (Makefile.am): Revise list of substituted symbols to match
53469         new stdint.m4.
53470         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
53471         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
53472         * tests/test-stdint.c (verify_same_types)
53473         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
53474         the code conforms to C99/C89.
53475         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
53476         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
53477
53478 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
53479
53480         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
53481         but fix a bug, by requiring at least 64 bits.
53482         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
53483         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
53484         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
53485         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
53486
53487         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
53488         changes.  Make 2.59 a prerequisite.  Check and substitute for
53489         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
53490         inttypes.h.  Do not use special include files; just use the
53491         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
53492         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
53493         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
53494         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
53495         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
53496         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
53497         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
53498         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
53499         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
53500         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
53501         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
53502         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
53503         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
53504         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
53505         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
53506         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
53507         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
53508         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
53509         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
53510         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
53511         WINT_MAX.  Check for C99 conformance more strictly, by detecting
53512         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
53513         not check for things that C99 does not require, e.g., int8_t.  If
53514         a test isn't needed unless <stdint.h> isn't working, and is
53515         unlikely to be needed for any other reason, then don't do it
53516         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
53517         size_t, since we assume C89 freestanding at least.  Do not check
53518         for sig_atomic_t, wchar_t, or wint_t, since the code now does
53519         the right thing even if the types are not defined.  Instead use:
53520         (gl_STDINT_TYPE_PROPERTIES): New macro.
53521         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
53522         testing whether <sys/types.h> clashes, as Autoconf does this for
53523         us now.  All uses removed.
53524         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
53525         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
53526         (gl_CHECK_TYPE_SAME):
53527         Remove; no longer needed.
53528         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
53529         exists, since we'll return 0 anyway in that case.
53530         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
53531
53532 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
53533
53534         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
53535         possible collision with system files.
53536         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
53537         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
53538         WCHAR_MIN and WCHAR_MAX in this case.
53539         (<stddef.h>): Do not include; no longer needed.
53540         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
53541         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
53542         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
53543         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
53544         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
53545         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
53546         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
53547         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
53548         !defined(__c99))]: Include in this case too, since it's harmless
53549         now.
53550         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
53551         dangerous to do so.
53552         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
53553         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
53554         (_STDINT_MIN, _STDINT_MAX): New macros.
53555         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
53556         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
53557         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
53558         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
53559         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
53560         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
53561         macros, not typedefs; this simplifies things quite a bit.
53562         Use long int for all types narrower than int64_t.
53563         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
53564         Define in terms of long long int or int64_t or long int,
53565         not int64_t or int32_t.  This saves some compile-time testing.
53566         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
53567         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
53568         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
53569         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
53570         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
53571         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
53572         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
53573         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
53574         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
53575         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
53576         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
53577         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
53578         undef any previous version and define our own version, for
53579         simplicity and consistency with the new macros for types.
53580         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
53581         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
53582         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
53583         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
53584         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
53585         @WINT_T_SUFFIX@ to keep things simple here.
53586         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
53587         Simplify by assuming typical 8/16/32/64 host, since we're
53588         already doing that elsewhere anyway.
53589         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
53590         and assume long long int is 64 bits if available.  This
53591         speeds up 'configure'.
53592
53593 2006-07-01  Eric Blake  <ebb9@byu.net>
53594
53595         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
53596         Reported by Andreas Buening.
53597
53598 2006-07-01  Eric Blake  <ebb9@byu.net>
53599
53600         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
53601
53602 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
53603
53604         * lib/getaddrinfo.c: fixed typo
53605
53606 2006-06-29  Jim Meyering  <jim@meyering.net>
53607
53608         * modules/strftime (Maintainer): Add my name, since with the
53609         FPRINTFTIME changes strftime.c has forked from glibc.
53610
53611 2006-06-29  Eric Blake  <ebb9@byu.net>
53612
53613         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
53614
53615 2006-06-29  Eric Blake  <ebb9@byu.net>
53616
53617         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
53618
53619 2006-06-29  Eric Blake  <ebb9@byu.net>
53620
53621         * lib/stat_.h: New file.
53622
53623 2006-06-29  Eric Blake  <ebb9@byu.net>
53624
53625         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
53626         unused static function.
53627
53628 2006-06-29  Eric Blake  <ebb9@byu.net>
53629
53630         * doc/functions.texi (Function Portability): Document missing lstat
53631         on mingw.
53632
53633 2006-06-29  Eric Blake  <ebb9@byu.net>
53634
53635         * MODULES.html.sh: Add sys_stat.
53636         * modules/sys_stat: New module.
53637         * modules/mkstemp (Depends-on): Add sys_stat.
53638
53639 2006-06-29  Derek R. Price  <derek@ximbiot.com>
53640
53641         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
53642
53643 2006-06-29  Derek R. Price  <derek@ximbiot.com>
53644
53645         * m4/c-bs-a.m4: Removed.
53646
53647 2006-06-29  Derek R. Price  <derek@ximbiot.com>
53648
53649         * lib/strftime.c: Assume strftime() exists.
53650
53651 2006-06-29  Derek Price  <derek@ximbiot.com>
53652
53653         * modules/c-bs-a: Removed - \a is C89.
53654         * MODULES.html.sh: Remove c-bs-a.
53655
53656 2006-06-29  Bruno Haible  <bruno@clisp.org>
53657
53658         * modules/wcwidth (License): Change to LGPL.
53659
53660 2006-06-28  Simon Josefsson  <jas@extundo.com>
53661
53662         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
53663         on _WIN32.
53664
53665         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
53666         getnameinfo.
53667
53668 2006-06-28  Simon Josefsson  <jas@extundo.com>
53669
53670         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
53671
53672 2006-06-28  Simon Josefsson  <jas@extundo.com>
53673
53674         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
53675         functions there.  It will succeed on Windows XP, but on Windows
53676         2000 and (presumably) earlier, it will fail, and use the internal
53677         re-implementation.
53678         (use_win32_p): New function.
53679         (getaddrinfo): Use strtoul on servname, to support numeric ports.
53680         Support AI_NUMERICSERV to disable getservbyname.
53681         (getnameinfo): New function, only supports
53682         NI_NUMERICHOST|NI_NUMERICSERV for now.
53683
53684         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
53685         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
53686         getnameinfo.
53687
53688 2006-06-28  Eric Blake  <ebb9@byu.net>
53689
53690         * modules/wcwidth: New file.
53691         * modules/mbchar (Depends-on): Add wcwidth.
53692         * modules/mbswidth (Depends-on): Add wcwidth.
53693         * MODULES.html.sh: Add wcwidth.
53694
53695 2006-06-28  Eric Blake  <ebb9@byu.net>
53696
53697         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
53698         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
53699
53700 2006-06-28  Eric Blake  <ebb9@byu.net>
53701
53702         * lib/xvasprintf.h: Fix comments.
53703
53704 2006-06-28  Eric Blake  <ebb9@byu.net>
53705
53706         * lib/mbchar.h (wcwidth): Include wcwidth.h.
53707         * lib/mbswidth.c (wcwidth): Move from here...
53708         * lib/wcwidth.h: ...to this new file.
53709
53710 2006-06-28  Derek R. Price  <derek@ximbiot.com>
53711
53712         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
53713
53714         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
53715         it's obsolete.
53716         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
53717
53718 2006-06-28  Derek R. Price  <derek@ximbiot.com>
53719
53720         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
53721         Autoconf 2.60 says this stuff was obsolete.
53722
53723 2006-06-28  Bruno Haible  <bruno@clisp.org>
53724
53725         * modules/wcwidth (Files): Add m4/wchar_t.m4.
53726
53727 2006-06-28  Bruno Haible  <bruno@clisp.org>
53728
53729         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
53730         gt_TYPE_WCHAR_T.
53731
53732 2006-06-28  Bruno Haible  <bruno@clisp.org>
53733
53734         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
53735         declaration for wcwidth.
53736         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
53737
53738 2006-06-28  Bruno Haible  <bruno@clisp.org>
53739
53740         * lib/mkdtemp.c [MINGW]: Include <io.h>.
53741         (mkdir): Define using _mkdir.
53742
53743 2006-06-28  Bruno Haible  <bruno@clisp.org>
53744
53745         * lib/getaddrinfo.h: Fix POSIX URL.
53746         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
53747         _WIN32.
53748         (use_win32_p): Make static.
53749         (getaddrinfo): Reject service name if it is empty or does not consist
53750         solely of decimal digits, or if its value is > 65535.
53751         (getnameinfo): Remove useless casts.
53752
53753 2006-06-27  Simon Josefsson  <jas@extundo.com>
53754
53755         * modules/sys_select: New file, suggested by Bruno Haible, Paul
53756         Eggert and Martin Lambers.
53757
53758 2006-06-27  Simon Josefsson  <jas@extundo.com>
53759
53760         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
53761         Eggert and Martin Lambers.
53762
53763 2006-06-27  Bruno Haible  <bruno@clisp.org>
53764
53765         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
53766         result to 0, not to empty.
53767         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
53768
53769 2006-06-27  Bruno Haible  <bruno@clisp.org>
53770
53771         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
53772
53773 2006-06-26  Simon Josefsson  <jas@extundo.com>
53774
53775         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
53776         present.
53777
53778 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
53779
53780         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
53781         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
53782         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
53783
53784 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
53785
53786         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
53787
53788 2006-06-26  Bruno Haible  <bruno@clisp.org>
53789
53790         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
53791
53792 2006-06-26  Bruno Haible  <bruno@clisp.org>
53793
53794         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
53795
53796 2006-06-26  Bruno Haible  <bruno@clisp.org>
53797
53798         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
53799         SGI C compiler in pre-C99 mode.
53800         Suggested by Mark D. Baushke and Larry Jones.
53801
53802 2006-06-26  Bruno Haible  <bruno@clisp.org>
53803
53804         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
53805         WCHAR_MAX.
53806         Reported by Mark D. Baushke and Larry Jones.
53807
53808 2006-06-26  Bruno Haible  <bruno@clisp.org>
53809
53810         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
53811         in pre-C99 mode.
53812         Suggested by Mark D. Baushke and Larry Jones.
53813
53814 2006-06-23  Simon Josefsson  <jas@extundo.com>
53815             Bruno Haible  <bruno@clisp.org>
53816
53817         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
53818         Emit mostlyclean-local rule.
53819         (func_emit_tests_Makefile_am): Likewise.
53820         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
53821
53822 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
53823
53824         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
53825
53826 2006-06-23  Bruno Haible  <bruno@clisp.org>
53827
53828         * tests/test-stdint.c: Update to match ISO C 99 Technical
53829         Corrigendum 1.
53830
53831 2006-06-23  Bruno Haible  <bruno@clisp.org>
53832
53833         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
53834
53835 2006-06-23  Bruno Haible  <bruno@clisp.org>
53836
53837         * lib/stdint_.h: Treat IRIX like OpenBSD.
53838
53839 2006-06-23  Bruno Haible  <bruno@clisp.org>
53840
53841         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
53842         ISO C 99 Technical Corrigendum 1.
53843
53844 2006-06-22  Simon Josefsson  <jas@extundo.com>
53845
53846         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
53847         MinGW.
53848
53849 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
53850
53851         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
53852         needed.  Some compiler complained about some of them.  Problem reported
53853         by Larry Jones in
53854         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
53855
53856 2006-06-21  Simon Josefsson  <jas@extundo.com>
53857
53858         * tests/test-getaddrinfo.c: New file.
53859
53860         * modules/getaddrinfo-tests: New file.
53861
53862         * MODULES.html.sh: Add inet_pton.
53863
53864         * modules/inet_pton: New file.
53865
53866 2006-06-21  Simon Josefsson  <jas@extundo.com>
53867
53868         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
53869         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
53870         of using the (limited) gnulib implementation on Windows XP.
53871
53872         * m4/inet_pton.m4: New file.
53873
53874 2006-06-21  Simon Josefsson  <jas@extundo.com>
53875
53876         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
53877         variable.
53878
53879         * lib/socket_.h: Don't define WINVER.
53880
53881         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
53882         slightly modified to work in gnulib.
53883
53884 2006-06-21  Simon Josefsson  <jas@extundo.com>
53885
53886         * doc/gnulib.texi (Windows sockets): Add.
53887
53888 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
53889
53890         * lib/read-file.c (fread_file): Start with buffer allocation of
53891         0 bytes rather than 1 byte; this simplifies the code.
53892         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
53893         code to free buffer and save/restore errno.
53894         (internal_read_file): Remove unused local.
53895
53896 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
53897
53898         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
53899         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
53900         Problem reported by Denis Excoffier in
53901         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
53902
53903 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53904
53905         * modules/sys_socket, modules/socklen: Include sys/types since
53906         FreeBSD 4.x's sys/socket.h needs it.
53907
53908 2006-06-19  Simon Josefsson  <jas@extundo.com>
53909
53910         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
53911
53912 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
53913
53914         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
53915
53916 2006-06-19  Bruno Haible  <bruno@clisp.org>
53917
53918         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
53919         and FULL_PATH_INTTYPES_H in angle brackets.
53920         Reported by Mark D. Baushke <mdb@gnu.org>.
53921
53922 2006-06-17  Eric Blake  <ebb9@byu.net>
53923
53924         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
53925         errno.
53926
53927 2006-06-17  Bruno Haible  <bruno@clisp.org>
53928
53929         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
53930         <sys/inttypes.h>.
53931
53932 2006-06-17  Bruno Haible  <bruno@clisp.org>
53933
53934         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
53935         whether errno is declared. Assume <errno.h> declares errno.
53936
53937 2006-06-17  Bruno Haible  <bruno@clisp.org>
53938
53939         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
53940
53941 2006-06-17  Bruno Haible  <bruno@clisp.org>
53942
53943         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
53944         problem on Solaris 2.5.1.
53945
53946 2006-06-16  Eric Blake  <ebb9@byu.net>
53947
53948         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
53949         * lib/unicodeio.c [!defined errno]: Likewise.
53950         * lib/strtol.c [!defined errno]: Likewise.
53951         * lib/strtod.c [!defined errno]: Likewise.
53952
53953 2006-06-15  Eric Blake  <ebb9@byu.net>
53954
53955         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
53956
53957 2006-06-15  Eric Blake  <ebb9@byu.net>
53958
53959         * config/srclist.txt (ssize_t.m4): Lose sync.
53960
53961 2006-06-15  Bruno Haible  <bruno@clisp.org>
53962
53963         * modules/stdint (Files): Include m4/full-header-path.m4,
53964         m4/size_max.m4, m4/wchar_t.m4.
53965         (Makefile.am): Many more substitutions.
53966         * modules/stdint-tests: New file.
53967         * tests/test-stdint.c: New file.
53968
53969 2006-06-15  Bruno Haible  <bruno@clisp.org>
53970
53971         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
53972         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
53973         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
53974         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
53975         gl_CHECK_TYPE_SAME): New macros.
53976
53977 2006-06-15  Bruno Haible  <bruno@clisp.org>
53978
53979         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
53980
53981 2006-06-15  Bruno Haible  <bruno@clisp.org>
53982
53983         * lib/stdint_.h: Rewritten to be fully auto-configured.
53984         Fixes bug on HP-UX/IA64.
53985
53986 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
53987
53988         * lib/getdate.y (__attribute__): Don't define if already defined.
53989         Problem reported by Larry Jones.
53990         * lib/utimens.c (__attribute__): Likewise.
53991
53992 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
53993
53994         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
53995         reported by Andreas Schwab.
53996
53997 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53998             Bruno Haible  <bruno@clisp.org>
53999
54000         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
54001         check for the declaration of strnlen and a run test that exposes the
54002         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
54003         rpl_strndup.
54004
54005 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54006             Bruno Haible  <bruno@clisp.org>
54007
54008         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
54009
54010 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54011
54012         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
54013         compile test, for Tru64 4.0D.
54014
54015 2006-05-28  Karl Berry  <karl@gnu.org>
54016
54017         * config/srclist.txt (printf-args.c): lose sync.
54018
54019 2006-05-26  Martin Lambers  <marlam@marlam.de>
54020
54021         * lib/getpass.c: Updates the test for the native W32 API, and adds
54022         missing includes, thus fixing compilation warnings.
54023
54024 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
54025
54026         * lib/exclude.c (exclude_fnmatch): New function.
54027         (excluded_file_name): Call exclude_fnmatch.
54028         * lib/exclude.h (excluded_file_name): New prototype
54029
54030 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
54031
54032         * lib/tempname.c (small_open, large_open): New macros.
54033         (__open, __open64) [!_LIBC]: Remove.
54034         (__gen_tempname): Use small_open and large_open instead of __open
54035         and __open64.  This fixes a portability bug on HP-UX 11.11i
54036         reported by Simon Wing-Tang in
54037         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
54038
54039 2006-05-24  Bruno Haible  <bruno@clisp.org>
54040
54041         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
54042         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
54043         Reported by Thorsten Maerz <torte@netztorte.de> via
54044         Aaron Stone <aaron@serendipity.cx>.
54045
54046 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
54047
54048         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
54049         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
54050         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
54051         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
54052         not really conditional on the cache.
54053         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
54054
54055 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
54056
54057         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
54058         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
54059         (my_usleep): Don't mishandle maximum value.
54060
54061 2006-05-19  Jim Meyering  <jim@meyering.net>
54062
54063         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
54064
54065 2006-05-17  Bruno Haible  <bruno@clisp.org>
54066
54067         Cygwin portability.
54068         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
54069
54070 2006-05-17  Bruno Haible  <bruno@clisp.org>
54071
54072         * lib/stdint_.h: Fix recognition of Cygwin.
54073
54074 2006-05-15  Bruno Haible  <bruno@clisp.org>
54075
54076         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
54077         on libtool patch by Ralf Wildenhues.
54078
54079 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
54080
54081         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
54082         test for C99 conformance; (bool) 0.5 is an integer constant
54083         expression, but (bool) -0.5 is not.  Problem reported by Fedor
54084         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
54085
54086 2006-05-11  Simon Josefsson  <jas@extundo.com>
54087
54088         * m4/xvasprintf.m4: Fix obvious typo.
54089
54090 2006-05-11  Jim Meyering  <jim@meyering.net>
54091
54092         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
54093         James Lemley.
54094
54095 2006-05-10  Simon Josefsson  <jas@extundo.com>
54096
54097         * lib/md4.c: Typo fix, update copyright years.
54098         (K1, K2): Don't use L because it turn computations into 64-bit on
54099         64-bit platforms.
54100
54101 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
54102
54103         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
54104         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
54105         unwanted sign propagation, e.g., on hosts with 64-bit int.
54106         There still are some problems with reeelly weird theoretical hosts
54107         (e.g., 33-bit int) but it's not worth worrying about now.
54108         * lib/sha1.c (rol): Likewise.
54109         (K1, K2, K3, K4): Remove unnecessary L suffix.
54110
54111 2006-05-10  Bruno Haible  <bruno@clisp.org>
54112
54113         * lib/des.c: Cast to avoid warnings.
54114
54115 2006-05-09  Bruno Haible  <bruno@clisp.org>
54116
54117         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
54118         (Depends-on): Depend also on xsize, stdarg.
54119         (configure.ac): Add gl_XVASPRINTF.
54120
54121 2006-05-09  Bruno Haible  <bruno@clisp.org>
54122
54123         * m4/xvasprintf.m4: New file.
54124
54125 2006-05-09  Bruno Haible  <bruno@clisp.org>
54126
54127         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
54128         (EOVERFLOW): Define fallback value.
54129         (xstrcat): New function.
54130         (xvasprintf): Recognize the special case of a string concatenation.
54131
54132 2006-05-08  Eric Blake  <ebb9@byu.net>
54133
54134         * gnulib-tool (func_version): Base copyright year on CVS date.
54135         (func_emit_copyright_notice): New function.
54136         (func_emit_lib_Makefile_am): Use it.
54137         (func_emit_tests_Makefile_am): Likewise.
54138         (func_import): Likewise.
54139
54140 2006-05-08  Bruno Haible  <bruno@clisp.org>
54141
54142         * modules/stdarg: New file.
54143         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
54144
54145 2006-05-08  Bruno Haible  <bruno@clisp.org>
54146
54147         * m4/stdarg.m4: New file, from GNU gettext.
54148
54149 2006-05-08  Bruno Haible  <bruno@clisp.org>
54150
54151         * config/srclist.txt (build-aux/config.rpath): different from latest
54152         release.
54153
54154 2006-05-08  Bruno Haible  <bruno@clisp.org>
54155
54156         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
54157
54158 2006-05-05  Jim Meyering  <jim@meyering.net>
54159
54160         * m4/warning.m4: New file, derived from bison's file by the same name.
54161
54162 2006-05-03  Bruno Haible  <bruno@clisp.org>
54163
54164         * lib/stdint_.h: Shorter URL.
54165         * lib/inttypes.h: Likewise.
54166
54167 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
54168
54169         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
54170
54171 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
54172
54173         * lib/verify.h: Document the internals better.  Most of this change
54174         was written by Bruno Haible.
54175
54176 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
54177
54178         * doc/verify.texi: New file, partly based on a proposal by
54179         Bruno Haible.
54180
54181 2006-05-02  Bruno Haible  <bruno@clisp.org>
54182
54183         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
54184         test from here...
54185         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
54186
54187 2006-04-29  Bruno Haible  <bruno@clisp.org>
54188
54189         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
54190         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
54191
54192 2006-04-29  Bruno Haible  <bruno@clisp.org>
54193
54194         * gnulib-tool: Make --update option actually work.
54195
54196 2006-04-29  Bruno Haible  <bruno@clisp.org>
54197
54198         * doc/gcd.texi: New file.
54199         * doc/gnulib.texi: Include it.
54200
54201 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
54202
54203         * lib/getdate.y (get_date): When adding relative date, start with the
54204         initial time, not with the result of the first mktime call.
54205
54206 2006-04-25  Bruno Haible  <bruno@clisp.org>
54207
54208         * gnulib-tool (func_import): Output the include directives in three
54209         blocks, sorted separately.
54210         Reported by Ben Pfaff <blp@cs.stanford.edu>.
54211
54212 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
54213
54214         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
54215         to define main with arguments, for C++.  Reported by Eric Blake.
54216         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
54217         Prefer 'int main ()' to 'int main (void)', for C++.
54218         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
54219         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
54220         for 'main', for C99 and C++.
54221
54222 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
54223
54224         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
54225         Don't assume that exit status -1 is valid.
54226         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
54227         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
54228         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
54229         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
54230         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
54231         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
54232         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
54233         functions can be used without declaring them, or that you can
54234         exit with status -1.
54235         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
54236
54237 2006-04-24  Karl Berry  <karl@gnu.org>
54238
54239         * config/srclist.txt (longdouble.m4): sync lost.
54240
54241 2006-04-24  Eric Blake  <ebb9@byu.net>
54242
54243         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
54244
54245 2006-04-24  Bruno Haible  <bruno@clisp.org>
54246
54247         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
54248         poll() implementation in AIX.
54249         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54250
54251 2006-04-24  Bruno Haible  <bruno@clisp.org>
54252
54253         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
54254         assigned exactly once.
54255
54256 2006-04-23  Claudio Fontana  <claudio@gnu.org>
54257             Bruno Haible  <bruno@clisp.org>
54258
54259         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
54260         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
54261         for AM_CPPFLAGS.
54262
54263 2006-04-23  Bruno Haible  <bruno@clisp.org>
54264
54265         * modules/copy-file: Depend on unistd.
54266         * modules/execute: Likewise.
54267         * modules/fatal-signal: Likewise.
54268         * modules/findprog: Likewise.
54269         * modules/mkdtemp : Likewise.
54270         * modules/pipe: Likewise.
54271         * modules/wait-process: Likewise.
54272
54273 2006-04-23  Bruno Haible  <bruno@clisp.org>
54274
54275         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
54276         condition was already detected.
54277         Reported by Ben Pfaff <blp@cs.stanford.edu>.
54278
54279 2006-04-23  Bruno Haible  <bruno@clisp.org>
54280
54281         * lib/copy-file.c: Include <unistd.h> unconditionally.
54282         * lib/execute.c: Likewise.
54283         * lib/fatal-signal.c: Likewise.
54284         * lib/findprog.c: Likewise.
54285         * lib/mkdtemp.c: Likewise.
54286         * lib/pipe.h: Likewise.
54287         * lib/pipe.c: Likewise.
54288         * lib/wait-process.h: Likewise.
54289
54290 2006-04-23  Bruno Haible  <bruno@clisp.org>
54291
54292         * gnulib-tool (func_usage): Fix --import description. Document
54293         --update.
54294         (func_import): Create temporary file in a temporary directory, if
54295         --dry-run is specified. Silence errors from 'grep' when there are no
54296         m4 files in $m4dir.
54297         (func_create_testdir): Silence errors from 'grep' when there are no
54298         m4 files in $m4dir.
54299         Reported by Karl Berry <karl@freefriends.org>.
54300
54301 2006-04-20  Bruno Haible  <bruno@clisp.org>
54302
54303         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
54304         one argument, so that the code will be portable to Autoconf 2.60.
54305         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
54306         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
54307         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
54308
54309 2006-04-19  Derek Price  <derek@ximbiot.com>
54310             Eric Blake  <ebb9@byu.net>
54311
54312         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
54313         rather than "/full/path.h".  Update comment to match.  Shorten &
54314         generalize m4_translit call via AS_TR_CPP.
54315
54316 2006-04-19  Derek Price  <derek@ximbiot.com>
54317             Eric Blake  <ebb9@byu.net>
54318
54319         * lib/inttypes.h: Correct grammar in comment.
54320
54321 2006-04-18  Derek Price  <derek@ximbiot.com>
54322             Paul Eggert  <eggert@cs.ucla.edu>
54323
54324         * modules/inttypes: New file.
54325         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
54326
54327 2006-04-18  Derek Price  <derek@ximbiot.com>
54328             Paul Eggert  <eggert@cs.ucla.edu>
54329
54330         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
54331         New files.
54332
54333 2006-04-18  Derek Price  <derek@ximbiot.com>
54334             Paul Eggert  <eggert@cs.ucla.edu>
54335
54336         * lib/inttypes.h: New file.
54337         * lib/strtoimax.c: Assume <inttypes.h>.
54338
54339 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
54340
54341         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
54342         isn't mounted.  Problem reported by Kir Kolyshkin.
54343
54344 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
54345
54346         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
54347         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
54348         Derek R. Price.
54349         * lib/regex.h (RE_DUP_MAX): Update comment to match current
54350         implementation.
54351
54352 2006-04-12  Eric Blake  <ebb9@byu.net>
54353
54354         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
54355         is now done automatically by the corresponding Autoconf macro.
54356
54357 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
54358
54359         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
54360         time_r.h.
54361
54362 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
54363
54364         Merge regex changes from libc, removing some of our
54365         POSIX-conformance changes that were rejected and redoing them in a
54366         less-intrusive way.
54367
54368         * lib/regcomp.c (re_compile_internal, init_dfa):
54369         Length arg is now size_t, not Idx.  All uses changed.
54370         (peek_token): Forward decl now says internal_function.
54371         (__re_error_msgid, __re_error_msgid_idx):
54372         Now static rather than extern with attribute_hidden.
54373         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
54374         For some reason libc prefers K&R style defns for external functions.
54375         (regerror) [!defined _LIBC]: Likewise.
54376         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
54377         (seek_collating_symbol_entry, lookup_collation_sequence_value):
54378         (build_range_exp, build_collating_symbol):
54379         Use K&R-style defn.
54380         (re_compile_fastmap): Use '\0' to memset, not 0.
54381         (utf8_sb_map): Make the calculations more obvious.
54382         (init_dfa, parse_bracket_exp, build_charclass_op):
54383         Call calloc and cast result, as glibc does.
54384         (init_word_char, fetch_token, peek_token, peek_token_bracket):
54385         (build_range_exp, build_collating_symbol):
54386         Now internal functions.
54387
54388         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
54389
54390         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
54391         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
54392         Don't depend on VMS; depend on __VMS instead, for POSIX
54393         namespace cleanness.
54394         (regoff_t): Define to ssize_t, not long int.
54395
54396         Remove the REG_ macros named below.  Instead, make the old names
54397         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
54398         __USE_GNU_REGEX.
54399         (REG_BACKSLASH_ESCAPE_IN_LISTS):
54400         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
54401         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
54402         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
54403         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
54404         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
54405         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
54406         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
54407         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
54408         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
54409         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
54410         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
54411         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
54412         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
54413         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
54414         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
54415         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
54416         (REG_NREGS):
54417         Remove.  All uses replaced by the old RE_* names.
54418         (RE_BACKSLASH_ESCAPE_IN_LISTS):
54419         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
54420         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
54421         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
54422         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
54423         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
54424         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
54425         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
54426         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
54427         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
54428         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
54429         Don't bother having these macros be independent of each others'
54430         values, since they no longer exist in the POSIX name space.
54431
54432         Rename the following member names back to their old names,
54433         unless !__USE_GNU_REGEX.  All uses changed back.
54434         (buffer): Renamed from re_buffer.
54435         (allocated): Renamed from re_allocated.
54436         (used): Renamed from re_used.
54437         (syntax): Renamed from re_syntax.
54438         (fastmap): Renamed from re_fastmap.
54439         (translate): Renamed from re_translate.
54440         (can_be_null): Renamed from re_can_be_null.
54441         (regs_allocated): Renamed from re_regs_allocated.
54442         (fastmap_accurate): Renamed from re_fastmap_accurate.
54443         (no_sub): Renamed from re_no_sub.
54444         (not_bol): Renamed from re_not_bol.
54445         (not_eol): Renamed from re_not_eol.
54446         (newline_anchor): Renamed from re_newline_anchor.
54447         (num_regs): Renamed from rm_num_regs.
54448         (start): Renamed from rm_start.
54449         (end): Renamed from rm_end.
54450
54451         (free_state): Move up a bit.
54452
54453         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
54454         #define to be empty.
54455         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
54456         when that is what is intended.
54457         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
54458         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
54459         (MAX): New macro.
54460         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
54461         All uses changed back to re_malloc, etc.  It's now the caller's
54462         responsibility to check for overflow; all callers changed.
54463         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
54464         (re_x2nrealloc): Remove.
54465         (free_state): Remove decl.
54466
54467         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
54468         (re_set_registers, re_exec):
54469         Use K&R-style defn.
54470
54471         2006-01-31  Roland McGrath  <roland@redhat.com>
54472
54473         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
54474         Reported by Mike Frysinger <vapier@gentoo.org>.
54475
54476         2006-01-15  Andreas Jaeger  <aj@suse.de>
54477
54478         [BZ #1950]
54479         * lib/regex_internal.c (re_string_reconstruct): Adjust for
54480         build_wcs_upper_buffer change.
54481         (build_wcs_upper_buffer): Change return type.
54482
54483         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
54484
54485         * lib/regex_internal.h: Include <stdint.h> if available.
54486
54487         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
54488
54489         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
54490
54491         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
54492
54493         * lib/regcomp.c: Adjust for changed secondary hash function.
54494
54495         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
54496
54497         * lib/regex.h: Pretty printing.
54498         Clean up namespace a bit.
54499
54500         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
54501
54502         * lib/regexec.c (update_cur_sifted_state, check_arrival,
54503         check_arrival_add_next_nodes): Avoid using uninitialized variable.
54504
54505         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
54506                     Ulrich Drepper  <drepper@redhat.com>
54507
54508         [BZ #1302]
54509         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
54510         changed.
54511         (bitset_word_t): Renamed from bitset_word.  All uses changed.
54512
54513         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
54514
54515         [BZ #281]
54516         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
54517         * lib/regcomp.c: Remove unnecessary uses of
54518         unsigned RE_TRANSLATE_TYPE.
54519         * lib/regex_internal.h: Likewise.
54520         * lib/regex_internal.c: Likewise.
54521         * lib/regexec.c: Likewise.
54522         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
54523
54524         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
54525
54526         * lib/regexec.c (find_recover_state): Remove unnecessary
54527         initialization.
54528         (transit_state_bkref): Make DFA a const pointer.
54529         (get_subexp): Likewise.
54530         (check_arrival): Likewise.
54531         (update_cur_sifted_state): Likewise.
54532         (re_search_internal): Likewise.
54533         (prune_impossible_nodes): Likewise.
54534         (acquire_init_state_context): Likewise.
54535         (proceed_next_node): Likewise.
54536         (set_regs): Likewise.
54537         (free_fail_stack_return): Likewise.
54538         (check_arrival_expand_ecl): Mark DFA parameter as const.
54539         (check_arrival_expand_ecl_sub): Likewise.
54540         (check_subexp_limits): Likewise.
54541         (sub_epsilon_src_nodes):  Likewise.
54542         (add_epsilon_src_nodes):  Likewise.
54543         (merge_state_array): Likewise.
54544         (update_regs): Likewise.
54545         (build_trtable): Likewise.
54546         (sift_states_backward): Mark MCTX parameter as const.
54547         (build_sifted_states): Likewise.
54548         (update_cur_sifted_state): Likewise.
54549         (sift_states_mkref): Likewise.
54550         (check_arrival_expand_ecl): Mark eclosure as const.
54551         (check_dst_limits_calc_pos_1): Likewise.
54552         * lib/regex_internal.h (re_match_context_t): Make dfa a const
54553         pointer.
54554
54555         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
54556
54557         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
54558         (transit_state_sb): Likewise.
54559         (transit_state_mb): Likewise.
54560         (sift_states_iter_mb): Likewise.
54561         (check_arrival_add_next_nodes): Likewise.
54562         (check_node_accept_bytes): Change first parameter to pointer-to-const.
54563         [_LIBC] (re_search_2_stub): Use mempcpy.
54564
54565         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
54566         mbrtowc for very simple UTF-8 case.
54567
54568         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
54569         a pointer-to-const.
54570         (re_acquire_state_context): Likewise.
54571         * lib/regex_internal.h: Adjust prototypes.
54572
54573         * lib/regex.c: Prevent using C++ compilers.
54574
54575         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
54576         (re_acquire_state_context): Likewise.
54577
54578 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
54579
54580         * modules/regex (Depends-on): Add ssize_t.
54581
54582 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
54583
54584         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
54585         translation table.
54586
54587 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
54588
54589         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
54590
54591 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
54592             Bruno Haible  <bruno@clisp.org>
54593
54594         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
54595         <sys/types.h> and <inttypes.h>.
54596
54597 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54598
54599         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
54600         `__error_t_defined', so argp.h will not typedef the former.
54601
54602 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
54603
54604         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
54605         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
54606         glibc names.  Even if glibc is changed to conform to POSIX, the
54607         traditional names will be available anyway, since regex depends on
54608         the extensions module.  Also, fix a longstanding typo in the
54609         implementation of Spencer ERE test #75 from grep 2.3.  Problems
54610         reported by Emanuele Giaquinta.  Also, change sense of cached
54611         variable, so that the message makes sense.
54612
54613 2006-03-24  Simon Josefsson  <jas@extundo.com>
54614
54615         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
54616         including some doc fixes.
54617         (base64_encode_alloc): Fix +1 bug on allocation failures.
54618
54619 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54620
54621         * lib/base64.c (base64_encode): Do not read past end of array with
54622         unsanitized input on systems with CHAR_BIT > 8.
54623
54624 2006-03-24  Eric Blake  <ebb9@byu.net>
54625
54626         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
54627
54628 2006-03-22  Karl Berry  <karl@gnu.org>
54629
54630         * config/srclist.txt (*setenv.[ch]): get from coreutils.
54631         * config/srclistvars.sh (COREUTILS): new var.
54632
54633 2006-03-17  Jim Meyering  <jim@meyering.net>
54634
54635         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
54636         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
54637
54638 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
54639
54640         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
54641         no longer needs it.  Instead, check that regoff_t is as least
54642         as wide as ptrdiff_t.
54643
54644         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
54645         so that our regex.h stays compatible with the installed regex.
54646         This is helpful for installers who configure --without-included-regex.
54647         Problem reported by Emanuele Giaquinta.
54648
54649 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
54650
54651         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
54652         Typedef to long int, not to off_, as POSIX will likely change
54653         in that direction.
54654
54655 2006-03-15  Eric Blake  <ebb9@byu.net>
54656
54657         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
54658
54659 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
54660
54661         * lib/argp-help.c (validate_uparams): Fix typo
54662         * lib/argp-parse.c (argp_default_options): Consistently begin help
54663         messages with a lowercase letter.
54664
54665 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
54666
54667         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
54668         overrun buffers and shouldn't be used (much as gets shouldn't be
54669         used).
54670         * lib/time_r.c (asctime_r, ctime_r): Likewise.
54671
54672 2006-03-08  Simon Josefsson  <jas@extundo.com>
54673
54674         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
54675         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54676
54677 2006-03-08  Simon Josefsson  <jas@extundo.com>
54678
54679         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
54680         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54681
54682 2006-03-08  Simon Josefsson  <jas@extundo.com>
54683
54684         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
54685         signal that configure disabled the device.
54686
54687 2006-03-08  Simon Josefsson  <jas@extundo.com>
54688
54689         * build-aux/maint.mk: Fix refresh-po, to handle no translated
54690         languages.
54691
54692 2006-03-07  Simon Josefsson  <jas@extundo.com>
54693
54694         * modules/getopt (Depends-on): Add unistd.
54695
54696         * modules/unistd: New file.
54697
54698 2006-03-07  Simon Josefsson  <jas@extundo.com>
54699
54700         * modules/gc-random: New file.
54701
54702 2006-03-07  Simon Josefsson  <jas@extundo.com>
54703
54704         * m4/unistd_h.m4: New file.
54705
54706 2006-03-07  Simon Josefsson  <jas@extundo.com>
54707
54708         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
54709         test to be side-effect free by storing the result in the cache
54710         variable gl_cv_lib_readline, and moving the assignment of
54711         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
54712         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54713
54714 2006-03-07  Simon Josefsson  <jas@extundo.com>
54715
54716         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
54717         error on missing devices (the functions will return an error).
54718
54719         * m4/gc.m4: Move random stuff to gc-random.m4
54720
54721 2006-03-07  Simon Josefsson  <jas@extundo.com>
54722
54723         * lib/unistd_.h: New file.
54724
54725 2006-03-07  Simon Josefsson  <jas@extundo.com>
54726
54727         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
54728
54729 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
54730
54731         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
54732         Problem reported by Juan Manuel Guerrero.
54733
54734 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
54735
54736         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
54737         the unistd module.
54738         * lib/getlogin_r.c: Likewise.
54739         * lib/getlogin_r.h: Likewise.
54740         * lib/glob.c: Likewise.
54741         * lib/pagealign_alloc.c: Likewise.
54742         * lib/unistd_.h: Remove; no longer needed.
54743
54744 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
54745
54746         * MODULES.html.sh (Support for systems lacking POSIX:2001):
54747         Add unistd.
54748         * modules/c-stack (Depends-on): Add unistd.
54749         * modules/getlogin_r: Likewise.
54750         * modules/glob: Likewise.
54751         * modules/pagealign_alloc: Likewise.
54752         * modules/unistd (Files): Remove lib/unistd_.h.
54753         (EXTRA_DIST): Remove.
54754         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
54755         need unistd_.h.
54756         (MOSTLYCLEANFILES): Remove unistd.h-t.
54757
54758 2006-03-03  Simon Josefsson  <jas@extundo.com>
54759
54760         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
54761
54762 2006-03-03  Simon Josefsson  <jas@extundo.com>
54763
54764         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
54765         libidn and bison.
54766
54767 2006-03-03  Simon Josefsson  <jas@extundo.com>
54768
54769         * build-aux/maint.mk: Add indent target.
54770
54771 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
54772
54773         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
54774         our replacement poll.h in any case, to avoid a differing
54775         declaration from a system header.  Seen on AIX.
54776
54777 2006-03-01  Simon Josefsson  <jas@extundo.com>
54778
54779         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
54780         <kasal@ucw.cz>.
54781
54782 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
54783
54784         * modules/gettime (Depends-on): Add extensions module.
54785         * modules/nanosleep (Depends-on): Likewise.
54786         * modules/settime (Depends-on): Likewise.
54787
54788 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
54789
54790         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
54791         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
54792         pedantically.
54793         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
54794         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
54795
54796         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
54797         not "==".  Reported by Ralf Wildenhues.
54798
54799 2006-03-01  Karl Berry  <karl@gnu.org>
54800
54801         * doc/Copyright/request-*: new files, synced from gnuorg.
54802
54803 2006-03-01  Karl Berry  <karl@gnu.org>
54804
54805         * config/srclist.txt (Copyright/*): new entries.
54806
54807 2006-02-28  Simon Josefsson  <jas@extundo.com>
54808
54809         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
54810
54811 2006-02-27  Simon Josefsson  <jas@extundo.com>
54812
54813         * lib/base64.h: Indent #define's.  From Jim Meyering
54814         <jim@meyering.net>.
54815
54816 2006-02-27  Jim Meyering  <jim@meyering.net>
54817
54818         Revert the change of 2006-02-24, so these files can continue
54819         to be sync'd from gettext.
54820         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
54821         of `config.h'.
54822
54823 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
54824
54825         * modules/intprops: New file.
54826         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
54827         Add intprops.
54828         * modules/getloadavg (Files): Remove lib/intprops.h.
54829         (Depends-on): Add intprops.
54830         * modules/human: Likewise.
54831         * modules/inttostr: Likewise.
54832         * modules/openat: Likewise.
54833         * modules/sig2str: Likewise.
54834         * modules/userspec: Likewise.
54835         * modules/utimecmp: Likewise.
54836         * modules/xnanosleep: Likewise.
54837         * modules/xstrtol: Likewise.
54838
54839 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
54840
54841         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
54842         * modules/lock-tests (TESTS): Use $(EXEEXT).
54843         * modules/tls-tests: Likewise.
54844         * modules/argp-tests: Likewise.
54845         (check_PROGRAMS): New var, replacing...
54846         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
54847
54848 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54849
54850         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
54851         `config.h'.
54852
54853 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
54854
54855         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
54856
54857 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54858
54859         Sync from coreutils.
54860         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
54861         gl_CHDIR_SAFER.
54862
54863 2006-02-22  Jim Meyering  <jim@meyering.net>
54864
54865         Sync from coreutils.
54866         * m4/chdir-safer.m4: New file.
54867
54868 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
54869
54870         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
54871         AT_FDCWD exceeds INT_MAX.
54872         * lib/openat.h (AT_FDCWD): Likewise.
54873
54874 2006-02-17  Eric Blake  <address@hidden>
54875
54876         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
54877
54878 2006-02-16  Simon Josefsson  <jas@extundo.com>
54879
54880         * modules/getaddrinfo (Depends-on): Add sys_socket.
54881
54882 2006-02-15  Simon Josefsson  <jas@extundo.com>
54883
54884         * build-aux/maint.mk: Add dsyntax-check rule.
54885
54886 2006-02-15  Eric Blake  <ebb9@byu.net>
54887
54888         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
54889         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
54890         'present but cannot compile' warnings on cygwin.
54891         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
54892         use ws2tcpip.h if sys/socket.h works.
54893         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
54894         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
54895
54896 2006-02-14  Simon Josefsson  <jas@extundo.com>
54897
54898         * modules/maintainer-makefile (Files): Rename.
54899
54900         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
54901         and (the local) Makefile.cfg to maint-cfg.mk.
54902
54903         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
54904         to the latter.
54905
54906         * modules/maintainer-makefile: New module.
54907
54908         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
54909         severaly stripped to make it possible to build it up from scratch
54910         with reliable tests.
54911
54912         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
54913         fixes to permit overriding the default actions when configure and
54914         makefile are not available.
54915
54916 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
54917
54918         Sync from coreutils.
54919         * modules/lstat (Depends-on): Don't depend on xalloc.
54920         (License): Change from GPL to LGPL, since this is now simply a
54921         replacement for a libc function.
54922
54923 2006-02-14  Jim Meyering  <jim@meyering.net>
54924
54925         Sync from coreutils.
54926
54927         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
54928         failure on deficient systems, and simplify gnulib lgpl dependencies.
54929         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
54930         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
54931
54932         * lib/xalloc-die.c: Remove unused definition of N_.
54933
54934 2006-02-14  Jim Meyering  <jim@meyering.net>
54935
54936         Sync from coreutils.
54937         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
54938         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
54939         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
54940         double-quote uses of that variable, to accommodate the rare case in
54941         which getmntent is available in none of the libraries checked.  This
54942         happens at least on FreeBSD 5.0.
54943
54944 2006-02-13  Simon Josefsson  <jas@extundo.com>
54945
54946         * gnulib-tool (Usage): Fix --import, from
54947         karl@freefriends.org (Karl Berry).
54948
54949 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
54950
54951         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
54952
54953 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
54954
54955         * lib/argp-namefrob.h: Restore changes accidentally lost during the
54956         "autoupdate" on 2005-12-12.
54957
54958 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
54959
54960         * modules/closeout (Depends-on): Remove atexit.
54961
54962 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
54963
54964         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
54965         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
54966
54967 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
54968
54969         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
54970         __EXTENSIONS__ if this causes compilation to fail.  Problem
54971         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
54972         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
54973
54974 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
54975
54976         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
54977         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
54978         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
54979         All uses changed.
54980
54981 2006-01-26  Simon Josefsson  <jas@extundo.com>
54982
54983         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
54984         prototype is visible on mingw32.
54985
54986         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
54987         for mingw32.
54988
54989         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
54990         mingw32).
54991
54992 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
54993
54994         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
54995         attempt to open for write; this always fails, at least on POSIX
54996         hosts.  This reinstates the 2006-01-09 change, which was
54997         inadvertently removed.
54998
54999 2006-01-26  Bruno Haible  <bruno@clisp.org>
55000
55001         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
55002         Reported by Paul Eggert.
55003
55004 2006-01-26  Bruno Haible  <bruno@clisp.org>
55005             Paul Eggert  <eggert@cs.ucla.edu>
55006
55007         * lib/stdbool_.h (_Bool)
55008         [(! (defined __cplusplus || defined __BEOS__)
55009           && !defined __GNUC__
55010           && !(defined __HP_cc || defined __xlc__
55011                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
55012                || defined __sgi))]:
55013         #define to signed char in these cases too; this simplifies
55014         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
55015         etc., separately) and makes it more conservative.
55016
55017 2006-01-25  Simon Josefsson  <jas@extundo.com>
55018
55019         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
55020         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
55021         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
55022
55023 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
55024
55025         * lib/argp-namefrob.h: Bugfix. Remove stray #
55026
55027 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
55028
55029         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
55030         so that we test the test.
55031         Check for yet another HP-UX cc bug involving *bool |= bool.
55032
55033 2006-01-25  Karl Berry  <karl@gnu.org>
55034
55035         * config/srclist.txt (vasnprintf.c): sync lost.
55036
55037 2006-01-25  Jim Meyering  <jim@meyering.net>
55038
55039         Sync from the stable (b5) branch of coreutils:
55040
55041         * lib/fts.c (fts_children): Don't let close() clobber errno from
55042         failed fchdir().
55043
55044         * lib/fts.c (fts_stat): When following a symlink-to-directory,
55045         don't necessarily interpret stat-fails+lstat-succeeds as indicating
55046         a dangling symlink.  That can also happen at least for ELOOP.
55047         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
55048         FYI, this bug predates the inclusion of fts.c in coreutils.
55049
55050         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
55051         in their own block, so pre-c99 compilers don't object.
55052
55053         Avoid the double-free (first in fts_read, second in fts_close) that
55054         would occur when an `active' directory is made inaccessible (e.g.,
55055         via chmod a-x) during a traversal.
55056         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
55057         before returning.  Reproduce this failure by
55058         mkdir -p a/b; cd a; chmod a-x . b
55059         Reported by Stavros Passas.
55060
55061 2006-01-25  Jim Meyering  <jim@meyering.net>
55062
55063         * lib/fileblocks.c: Remove more useless parentheses.
55064         * lib/readutmp.h: Likewise.
55065
55066 2006-01-25  Bruno Haible  <bruno@clisp.org>
55067
55068         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
55069         warnings.
55070         Reported by Paul Eggert.
55071
55072 2006-01-25  Bruno Haible  <bruno@clisp.org>
55073
55074         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
55075         rid of a trap command. For Solaris sh.
55076         Reported by Mark D. Baushke <mdb@gnu.org>.
55077
55078 2006-01-24  Simon Josefsson  <jas@extundo.com>
55079
55080         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
55081         Bruno.
55082
55083 2006-01-24  Karl Berry  <karl@gnu.org>
55084
55085         * config/srclist.txt (argp-namefrob.h): sync lost.
55086
55087 2006-01-24  Jim Meyering  <jim@meyering.net>
55088
55089         * modules/openat (Files): Add lib/intprops.h.
55090         From Mark D. Baushke.
55091
55092 2006-01-24  Jim Meyering  <jim@meyering.net>
55093
55094         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
55095         Reported by Mark D. Baushke.
55096
55097 2006-01-24  Jim Meyering  <jim@meyering.net>
55098
55099         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
55100
55101 2006-01-24  Bruno Haible  <bruno@clisp.org>
55102
55103         * modules/strnlen (Maintainer): Change from glibc to all.
55104
55105 2006-01-24  Bruno Haible  <bruno@clisp.org>
55106
55107         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
55108         Patch by Paul Eggert.
55109
55110 2006-01-24  Bruno Haible  <bruno@clisp.org>
55111
55112         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
55113         already has it.
55114         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
55115         2005-11-26.
55116
55117         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
55118         'signed char' to avoid problems with the built-in _Bool type.
55119         Reported by Paul Eggert on 2005-11-26.
55120
55121 2006-01-24  Bruno Haible  <bruno@clisp.org>
55122
55123         * gnulib-tool (func_import): Avoid constructing complicated sed
55124         expressions inside backquote.
55125         Report and solution by Mark D. Baushke <mdb@gnu.org>.
55126
55127 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
55128
55129         These changes imported from libc.
55130         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
55131         test and two separate function calls.
55132         * lib/strndup.c (__strndup): Add libc_hidden_def.
55133
55134 2006-01-23  Simon Josefsson  <jas@extundo.com>
55135
55136         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
55137         Remove the test_*_SOURCES variable: automake infers it by default.
55138         * modules/tls-tests: Likewise.
55139
55140 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
55141
55142         Work around porting bugs reported by Dieter in
55143         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
55144         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
55145         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
55146         Include "getopt.h" first, to check interface.
55147         (getenv): Declare only if defined HAVE_DECL_GETENV &&
55148         !HAVE_DECL_GETENV.
55149         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
55150         (__strndup): Revert to K&R-style function dfns, the glibc style.
55151         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
55152         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
55153         Include strnlen.h first, to get prototype properly.
55154         (strnlen): Renamed from __strnlen.
55155         Remove weak alias.
55156
55157 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
55158
55159         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
55160
55161 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
55162
55163         * config/srclist.txt: Adjust to reflect glibc reorganization.
55164         This affects only comments.
55165
55166 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
55167
55168          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
55169          Reported by Bruce Korb <bkorb@gnu.org>.
55170
55171 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
55172
55173         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
55174         to pacify gcc -Wswitch-default.
55175
55176 2006-01-22  Bruno Haible  <bruno@clisp.org>
55177
55178         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
55179         temporary buffer for sprintf, take into account the precision also
55180         for 'd', 'i', 'u', 'o', 'x', 'X'.
55181
55182 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
55183
55184         * modules/argp-tests: New module
55185         * tests/test-argp.c: New file
55186         * tests/test-argp-2.sh: New file
55187
55188 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
55189
55190         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
55191         (__argp_base_name): Removed
55192         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
55193         typo.
55194         (__argp_base_name): Provide macro definition or extern declaration
55195         depending on the configuration
55196
55197 2006-01-20  Simon Josefsson  <jas@extundo.com>
55198
55199         * modules/inet_ntop (Depends-on): Depend on sys_socket.
55200
55201 2006-01-20  Simon Josefsson  <jas@extundo.com>
55202
55203         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
55204
55205 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
55206
55207         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
55208         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
55209         Suggested by Bruno Haible.
55210
55211 2006-01-20  Karl Berry  <karl@gnu.org>
55212
55213         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
55214         until changes propagate, I guess.
55215
55216 2006-01-19  Simon Josefsson  <jas@extundo.com>
55217
55218         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
55219
55220 2006-01-19  Simon Josefsson  <jas@extundo.com>
55221
55222         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
55223
55224 2006-01-19  Simon Josefsson  <jas@extundo.com>
55225
55226         * gnulib-tool: Set check_PROGRAMS.
55227
55228         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
55229         modules/des-tests, modules/gc-arcfour-tests,
55230         modules/gc-arctwo-tests, modules/gc-des-tests,
55231         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
55232         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
55233         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
55234         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
55235         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
55236         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
55237         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
55238         test_*_SOURCES.
55239
55240 2006-01-18  Simon Josefsson  <jas@extundo.com>
55241
55242         * modules/socklen (Depends-on): Depend on sys_socket.
55243
55244 2006-01-18  Simon Josefsson  <jas@extundo.com>
55245
55246         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
55247         modules/des-tests, modules/gc-arcfour-tests,
55248         modules/gc-arctwo-tests, modules/gc-des-tests,
55249         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
55250         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
55251         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
55252         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
55253         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
55254         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
55255         $(EXEEXT) to automake TESTS variable, for mingw32.
55256
55257 2006-01-17  Simon Josefsson  <jas@extundo.com>
55258
55259         * modules/socklen (Include): Need sys/socket.h.
55260
55261 2006-01-17  Bruno Haible  <bruno@clisp.org>
55262
55263         * modules/ssize_t (Include): Add <sys/types.h>.
55264
55265 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
55266
55267         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
55268         it's not portable and it doesn't work with cross-compiles.
55269         Problem reported by Bruno Haible.  Fix missing-$ typo in
55270         'test "gl_cv_ignore_unused_libraries" ...' that prevented
55271         -zignore from being used with Sun's C compiler.
55272
55273 2006-01-12  Simon Josefsson  <jas@extundo.com>
55274
55275         * lib/base64.c: Fix warning, reported by Bruno Haible
55276         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
55277
55278 2006-01-12  Bruno Haible  <bruno@clisp.org>
55279
55280         * modules/ldd: New file.
55281         * build-aux/ldd.sh.in: New file.
55282         * MODULES.html.sh (Support for building libraries and executables): Add
55283         ldd.
55284
55285 2006-01-12  Bruno Haible  <bruno@clisp.org>
55286
55287         * m4/ldd.m4: New file.
55288
55289 2006-01-12  Bruno Haible  <bruno@clisp.org>
55290
55291         * gnulib-tool (func_import, func_create_testdir): Don't go into an
55292         endless loop while replacing $auxdir with build-aux.
55293
55294 2006-01-11  Simon Josefsson  <jas@extundo.com>
55295
55296         * lib/stdint_.h (SIZE_MAX): Add missing (.
55297
55298 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
55299
55300         Sync from coreutils.
55301         * lib/md5.c: Fix commentary typos.
55302         (alignof, UNALIGNED_P): No need for a GCC-specific version.
55303         * lib/md5.h (__attribute__): Remove; unused.
55304         * lib/sha1.c: Fix commentary to match md5 better.
55305         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
55306         so that we don't need to worry about alignment.  All uses changed.
55307         This merges the 2005-10-28 md5 change into sha1.
55308
55309 2006-01-11  Jim Meyering  <jim@meyering.net>
55310
55311         Sync from coreutils.
55312         * lib/md5.c (OP): Fix spacing.
55313
55314 2006-01-11  Bruno Haible  <bruno@clisp.org>
55315
55316         Ensure automatic ordering between gl_LOCK and gl_ARGP.
55317         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
55318         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
55319
55320 2006-01-11  Bruno Haible  <bruno@clisp.org>
55321
55322         Ensure automatic ordering between gl_LOCK and gl_ARGP.
55323         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
55324         the "early" section as well.
55325
55326 2006-01-11  Bruno Haible  <bruno@clisp.org>
55327
55328         Avoid "ar: no archive members specified" error on MacOS X.
55329         * gnulib-tool (func_modules_add_dummy): New function.
55330         (func_import, func_create_testdir): Invoke it.
55331
55332 2006-01-11  Bruno Haible  <bruno@clisp.org>
55333
55334         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
55335         with $auxdir in AC_CONFIG_FILES statements.
55336
55337 2006-01-11  Bruno Haible  <bruno@clisp.org>
55338
55339         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
55340         Initialize also noinst_HEADERS to empty.
55341
55342 2006-01-11  Bruno Haible  <bruno@clisp.org>
55343
55344         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
55345         variables.
55346         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
55347         autoreconf.
55348
55349 2006-01-11  Bruno Haible  <bruno@clisp.org>
55350
55351         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
55352         overridable by the user.
55353         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55354
55355 2006-01-10  Simon Josefsson  <jas@extundo.com>
55356
55357         * modules/sys_socket: New file.
55358
55359 2006-01-10  Simon Josefsson  <jas@extundo.com>
55360
55361         * m4/sys_socket_h.m4: New file.
55362
55363 2006-01-10  Simon Josefsson  <jas@extundo.com>
55364
55365         * lib/socket_.h: New file.
55366
55367 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
55368
55369         * modules/readutmp (Maintainer): Add myself.
55370
55371 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
55372
55373         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
55374         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
55375         People who are still concerned with buggy memcmp implementations
55376         can invoke gl_FUNC_MEMCMP themselves.
55377
55378 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
55379
55380         * lib/regex_internal.h (BITSET_WORD_BITS):
55381         Work around a bug in 64-bit PGC (before version 6.1-2), where the
55382         preprocessor mishandles large unsigned values as if they were signed.
55383         Problem reported by Claudio Fontana in
55384         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
55385
55386 2006-01-10  Jim Meyering  <jim@meyering.net>
55387
55388         Avoid the double-free (first in fts_read, second in fts_close) that
55389         would occur when an `active' directory is made inaccessible (e.g.,
55390         via chmod a-x) during a traversal.
55391         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
55392         before returning.  Reproduce this failure by
55393         mkdir -p a/b; cd a; chmod a-x . b
55394         Reported by Stavros Passas.
55395
55396         Sync from coreutils.
55397         * lib/sha1.c: Tweak grammar in a comment.
55398
55399 2006-01-10  Jim Meyering  <jim@meyering.net>
55400
55401         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
55402         Patch by Joerg Sonnenberger.
55403
55404 2006-01-10  Bruno Haible  <bruno@clisp.org>
55405
55406         * modules/readutmp: Depend on module free.
55407         * modules/strtok_r: Depend on module restrict.
55408
55409 2006-01-10  Bruno Haible  <bruno@clisp.org>
55410
55411         * modules/gettext (configure.ac): Add an invocation of
55412         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
55413
55414 2006-01-10  Bruno Haible  <bruno@clisp.org>
55415
55416         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
55417         Reported by Werner Lemberg <wl@gnu.org>.
55418
55419 2006-01-10  Bruno Haible  <bruno@clisp.org>
55420
55421         * lib/localcharset.c: Update from GNU gettext.
55422
55423 2006-01-10  Bruno Haible  <bruno@clisp.org>
55424
55425         * lib/argp.h (__const): Remove macro. Use const instead.
55426         * lib/argp-fmtstream.h (__const): Likewise.
55427         * lib/glob_.h (__const): Remove macro.
55428         * lib/glob-libc.h: Use const instead of __const.
55429
55430 2006-01-10  Bruno Haible  <bruno@clisp.org>
55431
55432         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
55433         variable.
55434         Needed to avoid an automake error regarding the 'gettext' module.
55435
55436 2006-01-09  Simon Josefsson  <jas@extundo.com>
55437
55438         * modules/inet_ntop (Depends-on): Add restrict.
55439
55440 2006-01-09  Simon Josefsson  <jas@extundo.com>
55441
55442         * modules/gc-rijndael-tests (License): Put under LGPL.
55443
55444         * modules/gc-des-tests (License): Likewise.
55445
55446         * modules/gc-arcfour-tests (License): Likewise.
55447
55448         * modules/gc-arctwo-tests (License): Likewise.
55449
55450         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
55451
55452         * modules/gc-hmac-sha1-tests (Files): Likewise.
55453
55454         * modules/gc-hmac-md5-tests (License): Likewise.
55455
55456         * modules/gc-sha1-tests (License): Likewise.
55457
55458         * modules/gc-md5-tests (License): Likewise.
55459
55460         * modules/gc-md4-tests (License): Likewise.
55461
55462         * modules/gc-md2-tests (License): Likewise.
55463
55464         * modules/gc-tests (License): Likewise.
55465
55466         * modules/des-tests (License): Likewise.
55467
55468         * modules/md4-tests (License): Likewise.
55469
55470         * modules/md2-tests (License): Likewise.
55471
55472 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
55473
55474         Sync from coreutils:
55475
55476         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
55477         * modules/lib-ignore: New file.
55478         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
55479         chdir-safer.m4, lchmod.m4.
55480         * modules/openat: Add mkdirat.c, openat-priv.h.
55481
55482 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
55483
55484         Sync from coreutils.
55485         * m4/lib-ignore.m4: New file.
55486         * m4/lchmod.m4: New file.
55487
55488 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
55489
55490         Sync from coreutils.
55491         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
55492         for write access: POSIX says that must fail.
55493         * lib/fts.c (diropen): Likewise.
55494         * lib/save-cwd.c (save_cwd): Likewise.
55495         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
55496         well, for minor improvements on hosts that lack O_DIRECTORY.
55497         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
55498         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
55499         Fall back on chown if open failed with EACCES.
55500
55501         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
55502         Report an error at compile-time if only a 1-second nominal clock
55503         resolution is found.
55504
55505         * lib/lchmod.h: New file.
55506         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
55507         (make_dir_parents): Use lchown rather than chown, and
55508         lchmod rather than chmod.
55509
55510         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
55511         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
55512         "proc" reported by n0dalus.
55513
55514         * lib/mountlist.c: Include <limits.h>.
55515         (dev_from_mount_options)
55516         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
55517         New function.  It no longer assumes "dev=" has the System V meaning
55518         on Linux (since it doesn't).  It also parses "dev=" more carefully.
55519         (read_file_system_list)
55520         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
55521         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
55522         dev= in that case.
55523
55524         * lib/posixtm.h (PDS_PRE_2000): New macro.
55525         * lib/posixtm.c (year): Arg is now syntax_bits rather than
55526         allow_century.  All usages changed.  Reject dates outside the range
55527         1969-1999 if PDS_PRE_2000 is used.
55528
55529 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
55530
55531         Sync from coreutils.
55532         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
55533         (Time of day items): Mention the possibility of leap seconds.
55534         Problem reported by Dr. David Alan Gilbert.
55535
55536 2006-01-09  Jim Meyering  <jim@meyering.net>
55537
55538         Sync from coreutils.
55539
55540         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
55541
55542         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
55543
55544         * lib/modechange.c (mode_compile): Reject an invalid mode string
55545         that starts with an octal digit.  From Andreas Gruenbacher.
55546
55547         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
55548         and dup to open_safer and dup_safer, respectively.
55549         (openat_permissive): Fix typo in comment.
55550
55551         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
55552         "gettext.h"; either no longer needed or are guaranteed by openat.h.
55553         (_): Remove; no longer needed.
55554         (openat): Renamed from rpl_openat; no need for rpl_openat
55555         since openat.h renames openat for us.
55556         Replace most of the body with a call to openat_permissive,
55557         to avoid duplicate code.
55558         Port to (probably hypothetical) environments were mode_t is
55559         wider than int.
55560         (openat_permissive): Require mode arg, so that we can check
55561         types better.  Put it just after flags.  Change cwd failure
55562         indicator from pointer-to-bool to pointer-to-errno-value.
55563         All callers changed.
55564         Invoke openat_save_fail and/or openat_restore_fail if
55565         cwd_errno is null, so that openat can call us.
55566         (openat_permissive, fdopendir, fstatat, unlinkat):
55567         Simplify errno handling to avoid some duplicate code,
55568         as it's OK to set errno on success.
55569         * lib/openat.h: Revamp code so that function macros depend on
55570         __OPENAT_PREFIX only, not also on AT_FDCWD.
55571         (openat_ro): Remove.  Caller changed to use openat_permissive.
55572         (openat_permissive): Now a macro, if not a function.
55573         (openat_restore_fail, openat_save_fail): Now always functions,
55574         since mkdirat needs them even if __OPENAT_PREFIX is defined.
55575
55576         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
55577         and openat.c.
55578         * lib/mkdirat.c: Include openat-priv.h.
55579         Remove definitions of macros defined therein.
55580         * lib/openat.c: Likewise.
55581
55582         * lib/mkdirat.c (mkdirat): New file and function.
55583         * lib/openat.h (mkdirat): Declare.
55584
55585         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
55586
55587         * lib/openat.h (openat_permissive): Declare.
55588         (openat_ro): Define.
55589
55590         * lib/openat.c (EXPECTED_ERRNO): New macro.
55591         (openat_permissive): New function -- used in remove.c rewrite.
55592         (all functions): Set errno just before returning, only if there
55593         was an actual failure.
55594         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
55595
55596         Emulate openat-family functions using Linux's procfs, if possible.
55597         Idea and some code based on Ulrich Drepper's glibc changes.
55598
55599         * lib/openat.c: (BUILD_PROC_NAME): New macro.
55600         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
55601         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
55602         before falling back on save_cwd and restore_cwd.
55603         (fdopendir, fstatat, unlinkat): Likewise.
55604
55605         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
55606         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
55607
55608         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
55609         as second argument to va_arg.  Otherwise, some versions of gcc
55610         warn that `if this code is reached, the program will abort'.
55611
55612 2006-01-09  Jim Meyering  <jim@meyering.net>
55613
55614         Sync from coreutils.
55615         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
55616         Require openat-priv.h.
55617
55618 2006-01-09  Bruno Haible  <bruno@clisp.org>
55619
55620         * modules/strnlen (Include): Use strnlen.h.
55621
55622 2006-01-09  Bruno Haible  <bruno@clisp.org>
55623
55624         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
55625
55626 2006-01-09  Bruno Haible  <bruno@clisp.org>
55627
55628         * lib/sysexit_.h (EX_OK): New macro.
55629         Suggested by Martin Lambers <marlam@marlam.de>.
55630
55631 2006-01-09  Bruno Haible  <bruno@clisp.org>
55632
55633         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
55634         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
55635
55636 2006-01-09  Bruno Haible  <bruno@clisp.org>
55637
55638         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
55639         numbers.
55640
55641 2006-01-09  Bruno Haible  <bruno@clisp.org>
55642
55643         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
55644         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
55645         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
55646         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
55647
55648 2006-01-09  Bruno Haible  <bruno@clisp.org>
55649
55650         * build-aux/javacomp.sh.in: New file, moved from lib/.
55651         * modules/javacomp-script (Files): Update.
55652         (configure.ac): Add AC_CONFIG_FILES invocation.
55653         (EXTRA_DIST): Remove variable.
55654
55655         * build-aux/javaexec.sh.in: New file, moved from lib/.
55656         * modules/javaexec (Files): Update.
55657         (configure.ac): Add AC_CONFIG_FILES invocation.
55658         (EXTRA_DIST): Remove javaexec.sh.in.
55659
55660         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
55661         * modules/csharpcomp-script (Files): Update.
55662         (configure.ac): Add AC_CONFIG_FILES invocation.
55663         (EXTRA_DIST): Remove variable.
55664
55665         * build-aux/csharpexec.sh.in: New file, moved from lib/.
55666         * modules/csharpexec (Files): Update.
55667         (configure.ac): Add AC_CONFIG_FILES invocation.
55668         (EXTRA_DIST): Remove csharpexec.sh.in.
55669
55670 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
55671
55672         Sync from coreutils.
55673
55674         Add POSIX ACL support
55675         * lib/acl.h (copy_acl, set_acl): Add declarations.
55676         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
55677         systems other than Linux.
55678         (chmod_or_fchmod): New function: use fchmod when possible,
55679         and chmod otherwise.
55680         (file_has_acl): Add a POSIX ACL implementation, with a
55681         Linux-specific subcase.
55682         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
55683         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
55684         acls are unsupported.
55685         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
55686         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
55687         are unsupported.
55688
55689 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
55690
55691         Sync from coreutils.
55692         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
55693
55694 2006-01-07  Bruno Haible  <bruno@clisp.org>
55695
55696         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
55697         gl_EARLY.
55698
55699 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
55700
55701         * lib/strftime.c (tzname): Don't declare if it is already #defined.
55702         Problem reported for Mingw by Mark Junker.
55703
55704 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
55705
55706         * README: Gnulib normally doesn't generate a tarball.
55707
55708 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
55709
55710         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
55711         long int, not int, for nanosecond counts, so that people who are
55712         used to POSIX struct timespec won't be surprised.  Reported by Jim
55713         Meyering.
55714
55715 2005-12-28  Bruno Haible  <bruno@clisp.org>
55716
55717         * build-aux/config.rpath: Update from GNU gettext.
55718
55719 2005-12-16  Jim Meyering  <jim@meyering.net>
55720
55721         * modules/fprintftime: New module.
55722         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
55723
55724 2005-12-16  Jim Meyering  <jim@meyering.net>
55725
55726         * m4/fprintftime.m4: New file.
55727
55728 2005-12-16  Jim Meyering  <jim@meyering.net>
55729
55730         * lib/fprintftime.c, lib/fprintftime.h: New files.
55731
55732 2005-12-15  Simon Josefsson  <jas@extundo.com>
55733
55734         * modules/socklen (configure.ac): Fix M4 macro name, to align with
55735         new m4/socklen.m4.
55736
55737 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
55738
55739         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
55740         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
55741
55742 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
55743
55744         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
55745         * lib/argp-help.c (fill_in_uparams): Check if the constructed
55746         struct uparams is valid. Fall back to the default values if it is
55747         not.
55748
55749 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
55750
55751         * modules/argp (Files): Add argp-pin.c
55752         (Depends-on): dirname
55753         (lib_SOURCES): Add argp-pin.c
55754
55755 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
55756
55757         * m4/argp.m4:  Check if program_invocation_name and
55758         program_invocation_short_name are declared and define appropriate
55759         macros if they are not.
55760
55761 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
55762
55763         * lib/argp-help.c (__argp_base_name): New function
55764         (__argp_short_program_name): Rewrite using __argp_base_name
55765         * lib/argp-namefrob.h: Define program_invocation_name and
55766         program_invocation_short_name if requested
55767         (__argp_base_name): Add prototype
55768         * lib/argp-parse.c (argp_def): Use gettext wrappers
55769         (argp_default_parser): Use __argp_base_name
55770         * lib/argp-pin.c: New file. Defines program_invocation_name and
55771         program_invocation_short_name on systems that lack them.
55772
55773 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
55774
55775         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
55776         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
55777         porting problem reported by Georg Schwarz in
55778         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
55779
55780 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
55781
55782         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
55783         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
55784         porting problem reported by Georg Schwarz in
55785         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
55786
55787 2005-12-05  Bruno Haible  <bruno@clisp.org>
55788
55789         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
55790         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
55791         Reported by Mark Junker <mjscod@gmx.de>.
55792
55793 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
55794
55795         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
55796         Use implementation from Albert Chin, with some
55797         comments/corrections by Stepan Kasal and myself.
55798
55799 2005-12-02  Bruno Haible  <bruno@clisp.org>
55800
55801         * gnulib-tool (func_import): Accept GPLed build tool modules when
55802         --lgpl is given.
55803         * modules/csharpcomp-script: New file.
55804         * modules/csharpcomp: Depend on it.
55805         * modules/javacomp-script: New file.
55806         * modules/javacomp: Depend on it.
55807         Suggested by Simon Josefsson.
55808
55809 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
55810
55811         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
55812         statement, to work around an HP-UX 10.20 compiler bug reported by
55813         Peter O'Gorman.
55814
55815 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
55816
55817         * modules/savedir (Depends-on): Add openat.
55818
55819 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
55820
55821         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
55822         (uintmax_t) [defined uintmax_t]: Do not declare.
55823         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
55824         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
55825         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
55826         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
55827         sake of portability to weird hosts that C allows (though we don't
55828         know of any practical examples).
55829
55830         * lib/savedir.h (fdsavedir): New decl.
55831         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
55832         contains most of the former guts of savedir.
55833         (savedir): Use savedirstream.
55834         Include "openat.h".
55835
55836 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
55837
55838         * modules/obstack (Files): Add m4/ulonglong.m4.
55839         Problem reported by Davide Angelocola.
55840
55841 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
55842
55843         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
55844         coreutils no longer futzes with rounding modes.
55845
55846 2005-11-14  Jim Meyering  <jim@meyering.net>
55847
55848         * lib/mkstemp-safer.c: Include <config.h>, required for possible
55849         replacement of mkstemp.
55850
55851 2005-11-10  Simon Josefsson  <jas@extundo.com>
55852
55853         * lib/readline.c: Remove EOL.
55854
55855 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
55856
55857         * modules/gethrxtime (Depends-on): Add gettime.
55858
55859 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
55860
55861         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
55862         or gettimeofday; no longer needed.
55863
55864 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
55865
55866         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
55867         time business.
55868         (gethrxtime) [! (HAVE_NANOUPTIME
55869         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
55870         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
55871         our own approximation.
55872
55873 2005-11-08  Eric Blake  <ebb9@byu.net>
55874
55875         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
55876
55877 2005-11-08  Eric Blake  <ebb9@byu.net>
55878
55879         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
55880
55881 2005-11-04  Bruno Haible  <bruno@clisp.org>
55882
55883         * gnulib-tool: Implement --update mode.
55884
55885 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
55886
55887         Fix porting problem reported by Theodoros V. Kalamatianos.
55888         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
55889         Don't assume that futimes failing means we must fail.
55890
55891 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
55892
55893         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
55894         variables to suggest the intended function of the PATH_MAX check.
55895
55896 2005-10-30  Kean Johnston  <jkj@sco.com>
55897
55898         Trivial changes to support SCO systems.
55899         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
55900         as PATH_MAX.
55901         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
55902         where __ptr is null when no I/O is pending.
55903
55904 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
55905
55906         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
55907         leave errno alone.  Problem reported by Dmitry V. Levin.
55908
55909 2005-10-28  Simon Josefsson  <jas@extundo.com>
55910
55911         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
55912         Test more.
55913
55914         * tests/test-gc-md2.c, tests/test-md2.c: New files.
55915
55916         * modules/md2, modules/md2-tests: New files.
55917
55918 2005-10-28  Simon Josefsson  <jas@extundo.com>
55919
55920         * m4/inet_ntop.m4: More tests.
55921
55922         * m4/gc-md2.m4, md2.m4: New file.
55923
55924 2005-10-28  Simon Josefsson  <jas@extundo.com>
55925
55926         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
55927         "restrict" keywords, as per POSIX.  Protect the function
55928         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
55929         Don't use K&R prototypes.  Check the sprintf return values.
55930         Re-define EAFNOSUPPORT if not present.  Indent.
55931
55932         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
55933         suggested by Bruno Haible <bruno@clisp.org>.
55934
55935         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
55936
55937         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
55938
55939         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
55940         libgcrypt).
55941
55942         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
55943
55944         * lib/md2.h, lib/md2.c: New files.
55945
55946 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
55947
55948         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
55949         errno alone.  Problem reported by Frederic Jolliton.
55950
55951 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
55952
55953         * modules/verify (License): Change from GPL to LGPL.  This is a
55954         tiny module and there are apparently near-equivalents that are
55955         under the BSD license.
55956
55957 2005-10-24  Simon Josefsson  <jas@extundo.com>
55958
55959         * modules/sha1: Relicense to LGPL.
55960
55961 2005-10-24  Simon Josefsson  <jas@extundo.com>
55962
55963         * lib/md4.h: Shrink buffer size, now that we changed the type.
55964
55965 2005-10-23  Simon Josefsson  <jas@extundo.com>
55966
55967         * gnulib-tool (func_import): Fix --tests-base.
55968
55969 2005-10-22  Simon Josefsson  <jas@extundo.com>
55970
55971         * modules/arcfour (Depends-on): Need stdint.
55972
55973 2005-10-22  Simon Josefsson  <jas@extundo.com>
55974
55975         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
55976         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
55977
55978 2005-10-22  Simon Josefsson  <jas@extundo.com>
55979
55980         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
55981         suggested by Bruno Haible <bruno@clisp.org>.
55982
55983 2005-10-22  Simon Josefsson  <jas@extundo.com>
55984
55985         * lib/crc.h: Include stddef.h, for size_t.
55986
55987 2005-10-22  Simon Josefsson  <jas@extundo.com>
55988
55989         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
55990         arcfour_context struct (simplify test vector testing in GNU
55991         Shishi).
55992
55993 2005-10-21  Simon Josefsson  <jas@extundo.com>
55994
55995         * modules/des, modules/des-tests: New files.
55996
55997         * modules/gc-des, modules/gc-des-tests: New files.
55998
55999         * tests/test-des.c, tests/test-gc-des.c: New file.
56000
56001 2005-10-21  Simon Josefsson  <jas@extundo.com>
56002
56003         * modules/arctwo, modules/arctwo-tests: New files.
56004
56005         * tests/test-arctwo.c: New file.
56006
56007         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
56008
56009         * tests/test-gc-arctwo.c: New file.
56010
56011 2005-10-21  Simon Josefsson  <jas@extundo.com>
56012
56013         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
56014         Bruno Haible <bruno@clisp.org>.
56015
56016         * m4/gc-des.m4: New file.
56017
56018 2005-10-21  Simon Josefsson  <jas@extundo.com>
56019
56020         * m4/arctwo.m4: New file.
56021
56022         * m4/gc-arctwo.m4: New file.
56023
56024 2005-10-21  Simon Josefsson  <jas@extundo.com>
56025
56026         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
56027         block.
56028
56029 2005-10-21  Simon Josefsson  <jas@extundo.com>
56030
56031         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
56032         <bruno@clisp.org>.
56033
56034         * lib/hmac-sha1.c (hmac_sha1): Likewise.
56035
56036         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
56037         Bruno Haible <bruno@clisp.org>.
56038
56039         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
56040         <bruno@clisp.org>.
56041
56042 2005-10-21  Simon Josefsson  <jas@extundo.com>
56043
56044         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
56045
56046 2005-10-21  Simon Josefsson  <jas@extundo.com>
56047
56048         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
56049
56050 2005-10-21  Simon Josefsson  <jas@extundo.com>
56051
56052         * lib/des.h, lib/des.c: New files.
56053
56054         * lib/gc-gnulib.c: Support DES.c
56055
56056 2005-10-21  Simon Josefsson  <jas@extundo.com>
56057
56058         * lib/arctwo.h, lib/arctwo.c: New files.
56059
56060         * lib/gc-gnulib.c: Support ARCTWO.
56061
56062 2005-10-21  Simon Josefsson  <jas@extundo.com>
56063
56064         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
56065         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56066
56067 2005-10-21  Simon Josefsson  <jas@extundo.com>
56068
56069         * gnulib-tool (func_import, func_create_testdir): Define automake
56070         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
56071         Makefile.am snippet),
56072         suggested by Bruno Haible <bruno@clisp.org>.
56073
56074         * modules/gc (Makefile.am): Use it.
56075
56076 2005-10-21  Bruno Haible  <bruno@clisp.org>
56077
56078         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
56079         patch.
56080
56081 2005-10-19  Simon Josefsson  <jas@extundo.com>
56082
56083         * tests/test-gc-rijndael.c: New file.
56084
56085         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
56086
56087 2005-10-19  Simon Josefsson  <jas@extundo.com>
56088
56089         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
56090         interface too.
56091
56092 2005-10-19  Simon Josefsson  <jas@extundo.com>
56093
56094         * tests/test-gc-arcfour.c: New file.
56095
56096         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
56097
56098 2005-10-19  Simon Josefsson  <jas@extundo.com>
56099
56100         * modules/gc-md4, modules/gc-md4-tests: New file.
56101
56102         * tests/test-gc-md4.c: New file.
56103
56104 2005-10-19  Simon Josefsson  <jas@extundo.com>
56105
56106         * m4/gc-md4.m4: New file.
56107
56108 2005-10-19  Simon Josefsson  <jas@extundo.com>
56109
56110         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
56111         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
56112         <kasal@ucw.cz>.
56113
56114 2005-10-19  Simon Josefsson  <jas@extundo.com>
56115
56116         * m4/gc-arcfour.m4: New file.
56117
56118         * m4/gc-rijndael.m4: New file.
56119
56120 2005-10-19  Simon Josefsson  <jas@extundo.com>
56121
56122         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
56123
56124 2005-10-19  Simon Josefsson  <jas@extundo.com>
56125
56126         * lib/gc-gnulib.c: Support ARCFOUR.
56127
56128 2005-10-19  Simon Josefsson  <jas@extundo.com>
56129
56130         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
56131         support.
56132
56133         * lib/gc.h: Add ECB enum type.
56134
56135         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
56136
56137 2005-10-18  Simon Josefsson  <jas@extundo.com>
56138
56139         * tests/test-md5.c: New file.
56140
56141         * modules/md5-tests: New file.
56142
56143 2005-10-18  Simon Josefsson  <jas@extundo.com>
56144
56145         * tests/test-md4.c: New file.
56146
56147         * modules/md4, modules/md4-tests: New files.
56148
56149 2005-10-18  Simon Josefsson  <jas@extundo.com>
56150
56151         * m4/md4.m4: New file.
56152
56153 2005-10-18  Simon Josefsson  <jas@extundo.com>
56154
56155         * lib/md4.h, lib/md4.c: New files, based on md5.?.
56156
56157 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
56158
56159         * gnulib-tool (func_create_testdir): Omit the second check whether
56160         BUILT_SOURCES in nonempty.
56161
56162 2005-10-17  Simon Josefsson  <jas@extundo.com>
56163
56164         * tests/test-rijndael.c: New file.
56165
56166 2005-10-17  Simon Josefsson  <jas@extundo.com>
56167
56168         * modules/sha1: Depend on stdint instead of md5.
56169
56170         * modules/md5: Depend on stdint, remove uint32_t.
56171
56172 2005-10-17  Simon Josefsson  <jas@extundo.com>
56173
56174         * modules/gc-sha1-tests: New file.
56175
56176         * tests/test-gc-sha1.c: New file.
56177
56178 2005-10-17  Simon Josefsson  <jas@extundo.com>
56179
56180         * m4/md5.m4: Remove call to uint32_t.m4.
56181
56182 2005-10-17  Simon Josefsson  <jas@extundo.com>
56183
56184         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
56185
56186         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
56187         md5.h.
56188
56189         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
56190
56191         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
56192
56193 2005-10-17  Simon Josefsson  <jas@extundo.com>
56194
56195         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
56196
56197 2005-10-17  Simon Josefsson  <jas@extundo.com>
56198
56199         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
56200
56201 2005-10-17  Simon Josefsson  <jas@extundo.com>
56202
56203         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
56204
56205         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
56206
56207 2005-10-17  Bruno Haible  <bruno@clisp.org>
56208
56209         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
56210         that it can also be used in a test.
56211
56212 2005-10-16  Bruno Haible  <bruno@clisp.org>
56213
56214         * gnulib-tool (func_emit_tests_Makefile_am): Also define
56215         TESTS_ENVIRONMENT, so that individual tests can augment it.
56216
56217         * gnulib-tool (func_create_testdir): Use an intermediate target for
56218         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
56219         macros, like $(ALLOCA_H), which cannot be passed through the command
56220         line.
56221
56222 2005-10-15  Simon Josefsson  <jas@extundo.com>
56223
56224         * modules/rijndael-tests: New file.
56225
56226         * modules/rijndael: New file.
56227
56228 2005-10-15  Simon Josefsson  <jas@extundo.com>
56229
56230         * m4/rijndael.m4: New file.
56231
56232 2005-10-15  Simon Josefsson  <jas@extundo.com>
56233
56234         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
56235
56236         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
56237
56238 2005-10-14  Simon Josefsson  <jas@extundo.com>
56239
56240         * tests/test-arcfour.c: New file.
56241
56242         * modules/arcfour, modules/arcfour-tests: New files.
56243
56244 2005-10-14  Simon Josefsson  <jas@extundo.com>
56245
56246         * m4/arcfour.m4: New file.
56247
56248 2005-10-14  Simon Josefsson  <jas@extundo.com>
56249
56250         * lib/arcfour.h, lib/arcfour.c: New files.
56251
56252 2005-10-14  Roland McGrath  <roland@redhat.com>
56253
56254         Import from libc.  [BZ #1331]
56255         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
56256         macro argument.
56257         Reported by Matej Vela <vela@debian.org>.
56258
56259 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
56260
56261         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
56262         include <wchar.h>; no longer needed.
56263
56264 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
56265
56266         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
56267
56268 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
56269         and  Ulrich Drepper  <drepper@redhat.com>
56270
56271         Import from libc.
56272         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
56273         instead of inline stream orientation test and two separate
56274         function calls.  Pay no attention to USE_IN_LIBIO.
56275
56276 2005-10-13  Simon Josefsson  <jas@extundo.com>
56277
56278         * modules/gc-hmac-md5-tests: New file.
56279
56280         * tests/test-gc-hmac-sha1.c: New file.
56281
56282         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
56283
56284         * modules/gc-hmac-md5-tests: New file.
56285
56286         * tests/test-gc-md5.c: New file.
56287
56288         * modules/gc-md5-tests: New file.
56289
56290 2005-10-13  Simon Josefsson  <jas@extundo.com>
56291
56292         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
56293         Move memory allocation outside of loop.
56294
56295 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
56296
56297         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
56298         intermediate directory is in a read-only file system.  Problem
56299         reported by Eric Blake.
56300
56301 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
56302
56303         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
56304
56305 2005-10-12  Simon Josefsson  <jas@extundo.com>
56306
56307         * tests/test-hmac-sha1.c: New file.
56308
56309         * modules/hmac-sha1-tests: New file.
56310
56311         * modules/hmac-sha1: New file.
56312
56313 2005-10-12  Simon Josefsson  <jas@extundo.com>
56314
56315         * modules/gc-sha1: New file.
56316
56317 2005-10-12  Simon Josefsson  <jas@extundo.com>
56318
56319         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
56320
56321         * tests/test-gc-pbkdf2-sha1.c: New file.
56322
56323 2005-10-12  Simon Josefsson  <jas@extundo.com>
56324
56325         * modules/gc-md5, modules/gc-hmac-md5: New files.
56326
56327         * modules/gc (Files): Remove md5, memxor and hmac files.
56328
56329 2005-10-12  Simon Josefsson  <jas@extundo.com>
56330
56331         * m4/gc-pbkdf2-sha1.m4: New file.
56332
56333         * m4/gc-hmac-sha1.m4: New file.
56334
56335         * m4/gc-sha1: New file.
56336
56337         * m4/hmac-sha1.m4: New file.
56338
56339 2005-10-12  Simon Josefsson  <jas@extundo.com>
56340
56341         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
56342
56343         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
56344
56345 2005-10-12  Simon Josefsson  <jas@extundo.com>
56346
56347         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
56348         suggested by Bruno Haible <bruno@clisp.org>.
56349
56350 2005-10-12  Simon Josefsson  <jas@extundo.com>
56351
56352         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
56353
56354 2005-10-12  Simon Josefsson  <jas@extundo.com>
56355
56356         * lib/gc-pbkdf2-sha1.c: New file.
56357
56358         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
56359
56360 2005-10-12  Simon Josefsson  <jas@extundo.com>
56361
56362         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
56363
56364         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
56365
56366 2005-10-12  Simon Josefsson  <jas@extundo.com>
56367
56368         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
56369         GC_USE_HMAC_MD5, respectively.
56370
56371         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
56372         (gc_md5): Fix typo.
56373
56374         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
56375
56376         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
56377
56378         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
56379
56380 2005-10-12  Bruno Haible  <bruno@clisp.org>
56381
56382         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
56383         Reported by Stepan Kasal <kasal@ucw.cz>.
56384
56385 2005-10-11  Simon Josefsson  <jas@extundo.com>
56386
56387         * tests/test-crc.c: New file.
56388
56389         * modules/crc, modules/crc-tests: New files.
56390
56391 2005-10-11  Simon Josefsson  <jas@extundo.com>
56392
56393         * m4/crc.m4: New file.
56394
56395 2005-10-11  Simon Josefsson  <jas@extundo.com>
56396
56397         * lib/gc.h: Add gc_hash and gc_hash_buffer.
56398
56399         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
56400
56401         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
56402
56403 2005-10-11  Simon Josefsson  <jas@extundo.com>
56404
56405         * lib/crc.h, lib/crc.c: New files.
56406
56407         * lib/gc.h (gc_hash_buffer): Add doc.
56408
56409 2005-10-11  Bruno Haible  <bruno@clisp.org>
56410
56411         * modules/c-strcasestr: New file.
56412         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
56413
56414 2005-10-11  Bruno Haible  <bruno@clisp.org>
56415
56416         * modules/c-strcase: New file.
56417         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
56418
56419 2005-10-11  Bruno Haible  <bruno@clisp.org>
56420
56421         * lib/strcasecmp.c: Include limits.h.
56422         (strcasecmp): Avoid integer overflow on exotic platforms.
56423         * lib/strncasecmp.c: Include limits.h.
56424         (strncasecmp): Avoid integer overflow on exotic platforms.
56425         Reported by Paul Eggert.
56426
56427 2005-10-11  Bruno Haible  <bruno@clisp.org>
56428
56429         * lib/c-strcasestr.h: New file, from GNU gettext.
56430         * lib/c-strcasestr.c: New file, from GNU gettext.
56431
56432 2005-10-11  Bruno Haible  <bruno@clisp.org>
56433
56434         * lib/c-strcase.h: New file, from GNU gettext.
56435         * lib/c-strcasecmp.c: New file, from GNU gettext.
56436         * lib/c-strncasecmp.c: New file, from GNU gettext.
56437
56438 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
56439
56440         * modules/mempcpy (License): GPL -> LGPL.
56441         * modules/strchrnul (License): Likewise.
56442         * modules/sysexits (License): Likewise.
56443
56444 2005-10-08  Simon Josefsson  <jas@extundo.com>
56445
56446         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
56447
56448 2005-10-07  Simon Josefsson  <jas@extundo.com>
56449
56450         * m4/memxor.m4: Remove gl_C_RESTRICT call.
56451
56452 2005-10-06  Simon Josefsson  <jas@extundo.com>
56453
56454         * tests/test-hmac-md5.c: New file.
56455
56456         * modules/hmac-md5-tests: New file.
56457
56458         * modules/hmac-md5: New file.
56459
56460 2005-10-06  Simon Josefsson  <jas@extundo.com>
56461
56462         * m4/hmac-md5.m4: New file.
56463
56464         * m4/memxor.m4: Require gl_C_RESTRICT.
56465
56466 2005-10-06  Simon Josefsson  <jas@extundo.com>
56467
56468         * lib/memxor.c (memxor): Avoid casts and warnings.
56469
56470 2005-10-06  Simon Josefsson  <jas@extundo.com>
56471
56472         * lib/hmac-md5.c: New file.
56473
56474         * lib/hmac.h: New file.
56475
56476 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
56477
56478         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
56479         promotes to int, not unsigned int, to catch the AIX 5.3
56480         compiler bug.
56481
56482 2005-10-05  Simon Josefsson  <jas@extundo.com>
56483
56484         * modules/memxor: New file.
56485
56486         * modules/iconv (Files): Move config.rpath to havelib, it is used
56487         there.
56488
56489         * modules/havelib (Files): Add config.rpath.
56490
56491 2005-10-05  Simon Josefsson  <jas@extundo.com>
56492
56493         * m4/memxor.m4: New file.
56494
56495 2005-10-05  Simon Josefsson  <jas@extundo.com>
56496
56497         * lib/memxor.c (memxor): Fix compiler error.
56498
56499         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
56500         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
56501
56502         * lib/memxor.h, lib/memxor.c: New files.
56503
56504         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
56505         we assume all systems have it, suggested by Jim Meyering
56506         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
56507         any systems lack sys/socket.h; mingw32 is known to lack it, but we
56508         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
56509         same reasons.
56510
56511 2005-10-05  Simon Josefsson  <jas@extundo.com>
56512
56513         * config/srclist.txt: Add glibc bug 1423 for md5.h.
56514
56515 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
56516
56517         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
56518         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
56519         needed, since the source code now assumes these .h files.
56520
56521 2005-10-05  Derek Price  <derek@ximbiot.com>
56522
56523         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
56524
56525 2005-10-05  Bruno Haible  <bruno@clisp.org>
56526
56527         * modules/stdint (License): Change to LGPL.
56528
56529 2005-10-04  Simon Josefsson  <jas@extundo.com>
56530
56531         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
56532         D. Baushke" <mdb@gnu.org>.
56533
56534 2005-10-04  Bruno Haible  <bruno@clisp.org>
56535
56536         * lib/verify.h (verify_true): Provide alternative definition for C++.
56537
56538 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
56539
56540         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
56541         (SSIZE_MAX): New macro, if not already defined.
56542         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
56543         than 2 GiB.
56544
56545 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
56546
56547         Sync from coreutils.
56548         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
56549         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
56550         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
56551         ULLONG_MAX doesn't work with 2.7.2.1.
56552
56553 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
56554
56555         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
56556         From Ben Pfaff.
56557
56558         * modules/exclude (Depends-on): Depend on verify.
56559         * modules/strtoimax (Depends-on): Likewise.
56560         * modules/utimecmp (Depends-on): Likewise.
56561
56562 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
56563
56564         * lib/exclude.c: Include verify.h.
56565         (verify): Remove.  All callers changed to use verify.h's version.
56566         * lib/strtoimax.c: Likewise.
56567         * lib/utimecmp.c: Likewis.e
56568
56569         Sync from coreutils.
56570         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
56571         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
56572         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
56573         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
56574         bother returning ENOSYS if settimeofday or stime fails; just let
56575         them return whatever errno they want to return.
56576         * lib/utimens.c: Include unistd.h, for dup2.
56577         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
56578         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
56579
56580 2005-10-02  Jim Meyering  <jim@meyering.net>
56581
56582         Sync from coreutils.
56583         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
56584         from glibc-2.2.5 that fails for read-only files.
56585
56586 2005-10-02  Jim Meyering  <jim@meyering.net>
56587
56588         Sync from coreutils.
56589         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
56590         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
56591         `#if HAVE_CONFIG_H'.
56592         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
56593         Remove AT_FDCWD test.
56594         Do not consume the fd unless successful.
56595         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
56596         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
56597         block, so that we don't even try to compile it if settimeofday is
56598         available.  This works around a compilation failure on OSF1 V5.1,
56599         due to stime requiring a `long int*' while tv_sec is `int'.
56600
56601 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
56602
56603         Sync from coreutils.
56604         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
56605         against `yes', rather than just testing for nonempty.
56606
56607 2005-10-01  Simon Josefsson  <jas@extundo.com>
56608
56609         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
56610         and Darwin.
56611
56612         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
56613         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
56614         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
56615         freeaddrinfo and gai_strerror are declared by the POSIX headers.
56616         Check if struct addrinfo is declared.
56617
56618 2005-10-01  Simon Josefsson  <jas@extundo.com>
56619
56620         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
56621         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
56622         AI_* and EAI_* definitions.  Protect function declarations.
56623
56624 2005-10-01  Jim Meyering  <jim@meyering.net>
56625
56626         Sync from coreutils.
56627
56628         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
56629         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
56630         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
56631         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
56632         in the inet and nsl libraries.  Required on Solaris 5.7.
56633
56634 2005-10-01  Jim Meyering  <jim@meyering.net>
56635
56636         Sync from coreutils.
56637         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
56638         in the inet and nsl libraries.  Required on Solaris 5.7.
56639
56640 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
56641
56642         * lib/getdelim.c (getdelim): Remove unused variables.
56643
56644 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
56645
56646         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
56647         so that the code works even with ancient cpp.  Portability problem
56648         with GCC 2.7.2.1 reported by Thomas M.Ott.
56649
56650 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
56651
56652         * modules/regex (Depends-on): Add strcase.
56653
56654         * modules/gethostname (Licence): Change from GPL to LGPL, since
56655         gethostname.c is a trivial implementation of a standard library
56656         function.
56657         * modules/poll (License): Change from GPL to LGPL, since it's
56658         derived from LGPL code.
56659
56660 2005-09-27  Jim Meyering  <jim@meyering.net>
56661
56662         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
56663         HAVE_CONFIG_H.
56664
56665         * lib/intprops.h (signed_type_or_expr__): Define.
56666         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
56667         for unsigned types.
56668
56669 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
56670
56671         * lib/verify.h (verify_expr): Remove, replacing with:
56672         (verify_true): New macro that returns true instead of void.
56673         (verify_type__): Remove.
56674         (verify): Use verify_true rather than verify_type__.
56675
56676 2005-09-26  Bruno Haible  <bruno@clisp.org>
56677
56678         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
56679         is necessary.
56680         (lib_SOURCES): Remove mbchar.c.
56681         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
56682         (Files): Add m4/mbrtowc.m4.
56683         * modules/mbiter: Likewise.
56684         * modules/mbuiter: Likewise.
56685
56686 2005-09-26  Bruno Haible  <bruno@clisp.org>
56687
56688         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
56689         compile mbchar.c if they are not both present.
56690         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
56691         * m4/mbiter.m4 (gl_MBITER): Likewise.
56692         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
56693         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
56694         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
56695
56696 2005-09-25  Jim Meyering  <jim@meyering.net>
56697
56698         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
56699         also uses socklen_t.
56700
56701 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
56702
56703         * lib/utimens.c (ENOSYS): Define if not already defined.
56704         (futimens): Support having a null PATH if the file descriptor
56705         is nonnegative.
56706
56707         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
56708         Remove.
56709         (__attribute): Define to empty unless GCC 3.1 or later.
56710         This works around a core dump on OpenBSD 3.4, which has GCC
56711         2.95.3, which dumps core when given __attribute__(()).  It also
56712         simplifies other tests, since we really don't want to bother with
56713         worrying about which ancient version of GCC supported what.
56714         Original problem reported by Yoann Vandoorselaere, with part of
56715         the fix suggested by Derek Price.
56716
56717 2005-09-24  Jim Meyering  <jim@meyering.net>
56718
56719         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
56720         so we can once again use a positive bitfield width of 1 -- now we
56721         don't have to explain why we were using a bitfield width of 2.
56722
56723 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
56724
56725         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
56726         and similarly for the other external symbols.  Problem reported
56727         by James Gallager.
56728
56729         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
56730         bug reported by Jim Meyering.
56731
56732         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
56733         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
56734         not needed, since socklen is a prerequisite module.
56735
56736 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
56737
56738         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
56739         Problem reported by Eric Blake.
56740         (getaddrinfo): Initialize se so that it's not garbage.
56741         Redo internal storage allocation so that it doesn't make unportable
56742         assumptions about alignment.
56743         Fix a memory leak.
56744
56745         * lib/utimens.c (futimens): Use futimesat if available.
56746         Prefer it to futimes since it doesn't have the futimes bug.
56747
56748         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
56749         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
56750         Instead, declare a function that returns a pointer to an array,
56751         and use verify_type__ to declare the size of the array.
56752         Problem and germ of a solution reported by Bruno Haible.
56753         (verify_type__): Use 2, not 1, for bitfield size, to avoid
56754         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
56755
56756 2005-09-23  Jim Meyering  <jim@meyering.net>
56757
56758         Sync from coreutils.
56759         Correct build failure (socklen_t not defined) on at least
56760         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
56761         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
56762
56763 2005-09-23  Jim Meyering  <jim@meyering.net>
56764
56765         * modules/getaddrinfo (Depends-on): Add socklen.
56766
56767 2005-09-23  Bruno Haible  <bruno@clisp.org>
56768
56769         * tests/test-verify.c: New file.
56770
56771 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
56772
56773         Sync from coreutils.
56774
56775         * modules/argmatch (Depends-on): Add verify.
56776         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
56777         unistd-safer.
56778         * modules/save-cwd (Depends-on): Likewise.
56779
56780         * modules/openat (Files): Add lib/openat-die.c.
56781         (Depends-on): Remove error, exitfail.
56782         Add dirname.
56783
56784         * modules/verify: New file.
56785         * MODULES.html.sh (Diagnostics <assert.h>): New section,
56786         with "verify" module.
56787
56788 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
56789
56790         Sync from coreutils.
56791
56792         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
56793         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
56794         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
56795         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
56796         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
56797         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
56798         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
56799         Don't bother checking for string.h, stdlib.h, unistd.h.
56800         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
56801         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
56802         module's job.
56803         * m4/jm-macros.m4 (gl_MACROS): Likewise.
56804         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
56805
56806         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
56807         (gl_GETDATE): Use it.
56808
56809         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
56810
56811 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
56812
56813         Sync from coreutils.
56814
56815         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
56816         stat-time.h.
56817         * lib/argmatch.h: Include verify.h
56818         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
56819         (ARGMATCH_ASSERT): Remove; unused.
56820         * lib/canonicalize.c: Assume STDC_HEADERS.
56821         * lib/exclude.c: Include "strcase.h".
56822         * lib/regex_internal.h [!defined _LIBC]: Likewise.
56823         * lib/getusershell.c: Include stdio--.h rather than stdio.h
56824         and stdio-safer.h.
56825         (getusershell): Call fopen, not fopen_safer.
56826         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
56827         Do not include unistd-safer.h.
56828         (save_cwd): Don't call fd_safer; no longer needed
56829         now that we include fcntl--.h.
56830
56831         * lib/getdate.y (relative_time): New type.
56832         (RELATIVE_TIME_0): New constant.
56833         (parser_control): Use relative_time instead of doing it ourselves.
56834         (%union): Add new relative_time rel member.
56835         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
56836         Now typeless.
56837         (relunit, relunit_snumber): Now of type rel.
56838         (zone, rel, relunit, get_date): Adjust to above changes.
56839
56840         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
56841         Do not include unistd-safer.h.
56842         (getloadavg): Don't call fd_safer; no longer needed
56843         now that we include fcntl--.h.
56844
56845         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
56846         (make_dir_parents): Treat ENOSYS like EEXIST.
56847
56848         Improve quality of diagnostics on restore_cwd failure.
56849         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
56850         (make_dir_parents): Last arg is now int * (for errno), not bool *.
56851         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
56852         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
56853         each time through the loop.  Do not diagnose restore_cwd failure;
56854         that is the caller's job (and perhaps the caller does not care).
56855
56856         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
56857         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
56858         If the file already exists but is not a directory, don't bother
56859         to try to make its parents.
56860         Close potential file descriptor leak if we can't chdir("/") (!).
56861         Don't always return true if chdir($PWD) fails; return true only
56862         if the requested action was done successfully (except for the
56863         chdir($PWD)).
56864         Don't log final directory unless we actually made it.
56865         Refactor to avoid duplicate code to fix up permissions.
56866         Don't attempt to fix up parent permissions if chdir($PWD) fails.
56867
56868         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
56869         to make it a bit faster and (I hope) clearer.
56870         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
56871         Fix bug in formats like %2N.
56872
56873         * lib/verify.h: New file.
56874
56875 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
56876
56877         Sync from coreutils.
56878         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
56879
56880 2005-09-22  Jim Meyering  <jim@meyering.net>
56881
56882         Sync from coreutils.
56883
56884         * m4/lstat.m4 (gl_FUNC_LSTAT):
56885         Use AC_LIBSOURCES to require lstat.c and lstat.h.
56886         Remove obsolete comment.
56887         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
56888         * m4/xstrtod.m4: Likewise.
56889
56890         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
56891
56892 2005-09-22  Jim Meyering  <jim@meyering.net>
56893
56894         Sync from coreutils.
56895
56896         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
56897
56898         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
56899         the .tm_year member, since otherwise gcc-4.0 would now warn about
56900         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
56901
56902         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
56903         order to avoid an unsuppressible warning from gcc on 64-bit systems.
56904
56905         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
56906         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
56907         when run in a time zone for which daylight savings time is in effect
56908         for the starting date.
56909
56910         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
56911         stop us from restricting permissions of just-created absolute-named
56912         directories.
56913         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
56914         to restore initial working directory.
56915         * lib/mkdir-p.c (make_dir_parents): New parameter:
56916         different_working_dir, to tell caller if/when we change the working
56917         directory and are unable to return to the initial one.
56918         * lib/mkdir-p.h (make_dir_parents): Update prototype.
56919         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
56920         `return false'.  This fixes a bug introduced on 2004-07-30.
56921
56922         * lib/openat.c (fdopendir): Be sure to close the supplied
56923         file descriptor before returning.  This makes our replacement
56924         implementation a little closer to Solaris's, where fdopendir
56925         ties the file descriptor to the returned DIR* pointer.
56926         * lib/openat.c (unlinkat): New function.
56927         * lib/openat.h (unlinkat): Add prototype.
56928         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
56929         (openat_restore_fail): Rename from openat_restore_die.
56930         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
56931
56932         Provide an alternative to exiting immediately upon save_cwd or
56933         restore_cwd failure.  Now, an application can arrange e.g.,
56934         to perform a longjump in that case.
56935         * lib/openat.c: Include dirname.h.
56936         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
56937         (rpl_openat, fdopendir, fstatat): Call openat_save_die
56938         and openat_restore_die rather than calling error directly.
56939         Don't include "error.h" or "exitfail.h"; they're no longer needed.
56940
56941         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
56942         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
56943         define.
56944
56945         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
56946         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
56947                             int utc, int nanoseconds);
56948         Background:
56949         date should not have to allocate a megabyte of virtual memory to
56950         handle a format argument like +%1048575T.  When implemented with
56951         strftime, it must allocate such a buffer, use strftime to fill it
56952         in, print it, then free it.
56953         With fprintftime, it simply prints everything and exits.
56954         With no need for memory allocation, that's one fewer way to fail.
56955         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
56956         optional field width, not before, so we accept %9:z, not %:9z.
56957         (my_strftime): Be sure to use L_('x') for literals.
56958
56959         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
56960         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
56961         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
56962         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
56963         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
56964         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
56965         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
56966         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
56967         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
56968         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
56969         * lib/xgethostname.c, lib/xreadlink.c:
56970         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
56971
56972         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
56973         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
56974         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
56975         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
56976         and don't include <sys/file.h>).
56977
56978 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
56979
56980         Sync from coreutils.
56981
56982         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
56983         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
56984         [!LDAV_DONE]: Avoid unused variable warning.
56985
56986 2005-09-21  Bruno Haible  <bruno@clisp.org>
56987
56988         * lib/unicodeio.h (unicode_to_mb): New declaration.
56989
56990 2005-09-20  Derek Price  <derek@ximbiot.com>
56991
56992         * lib/getaddrinfo.c: Don't include <netdb.h> included from
56993         getaddrinfo.h.
56994
56995 2005-09-20  Bruno Haible  <bruno@clisp.org>
56996
56997         * gnulib-tool: Remove trailing slashes from the values specified for
56998         --source-base, --m4-base, --tests-base, --aux-dir.
56999         Suggested by Simon Josefsson <jas@extundo.com>.
57000
57001 2005-09-20  Bruno Haible  <bruno@clisp.org>
57002
57003         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
57004         func_modules_to_filelist, func_import, func_create_testdir): Make all
57005         sorting results locale-independent, so that gnulib-cache.m4 doesn't
57006         change when gnulib-tool is invoked in a different locale.
57007
57008 2005-09-19  Simon Josefsson  <jas@extundo.com>
57009
57010         * m4/socklen.m4: Fix typo.
57011
57012 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57013
57014         Use a consistent style for including <config.h>.
57015         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
57016         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
57017         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
57018         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
57019         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
57020         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
57021         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
57022         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
57023         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
57024         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
57025         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
57026         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
57027         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
57028         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
57029         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
57030         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
57031         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
57032         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
57033         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
57034         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
57035         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
57036         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
57037         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
57038         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
57039         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
57040         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
57041         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
57042         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
57043         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
57044         lib/xstrtoumax.c, lib/yesno.c:
57045         Standardize inclusion of config.h.
57046         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
57047         lib/inttostr.h:  Removed inclusion of config.h from header files.
57048         * lib/inttostr.c:  Adjusted in-tree users.
57049         * lib/timespec.h: Remove superfluous warning to include config.h.
57050         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
57051         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
57052         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
57053         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
57054         config.h with HAVE_CONFIG_H.
57055
57056 2005-09-19  Jim Meyering  <jim@meyering.net>
57057
57058         * modules/pathmax (License): Change to LGPL.
57059
57060 2005-09-19  Derek Price  <derek@ximbiot.com>
57061
57062         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
57063
57064 2005-09-19  Bruno Haible  <bruno@clisp.org>
57065
57066         * gnulib-tool (import): Provide default for --tests-base.
57067
57068 2005-09-19  Bruno Haible  <bruno@clisp.org>
57069
57070         * doc/quote.texi: New file, extracted from gnulib.texi.
57071         * doc/ctime.texi: New file, extracted from gnulib.texi.
57072         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
57073         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
57074         * doc/gnulib.texi: Include them.
57075
57076 2005-09-18  Bruno Haible  <bruno@clisp.org>
57077
57078         Portability fix.
57079         * gnulib-tool (func_readlink): New function.
57080         (func_ln_if_changed): Use it.
57081
57082 2005-09-18  Bruno Haible  <bruno@clisp.org>
57083
57084         * gnulib-tool: Support --with-tests also with --import.
57085         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
57086         (func_import): Use variables $testsbase and $inctests. Emit a
57087         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
57088         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
57089         SUBDIRS += $testsdir.
57090         (func_create_testdir): Update.
57091
57092 2005-09-18  Bruno Haible  <bruno@clisp.org>
57093
57094         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
57095         instead of $dry_run.
57096         (func_cp_if_changed, func_mv_if_changed): Remove functions.
57097         (func_ln_if_changed): Don't handle dry-run here.
57098         (func_import): In dry-run mode, detect more precisely which actions
57099         would be performed, and don't use "...ing" verbs.
57100
57101 2005-09-18  Bruno Haible  <bruno@clisp.org>
57102
57103         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
57104         (func_import): Use join on two temporary files instead of three nested
57105         loops, in order to determine which files are new or old.
57106
57107 2005-09-18  Bruno Haible  <bruno@clisp.org>
57108
57109         * gnulib-tool (func_import): Comment out code that spits out the
57110         new files with --dry-run.
57111
57112 2005-09-18  Bruno Haible  <bruno@clisp.org>
57113
57114         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
57115
57116 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
57117
57118         * lib/stat-time.h: New file.
57119         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
57120         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
57121         in a different way.
57122         (timespec_cmp): New function.
57123         * lib/utimecmp.c: Include stat-time.h.
57124         (SYSCALL_RESOLUTION): Depend on whether various struct stat
57125         members exist, not on the obsolescent ST_MTIM_NSEC.
57126         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
57127
57128 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
57129
57130         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
57131
57132 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
57133
57134         * MODULES.html.sh (File system functions): Add stat-time.
57135         * modules/stat-time: New file.
57136         * modules/timespec (Files): Remove m4/st_mtim.m4; this
57137         is now done in a different way, by the stat-time module.
57138         * modules/utimecmp (Depends-on): Add stat-time.
57139
57140 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
57141
57142         * m4/st_mtim.m4: Remove.  Superseded by...
57143         * m4/stat-time.m4: New file.
57144         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
57145         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
57146
57147 2005-09-15  Derek Price  <derek@ximbiot.com>
57148
57149         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
57150
57151 2005-09-15  Derek Price  <derek@ximbiot.com>
57152
57153         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
57154         * lib/regex_internal.c: Ditto, using this...
57155         (__GNUC_PREREQ): ...new macro.
57156         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
57157         using...
57158         (__GNUC_PREREQ): ...this new macro.
57159
57160         * lib/strstr.h: Include string.h. Define strstr as a macro here.
57161
57162 2005-09-15  Derek Price  <derek@ximbiot.com>
57163             Paul Eggert  <eggert@cs.ucla.edu>
57164
57165         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
57166         changes, consolidating in...
57167         * lib/regex_internal.h: ...this file.
57168
57169 2005-09-13  Jim Meyering  <jim@meyering.net>
57170
57171         * lib/canon-host.c: Filter through gnu indent and reword comments
57172         slightly.
57173         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
57174
57175 2005-09-13  Derek Price  <derek@ximbiot.com>
57176
57177         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
57178         failure.
57179         Reported by Jim Meyering  <jim@meyering.net>.
57180
57181 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
57182
57183         * lib/base64.c: Typo.
57184         (base64_encode): Put b64str in initialized data section.
57185
57186 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
57187
57188         Merge glibc and coreutils changes into gnulib, plus a few
57189         extra fixes.
57190         * lib/md5.c: Use #error rather than a string.
57191         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
57192         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
57193         (__attribute__): Define to empty for non recent-GCC.
57194         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
57195         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
57196         Renamed from their non-__ counterparts, with new macros replacing
57197         them if not _LIBC.  Add __THROW attribute.
57198         (rol): Remove.
57199         (struct md5_ctx): Align buffer if using GCC.
57200         * lib/sha1.h (struct sha1_ctx): Likewise.
57201         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
57202         The old name was backwards.
57203         (NOTSWAP): Remove; not used.
57204         (rol): New macro, moved here from md5.h.
57205         (sha1_process_block): Remove a FIXME that doesn't make sense.
57206
57207 2005-09-12  Derek Price  <derek@ximbiot.com>
57208
57209         Return usable errors from canon-host.
57210         * lib/canon-host.h: New file.
57211         * lib/canon-host.c (canon_host): Wrap...
57212         (canon_host_r): ...this new function, which now relies exclusively on
57213         getaddrinfo.
57214         (ch_strerror): New function.
57215         (last_cherror): New global.
57216         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
57217         interface.
57218         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
57219         void *.
57220         (freeaddrinfo): Free ai->ai_canonname when set.
57221
57222 2005-09-12  Derek Price  <derek@ximbiot.com>
57223
57224         Make canon-host require getaddrinfo.
57225         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
57226         AC_LIBSOURCE canon-host.h.  Call...
57227         (gl_PREREQ_CANON_HOST): ...this new function, which requires
57228         gl_GETADDRINFO.
57229         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
57230
57231 2005-09-12  Derek Price  <derek@ximbiot.com>
57232
57233         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
57234         LGPL.
57235         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
57236
57237 2005-09-12  Derek Price  <derek@ximbiot.com>
57238
57239         * lib/gai_strerror.c: Include config.h when available.  Include
57240         getaddrinfo.h before other headers to test interface.
57241         Reported by Larry Jones <lawrence.jones@ugs.com>.
57242
57243 2005-09-12  Derek Price  <derek@ximbiot.com>
57244             Paul Eggert  <eggert@cs.ucla.edu>
57245
57246         * modules/glob (Files): Add glob-libc.h.
57247
57248 2005-09-12  Derek Price  <derek@ximbiot.com>
57249             Paul Eggert  <eggert@cs.ucla.edu>
57250
57251         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
57252         glob_.h, glob-libc.h.
57253         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
57254
57255 2005-09-12  Derek Price  <derek@ximbiot.com>
57256             Paul Eggert  <eggert@cs.ucla.edu>
57257
57258         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
57259         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
57260         protecting things that should be done only in gnulib contexts.
57261         * lib/glob_.h: New file, containing only the glob things needed for
57262         gnulib.
57263         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
57264         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
57265         (glob, globfree, glob_pattern_p): Now defined simply in terms of
57266         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
57267         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
57268         and to respect the namespace rules better.
57269
57270 2005-09-08  Simon Josefsson  <jas@extundo.com>
57271
57272         * modules/socklen: New file.
57273
57274 2005-09-08  Simon Josefsson  <jas@extundo.com>
57275
57276         * m4/socklen.m4: New file.
57277
57278 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
57279
57280         * modules/utimens (Files): Add m4/utimbuf.m4, since
57281         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
57282         Reported by Sergey Poznyakoff.
57283
57284 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
57285
57286         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
57287         definitions, since that's the preferred style in glibc.
57288         Fix a minor spacing issue, and update copyright notice to match
57289         glibc's.
57290
57291 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
57292
57293         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
57294
57295 2005-09-06  Simon Josefsson  <jas@extundo.com>
57296
57297         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
57298         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
57299
57300 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
57301
57302         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
57303         warning.
57304
57305 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
57306
57307         * config/srclist.txt: Add glibc bug 1302.
57308
57309 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
57310
57311         Change bitset word type from unsigned int to unsigned long int,
57312         as this has better performance on typical 64-bit hosts.
57313         Port bitset code to hosts with unusual word sizes.
57314         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
57315         (build_collating_symbol):
57316         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
57317         argument is a bitset.  This is merely a style issue, but it makes
57318         it clearer that an entire array is expected.
57319         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
57320         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
57321         Port to the case where bitset_word is not the same as unsigned int.
57322         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
57323         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
57324         Likewise.
57325         * lib/regexec.c (check_dst_limits_calc_pos_1,
57326         check_subexp_matching_top):
57327         (build_trtable, group_nodes_into_DFAstates):
57328         Likewise.
57329         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
57330         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
57331         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
57332         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
57333         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
57334         * lib/regcomp.c (optimize_subexps, lower_subexp):
57335         Work even if bitset_word has holes in its bitwise representation.
57336         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
57337         * lib/regexec.c (check_dst_limits_calc_pos_1,
57338         check_subexp_matching_top):
57339         Likewise.
57340         * lib/regex_internal.c (re_string_reconstruct):
57341         Don't assume UCHAR_MAX == 255.
57342         * lib/regex_internal.h (bitset_set_all): Likewise.
57343         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
57344         All uses changed.
57345         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
57346         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
57347         All uses changed.
57348         (BITSET_WORD_MAX): New macro.
57349         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
57350         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
57351         (bitset_empty, bitset_copy):
57352         Prefer sizeof (bitset) to multiplying it out ourselves.
57353         (bitset_not_merge): Remove; unused.
57354         (bitset_contain): Return bool, not unsigned int with one bit on.
57355         All callers changed.
57356         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
57357         alignment than re_node_set; do this by defining a new internal
57358         type struct dests_alloc and using it to allocate memory.
57359
57360 2005-09-05  Bruno Haible  <bruno@clisp.org>
57361
57362         * gnulib-tool (func_import): Fix comparison in handling of symbolic
57363         links.
57364
57365 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
57366
57367         * modules/size_max (Makefile.am): Add size_max.h
57368
57369 2005-09-04  Derek Price  <derek@ximbiot.com>
57370
57371         * gnulib-tool (func_import): Fix reversed $symbolic logic.
57372
57373 2005-09-03  Simon Josefsson  <jas@extundo.com>
57374
57375         * gnulib-tool: Fix typo.
57376
57377 2005-09-03  Simon Josefsson  <jas@extundo.com>
57378
57379         * config/srclist.txt: Add glibc bug 1293.
57380
57381 2005-09-03  Derek Price  <derek@ximbiot.com>
57382
57383         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
57384         From Larry Jones <lawrence.jones@ugs.com>.
57385
57386 2005-09-02  Simon Josefsson  <jas@extundo.com>
57387
57388         * modules/socklen: New file.
57389
57390 2005-09-02  Simon Josefsson  <jas@extundo.com>
57391
57392         * modules/havelib: New module.
57393
57394         * modules/gettext, modules/iconv, modules/lock, modules/readline:
57395         Use havelib.
57396
57397 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
57398
57399         Check for arithmetic overflow when calculating sizes, to prevent
57400         some buffer-overflow issues.  These patches are conservative, in the
57401         sense that when I couldn't determine whether an overflow was possible,
57402         I inserted a run-time check.
57403         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
57404         macros.
57405         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
57406         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
57407         (re_xnrealloc, re_x2nrealloc): New inline functions.
57408         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
57409         parse_bracket_exp):
57410         (build_equiv_class, build_charclass): Check for arithmetic overflow
57411         in size expression calculations.
57412         * lib/regex_internal.c (re_string_realloc_buffers):
57413         (build_wcs_upper_buffer, re_node_set_add_intersect):
57414         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
57415         (re_dfa_add_node, register_state): Likewise.
57416         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
57417         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
57418         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
57419         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
57420
57421 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
57422
57423         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
57424         m4/ulonglong.m4.  Problem reported by Martin Lambers.
57425
57426 2005-09-02  Bruno Haible  <bruno@clisp.org>
57427
57428         Support for lib vs. lib64 distinction on biarch platforms.
57429         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
57430         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
57431         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
57432
57433 2005-09-02  Bruno Haible  <bruno@clisp.org>
57434
57435         * gnulib-tool (import): In the other first-use case, provide defaults
57436         as well.
57437
57438 2005-09-02  Bruno Haible  <bruno@clisp.org>
57439
57440         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
57441         patches not yet found in the latest gettext release.
57442
57443 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
57444
57445         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
57446         to avoid a collision with bits/local_lim.h in glibc.
57447         All uses changed.  Problem reported by Dmitry V. Levin in
57448         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
57449
57450         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
57451         bugs in int versus size_t comparisons.
57452         (re_string_context_at): Fix bug where the code assumed that
57453         Idx is signed.
57454
57455         Use bool where appropriate.
57456         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
57457         All callers changed.
57458         (calc_eclosure_iter): Likewise, for ROOT arg.
57459         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
57460         (build_charclass_op): Likewise, for NON_MATCH arg.
57461         * lib/regex_internal.c (re_string_allocate, re_string_construct):
57462         (re_string_construct_common): Likewise, for ICASE arg.
57463         * lib/regexec.c (re_search_2_stub, re_search_stub):
57464         Likewise, for RET_LEN arg.
57465         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
57466         (set_regs): Likewise, for FL_BACKTRACK arg.
57467         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
57468         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
57469         (calc_eclosure_iter, parse_bracket_exp):
57470         Use bool for internal variables that are booleans.
57471         * lib/regexec.c (re_search_internal, check_matching,
57472         proceed_next_node):
57473         (set_regs, build_sifted_states, sift_states_bkref):
57474         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
57475         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
57476         (find_collation_sequence_value):
57477         Likewise.
57478         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
57479         (re_node_set_compare):
57480         Return bool, not int. All callers changed.
57481         * lib/regexec.c (check_halt_node_context, check_dst_limits):
57482         (build_trtable, check_node_accept): Likewise.
57483         * lib/regex_internal.h: Include stdbool.h.
57484
57485         Fix bugs uncovered when converting to bool.
57486         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
57487         failure instead of charging ahead blindly.
57488         * lib/regex_internal.c (register_state): Likewise.
57489         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
57490         for freeing internal storage.
57491         (group_nodes_into_DFA_states): Use unsigned int, not int, for
57492         bitset pieces used as boolean, to avoid undefined behavior
57493         on hosts that do int overflow checking.
57494
57495 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
57496
57497         * config/srclist.txt: Add glibc bugs 1285-1287.
57498
57499 2005-09-01  Jim Meyering  <jim@meyering.net>
57500
57501         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
57502         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
57503         Require gl_STAT_MACROS, too.
57504
57505 2005-09-01  Bruno Haible  <bruno@clisp.org>
57506
57507         * gnulib-tool (import): In the first-use case, provide defaults.
57508
57509 2005-09-01  Bruno Haible  <bruno@clisp.org>
57510
57511         * gnulib-tool (func_import): Remove the .tmp files.
57512
57513 2005-09-01  Bruno Haible  <bruno@clisp.org>
57514
57515         * gnulib-tool (func_import): Fix handling of symbolic links.
57516
57517 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
57518
57519         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
57520         old glibc regex code mishandles strings longer than 2**31 bytes.
57521         This patch fixes this when the regex code is used in gnulib
57522         (i.e., outside glibc).
57523
57524         This patch should not affect the use of the regex code inside
57525         glibc.  No doubt this problem also needs to be handled for glibc
57526         as well, but the result will be an incompatible change to the
57527         glibc ABI, and the old ABI will have to be supported too.  That
57528         can be the the subject for another patch.
57529
57530         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
57531         governing whether the rest of this patch is active.  By default,
57532         the macro is disabled and the patch has no effect.
57533         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
57534         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
57535         (struct re_pattern_buffer, re_search, re_search_2, re_match):
57536         (re_match_2, re_set_registers): Use the new types.
57537         * lib/regex_internal.h (Idx, re_hashval_t): New types.
57538         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
57539         New macros.
57540         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
57541         (re_string_context_at, bin_tree_t, re_dfastate_t):
57542         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
57543         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
57544         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
57545         (re_string_char_size_at, re_string_wchar_at):
57546         (re_string_elem_size_at):
57547         Use the new types and macros to port to 64-bit hosts.
57548         Use unsigned types for internal values, so that the code
57549         mostly works even for arrays larger than SSIZE_MAX.
57550         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
57551         (search_duplicated_node, calc_eclosure_iter, fetch_number):
57552         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
57553         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
57554         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
57555         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
57556         (calc_inveclosure, parse_dup_op, build_range_exp):
57557         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
57558         (fetch_number, create_token_tree, mark_opt_subexp):
57559         Likewise.
57560         * lib/regex_internal.c (re_string_construct_common,
57561         create_ci_newstate):
57562         (create_cd_newstate, re_string_allocate, re_string_construct):
57563         (re_string_realloc_buffers, build_wcs_upper_buffer):
57564         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
57565         (re_string_reconstruct, re_string_peek_byte_case):
57566         (re_string_fetch_byte_case, re_string_context_at):
57567         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
57568         (re_node_set_init_copy, re_node_set_add_intersect):
57569         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
57570         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
57571         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
57572         (re_acquire_state, re_acquire_state_context, register_state):
57573         Likewise.
57574         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
57575         search_cur_bkref_entry):
57576         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
57577         (re_search_internal, re_search_2_stub, re_search_stub)
57578         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
57579         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
57580         (update_cur_sifted_state, check_dst_limits):
57581         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
57582         (check_subexp_limits, sift_states_bkref, merge_state_array):
57583         (check_subexp_matching_top, get_subexp, get_subexp_sub):
57584         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
57585         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
57586         (expand_bkref_cache, check_node_accept_bytes):
57587         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
57588         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
57589         (acquire_init_state_context, check_halt_node_context):
57590         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
57591         (sift_states_backward, clean_state_log_if_needed):
57592         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
57593         (find_recover_state, transit_state_sb, transit_state_mb):
57594         (transit_state_bkref, build_trtable, match_ctx_clean):
57595         Likewise.
57596         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
57597         to work around an assumption that REG_MISSING is negative.
57598
57599         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
57600         (seek_collating_symbol_entry) [defined _LIBC]:
57601         (lookup_collation_sequence_value) [defined _LIBC]:
57602         (build_range_exp, build_collating_symbol) [defined _LIBC]:
57603         Use prototypes rather than old-style function definitions.
57604         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
57605         (transit_state_sb) [0]:
57606         (find_collation_sequence_value) [defined _LIBC]: Likewise.
57607
57608         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
57609         rm_eo.
57610
57611         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
57612         (optimize_subexps, lower_subexp):
57613         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
57614         since the signed shift might overflow.  Use 1u<<31 instead.
57615         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
57616         Likewise.
57617         * lib/regexec.c (check_dst_limits_calc_pos_1,
57618         check_subexp_matching_top): Likewise.
57619
57620         * lib/regcomp.c (optimize_subexps, lower_subexp):
57621         Use CHAR_BIT rather than 8, for clarity.
57622         * lib/regexec.c (check_dst_limits_calc_pos_1):
57623         (check_subexp_matching_top): Likewise.
57624         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
57625         have to worry about portability issues when shifting it left.
57626         Remove no-longer-needed test for table_size > 0.
57627         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
57628         in a word, as the resulting behavior is undefined.
57629         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
57630         in one case, a <= should have been an <, and in another case the
57631         whole test was missing.
57632         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
57633         the standard name CHAR_BIT.
57634         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
57635         this is not true on one's complement and signed-magnitude hosts.
57636
57637         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
57638         next_last_offset.
57639         (struct re_dfa_t): Remove unused member states_alloc.
57640         * lib/regcomp.c (init_dfa): Don't initialize unused members.
57641
57642 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
57643
57644         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
57645         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
57646         and large-file glibc and in 32-bit large-file Solaris.
57647
57648 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
57649
57650         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
57651         lengths fit in regoff_t; this isn't true if regoff_t is the same
57652         width as size_t.
57653         * lib/regex.c (re_search_internal): 5th arg is LAST_START
57654         (= START + RANGE) instead of RANGE.  This avoids overflow
57655         problems when regoff_t is the same width as size_t.
57656         All callers changed.
57657         (re_search_2_stub): Check for overflow when adding the
57658         sizes of the two strings.
57659         (re_search_stub): Check for overflow when adding START
57660         to RANGE; if it occurs, substitute the extreme value.
57661
57662 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
57663
57664         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
57665
57666 2005-08-31  Jim Meyering  <jim@meyering.net>
57667
57668         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
57669         a pointer-to-const.
57670         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
57671         (register_state): Likewise.
57672         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
57673         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
57674         (group_nodes_into_DFAstates): Likewise.
57675
57676 2005-08-31  Jim Meyering  <jim@meyering.net>
57677
57678         * check-module: Add a FIXME comment.
57679
57680 2005-08-31  Eric Blake  <ebb9@byu.net>
57681
57682         * modules/unistd-safer (Files): Add unistd--.h.
57683         * modules/stdio-safer (Files): Add stdio--.h.
57684
57685 2005-08-31  Derek Price  <derek@ximbiot.com>
57686
57687         * lib/getdelim.c (getdelim): Return EOF on EOF.
57688         Reported by Larry Jones <lawrence.jones@ugs.com>.
57689
57690 2005-08-31  Bruno Haible  <bruno@clisp.org>
57691
57692         Avoid unnecessary diffs in the generated lib/Makefile.am.
57693         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
57694         the generated files.
57695         (func_import): Don't set cmd.
57696
57697 2005-08-31  Bruno Haible  <bruno@clisp.org>
57698
57699         * lib/strstr.c: Include <stddef.h>, for NULL.
57700         * lib/strcasestr.c: Likewise.
57701         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
57702
57703 2005-08-31  Bruno Haible  <bruno@clisp.org>
57704
57705         * gnulib-tool: New option --macro-prefix.
57706         (func_import): Use macro_prefix.
57707         (import): Handle option --macro-prefix.
57708
57709 2005-08-31  Bruno Haible  <bruno@clisp.org>
57710
57711         * gnulib-tool (import): Rename most ac_* variables to cached_*.
57712         Also use new variables cached_lgpl, cached_libtool.
57713
57714 2005-08-31  Bruno Haible  <bruno@clisp.org>
57715
57716         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
57717         always instantiating them.
57718
57719 2005-08-31  Bruno Haible  <bruno@clisp.org>
57720
57721         * gnulib-tool (func_import): Read the previous cached settings
57722         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
57723         earlier added by gnulib but are now dropped. Warn when a gnulib file
57724         overwrites a non-gnulib file.
57725
57726 2005-08-31  Bruno Haible  <bruno@clisp.org>
57727
57728         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
57729         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
57730         projects that don't keep autogenerated files in CVS. Put into
57731         actioncmd only the specified modules, not the transitive closure.
57732
57733 2005-08-31  Bruno Haible  <bruno@clisp.org>
57734
57735         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
57736         Create directories that shall be filled.
57737         (import): Don't look for gl_* macros in configure.ac. Recurse across
57738         all directories containing a gnulib-cache.m4 files, if meaningful.
57739
57740 2005-08-31  Bruno Haible  <bruno@clisp.org>
57741
57742         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
57743         (import): Set seen_libtool when we see gl_LIBTOOL.
57744
57745 2005-08-31  Bruno Haible  <bruno@clisp.org>
57746
57747         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
57748         declaration macro definitions from generated gnulib.m4.
57749
57750 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
57751
57752         * lib/iconvme.h: Add prototype for iconv_alloc.
57753
57754 2005-08-29  Simon Josefsson  <jas@extundo.com>
57755
57756         * lib/iconvme.c: Fix errno.
57757
57758 2005-08-29  Bruno Haible  <bruno@clisp.org>
57759
57760         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
57761         that it works when the directory contains spaces.
57762
57763 2005-08-29  Bruno Haible  <bruno@clisp.org>
57764
57765         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
57766
57767 2005-08-29  Bruno Haible  <bruno@clisp.org>
57768
57769         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
57770         Emit more advice.
57771
57772 2005-08-29  Bruno Haible  <bruno@clisp.org>
57773         and Stepan Kasal  <kasal@ucw.cz>
57774
57775         * check-module: If more parameters are given, check each of them
57776         separately; add more exceptions, as noted by Jim Meyering.
57777         (check_module): New procedure.
57778         (%exempt_header): Now contains all exceptions.
57779
57780 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
57781
57782         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
57783
57784 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
57785
57786         * lib/iconvme.c: Split iconv_string into iconv_alloc.
57787
57788 2005-08-28  Bruno Haible  <bruno@clisp.org>
57789
57790         * m4/gnulib-tool.m4: New file.
57791
57792 2005-08-27  Jim Meyering  <jim@meyering.net>
57793
57794         * modules/unistd-safer (Files): Add pipe-safer.c.
57795         * modules/fcntl-safer (Files): Add creat-safer.c.
57796
57797 2005-08-27  Jim Meyering  <jim@meyering.net>
57798
57799         * m4/stdlib-safer.m4: New file.  From coreutils.
57800         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
57801         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
57802         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
57803         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
57804         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
57805
57806 2005-08-27  Jim Meyering  <jim@meyering.net>
57807
57808         * lib/fopen-safer.c: Merge minor changes from coreutils.
57809         * lib/dup-safer.c: Likewise.
57810         * lib/fd-safer.c: Likewise.
57811
57812         Merge from coreutils.
57813         * lib/stdio--.h: New file.
57814         * lib/stdlib--.h: New file.
57815         * lib/mkstemp-safer.c: New file.
57816
57817         GNU tar needs these.
57818         * lib/pipe-safer.c: New file.
57819         * lib/creat-safer.c: New file.
57820         * lib/fcntl--.h (creat): Define to creat_safer.
57821         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
57822         * lib/unistd--.h (pipe): Define to pipe_safer.
57823         * lib/unistd-safer.h: Declare pipe_safer.
57824
57825 2005-08-26  Simon Josefsson  <jas@extundo.com>
57826
57827         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
57828         Haible <bruno@clisp.org>.
57829
57830 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
57831
57832         * lib/regex_internal.h: Remove all references to
57833         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
57834         or better.
57835         (bitset_not, bitset_merge, bitset_not_merge):
57836         (bitset_mask, re_string_allocate, re_string_construct):
57837         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
57838         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
57839         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
57840         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
57841         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
57842         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
57843         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
57844         (re_acquire_state_context):
57845         Remove unnecessary forward decls.
57846         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
57847         Put __attribute at function definition,
57848         now that the function decl has been removed.
57849         * lib/regex_internal.c (re_string_peek_byte_case):
57850         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
57851         Likewise.
57852
57853 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
57854
57855         * m4/regex.m4: Add AC_PREREQ(2.50).
57856         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
57857
57858 2005-08-25  Simon Josefsson  <jas@extundo.com>
57859
57860         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
57861         __fsetlocking.
57862
57863 2005-08-25  Simon Josefsson  <jas@extundo.com>
57864
57865         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
57866         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
57867         GLIBC specific code.
57868
57869 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
57870
57871         Make regex safe for g++.  This fixes one real bug (an "err"
57872         that should have been "*err").  g++ problem reported by
57873         Sam Steingold.
57874         * lib/regex_internal.h (re_calloc): New macro, consistent with
57875         re_malloc etc.  All callers of calloc changed to use re_calloc.
57876         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
57877         not int.  All callers changed.
57878         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
57879         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
57880         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
57881         (find_recover_state): Change "err" to "*err"; this fixes what
57882         appears to be a real bug.
57883         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
57884         versus int.
57885
57886 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
57887
57888         * modules/regex (Depends-on): Add malloc, since the code
57889         assumes that !malloc(0) means failure.
57890
57891 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
57892
57893         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
57894
57895         alloca modernization/simplification for regex.
57896         * lib/regex.c: Remove portability cruft for alloca.  This no longer
57897         needs to be at the start of the file, and can be moved into
57898         regex_internal.h and simplified.
57899         * lib/regex_internal.h: Include <alloca.h>.
57900         (__libc_use_alloca) [!defined _LIBC]: New macro.
57901         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
57902         now works outside glibc.
57903
57904 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
57905
57906         * config/srclist.txt: Add glibc bugs 1241, 1245.
57907
57908 2005-08-25  Jim Meyering  <jim@meyering.net>
57909
57910         * lib/open-safer.c: Include <config.h>.
57911         Otherwise, we'd lose LARGEFILE support in any file using
57912         e.g. "fcntl--.h"
57913
57914 2005-08-25  Bruno Haible  <bruno@clisp.org>
57915
57916         * m4/minmax.m4: Require autoconf 2.52.
57917         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
57918         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
57919         alternatives of translit over the alphabet.
57920         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
57921
57922 2005-08-24  Simon Josefsson  <jas@extundo.com>
57923
57924         * tests/test-getpass.c: New file.
57925
57926 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
57927
57928         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
57929         for GNU regex features.
57930
57931 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
57932
57933         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
57934         * lib/regex.h (regerror): Likewise.
57935
57936         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
57937         requires this.  (The code never needed it.)
57938
57939         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
57940         All uses of recently-renamed identifiers changed to use the new,
57941         POSIX-compliant names.  The code will build and run just fine
57942         without these changes, but it's better to eat our own dog food
57943         and use the standard-conforming names.
57944
57945         * lib/regex.h: Fix a multitude of POSIX name space violations.
57946         These changes have an effect only for programs that define
57947         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
57948         do not change anything for programs compiled in the normal way.
57949         Also, there is no effect on the ABI.
57950
57951         (_REGEX_SOURCE): New macro.
57952         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
57953         defined and _GNU_SOURCE is not; this fixes a name space violation.
57954
57955         Rename the following macros to obey POSIX requirements.
57956         The old names are still visible as macros if _REGEX_SOURCE is defined.
57957         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
57958         RE_BACKSLASH_ESCAPE_IN_LISTS.
57959         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
57960         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
57961         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
57962         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
57963         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
57964         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
57965         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
57966         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
57967         (REG_INTERVALS): renamed from RE_INTERVALS.
57968         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
57969         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
57970         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
57971         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
57972         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
57973         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
57974         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
57975         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
57976         RE_UNMATCHED_RIGHT_PAREN_ORD.
57977         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
57978         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
57979         (REG_DEBUG): renamed from RE_DEBUG.
57980         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
57981         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
57982         unusual, since we can't clash with the POSIX REG_ICASE.
57983         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
57984         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
57985         (REG_NO_SUB): renamed from RE_NO_SUB.
57986         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
57987         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
57988         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
57989         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
57990         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
57991         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
57992         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
57993         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
57994         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
57995         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
57996         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
57997         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
57998         RE_SYNTAX_POSIX_MINIMAL_BASIC.
57999         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
58000         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
58001         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
58002         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
58003         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
58004         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
58005         (REG_FIXED): Renamed from REGS_FIXED.
58006         (REG_NREGS): Renamed from RE_NREGS.
58007
58008         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
58009         of other REG_* macros, since POSIX says the user is allowed to
58010         #undef these macros selectively.
58011
58012         (reg_errcode_t): Update comment stating what other tables need
58013         to be consistent.
58014
58015         Rename the following enum values to obey POSIX requirements.
58016         The old names are still visible as macros.
58017         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
58018         is not defined, since GNU is supposed to be a superset of POSIX as
58019         much as possible, and since we want reg_errcode_t to be a signed
58020         type for implementation consistency.
58021         (_REG_NOERROR): Renamed from REG_NOERROR.
58022         (_REG_NOMATCH): Renamed from REG_NOMATCH.
58023         (_REG_BADPAT): Renamed from REG_BADPAT.
58024         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
58025         (_REG_ECTYPE): Renamed from REG_ECTYPE.
58026         (_REG_EESCAPE): Renamed from REG_EESCAPE.
58027         (_REG_ESUBREG): Renamed from REG_ESUBREG.
58028         (_REG_EBRACK): Renamed from REG_EBRACK.
58029         (_REG_EPAREN): Renamed from REG_EPAREN.
58030         (_REG_EBRACE): Renamed from REG_EBRACE.
58031         (_REG_BADBR): Renamed from REG_BADBR.
58032         (_REG_ERANGE): Renamed from REG_ERANGE.
58033         (_REG_ESPACE): Renamed from REG_ESPACE.
58034         (_REG_BADRPT): Renamed from REG_BADRPT.
58035         (_REG_EEND): Renamed from REG_EEND.
58036         (_REG_ESIZE): Renamed from REG_ESIZE.
58037         (_REG_ERPAREN): Renamed from REG_ERPAREN.
58038         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
58039         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
58040         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
58041         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
58042
58043         (_REG_RE_NAME, _REG_RM_NAME): New macros.
58044         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
58045         changed.  But support the old name if the new one is not defined
58046         and if _REGEX_SOURCE.
58047
58048         Change the following member names in struct re_pattern_buffer.
58049         The old names are still supported if !_REGEX_SOURCE.
58050         The new names are always supported, regardless of _REGEX_SOURCE.
58051         (re_buffer): Renamed from buffer.
58052         (re_allocated): Renamed from allocated.
58053         (re_used): Renamed from used.
58054         (re_syntax): Renamed from syntax.
58055         (re_fastmap): Renamed from fastmap.
58056         (re_translate): Renamed from translate.
58057         (re_can_be_null): Renamed from can_be_null.
58058         (re_regs_allocated): Renamed from regs_allocated.
58059         (re_fastmap_accurate): Renamed from fastmap_accurate.
58060         (re_no_sub): Renamed from no_sub.
58061         (re_not_bol): Renamed from not_bol.
58062         (re_not_eol): Renamed from not_eol.
58063         (re_newline_anchor): Renamed from newline_anchor.
58064
58065         Change the following member names in struct re_registers.
58066         The old names are still supported if !_REGEX_SOURCE.
58067         The new names are always supported, regardless of _REGEX_SOURCE.
58068         (rm_num_regs): Renamed from num_regs.
58069         (rm_start): Renamed from start.
58070         (rm_end): Renamed from end.
58071
58072         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
58073         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
58074         Prepend __ to parameter names.
58075
58076         Undo yesterday's changes.
58077
58078 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
58079
58080         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
58081         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
58082         lib/regex.c.
58083
58084 2005-08-24  Jim Meyering  <jim@meyering.net>
58085
58086         Sync from coreutils.
58087         * m4/fcntl-safer.m4: New file.
58088
58089         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
58090         and object files for this module.
58091
58092 2005-08-24  Jim Meyering  <jim@meyering.net>
58093
58094         Sync from coreutils.
58095         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
58096
58097 2005-08-24  Jim Meyering  <jim@meyering.net>
58098
58099         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
58100         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
58101
58102 2005-08-24  Jim Meyering  <jim@meyering.net>
58103
58104         * modules/fcntl-safer: New module.
58105         * modules/fts (Depends-on): Add fcntl-safer.
58106         * MODULES.html.sh (File descriptor based Input/Output):
58107         Add fcntl-safer.
58108
58109 2005-08-24  Bruno Haible  <bruno@clisp.org>
58110
58111         Support for unit test modules.
58112         * modules/README: Mention tests modules.
58113         * modules/TEMPLATE-TESTS: New file.
58114         * gnulib-tool: New options --extract-tests-module, --with-tests and
58115         --tests-base (unused for the moment).
58116         (testsbase, inctests): New variables.
58117         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
58118         (func_verify_module): Exclude TEMPLATE-TESTS.
58119         (func_verify_nontests_module, func_verify_tests_module): New functions.
58120         (func_get_dependencies): Add implicit dependency for tests modules.
58121         (func_get_tests_module): New function.
58122         (func_modules_transitive_closure): When --with-tests was specified,
58123         include the unit tests as well, unless explicitly avoided.
58124         (func_emit_lib_Makefile_am): Ignore the tests modules here.
58125         (func_emit_tests_Makefile_am): New function.
58126         (func_create_testdir): When --with-tests was specified, emit a
58127         tests/ directory.
58128         * MODULES.html.sh (Future developments): Update.
58129
58130 2005-08-24  Bruno Haible  <bruno@clisp.org>
58131
58132         * modules/tls-tests: New file.
58133         * tests/test-tls.c: New file, from GNU gettext.
58134
58135 2005-08-24  Bruno Haible  <bruno@clisp.org>
58136
58137         * modules/lock-tests: New file.
58138         * tests/test-lock.c: New file, from GNU gettext.
58139
58140 2005-08-24  Bruno Haible  <bruno@clisp.org>
58141
58142         * lib/lock.h: Add multiple inclusion guard.
58143         * lib/tls.h: Add multiple inclusion guard.
58144
58145 2005-08-24  Bruno Haible  <bruno@clisp.org>
58146
58147         * gnulib-tool: Add support for the --aux-dir option to
58148         --create-testdir, --create-megatestdir, --test, --megatest.
58149         (func_create_testdir, func_create_megatestdir): Optionally emit a
58150         AC_CONFIG_AUX_DIR directive.
58151         (create-testdir, create-megatestdir, test, megatest): Provide a
58152         default value for $auxdir.
58153
58154 2005-08-24  Bruno Haible  <bruno@clisp.org>
58155
58156         * gnulib-tool (import): Use compound statement instead of subshell
58157         where possible.
58158
58159 2005-08-24  Bruno Haible  <bruno@clisp.org>
58160
58161         * gnulib-tool (import): Change --aux-dir default to "build-aux".
58162
58163 2005-08-24  Bruno Haible  <bruno@clisp.org>
58164
58165         * gnulib-tool (func_version): Update.
58166
58167 2005-08-24  Bruno Haible  <bruno@clisp.org>
58168
58169         * gnulib-tool (func_import, func_create_testdir,
58170         func_create_megatestdir): Quote all autoconf macro arguments.
58171
58172 2005-08-24  Bruno Haible  <bruno@clisp.org>
58173
58174         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
58175         option --force, because --force causes the aclocal.m4 of each
58176         subdirectory to be newer than the corresponding config.h.in.
58177
58178 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
58179
58180         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
58181         All contents moved to gl_REGEX.
58182         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
58183         assume that it does.
58184
58185 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
58186
58187         * lib/regex.h (REG_NOSYS)
58188         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
58189         Define, since POSIX requires it as of 2001.
58190         (_REG_ENOSYS)
58191         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
58192         New private symbol, used to keep the enum signed in all cases.
58193         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
58194         Youngman in
58195         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
58196
58197         * lib/regex_internal.c (re_string_skip_chars, register_state):
58198         (calc_state_hash):
58199         Remove forward decls; no longer needed now that we use prototypes.
58200         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
58201         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
58202         (clean_state_log_if_needed): Likewise.
58203
58204 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
58205
58206         * config/srclist.txt: Add glibc bugs 1231-1233.
58207
58208 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
58209
58210         Fix problems reported by Sam Steingold in
58211         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
58212         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
58213         assumed that reg_errcode_t is a signed type, which is not
58214         necessarily true if _XOPEN_SOURCE is not defined.
58215         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
58216         since some compilers warn about it otherwise.
58217
58218 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
58219
58220         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
58221         (init_word_char, create_initial_state, duplicate_node_closure):
58222         (fetch_token, peek_token_bracket, build_range_exp):
58223         (build_collating_symbol): Remove forward decls; no longer needed
58224         now that we use prototypes.
58225
58226         * lib/regcomp.c:
58227         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
58228         (re_compile_fastmap_iter, regcomp, regerror, regfree):
58229         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
58230         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
58231         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
58232         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
58233         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
58234         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
58235         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
58236         (build_range_exp, build_collating_symbol, parse_bracket_exp):
58237         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
58238         (build_charclass, build_charclass_op, fetch_number, create_tree):
58239         (create_token_tree, mark_opt_subexp, duplicate_tree):
58240         Use prototypes rather than old-style definitions.
58241
58242         * lib/regex_internal.c:
58243         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
58244         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
58245         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
58246         (re_string_reconstruct, re_string_peek_byte_case):
58247         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
58248         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
58249         (re_node_set_init_copy, re_node_set_add_intersect):
58250         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
58251         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
58252         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
58253         (re_acquire_state, re_acquire_state_context, register_state):
58254         (create_ci_newstate, create_cd_newstate, free_state):
58255         Likewise.
58256         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
58257         re_search_2):
58258         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
58259         (re_search_internal, prune_impossible_nodes):
58260         (acquire_init_state_context, check_matching, static):
58261         (check_halt_node_context, check_halt_state_context, proceed_next_node):
58262         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
58263         (update_regs, sift_states_backward, build_sifted_states):
58264         (clean_state_log_if_needed, merge_state_array):
58265         (update_cur_sifted_state, add_epsilon_src_nodes):
58266         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
58267         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
58268         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
58269         (find_recover_state, check_subexp_matching_top, transit_state_mb):
58270         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
58271         (check_arrival, check_arrival_add_next_nodes):
58272         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
58273         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
58274         (check_node_accept_bytes, check_node_accept, extend_buffers):
58275         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
58276         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
58277         (sift_ctx_init):
58278         Likewise.
58279
58280         * lib/regex_internal.h:
58281         (re_string_allocate, re_string_construct, re_string_reconstruct):
58282         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
58283         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
58284         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
58285         (re_string_context_at, re_string_peek_byte_case):
58286         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
58287         is defined, since we now use prototypes always.
58288
58289         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
58290         C89 or better.  All uses removed.
58291
58292 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
58293
58294         * config/srclist.txt: Add glibc bugs 1220-1227.
58295
58296 2005-08-20  Jim Meyering  <jim@meyering.net>
58297
58298         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
58299         of unused local, dfa.
58300
58301 2005-08-20  Bruno Haible  <bruno@clisp.org>
58302
58303         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
58304
58305 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
58306
58307         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
58308         (re_node_set_insert_last, re_dfa_add_node):
58309         Rename local variables to avoid GCC shadowing warnings.
58310
58311 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
58312
58313         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
58314         [defined lint]: Suppress bogus uninitialized-variable warnings.
58315
58316         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
58317         and let the caller return REG_ESPACE if out of space.  This
58318         removes an uninitialied-variable warning with GCC 4.0.1, and also
58319         avoids taking the address of a local variable.  All callers
58320         changed.
58321
58322 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
58323
58324         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
58325         $LIBCSRC/posix/regexec.c.
58326         Add glibc bug 1217 for regcomp.c.
58327
58328 2005-08-19  Jim Meyering  <jim@meyering.net>
58329
58330         * lib/regexec.c (proceed_next_node): Redo local variables to
58331         avoid GCC shadowing warnings.
58332
58333 2005-08-18  Bruno Haible  <bruno@clisp.org>
58334
58335         * lib/strstr.c (strstr): Fix return value in multibyte case.
58336         * lib/strcasestr.c (strcasestr): Likewise.
58337
58338 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
58339
58340         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
58341
58342 2005-08-17  Jim Meyering  <jim@meyering.net>
58343
58344         Make the %s format (seconds since the epoch) work for a negative
58345         number and when used with a zero-padded field width, e.g. %015s.
58346
58347         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
58348         label so that it precedes the code to set `digits'.  Otherwise,
58349         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
58350         print `00-22'.  Now, it prints `-0022', as it should.
58351
58352 2005-08-17  Bruno Haible  <bruno@clisp.org>
58353
58354         * modules/strstr (Files): Add m4/mbrtowc.m4.
58355         (Depends-on): Add mbuiter.
58356
58357 2005-08-17  Bruno Haible  <bruno@clisp.org>
58358
58359         * modules/strcasestr: New file.
58360         * MODULES.html.sh (String handling, based on ANSI C 89): Add
58361         strcasestr.
58362
58363 2005-08-17  Bruno Haible  <bruno@clisp.org>
58364
58365         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
58366
58367 2005-08-17  Bruno Haible  <bruno@clisp.org>
58368
58369         * modules/mbuiter: New file.
58370         * MODULES.html.sh (Extended multibyte and wide character utilities):
58371         Add mbuiter.
58372
58373 2005-08-17  Bruno Haible  <bruno@clisp.org>
58374
58375         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
58376         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
58377
58378 2005-08-17  Bruno Haible  <bruno@clisp.org>
58379
58380         * m4/strcasestr.m4: New file.
58381
58382 2005-08-17  Bruno Haible  <bruno@clisp.org>
58383
58384         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
58385         * lib/strstr.c: Completely rewritten, with multibyte locale support.
58386
58387 2005-08-17  Bruno Haible  <bruno@clisp.org>
58388
58389         * lib/strcasestr.h: New file.
58390         * lib/strcasestr.c: New file.
58391
58392 2005-08-17  Bruno Haible  <bruno@clisp.org>
58393
58394         * lib/strcasecmp.c: Use mbuiter.h.
58395
58396 2005-08-17  Bruno Haible  <bruno@clisp.org>
58397
58398         * lib/mbuiter.h: New file.
58399
58400 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
58401
58402         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
58403         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
58404         and gl_GETOPT are both invoked via different paths (as happens
58405         with GNU tar CVS because it uses both argp and getopt), the former
58406         wins.
58407
58408 2005-08-16  Bruno Haible  <bruno@clisp.org>
58409
58410         * modules/tls: New file.
58411         * MODULES.html.sh (Multithreading): Add tls.
58412
58413 2005-08-16  Bruno Haible  <bruno@clisp.org>
58414
58415         * modules/strnlen1: New file.
58416         * MODULES.html.sh (String handling): Add strnlen1.
58417
58418 2005-08-16  Bruno Haible  <bruno@clisp.org>
58419
58420         * modules/strcase (Files): Add m4/mbrtowc.m4.
58421         (Depends-on): Add strnlen1, mbchar.
58422
58423 2005-08-16  Bruno Haible  <bruno@clisp.org>
58424
58425         * modules/mbiter: New file.
58426         * MODULES.html.sh (Extended multibyte and wide character utilities):
58427         Add mbiter.
58428
58429 2005-08-16  Bruno Haible  <bruno@clisp.org>
58430
58431         * modules/mbfile: New file.
58432         * MODULES.html.sh (Extended multibyte and wide character utilities):
58433         Add mbfile.
58434
58435 2005-08-16  Bruno Haible  <bruno@clisp.org>
58436
58437         * modules/mbchar: New file.
58438         * MODULES.html.sh (Extended multibyte and wide character utilities):
58439         New section.
58440
58441 2005-08-16  Bruno Haible  <bruno@clisp.org>
58442
58443         * m4/tls.m4: New file, from GNU gettext.
58444
58445 2005-08-16  Bruno Haible  <bruno@clisp.org>
58446
58447         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
58448         always.
58449         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
58450
58451 2005-08-16  Bruno Haible  <bruno@clisp.org>
58452
58453         * m4/mbiter.m4: New file.
58454
58455 2005-08-16  Bruno Haible  <bruno@clisp.org>
58456
58457         * m4/mbfile.m4: New file.
58458
58459 2005-08-16  Bruno Haible  <bruno@clisp.org>
58460
58461         * m4/mbchar.m4: New file.
58462
58463 2005-08-16  Bruno Haible  <bruno@clisp.org>
58464
58465         * lib/tls.h: New file, from GNU gettext.
58466         * lib/tls.c: New file, from GNU gettext.
58467
58468 2005-08-16  Bruno Haible  <bruno@clisp.org>
58469
58470         * lib/strnlen1.h: New file.
58471         * lib/strnlen1.c: New file.
58472
58473 2005-08-16  Bruno Haible  <bruno@clisp.org>
58474
58475         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
58476         (mbi_init): Update.
58477         (mbi_avail, mbi_advance): Let the iteration end before the terminating
58478         NUL byte, not after it.
58479
58480 2005-08-16  Bruno Haible  <bruno@clisp.org>
58481
58482         * lib/strcase.h (strcasecmp): Add note in comments.
58483         * lib/strncasecmp.c: Use code from strcasecmp.c.
58484         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
58485         (strcasecmp): Work correctly in multibyte locales.
58486
58487 2005-08-16  Bruno Haible  <bruno@clisp.org>
58488
58489         * lib/mbiter.h: New file.
58490
58491 2005-08-16  Bruno Haible  <bruno@clisp.org>
58492
58493         * lib/mbfile.h: New file.
58494
58495 2005-08-16  Bruno Haible  <bruno@clisp.org>
58496
58497         * lib/mbchar.h: New file.
58498         * lib/mbchar.c: New file.
58499
58500 2005-08-16  Bruno Haible  <bruno@clisp.org>
58501
58502         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
58503         the valid ones. Makes the comparison operations transitive:
58504         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
58505         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
58506
58507 2005-08-15  Simon Josefsson  <jas@extundo.com>
58508
58509         * modules/ssize_t (License): Change to 'unlimited'.
58510
58511         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
58512
58513 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
58514
58515         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
58516         Add comments for each pending glibc patch.
58517
58518 2005-08-15  Bruno Haible  <bruno@clisp.org>
58519
58520         * lib/regex.h (__restrict_arr): Don't define to __restrict if
58521         __cplusplus is defined.
58522
58523 2005-08-14  Jim Meyering  <jim@meyering.net>
58524
58525         Sync from coreutils.
58526
58527         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
58528         Use the hash-table-based cycle-detection code not just when
58529         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
58530         Reported by James Youngman in
58531         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
58532         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
58533         FTS_TIGHT_CYCLE_CHECK.
58534         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
58535         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
58536         once again.
58537         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
58538         * lib/fts.c (fd_safer): Remove decl.
58539         Include fcntl--.h rather than unistd-safer.h
58540         (fts_safe_changedir): Don't call fd_safer; no longer needed
58541         now that we include fcntl--.h.
58542
58543 2005-08-12  Simon Josefsson  <jas@extundo.com>
58544
58545         * modules/getndelim2: Use ssize_t module.
58546         * modules/getnline: Likewise.
58547         * modules/safe-read: Likewise.
58548         * modules/xreadlink: Likewise.
58549
58550         * modules/ssize_t: New file.
58551
58552 2005-08-12  Simon Josefsson  <jas@extundo.com>
58553
58554         * m4/readline.m4: Look for termcap, curses or ncurses if required.
58555
58556 2005-08-12  Simon Josefsson  <jas@extundo.com>
58557
58558         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
58559         ssize_t.
58560
58561 2005-08-12  Simon Josefsson  <jas@extundo.com>
58562
58563         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
58564         readline, getdelim and check_version.
58565         (Support for systems lacking ISO C 99: Sizes of integer types):
58566         Add size_max.
58567
58568 2005-08-12  Bruno Haible  <bruno@clisp.org>
58569
58570         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
58571
58572 2005-08-11  Simon Josefsson  <jas@extundo.com>
58573
58574         * modules/readline: New file.
58575
58576         * modules/strnlen (Files): Add strnlen.h.
58577
58578 2005-08-11  Simon Josefsson  <jas@extundo.com>
58579
58580         * m4/readline.m4: New file.
58581
58582 2005-08-11  Simon Josefsson  <jas@extundo.com>
58583
58584         * lib/readline.h, readline.c: New file.
58585
58586 2005-08-11  Simon Josefsson  <jas@extundo.com>
58587
58588         * doc/gnulib.texi (Initial import, Finishing touches): Mention
58589         gl_AVOID.
58590
58591 2005-08-11  Bruno Haible  <bruno@clisp.org>
58592
58593         * lib/strnlen.h (strnlen): Change parameter name to match comment.
58594
58595 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
58596
58597         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
58598
58599 2005-08-10  Simon Josefsson  <jas@extundo.com>
58600
58601         * tests/test-iconvme.c: New file.
58602
58603 2005-08-10  Simon Josefsson  <jas@extundo.com>
58604
58605         * m4/strnlen.m4: New file.
58606
58607         * m4/strndup.m4: Don't check for strnlen declaration, done in
58608         strnlen.m4.
58609
58610 2005-08-10  Simon Josefsson  <jas@extundo.com>
58611
58612         * lib/strndup.c: Use strnlen.h.
58613
58614         * lib/strnlen.h: New file.
58615
58616 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
58617
58618         * README: Typos.
58619
58620 2005-08-02  Simon Josefsson  <jas@extundo.com>
58621
58622         * modules/readline: New file.
58623
58624 2005-08-02  Simon Josefsson  <jas@extundo.com>
58625
58626         * modules/getdelim: New file.
58627
58628         * modules/getline: Rewrite, don't use getndelim2.
58629
58630 2005-08-02  Simon Josefsson  <jas@extundo.com>
58631
58632         * m4/getline.m4: Separate out getdelim stuff into separate module.
58633
58634         * m4/getdelim.m4: New file.
58635
58636 2005-08-02  Simon Josefsson  <jas@extundo.com>
58637
58638         * lib/getline.h, getline.c: Rewrite.
58639
58640         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
58641
58642 2005-07-31  Bruno Haible  <bruno@clisp.org>
58643
58644         * lib/lock.h (gl_lock_initializer): New macro.
58645         (gl_lock_define_initialized): Use it.
58646         (gl_rwlock_initializer): New macro.
58647         (gl_rwlock_define_initialized): Use it.
58648         (gl_recursive_lock_initializer): New macro.
58649         (gl_recursive_lock_define_initialized): Use it.
58650
58651 2005-07-30  Karl Berry  <karl@gnu.org>
58652
58653         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
58654         Report from Ben Pfaff, regarding getopt.
58655
58656 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
58657
58658         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
58659         normal way.
58660         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
58661         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
58662         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
58663         (gl_GETOPT): Use the new macros.  Most of the implementation
58664         is moved to the new macros.  This is for programs like Emacs
58665         that don't want all the functionality of gl_GETOPT.
58666
58667 2005-07-26  Bruno Haible  <bruno@clisp.org>
58668
58669         * m4/lock.m4: Update from GNU gettext.
58670
58671 2005-07-26  Bruno Haible  <bruno@clisp.org>
58672
58673         * lib/lock.h: Update from GNU gettext.
58674         * lib/lock.c: Update from GNU gettext.
58675
58676 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
58677
58678         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
58679         obsolescent AC_TRY_RUN.  Include the default includes files, for
58680         'exit'.
58681
58682 2005-07-24  Bruno Haible  <bruno@clisp.org>
58683
58684         * modules/visibility: New file.
58685         * MODULES.html.sh (Misc): Add visibility.
58686
58687 2005-07-24  Bruno Haible  <bruno@clisp.org>
58688
58689         * m4/visibility.m4: New file.
58690
58691 2005-07-24  Bruno Haible  <bruno@clisp.org>
58692
58693         * doc/visibility.texi: New file.
58694
58695 2005-07-22  Bruno Haible  <bruno@clisp.org>
58696
58697         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
58698         $(ALLOCA_H), redundant through BUILT_SOURCES.
58699         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
58700         redundant through BUILT_SOURCES.
58701         * modules/byteswap (Makefile.am): Remove explicit dependency on
58702         $(BYTESWAP_H), redundant through BUILT_SOURCES.
58703         * modules/fnmatch (Makefile.am): Remove explicit dependency on
58704         $(FNMATCH_H), redundant through BUILT_SOURCES.
58705         * modules/getopt (Makefile.am): Remove explicit dependency on
58706         $(GETOPT_H), redundant through BUILT_SOURCES.
58707         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
58708         redundant through BUILT_SOURCES.
58709         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
58710         redundant through BUILT_SOURCES.
58711         * modules/stdbool (Makefile.am): Remove explicit dependency on
58712         $(STDBOOL_H), redundant through BUILT_SOURCES.
58713         * modules/stdint (Makefile.am): Remove explicit dependency on
58714         $(STDINT_H), redundant through BUILT_SOURCES.
58715         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
58716         Remove explicit dependency on $(SYSEXITS_H).
58717         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
58718
58719 2005-07-18  Simon Josefsson  <jas@extundo.com>
58720
58721         * lib/check-version.c (check_version): Accept identical versions too.
58722
58723 2005-07-18  Bruno Haible  <bruno@clisp.org>
58724
58725         * modules/lock: New file.
58726         * MODULES.html.sh (Multithreading): New section.
58727
58728 2005-07-18  Bruno Haible  <bruno@clisp.org>
58729
58730         * m4/lock.m4: New file, from GNU gettext.
58731
58732 2005-07-18  Bruno Haible  <bruno@clisp.org>
58733
58734         * lib/lock.h: New file, from GNU gettext.
58735         * lib/lock.c: New file, from GNU gettext.
58736
58737 2005-07-18  Bruno Haible  <bruno@clisp.org>
58738
58739         * lib/lock.h (gl_once_t): New type.
58740         (gl_once_define, gl_once): New macros.
58741         * lib/lock.c (fresh_once): New variable.
58742         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
58743         functions.
58744
58745 2005-07-16  Simon Josefsson  <jas@extundo.com>
58746
58747         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
58748         workaround, suggested by Bruno.
58749
58750 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
58751
58752         * modules/xalloc (Depends-on): Add xalloc-die.
58753         * modules/xvasprintf (Depends-on): Add xalloc-die.
58754
58755 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
58756
58757         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
58758         with a minor change.
58759
58760 2005-07-15  Bruno Haible  <bruno@clisp.org>
58761
58762         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
58763         When using lib/poll.c, define poll as rpl_poll.
58764
58765 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
58766
58767         * modules/argp (Depends-on): Remove unlocked-io.
58768
58769 2005-07-14  Derek Price  <derek@ximbiot.com>
58770
58771         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
58772         for glob symlink bug.
58773
58774 2005-07-14  Bruno Haible  <bruno@clisp.org>
58775
58776         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
58777         Instead, test for *_unlocked function declarations directly.
58778
58779 2005-07-11  Simon Josefsson  <jas@extundo.com>
58780
58781         * modules/size_max: New file.
58782
58783         * modules/xsize: Depend on size_max module for size_max.m4.
58784
58785 2005-07-11  Simon Josefsson  <jas@extundo.com>
58786
58787         * lib/size_max.h: New file.
58788
58789 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
58790
58791         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
58792         copyright symbol and the year.
58793         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
58794         (version_etc_va): Use parameterized copyright notice.
58795         Reword to conform to the current GNU coding standards.
58796
58797 2005-07-11  Karl Berry  <karl@gnu.org>
58798
58799         * doc/gnulib.texi (Quoting): new node.
58800         (Initial import): more info, from Patrice.
58801
58802 2005-07-11  Bruno Haible  <bruno@clisp.org>
58803
58804         * gnulib-tool (func_usage): Document option --avoid.
58805         (Command line options): Handle --avoid.
58806         (func_acceptable): New function.
58807         (func_modules_transitive_closure): Use it.
58808
58809 2005-07-11  Bruno Haible  <bruno@clisp.org>
58810
58811         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
58812         Reported by Jim Meyering.
58813
58814 2005-07-10  Bruno Haible  <bruno@clisp.org>
58815
58816         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
58817         Needed when size_t is smaller than 'unsigned int'.
58818         Reported by Paul Eggert.
58819
58820 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
58821
58822         * modules/argp (Depends-on): Add unlocked-io
58823
58824 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
58825
58826         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
58827         block of defines.
58828
58829 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
58830
58831         * config/srclist.txt: Comment out regcomp.c, since we have a porting
58832         fix now.
58833
58834 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
58835         and Paul Eggert  <eggert@cs.ucla.edu>
58836
58837         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
58838         in wint_t, not wchar_t.  Remove now-unnecessary cast.
58839
58840 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
58841
58842         * modules/regex (Files): Add lib/regex_internal.c,
58843         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
58844         (Depends-on): Add extensions.
58845         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
58846
58847 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
58848
58849         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
58850         pathconf.
58851         * m4/same.m4 (gl_SAME): Likewise.
58852         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
58853
58854         * m4/regex.m4: Adjust to new libc regex implementation.
58855         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
58856         all the .c and .h parts of (the new) regex.
58857         Quote the m4 stuff better.
58858         Check for RE_ICASE bug of old gnulib.
58859         Check for REG_STARTEND of recent libc.
58860         Rename local variables from jm_* to gl_*.
58861         Quote operand of "test -f".
58862         Say "recent enough" version of libc, not "version 2".
58863         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
58864         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
58865         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
58866         Remove check for btowc, isascii.
58867         Require AM_LANGINFO_CODESET.
58868
58869 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
58870
58871         * lib/regex.c, regex.h: Sync from libc.
58872         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
58873         * lib/regexec.c:
58874         New files, synced from libc, except that regex_internal.h
58875         currently has a small porting fix.
58876
58877 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
58878
58879         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
58880         regex_internal.c, regexec.c.
58881         Add regex_internal.h too, but as a comment, since the libc version
58882         is currently broken in gnulib mode.
58883
58884 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
58885
58886         Support programs like Emacs that use gnulib but not gettext.
58887         * MODULES.html.sh (Internationalization functions): Add gettext-h.
58888         * modules/gettext-h: New file.
58889         * modules/gettext (Files): Remove lib/gettext.h.
58890         (Depends-on): Add gettext-h.
58891         (Makefile.am): Remove lib_SOURCES.
58892         * modules/argmatch, modules/c-stack, modules/closeout:
58893         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
58894         * modules/execute, modules/file-type, modules/getaddrinfo:
58895         * modules/getopt, modules/human, modules/javacomp:
58896         * modules/javaexec, modules/mkdir-p, modules/obstack:
58897         * modules/openat, modules/pagealign_alloc, modules/pipe:
58898         * modules/quotearg, modules/regex, modules/rpmatch:
58899         * modules/unicodeio, modules/userspec, modules/version-etc:
58900         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
58901         * modules/xsetenv:
58902         Depend on gettext-h, not gettext.
58903
58904 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
58905
58906         * gnulib-tool (func_import): Add support for 'public domain' license.
58907         * modules/alloca, modules/atexit, modules/memmove:
58908         Now public domain, not GPL.
58909         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
58910         * modules/realloc, modules/strerror, modules/strtod:
58911         Now LGPL, not GPL.
58912
58913 2005-07-05  Bruno Haible  <bruno@clisp.org>
58914
58915         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
58916         autoconf CVS. Needed for mingw.
58917
58918 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
58919
58920         Remove the dependency of the strftime module on the tzset module.
58921         * modules/strftime (Depends-on): Remove dependency on tzset.
58922
58923 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
58924
58925         Remove the dependency of the strftime module on the tzset module.
58926         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
58927         gl_FUNC_TZSET_CLOBBER.
58928
58929 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
58930
58931         Remove the dependency of the strftime module on the tzset module.
58932         * lib/strftime.c (my_strftime)
58933         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
58934         Copy the input structure, to work around some of the bug with
58935         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
58936         Solaris releases, you should also use the tzset module, but we won't
58937         require it as a dependency any more since we don't want LGPLed code
58938         to depend on GPLed code.
58939
58940 2005-07-02  Jim Meyering  <jim@meyering.net>
58941
58942         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
58943         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
58944         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
58945         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
58946
58947 2005-07-02  Jim Meyering  <jim@meyering.net>
58948
58949         * lib/backupfile.c (backup_args): Change a `0' to NULL.
58950
58951 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
58952
58953         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
58954         declares only 'struct timespec;' (!).
58955
58956 2005-07-01  Jim Meyering  <jim@meyering.net>
58957
58958         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
58959         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
58960         * lib/save-cwd.c, tempname.c:
58961         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
58962         and don't include <sys/file.h>).
58963
58964 2005-06-29  Jim Meyering  <jim@meyering.net>
58965
58966         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
58967         type name.  Use the variable name instead.
58968         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
58969         Likewise.
58970
58971 2005-06-28  Simon Josefsson  <jas@extundo.com>
58972
58973         * modules/check-version (Files): Add check-version.m4.
58974
58975 2005-06-28  Simon Josefsson  <jas@extundo.com>
58976
58977         * m4/check-version.m4: New file, suggested by Jim Meyering
58978         <jim@meyering.net>.
58979
58980 2005-06-28  Simon Josefsson  <jas@extundo.com>
58981
58982         * lib/check-version.h, lib/check-version.c: New files.
58983
58984 2005-06-28  Simon Josefsson  <jas@extundo.com>
58985
58986         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
58987         collision with global variable.  Better indentation.  Don't
58988         increment buffer pointer beyond buffer end.  Based on comments
58989         from Paul Eggert <eggert@cs.ucla.edu>.
58990
58991         * lib/base64.h: Indent.
58992
58993 2005-06-28  Simon Josefsson  <jas@extundo.com>
58994
58995         * doc/gnulib.texi (Library version handling): New section.
58996
58997 2005-06-28  Jim Meyering  <jim@meyering.net>
58998
58999         * check-module (find_included_lib_files): Hard-code another
59000         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
59001         but modules/fts-lgpl (correctly) does not list those files.
59002
59003         * modules/canonicalize (Files): Add lib/pathmax.h.
59004
59005 2005-06-25  Simon Josefsson  <jas@extundo.com>
59006
59007         * modules/check-version: New file.
59008
59009 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
59010
59011         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
59012         initializer of struct addrinfo, as an indication that we don't
59013         care how many members the structure has.
59014
59015 2005-06-24  Derek Price  <derek@ximbiot.com>
59016         and Bruno Haible  <bruno@clisp.org>
59017
59018         Remove stat module & update lstat.
59019         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
59020         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
59021         * m4/stat.m4: Remove this file.
59022
59023 2005-06-24  Derek Price  <derek@ximbiot.com>
59024         and Bruno Haible  <bruno@clisp.org>
59025
59026         Remove stat module & update lstat.
59027         * lib/stat.c: Remove this file...
59028         (slash_aware_lstat): ...moving this content and its support...
59029         * lib/lstat.c (rpl_lstat): ...into here.
59030         * lib/lstat.h: New file.
59031
59032 2005-06-24  Derek Price  <derek@ximbiot.com>
59033         and Bruno Haible  <bruno@clisp.org>
59034
59035         Remove stat module & update lstat.
59036         * config/srclist.txt (libc sources): Remove stat.
59037
59038 2005-06-24  Derek Price  <derek@ximbiot.com>
59039         and Bruno Haible  <bruno@clisp.org>
59040
59041         Remove stat module & update lstat.
59042         * MODULES.html.sh (stat): Remove.
59043         * MODULES.html: Regenerated.
59044         * modules/lstat (Description): Correct function name.
59045         (Files): Add "lstat.h".
59046         (Depends-on): Remove stat, add xalloc, stat-macros.
59047         * modules/stat: Remove this file.
59048         (Include): Add "lstat.h", remove <sys/stat.h>.
59049
59050 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
59051
59052         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
59053         (ranged_convert): Don't save conversion in a temporary struct.
59054         This causes a warning with GCC 4.0.0, and anyway in the typical
59055         case it's not worth the extra 100 bytes or so of code.
59056         (ranged_convert, __mktime_internal): When calling a function via a
59057         pointer P, use P () rather than (*P) (), as we now assume C89 or
59058         better.
59059
59060 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
59061
59062         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
59063         "who -r" failed to give output.  Problem reported by Tim Waugh.
59064
59065         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
59066         (xcalloc): Use it to avoid needless tests.
59067         Problem reported by Jim Meyering.
59068
59069 2005-06-20  Derek Price  <derek@ximbiot.com>
59070
59071         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
59072         unnecessary for Autoconfs > 2.59c.
59073
59074 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
59075
59076         * lib/argp.h (__option_is_short): Check upper limit of
59077         __key. Isprint() requires its argument to have the value
59078         of an unsigned char or EOF.
59079
59080 2005-06-16  Jim Meyering  <jim@meyering.net>
59081
59082         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
59083         when either N or S is zero.
59084
59085 2005-06-16  Derek Price  <derek@ximbiot.com>
59086
59087         * m4/bison.m4: Declare YACC & YFLAGS precious.
59088
59089 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
59090
59091         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
59092         multibyte string or pattern, fall back on unibyte matching.
59093         Problem reported by James Youngman.
59094
59095 2005-06-08  Bruno Haible  <bruno@clisp.org>
59096
59097         * modules/csharpcomp: New file.
59098         * MODULES.html.sh (C#): Add csharpcomp.
59099
59100 2005-06-08  Bruno Haible  <bruno@clisp.org>
59101
59102         * m4/csharpcomp.m4: New file, from GNU gettext.
59103
59104 2005-06-08  Bruno Haible  <bruno@clisp.org>
59105
59106         * lib/csharpcomp.h: New file, from GNU gettext.
59107         * lib/csharpcomp.c: New file, from GNU gettext.
59108         * lib/csharpcomp.sh.in: New file, from GNU gettext.
59109
59110 2005-06-08  Bruno Haible  <bruno@clisp.org>
59111
59112         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
59113         warning on mingw.
59114
59115 2005-06-07  Derek Price  <derek@ximbiot.com>
59116
59117         Sync from CVS.
59118         * lib/glob_.h: Indent nested #ifdef.
59119
59120 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
59121
59122         Sync from coreutils.
59123         Use "file name" when talking about file names, instead of "filename"
59124         or "path", as per the GNU coding standards.
59125         * lib/mkdir-p.c: Renamed from makepath.c.
59126         (make_dir_parents): Renamed from make_path.  All callers changed.
59127         * lib/mkdir-p.h: Likewise.  All includers changed.
59128         * lib/filenamecat.c: Renamed from path-concat.c.
59129         (file_name_concat): Renamed from path_concat.  All callers changed.
59130         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
59131         * lib/filenamecat.h: Likewise.  All includers changed.
59132         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
59133         in comments or local variable names.
59134         * lib/basename.c: Likewise.
59135         * lib/canonicalize.c, canonicalize.h: Likewise.
59136         * lib/dirname.c, dirname.h: Likewise.
59137         * lib/euidaccess.c: Likewise.
59138         * lib/exclude.c: Likewise
59139         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
59140         * lib/fsusage.c, fsuage.h: Likewise.
59141         * lib/fts.c, fts_.h: Likewise.
59142         * lib/getcwd.c: Likewise.
59143         * lib/getloadavg.c: Likewise.
59144         * lib/mkstemp.c: Likewise.
59145         * lib/mountlist.c, mountlist.h: Likewise.
59146         * lib/openat.c, openat.h: Likewise.
59147         * lib/readlink-stub.c: Likewise.
59148         * lib/readutmp.c, readutmp.h: Likewise.
59149         * lib/rename.c: Likewise.
59150         * lib/rmdir.c: Likewise.
59151         * lib/same.c: Likewise.
59152         * lib/savedir.c: Likewise.
59153         * lib/stripslash.c: Likewise.
59154         * lib/tempname.c: Likewise.
59155         * lib/xreadlink.c: Likewise.
59156         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
59157         All uses changed.
59158         * lib/exclude.h: Likewise.
59159
59160         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
59161         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
59162         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
59163         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
59164         * lib/pathmax.h: Include <limits.h> unconditionally, since other
59165         files have been getting away with it for years (MORE/BSD 4.3
59166         is extinct now).
59167         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
59168         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
59169
59170         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
59171         Define to 256, not 255, as per modern POSIX.
59172
59173 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
59174
59175         Sync from coreutils.
59176         Use "file name" when talking about file names, instead of "filename"
59177         or "path", as per the GNU coding standards.
59178         * MODULES.html.sh: mkdir-p renamed from makepath.
59179         filenamecat renamed from path-concat.
59180         * modules/filenamecat: Renamed from modules/path-concat.
59181         (Files): filenamecat.h and filenamecat.c renamed from
59182         path-concat.h and path-concat.c.
59183         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
59184         (Include): filenamecat.h, not path-concat.h.
59185         * modules/mkdir-p: Renamed from modules/makepath.
59186         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
59187         makepath.c.
59188         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
59189         (Include): mkdir-p.h, not makepath.h.
59190
59191 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
59192
59193         Sync from coreutils.
59194         * m4/mkdir-p.m4: Renamed from makepath.m4.
59195         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
59196         Rename files from makepath.c to mkdir-p.c, and from
59197         makepath.h to mkdir-p.h.
59198         * m4/filenamecat.m4: Renamed from path-concat.m4.
59199         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
59200         Rename files from path-concat.c to filenamecat.c,
59201         and from path-concat.h to filenamecat.h.
59202         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
59203         "file name" in local variables or comments.
59204         * m4/rename.m4: Likewise.
59205
59206 2005-06-01  Bruno Haible  <bruno@clisp.org>
59207
59208         * modules/csharpexec: New file.
59209         * MODULES.html.sh (C#): New section.
59210
59211 2005-06-01  Bruno Haible  <bruno@clisp.org>
59212
59213         * m4/csharp.m4: New file, from GNU gettext.
59214         * m4/csharpexec.m4: New file, from GNU gettext.
59215
59216 2005-06-01  Bruno Haible  <bruno@clisp.org>
59217
59218         * lib/csharpexec.h: New file, from GNU gettext.
59219         * lib/csharpexec.c: New file, from GNU gettext.
59220         * lib/csharpexec.sh.in: New file, from GNU gettext.
59221
59222 2005-05-31  Derek Price  <derek@ximbiot.com>
59223             Paul Eggert  <eggert@cs.ucla.edu>
59224
59225         Sync from cvs.
59226         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
59227
59228 2005-05-31  Derek Price  <derek@ximbiot.com>
59229             Paul Eggert  <eggert@cs.ucla.edu>
59230
59231         Sync from cvs.
59232         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
59233
59234 2005-05-29  Derek Price  <derek@ximbiot.com>
59235
59236         * config/srclist.txt (glob_.h, glob.c): Add these files.
59237
59238 2005-05-29  Derek Price  <derek@ximbiot.com>
59239
59240         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
59241         * modules/glob: New file.
59242         * modules/getlogin_r: Add link to POSIX spec in description.
59243
59244 2005-05-29  Derek Price  <derek@ximbiot.com>
59245             Paul Eggert  <eggert@cs.ucla.edu>
59246
59247         * m4/glob.m4: New file.
59248
59249 2005-05-29  Derek Price  <derek@ximbiot.com>
59250             Paul Eggert  <eggert@cs.ucla.edu>
59251
59252         * lib/glob_.h, lib/glob.c: New files.
59253
59254 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
59255
59256         * modules/fts (Files): Remove m4/inttypes-pri.m4.
59257         * modules/fts-lgpl (Depends-on): Remove gettext.
59258
59259 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
59260
59261         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
59262         and don't require gt_INTTYPES_PRI.
59263
59264 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
59265
59266         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
59267
59268         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
59269         the configuration hassle isn't worth it.
59270         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
59271         (LONGEST_MODIFIER, PRIuMAX): Remove.
59272
59273 2005-05-27  Bruno Haible  <bruno@clisp.org>
59274
59275         * lib/getlogin_r.h: Remove second include of <stddef.h>.
59276
59277 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
59278
59279         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
59280         _POSIX_PTHREAD_SEMANTICS for Solaris.
59281
59282 2005-05-25  Derek Price  <derek@ximbiot.com>
59283
59284         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
59285
59286 2005-05-25  Derek Price  <derek@ximbiot.com>
59287             Paul Eggert  <eggert@cs.ucla.edu>
59288
59289         * modules/getlogin_r, m4/getlogin_r.m4: New files.
59290         * lib/getlogin_r.c, getlogin_r.h: New files.
59291
59292 2005-05-25  Bruno Haible  <bruno@clisp.org>
59293             Derek Price  <derek@ximbiot.com>
59294
59295         * lib/getlogin_r.h: Simplify API documentation.
59296
59297 2005-05-23  Derek Price  <derek@ximbiot.com>
59298
59299         * modules/minmax (Files): Add m4/minmax.m4.
59300         (configure.ac): Add gl_MINMAX.
59301
59302 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
59303
59304         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
59305         so that unistd-safer.h (GPL'ed code) need not be included.
59306
59307 2005-05-22  Bruno Haible  <bruno@clisp.org>
59308
59309         * m4/minmax.m4: New file.
59310         Based on a patch by Derek Price <derek@ximbiot.com>.
59311
59312 2005-05-22  Bruno Haible  <bruno@clisp.org>
59313
59314         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
59315         (INT64_MIN): Fix definition.
59316         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
59317
59318         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
59319         NEED_SIGNED_INT_TYPES.
59320
59321         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
59322         HAVE_SYSTEM_INTTYPES.
59323
59324 2005-05-22  Bruno Haible  <bruno@clisp.org>
59325
59326         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
59327         Also include <sys/param.h> if it defines MIN, MAX.
59328         Based on a patch by Derek Price <derek@ximbiot.com>.
59329
59330 2005-05-21  Jim Meyering  <jim@meyering.net>
59331
59332         * modules/fts (Files): Add m4/inttypes-pri.m4.
59333         (Depends-on): Add lstat and remove gettext.  Alphabetize.
59334
59335 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
59336
59337         New fts module.
59338         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
59339         (setup_dir, free_dir): New functions.
59340         (enter_dir, leave_dir): Define trivial
59341         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
59342         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
59343         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
59344         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
59345         Move to fts-cycle.c.
59346         (fts_open): Use setup_dir.
59347         (fts_close): Use free_dir.
59348         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
59349         This adds a label and some gotos, but the alternatives were messier.
59350         Check for memory allocation failure when entering a dir.
59351         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
59352         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
59353         (FTS): New member fts_cycle, that is a union that contains the
59354         old active_dir_ht and cycle_state.  All uses changed to mention
59355         fts_cycle.ht and fts_cycle.state.
59356         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
59357         fts.c, with the following changes:
59358         (setup_dir, free_dir): New functions.
59359         (enter_dir): Now returns bool.  Return true if successful, false
59360         if memory exhausted.  All callers changed.
59361         Do not bother partly cleaning up on
59362         memory allocation failure; that is free_dir's job.
59363         However, free ad if hash_insert fails, to avoid memory leak.
59364         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
59365         fts->fts_options to see which union member to use.
59366
59367 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
59368
59369         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
59370         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
59371
59372 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
59373
59374         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
59375
59376 2005-05-20  Jim Meyering  <jim@meyering.net>
59377
59378         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
59379         Now a macro, to pacify GCC.
59380
59381 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
59382
59383         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
59384         of -1.
59385
59386 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
59387
59388         * lib/chown.c (rpl_chown): Return -1 on failure.
59389
59390 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
59391
59392         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
59393         Don't check for stddef.h.
59394         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
59395         don't use its results.
59396         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
59397         since we include them unconditionally.  Don't require
59398         AM_STDBOOL_H, since stdbool is a prerequisite.
59399         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
59400         since we assume C89 or better.
59401         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
59402         as we don't use their results.
59403         Don't check for fchdir, memmove, memset, strrchr, as we use
59404         them unconditionally.
59405         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
59406         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
59407
59408 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
59409
59410         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
59411         Include <stddef.h> unconditionally, since we assume C89 now.
59412         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
59413         * lib/fts.c: Include fts_.h first, to check interface.
59414         Do not include intprops.h; no longer needed.
59415         Include cycle-check.h and hash.h, since fts_.h no longer does.
59416         Remove unnecessary casts of closedir to void.
59417         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
59418         decide whether to decrement nlinks.
59419         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
59420         (FTS): Use struct hash_table * instead of Hash_table, so that
59421         we no longer need to include hash.h here.
59422
59423 2005-05-18  Jim Meyering  <jim@meyering.net>
59424
59425         * modules/dirfd (License): Change to LGPL.  Most of the code
59426         is already in the public domain.
59427
59428 2005-05-18  Jim Meyering  <jim@meyering.net>
59429
59430         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
59431         Reported by Yoann Vandoorselaere.
59432
59433 2005-05-17  Jim Meyering  <jim@meyering.net>
59434
59435         * m4/fts.m4: New file, from coreutils.
59436
59437 2005-05-17  Jim Meyering  <jim@meyering.net>
59438
59439         * lib/fts.c, lib/fts_.h: New files, from coreutils.
59440
59441 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
59442
59443         Sync from coreutils.
59444         * m4/unlinkdir.m4: New file.
59445
59446 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
59447
59448         Sync from coreutils.
59449         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
59450         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
59451         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
59452         White space changes only.
59453         * lib/makepath.c (make_path): Port to hosts where leading "//" is
59454         special.
59455         * lib/yesno.c: Include getline.h, not ctype.h.
59456         (yesno): Don't remove leading white space; POSIX doesn't allow it.
59457         Use getline to remove arbitrary restriction on response length.
59458
59459 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
59460
59461         * config/srclist-update: Spell out "Street" in FSF postal
59462         mail address; this is the style the FSF seems to prefer.
59463
59464         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
59465         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
59466         this updates FSF postal mail address.
59467
59468         Sync from coreutils.
59469         * modules/unlinkdir: New file.
59470         * modules/yesno (Depends-on): Add getline.
59471         * MODULES.html.sh (File system functions): Add unlinkdir.
59472
59473 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
59474
59475         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
59476         lib/strsep.h:
59477         Change the initial comment to refer to GPL, not LGPL.
59478         gnulib-tool will change it to LGPL as needed.
59479
59480         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
59481         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
59482         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
59483         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
59484         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
59485         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
59486         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
59487         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
59488         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
59489         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
59490         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
59491         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
59492         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
59493         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
59494         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
59495         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
59496         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
59497         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
59498         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
59499         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
59500         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
59501         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
59502         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
59503         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
59504         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
59505         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
59506         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
59507         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
59508         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
59509         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
59510         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
59511         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
59512         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
59513         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
59514         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
59515         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
59516         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
59517         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
59518         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
59519         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
59520         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
59521         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
59522         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
59523         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
59524         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
59525         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
59526         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
59527         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
59528         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
59529         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
59530         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
59531         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
59532         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
59533         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
59534         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
59535         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
59536         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
59537         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
59538         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
59539         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
59540         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
59541         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
59542         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
59543         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
59544         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
59545         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
59546         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
59547         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
59548         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
59549         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
59550         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
59551         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
59552         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
59553         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
59554         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
59555         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
59556         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
59557         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
59558         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
59559         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
59560         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
59561         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
59562         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
59563         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
59564         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
59565         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
59566         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
59567         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
59568         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
59569         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
59570         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
59571         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
59572         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
59573         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
59574         lib/yesno.c, lib/yesno.h:
59575         Update FSF postal mail address.
59576
59577 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
59578
59579         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
59580         tests/test-memmem.c, tests/test-stpncpy.c:
59581         Update FSF postal mail address.
59582
59583 2005-05-13  Bruno Haible  <bruno@clisp.org>
59584
59585         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
59586         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
59587         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
59588         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
59589         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
59590         Add support for 64-bit integers in the MSVC compiler.
59591
59592 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
59593
59594         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
59595
59596 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
59597
59598         * gnulib-tool (func_import): Sort and uniquify recommended includes.
59599
59600 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
59601
59602         * doc/getdate.texi (General date syntax): Don't say that date
59603         date --iso-8601=ns generates acceptable dates; it doesn't yet.
59604         Problem reported by Nic Ferrier.
59605
59606 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59607
59608         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
59609         specified in ai_socktype. Fix invalid ai_protocol
59610         check. ai_protocol is usually set to 0 or depending on
59611         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
59612         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
59613         ai_socktype / ai_protocol in the returned addrinfo structure.
59614
59615 2005-05-10  Simon Josefsson  <jas@extundo.com>
59616
59617         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
59618         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
59619
59620 2005-05-10  Karl Berry  <karl@gnu.org>
59621
59622         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
59623         (from http://www.gnu.org/licenses).
59624         * doc/COPYING.LIB: also rename to COPYING.LESSER.
59625         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
59626         fdl.texi suffices.
59627
59628 2005-05-10  Karl Berry  <karl@gnu.org>
59629
59630         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
59631         (COPYING.DOC): remove.
59632
59633         * config/srclist-update: new FSF address.
59634
59635 2005-05-10  Derek Price  <derek@ximbiot.com>
59636
59637         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
59638         possible.
59639
59640 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59641             Bruno Haible  <bruno@clisp.org>
59642
59643         * modules/inet_ntop: New file.
59644         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
59645         inet_ntop.
59646
59647 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59648             Bruno Haible  <bruno@clisp.org>
59649
59650         * m4/inet_ntop.m4: New file.
59651
59652 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59653             Bruno Haible  <bruno@clisp.org>
59654
59655         * lib/inet_ntop.h: New file.
59656         * lib/inet_ntop.c: New file, from glibc with modifications.
59657
59658 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
59659
59660         * modules/time_r (License): Change to LGPL.
59661         * modules/extensions (License): Change to LGPL.  Actually,
59662         the license is more permissive than that, but currently gnulib-tool
59663         doesn't know how to handle more-permissive licenses.
59664
59665         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
59666         Problem reported by Dave Love.
59667
59668 2005-05-08  Jim Meyering  <jim@meyering.net>
59669
59670         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
59671         blank.
59672
59673 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
59674
59675         * modules/argmatch (Depends-on): Add stdbool.
59676         * modules/backupfile (Depends-on): Likewise.
59677         * modules/chdir-long (Depends-on): Likewise.
59678         * modules/closeout (Depends-on): Likewise.
59679         * modules/cycle-check (Depends-on): Likewise.
59680         * modules/dirname (Depends-on): Likewise.
59681         * modules/fnmatch (Depends-on): Likewise.
59682         * modules/fsusage (Depends-on): Likewise.
59683         * modules/fwriteerror (Depends-on): Likewise.
59684         * modules/getcwd (Depends-on): Likewise.
59685         * modules/getloadavg (Depends-on): Likewise.
59686         * modules/hard-locale (Depends-on): Likewise.
59687         * modules/makepath (Depends-on): Likewise.
59688         * modules/mountlist (Depends-on): Likewise.
59689         * modules/nanosleep (Depends-on): Likewise.
59690         * modules/posixtm (Depends-on): Likewise.
59691         * modules/quotearg (Depends-on): Likewise.
59692         * modules/readtokens (Depends-on): Likewise.
59693         * modules/readtokens0 (Depends-on): Likewise.
59694         * modules/readutmp (Depends-on): Likewise.
59695         * modules/save-cwd (Depends-on): Likewise.
59696         * modules/strftime (Depends-on): Likewise.
59697         * modules/userspec (Depends-on): Likewise.
59698         * modules/utimecmp (Depends-on): Likewise.
59699         * modules/xgetcwd (Depends-on): Likewise.
59700         * modules/xnanosleep (Depends-on): Likewise.
59701         * modules/xstrtod (Depends-on): Likewise.
59702         * modules/yesno (Depends-on): Likewise.
59703
59704 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
59705
59706         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
59707         needless checks.
59708
59709 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
59710
59711         Merge from coreutils.  Among other things,
59712         add bulletproofing for cases where stdin, stdout, or stderr are closed.
59713         * lib/fd-safer.c: New file.
59714         * lib/fcntl-safer.h, open-safer.c: Remove.
59715         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
59716         * lib/dup-safer.c: Include unistd-safer.h first.
59717         Don't include errno.h.
59718         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
59719         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
59720         * lib/file-type.c: Rely on file-type.h change.
59721         * lib/getloadavg.c: Include unistd-safer.h.
59722         (getloadavg): Use safer open.
59723         * lib/getusershell.c: Include "stdio-safer.h".
59724         (getusershell): Use safer fopen.
59725         * lib/long-options.c (long_options): Use NULL rather than 0.
59726         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
59727         'free'.
59728         * lib/modechange.c: Likewise.
59729         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
59730         (MODE_DONE): New constant.
59731         (struct mode_change): Remove 'next' member.
59732         (make_node_op_equals): New function; like the old one of the
59733         same name, except it allocates an array.
59734         (mode_compile, mode_create_from_ref): Use it.
59735         (mode_compile): Allocate result as an array, not a linked list.
59736         Parse octal string ourself, so that we catch mistakes like "+0".
59737         (mode_adjust): Arg is an array, not a linked list.
59738         * lib/modechange.c: Include stat-macros.h, xalloc.h.
59739         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
59740         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
59741         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
59742         Remove.  This is now stat-macros.h's job.
59743         (talloc): Remove.  All callers replaced by xalloc, so that
59744         our invokers don't have to worry about reporting memory failures.
59745         (make_node_op_equals): Remove.
59746         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
59747         New constants.
59748         (struct mode_change): Moved here from modechange.h.
59749         (mode_append_entry): Remove.
59750         (mode_compile): Remove MASKED_OPS arg, since it encouraged
59751         apps to have incorrect behavior.  Use simpler algorithm for head
59752         and tail.  Don't futz with umask; that's now the job of mode_adjust.
59753         Detect more invalid usages rather than having somewhat-random behavior.
59754         Don't insert an "a=" action, as that leads to incorrect behavior.
59755         (mode_compile, mode_create_from_ref): Return NULL on error instead
59756         of an enum, since now there's only one way to have an error.  All
59757         callers changed.
59758         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
59759         at the correct time.  Simplify calculation of "+u" and its ilk.
59760         Don't mishandle "+X".
59761         (mode_free): Remove "register" and localize decls.
59762         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
59763         (struct mode_change): Move to modechange.c; callers don't
59764         need to see this stuff.
59765         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
59766         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
59767         (mode_change, mode_adjust): Reflect the new signatures noted above.
59768         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
59769         that might redefine system include files.
59770         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
59771         (my_usleep): Use NULL rather than (void *) 0.
59772         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
59773         Use siginterrupt to specify that system calls should be interrupted.
59774         (rpl_nanosleep): Move initialization of suspended closer to call of
59775         my_usleep.
59776         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
59777         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
59778         (desirable_utmp_entry): New function.
59779         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
59780         using x2nrealloc, to simplify logic.
59781         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
59782         size calculation.  Do not assume utmp file is a regular file.
59783         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
59784         (READ_UTMP_CHECK_PIDS): New constant.
59785         * lib/save-cwd.c: Include unistd-safer.h.
59786         (save_cwd): Use fd_safer.
59787         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
59788         [!_LIBC] Include "stat-macros.h" instead.
59789         * lib/unistd-safer.h (fd_safer): New decl.
59790
59791 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
59792
59793         * modules/getloadavg (Depends-on): Add unistd-safer.
59794         * modules/getusershell (Depends-on): Add stdio-safer.
59795         * modules/lstat (Depends-on): Remove xalloc.
59796         * modules/mkstemp (Depends-on): Add stat-macros.
59797         * modules/modechange (Depends-on): Remove xstrtol.
59798         Add stat-macros, xalloc.
59799         * modules/save-cwd (Depends-on): Add unistd-safer.
59800         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
59801         * modules/unistd-safer (Files): Add lib/fd-safer.c
59802         (Makefile.am): Remove lib_SOURCES.
59803
59804         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
59805         Remove fcntl-safer; unistd-safer supersedes it.
59806
59807 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
59808
59809         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
59810         AC_HEADER_STAT.
59811         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
59812         (gl_PREREQ_CHOWN): Remove.
59813         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
59814         it.  Don't require AC_HEADER_STAT.
59815         (gl_PREREQ_LSTAT): Remove.
59816         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
59817         Don't require AC_HEADER_STAT.
59818         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
59819         (gl_PREREQ_RMDIR): Remove.
59820         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
59821         mention stat-macros.h or AC_HEADER_STAT, since we'll make
59822         the stat-macros module a prerequisite.
59823         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
59824         * m4/filemode.m4 (gl_FILEMODE): Likewise.
59825         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
59826         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
59827         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
59828         variable names.
59829         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
59830         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
59831         variable prefixes.
59832         * m4/fcntl-safer.m4: Remove.
59833         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
59834         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
59835         Invoke gl_PREREQ_FD_SAFER.
59836         (gl_PREREQ_FD_SAFER): New macro.
59837         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
59838         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
59839         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
59840         Remove duplicate call to AC_LIBOBJ(readutmp).
59841         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
59842
59843         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
59844         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
59845
59846 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
59847
59848         * MODULES.html.sh (Misc): Add byteswap.
59849
59850 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
59851
59852         * modules/getcwd (Depends-on): Add extensions.
59853         * modules/openat (Depends-on): Likewise.
59854
59855 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
59856
59857         * modules/byteswap: New file.
59858
59859 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
59860
59861         * m4/byteswap.m4: New file.
59862
59863 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
59864
59865         * lib/byteswap_.h: New file.
59866
59867 2005-04-25  Karl Berry  <karl@gnu.org>
59868
59869         * m4/gettext.m4: Update from GNU gettext 0.14.4.
59870
59871 2005-04-25  Albert Chin  <china@thewrittenword.com>
59872
59873         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
59874         Toolkit C bug.
59875
59876 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
59877
59878         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
59879         (func_ln_if_changed) Remove forcibly for no error message
59880         in case file does not exist.
59881
59882 2005-04-19  Simon Josefsson  <jas@extundo.com>
59883
59884         * gnulib-tool (Options): Make --symlink mean --symbolic.
59885
59886 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
59887
59888         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
59889
59890 2005-04-16  Simon Josefsson  <jas@extundo.com>
59891
59892         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
59893
59894 2005-04-15  Simon Josefsson  <jas@extundo.com>
59895
59896         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
59897
59898 2005-04-15  Simon Josefsson  <jas@extundo.com>
59899
59900         * gnulib-tool: Rename --symlink to --symbolic.
59901
59902 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
59903
59904         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
59905         symbolic links to files instead of copying/moving.  Add --aux-dir,
59906         specifying directory relative --dir where auxiliary build tools
59907         are placed.
59908
59909 2005-04-14  Bruno Haible  <bruno@clisp.org>
59910
59911         * modules/allocsa (License): Change to LGPL.
59912         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
59913
59914 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
59915
59916         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
59917         that "UTC +1 second" continues to work.  Problem reported
59918         by Dmitry V. Levin.
59919         (relunit_snumber): New rule.
59920         (relunit): Use it.
59921
59922 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
59923
59924         * lib/getdate.y (universal_time_zone_table): New constant.
59925         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
59926         universal_time_zone_table.
59927         (lookup_zone): Prefer universal_time_zone_table to
59928         local_time_zone_table, so that "GMT" time stamps are allowed in
59929         London during the summer.  Problem reported by Ian Abbott.
59930
59931 2005-04-12  Jim Meyering  <jim@meyering.net>
59932
59933         * lib/human.c (humblock): Set *options even when returning due to
59934         xstrtoumax conversion failure.  Thanks to a used-uninitialized
59935         warning from gcc-4.
59936
59937 2005-04-09  Jim Meyering  <jim@meyering.net>
59938
59939         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
59940         -Wuninitialized: initialize tm0.tm_year.
59941
59942 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
59943
59944         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
59945         count, since there's no maximum.  All uses changed.
59946         Add member dsts_seen.
59947         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
59948         not being INT_MAX.
59949         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
59950         Use pc_rels_seen to decide whther a date is absolute.
59951
59952         * lib/getdate.y (number): Don't overwrite year.
59953         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
59954         check.
59955
59956 2005-04-02  Simon Josefsson  <jas@extundo.com>
59957
59958         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
59959         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
59960
59961 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
59962
59963         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
59964         where no absolute path name can be longer than PATH_MAX.
59965
59966 2005-03-27  Jim Meyering  <jim@meyering.net>
59967
59968         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
59969
59970 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
59971
59972         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
59973         "one's complement" -> "ones' complement" in comment, as per Knuth.
59974         "value of type" -> "type or expression" in comment.
59975         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
59976
59977 2005-03-26  Jim Meyering  <jim@meyering.net>
59978
59979         Comment nits.
59980         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
59981         Correct typos: s/or/of/.
59982
59983 2005-03-26  Jim Meyering  <jim@meyering.net>
59984
59985         * modules/check-include-files: Move to ../ and rename to...
59986         * check-module: ...this.
59987
59988 2005-03-25  Jim Meyering  <jim@meyering.net>
59989
59990         * modules/xvasprintf (Files): Add xalloc.h.
59991
59992 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
59993
59994         * modules/gettext (Files): config/config.rpath ->
59995         build-aux/config.rpath
59996         * modules/iconv (Files): Likewise.
59997         Problem reported by Oskar Liljeblad.
59998
59999 2005-03-23  Jim Meyering  <jim@meyering.net>
60000
60001         * modules/check-include-files: New script to check for
60002         missing dependencies, multiple includes, etc.
60003
60004         * modules/c-strtold (Depends-on): Add xalloc.
60005         * modules/c-strtod (Depends-on): Add xalloc.
60006         * modules/hash (Depends-on): Add xalloc.
60007         (Files): Remove lib/xalloc.h.
60008
60009         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
60010         * modules/userspec (Files): Add lib/inttostr.h.
60011
60012 2005-03-23  Jim Meyering  <jim@meyering.net>
60013
60014         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
60015
60016 2005-03-22  Jim Meyering  <jim@meyering.net>
60017
60018         * modules/stat-macros: New module.
60019         * modules/canonicalize, modules/euidaccess, modules/file-type,
60020         * modules/filemode, modules/lchown, modules/makepath,
60021         * modules/rmdir, modules/stat: Depend on new stat-macros module
60022         rather than listing lib/stat-macros.h manually.
60023         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
60024
60025 2005-03-22  Jim Meyering  <jim@meyering.net>
60026
60027         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
60028
60029 2005-03-22  Bruno Haible  <bruno@clisp.org>
60030
60031         * config/srclist.txt: Replace target directory 'config' with
60032         'build-aux'.
60033         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
60034         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
60035         ../build-aux/.
60036
60037 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
60038
60039         * modules/chdir-long (Depends-on): Add mempcpy.
60040
60041         * modules/acl, modules/backupfile, modules/c-strtod,
60042         modules/c-strtold, modules/canon-host, modules/canonicalize,
60043         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
60044         modules/exclude, modules/exitfail, modules/file-type,
60045         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
60046         modules/getdate, modules/getline, modules/getpagesize,
60047         modules/getpass, modules/getugroups, modules/group-member,
60048         modules/hard-locale, modules/hash, modules/human, modules/idcache,
60049         modules/inttostr, modules/long-options, modules/makepath,
60050         modules/md5, modules/memcasecmp, modules/memcoll,
60051         modules/modechange, modules/mountlist, modules/path-concat,
60052         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
60053         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
60054         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
60055         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
60056         modules/strftime, modules/strndup, modules/strverscmp,
60057         modules/timespec, modules/unlocked-io, modules/userspec,
60058         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
60059         modules/yesno:
60060         Remove lib_SOURCES line from Makefile.am section, as this is now
60061         done automatically by the corresponding Autoconf macro.
60062
60063 2005-03-21  Jim Meyering  <jim@meyering.net>
60064
60065         Changes imported from coreutils.
60066
60067         * lib/cycle-check.c: Don't include xalloc.h.
60068
60069         * lib/path-concat.c: Don't include assert.h.
60070         (path_concat): Remove assertion that would have triggered
60071         for ABASE starting with more than one slash.
60072         Reported by Andreas Schwab.
60073
60074         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
60075         properly when ABASE is an absolute file name.
60076         Correct the description of this function.
60077         Include <assert.h>.
60078         Add an assertion and a test driver.
60079         This fixes a bug introduced on 2004-07-02.
60080         Andreas Schwab reported the resulting failure of cp --parents:
60081         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
60082
60083 2005-03-21  Jim Meyering  <jim@meyering.net>
60084
60085         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
60086         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
60087
60088 2005-03-21  Jim Meyering  <jim@meyering.net>
60089         and  Paul Eggert  <eggert@cs.ucla.edu>
60090
60091         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
60092         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
60093         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
60094         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
60095         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
60096         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
60097         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
60098         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
60099         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
60100         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
60101         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
60102         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
60103         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
60104         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
60105         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
60106         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
60107         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
60108         for these modules.
60109
60110 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
60111
60112         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
60113         (which shouldn't happen), generate nothing instead of returning 0
60114         immediately, so that nstrftime (NULL, ...) doesn't return 0.
60115
60116 2005-03-16  Bruno Haible  <bruno@clisp.org>
60117
60118         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
60119         HAVE_LONGLONG_64BIT.
60120
60121 2005-03-16  Bruno Haible  <bruno@clisp.org>
60122
60123         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
60124         HAVE_LONGLONG_64BIT.
60125
60126 2005-03-16  Bruno Haible  <bruno@clisp.org>
60127
60128         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
60129         HAVE_LONGLONG_64BIT.
60130
60131 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
60132
60133         * lib/strftime.c (my_strftime): Prepend space to format so that we can
60134         reliably distinguish strftime failure from empty output on POSIX
60135         hosts.
60136
60137 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
60138
60139         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
60140         (iconv_string): Don't guess a size-zero buffer, as that might cause
60141         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
60142         result would be 'too large', where 'too large' is (heuristically)
60143         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
60144         overflow concerns.  This will prevent some unwanted malloc failures
60145         when the inputs are very large.
60146
60147 2005-03-15  Karl Berry  <karl@gnu.org>
60148
60149         * config/srclist.txt (config.rpath): from gettext.
60150         * config/config.rpath: update.
60151
60152 2005-03-15  Bruno Haible  <bruno@clisp.org>
60153
60154         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
60155         to 'negate'.
60156
60157         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
60158         variable.
60159
60160         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
60161         results.
60162
60163 2005-03-14  Simon Josefsson  <jas@extundo.com>
60164
60165         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
60166         <fx@gnu.org>.
60167
60168 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
60169
60170         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
60171         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
60172         intprops.h.
60173         * lib/strtol.c: Likewise.
60174
60175 2005-03-14  Jim Meyering  <jim@meyering.net>
60176
60177         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
60178         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
60179         to be nonzero so that we (and caller) can detect the difference
60180         between a valid zero-length expansion and an error return, even
60181         when the underlying strftime fails before writing anything into
60182         that location.
60183
60184 2005-03-14  Bruno Haible  <bruno@clisp.org>
60185
60186         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
60187         Update from GNU gettext 0.14.3.
60188
60189 2005-03-10  Jim Meyering  <jim@meyering.net>
60190
60191         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
60192
60193 2005-03-10  Jim Meyering  <jim@meyering.net>
60194
60195         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
60196         so that this module works on systems without fchdir.
60197
60198 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
60199
60200         Factor int-properties macros into a single file, except for
60201         glibc-related files.
60202         * lib/intprops.h: New file.
60203         * lib/getloadavg.c: Include it instead of limits.h.
60204         (INT_STRLEN_BOUND): Remove.
60205         * lib/human.c: Include intprops.h.
60206         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
60207         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
60208         302/1000.
60209         * lib/inttostr.h: Include intprops.h instead of limits.h.
60210         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
60211         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
60212         for consistency with intprops.h.
60213         (time_t_is_integer, twos_complement_arithmetic): Use them.
60214         * lib/sig2str.h: Include <signal.h>, intprops.h.
60215         (INT_STRLEN_BOUND): Remove.
60216         * lib/strftime.c (TYPE_SIGNED): Remove.
60217         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
60218         * lib/strtol.c: Adjust comments to match intprops.h.
60219         * lib/userspec.c: Include intprops.h.
60220         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
60221         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
60222         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
60223         instead of rolling our own expressions.
60224         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
60225
60226         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
60227         instead of int.
60228         (my_strftime): Do not mishandle years close to INT_MAX, by doing
60229         the right thing even if adding 1900 would overflow.  Similarly
60230         for tm_mon + 1 and tm_yday + 1.
60231         Make %Y always equivalent to %C%y, and similarly for %G and %g.
60232         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
60233         (DO_SIGNED_NUMBER): New macro.
60234         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
60235
60236 2005-03-07  Bruno Haible  <bruno@clisp.org>
60237
60238         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
60239
60240 2005-03-07  Bruno Haible  <bruno@clisp.org>
60241
60242         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
60243
60244 2005-03-04  Derek R. Price  <derek@ximbiot.com>
60245
60246         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
60247         (func_import): Only replace files via --import when they have actually
60248         changed.
60249
60250 2005-03-03  Derek R. Price  <derek@ximbiot.com>
60251
60252         * m4/mmap-anon.m4: New file.
60253         * m4/pagealign_alloc.m4: New file.
60254
60255 2005-03-03  Derek R. Price  <derek@ximbiot.com>
60256             Bruno Haible  <bruno@clisp.org>
60257
60258         * modules/pagealign_alloc: New file.
60259         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
60260
60261 2005-03-03  Derek R. Price  <derek@ximbiot.com>
60262             Bruno Haible  <bruno@clisp.org>
60263
60264         * lib/pagealign_alloc.h: New file.
60265         * lib/pagealign_alloc.c: New file.
60266
60267 2005-03-03  Bruno Haible  <bruno@clisp.org>
60268
60269         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
60270         Use an all-permissive copyright notice, recommended by RMS.
60271
60272 2005-03-02  Bruno Haible  <bruno@clisp.org>
60273
60274         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
60275         of AIX, the replacement has to be done only after <string.h> is
60276         included, therefore not in config.h. stpncpy.h does the replacement,
60277         and stpncpy.c uses it.
60278
60279 2005-03-02  Bruno Haible  <bruno@clisp.org>
60280
60281         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
60282         stpncpy.c uses it.
60283
60284 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
60285
60286         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
60287         The workaround isn't strictly needed for POSIX conformance, and
60288         it's too much of a pain to configure and maintain.  We'll ask
60289         people to fix their kernels instead.
60290         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
60291         (NANOSLEEP_BUG_WORKAROUND): Remove.
60292         (xnanosleep): Remove the workaround.
60293
60294 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
60295
60296         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
60297         Reported by Derek Price.
60298         (Include): Add "timespec.h".
60299
60300         * modules/xnanosleep (Depends-on): Remove gethrxtime.
60301
60302 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
60303
60304         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
60305         to detect nanosleep bug.
60306
60307 2005-03-01  Bruno Haible  <bruno@clisp.org>
60308
60309         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
60310
60311 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
60312
60313         * modules/gethrxtime: New file.
60314         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
60315         (Depends-on): Add gethrxtime.
60316         (configure.ac): Add gl_XNANOSLEEP.
60317         (Makefile.am): Remove lib_SOURCES line.
60318
60319 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
60320
60321         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
60322         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
60323
60324 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
60325
60326         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
60327         * lib/timespec.h (gettime): Return void, since it always
60328         succeeds now.  All uses changed.
60329         * lib/gettime.c (gettime) Likewise.
60330         [HAVE_NANOTIME]: Prefer nanotime.
60331         Assume gettimeofday succeeds, as POSIX requires.
60332         Assime time () succeeds, since other code already does.
60333         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
60334         (timespec_subtract): Remove.
60335         (NANOSLEEP_BUG_WORKAROUND): New constant.
60336         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
60337         things considerably.  Use it only on GNU/Linux hosts, since the
60338         workaround shouldn't be needed elsewhere.
60339
60340 2005-02-24  Bruno Haible  <bruno@clisp.org>
60341
60342         * modules/gettext (Files): Add m4/glibc2.m4.
60343
60344 2005-02-24  Bruno Haible  <bruno@clisp.org>
60345
60346         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
60347         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
60348         * m4/progtest.m4:
60349         Update from GNU gettext 0.14.2.
60350         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
60351
60352 2005-02-24  Bruno Haible  <bruno@clisp.org>
60353
60354         * lib/localcharset.c: Update from GNU gettext 0.14.2.
60355         * lib/config.charset: Update from GNU gettext 0.14.2.
60356
60357 2005-02-24  Bruno Haible  <bruno@clisp.org>
60358
60359         * lib/gettext.h: Update from GNU gettext 0.14.2.
60360
60361 2005-02-23  Simon Josefsson  <jas@extundo.com>
60362
60363         * m4/iconvme.m4: New file.
60364
60365 2005-02-23  Jim Meyering  <jim@meyering.net>
60366
60367         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
60368         change.
60369         Thanks to Bruno Haible for catching it.
60370
60371 2005-02-22  Simon Josefsson  <jas@extundo.com>
60372
60373         * modules/iconvme: New file.
60374
60375         * MODULES.html.sh: Add iconvme.
60376
60377 2005-02-22  Simon Josefsson  <jas@extundo.com>
60378
60379         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
60380
60381 2005-02-22  Simon Josefsson  <jas@extundo.com>
60382
60383         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
60384
60385 2005-02-22  Jim Meyering  <jim@meyering.net>
60386
60387         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
60388         s/ifndef/ifdef/.
60389
60390 2005-02-20  Neil Conway  <neilc@samurai.com>
60391
60392         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
60393         returned by OSX/Darwin if the specified buffer is not large
60394         enough for the hostname.
60395
60396 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
60397
60398         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
60399         pass it to _help, otherwise the latter coredumps trying to
60400         dereference state.root_argp.
60401
60402 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
60403
60404         * modules/chdir-long (Depends-on): Add memrchr.
60405         * modules/memrchr (Files): Add lib/memrchr.h.
60406         (Include): "memrchr.h".
60407
60408 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
60409
60410         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
60411
60412 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
60413
60414         * lib/memrchr.h: New file.
60415         * lib/chdir-long.c: Include it.
60416         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
60417         Don't bother including stddef.h.
60418
60419 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
60420
60421         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
60422         inclusion.
60423         Include <sys/types.h>, for dev_t.
60424         (ME_DUMMY, ME_REMOTE): Move from here....
60425         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
60426         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
60427         Dmitry V. Levin.
60428         Include mountlist.h first, to test the interface.
60429
60430 2005-01-29  Bruno Haible  <bruno@clisp.org>
60431
60432         * lib/progname.c (program_name): Initialize.
60433         Needed when linking statically on MacOS X.
60434
60435 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
60436
60437         Sync from coreutils.
60438         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
60439         (Depends-on): Add c-strtod.
60440         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
60441
60442 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
60443
60444         Sync from coreutils.
60445         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
60446
60447         Remove files that are specific to coreutils.
60448         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
60449
60450 2005-01-28  Bruno Haible  <bruno@clisp.org>
60451
60452         * modules/javacomp: New file.
60453         * MODULES.html.sh (Java): Add javacomp.
60454
60455 2005-01-28  Bruno Haible  <bruno@clisp.org>
60456
60457         * m4/javacomp.m4: New file, from GNU gettext.
60458
60459 2005-01-28  Bruno Haible  <bruno@clisp.org>
60460
60461         * lib/javacomp.sh.in: New file, from GNU gettext.
60462         * lib/javacomp.h: New file, from GNU gettext.
60463         * lib/javacomp.c: New file, from GNU gettext.
60464
60465 2005-01-26  Simon Josefsson  <jas@extundo.com>
60466
60467         * lib/gai_strerror.c: Use GPL in header.
60468
60469 2005-01-26  Bruno Haible  <bruno@clisp.org>
60470
60471         * modules/javaexec: New file.
60472         * MODULES.html.sh (Java): Add javaexec.
60473
60474 2005-01-26  Bruno Haible  <bruno@clisp.org>
60475
60476         * m4/javaexec.m4: New file, from GNU gettext.
60477
60478 2005-01-26  Bruno Haible  <bruno@clisp.org>
60479
60480         * lib/javaexec.sh.in: New file, from GNU gettext.
60481         * lib/javaexec.h: New file, from GNU gettext.
60482         * lib/javaexec.c: New file, from GNU gettext.
60483
60484 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
60485
60486         * modules/lchown (Depends-on): Remove lchown.h
60487
60488 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
60489
60490         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
60491         must be defined if the header file was not found, in order
60492         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
60493
60494 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
60495
60496         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
60497         initializers for struct pentry_state.
60498         (__argp_error): Check return value of __asprintf
60499         (__argp_failure): Translate error message
60500
60501         * lib/argp-parse.c: Removed braces around the expansion of N_()
60502
60503 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
60504
60505         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
60506         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
60507         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
60508         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
60509         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
60510         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
60511         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
60512         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
60513         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
60514         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
60515         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
60516         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
60517         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
60518         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
60519         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
60520         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
60521         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
60522         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
60523         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
60524         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
60525         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
60526         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
60527         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
60528         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
60529         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
60530         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
60531         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
60532         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
60533         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
60534         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
60535         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
60536         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
60537         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
60538         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
60539         xstrtol.m4, xstrtoumax.m4, yesno.m4:
60540         Use an all-permissive copyright notice, recommended by RMS.
60541
60542 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
60543
60544         * modules/chdir-long (Depends-on): Remove mempcpy.
60545
60546 2005-01-21  Jim Meyering  <jim@meyering.net>
60547
60548         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
60549         same value as for Solaris 9.
60550
60551         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
60552         component length.  This included changing the parameter to be
60553         of type `char *' rather than `char const *'.
60554         * lib/chdir-long.h (chdir_long): Update prototype.
60555
60556         * lib/openat.c (fdopendir, fstatat): New functions.
60557         * lib/openat.h: Include headers required for use of DIR and struct
60558         stat.
60559         [AT_SYMLINK_NOFOLLOW]: Define.
60560         (fdopendir, fstatat): Add prototypes.
60561
60562 2005-01-21  Bruno Haible  <bruno@clisp.org>
60563
60564         * modules/classpath: New file.
60565         * MODULES.html.sh (Java): Add classpath.
60566
60567 2005-01-21  Bruno Haible  <bruno@clisp.org>
60568
60569         * lib/classpath.h: New file, from GNU gettext.
60570         * lib/classpath.c: New file, from GNU gettext.
60571
60572 2005-01-20  Simon Josefsson  <jas@extundo.com>
60573
60574         * modules/version-etc-fsf: New file.
60575
60576 2005-01-20  Simon Josefsson  <jas@extundo.com>
60577
60578         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
60579         * lib/version-etc.c: Remove version_etc_copyright.
60580         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
60581         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
60582
60583 2005-01-20  Simon Josefsson  <jas@extundo.com>
60584
60585         * lib/base64.h (isbase64): Add.
60586
60587         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
60588         using a unsigned prototype, don't inline.
60589         (base64_decode): Use it.
60590
60591 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
60592
60593         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
60594         it.
60595
60596 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
60597
60598         * lib/save-cwd.c (save_cwd): Remove code to support the case
60599         where fchdir is missing or flaky.
60600
60601 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
60602
60603         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
60604
60605 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
60606
60607         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
60608         AC_LIBSOURCES now does this.
60609         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
60610         with new ullong_max module.
60611
60612 2005-01-19  Bruno Haible  <bruno@clisp.org>
60613
60614         * modules/sh-quote: New file.
60615         * MODULES.html.sh (Executing programs): Add sh-quote.
60616
60617 2005-01-19  Bruno Haible  <bruno@clisp.org>
60618
60619         * lib/sh-quote.h: New file, from GNU gettext.
60620         * lib/sh-quote.c: New file, from GNU gettext.
60621
60622 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
60623
60624         Merge from coreutils.
60625         * m4/ullong_max.m4: New file.
60626         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
60627         (gl_MACROS): Assume localeconv exists.
60628
60629 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
60630
60631         Merge changes from coreutils, as described below in several
60632         changelogs dated today.
60633
60634         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
60635         (O_DIRECTORY): Remove; not needed here, since "." must be
60636         a directory.  All uses removed.
60637         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
60638         universal on Suns, and we also need to test for IRIX.
60639         Revamp code to use 'if' rather than '#if'.
60640         Avoid unnecessary comparison of cwd->desc to 0.
60641
60642         * lib/utimens.c (futimens): Robustify the previous patch, by checking
60643         for known valid error numbers rather than observed invalid ones.
60644
60645 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
60646
60647         * modules/ullong_max: New file.
60648
60649         * modules/chdir-long, modules/openat: New files.
60650         * modules/save-cwd (Depends-on): Depend on chdir-long.
60651         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
60652
60653 2005-01-18  Jim Meyering  <jim@meyering.net>
60654
60655         Merge from coreutils.
60656         * m4/chdir-long.m4, m4/openat.m4: New files.
60657         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
60658         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
60659         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
60660         is sane and DOES follow symlinks.  Besides, testing 20 different
60661         systems found no broken chown implementations.
60662         Prompted by a change in rsync's copy of this macro.
60663         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
60664
60665         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
60666
60667         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
60668         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
60669         NULL-means-set-to-current-time semantics.
60670         Remove temporary file immediately, rather than waiting
60671         for configure's at-exit trap code to do it.
60672
60673 2005-01-18  Jim Meyering  <jim@meyering.net>
60674
60675         * lib/version-etc.c (version_etc_copyright): Update copyright date.
60676
60677         * lib/utimens.c (futimens): Account for the fact that futimes
60678         can also fail with errno == ENOSYS or errno == ENOENT.
60679         Patch from Dmitry V. Levin.
60680
60681         Change the name of the robust chdir function from chdir to chdir_long.
60682         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
60683         (restore_cwd): Use chdir_long, not chdir.
60684         * lib/chdir-long.c: Renamed from chdir.c.
60685         * lib/chdir-long.h: Renamed from chdir.h.
60686         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
60687         Hurd.
60688
60689 2005-01-18  Bruno Haible  <bruno@clisp.org>
60690
60691         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
60692         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
60693         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
60694         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
60695         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
60696         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
60697         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
60698         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
60699         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
60700         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
60701         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
60702         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
60703         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
60704         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
60705         Use an all-permissive copyright notice, recommended by RMS.
60706
60707 2005-01-18  Bob Proulx  <bob@proulx.com>
60708
60709         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
60710         simplify offsetof() macro construct to avoid compile failure with
60711         native HP-UX 11.0 ANSI C compiler.
60712
60713 2005-01-17  Bruno Haible  <bruno@clisp.org>
60714
60715         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
60716         redundant because stpncpy.m4 takes care of it.
60717
60718 2005-01-17  Bruno Haible  <bruno@clisp.org>
60719
60720         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
60721
60722 2005-01-17  Bruno Haible  <bruno@clisp.org>
60723
60724         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
60725         used.
60726
60727 2005-01-17  Bruno Haible  <bruno@clisp.org>
60728
60729         * lib/fwriteerror.h (fwriteerror): Change specification to include
60730         fclose.
60731         * lib/fwriteerror.c: Include <stdbool.h>.
60732         (fwriteerror): At the end, close the file stream. Record whether
60733         stdout was already closed.
60734
60735 2005-01-17  Bruno Haible  <bruno@clisp.org>
60736
60737         * lib/execute.c (environ): Declare if needed.
60738         * lib/pipe.c (environ): Likewise.
60739         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
60740
60741 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
60742
60743         * modules/argp: Depend on vsnprintf
60744
60745 2005-01-10  Jim Meyering  <jim@meyering.net>
60746
60747         * modules/closeout (Depends-on): Add atexit.
60748
60749 2005-01-06  Bruno Haible  <bruno@clisp.org>
60750
60751         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
60752
60753 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
60754
60755         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
60756         definitions to be after all include files, to avoid collisions.
60757         Problem reported by Bob Proulx.
60758
60759 2005-01-04  Jim Meyering  <jim@meyering.net>
60760
60761         Changes imported from coreutils.
60762         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
60763         as the mkstemp template, use a temporary directory and an
60764         8.3-friendly template to avoid trouble on systems like DJGPP.
60765         Reported by Juan M. Guerrero via Stepan Kasal.
60766         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
60767         close. Remove the temporary directory right away, rather than waiting
60768         for configure's at-exit trap code to do it.
60769         Suggestion from Stepan Kasal.
60770
60771 2005-01-01  Simon Josefsson  <jas@extundo.com>
60772
60773         * gnulib-tool: Print #include directives when --import'ing.
60774
60775 2004-12-28  Simon Josefsson  <jas@extundo.com>
60776
60777         * tests/test-base64.c: Include required header files.  Remove
60778         unused variables.
60779
60780 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
60781
60782         * modules/error (Depends-on): Remove gettext.
60783
60784 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
60785
60786         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
60787         not needed.  This removes a dependency on the gettext module.
60788         [defined _LIBC]: Do not include <libintl.h>; not needed.
60789
60790 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
60791
60792         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
60793         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
60794
60795 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
60796
60797         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
60798         HAVE_DECL_STRTOLD.
60799
60800 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
60801
60802         * modules/getdate (Depends-on): Remove alloca-opt.
60803
60804 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
60805
60806         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
60807
60808 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
60809
60810         * lib/argp-parse.c: Include <stddef.h>.
60811         (alignof, alignto): New macros.
60812         (parser_init): Don't assume that void * is aligned sufficiently
60813         for struct option.
60814
60815         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
60816         need to extend the stack.
60817         (YYINITDEPTH): New macro, so that the initial stack isn't overly
60818         large.
60819
60820 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
60821
60822         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
60823
60824 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
60825
60826         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
60827         (2004-10-24) change.  Apparently this was a false alarm.
60828
60829         * modules/getdate: Depend on alloca-opt, not alloca.
60830
60831 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
60832
60833         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
60834         Remove now-obsolete comment about AIX.
60835         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
60836         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
60837         (YYMAXDEPTH): New macro.
60838
60839 2004-12-18  Simon Josefsson  <jas@extundo.com>
60840
60841         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
60842
60843 2004-12-18  Bruno Haible  <bruno@clisp.org>
60844
60845         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
60846
60847 2004-12-18  Bruno Haible  <bruno@clisp.org>
60848
60849         * lib/fatal-signal.c (fatal_signals): Make non-const.
60850         (init_fatal_signals): New function.
60851         (uninstall_handlers, install_handlers): Ignore signals that were set to
60852         SIG_IGN.
60853         (at_fatal_signal): Call init_fatal_signals.
60854         (init_fatal_signal_set): Likewise. Ignore signals that were set to
60855         SIG_IGN.
60856         Reported by Paul Eggert.
60857
60858 2004-12-18  Bruno Haible  <bruno@clisp.org>
60859
60860         * doc/alloca.texi: New file.
60861         * doc/alloca-opt.texi: New file.
60862
60863 2004-12-17  Jim Meyering  <jim@meyering.net>
60864
60865         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
60866         Otherwise, install-sh could exit with improper exit status when
60867         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
60868
60869 2004-12-16  Simon Josefsson  <jas@extundo.com>
60870
60871         * tests/test-base64.c: Add license.
60872
60873 2004-12-15  Stepan Kasal  <address@hidden>
60874
60875         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
60876
60877 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
60878
60879         * modules/getcwd (Files): Add m4/d-ino.m4.
60880         Suggested by Mark D. Baushke.
60881
60882 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
60883
60884         * lib/getdate.y (textint): New member "negative".
60885         (time_zone_hhmm): New function.
60886         Expect 14 shift-reduce conflicts, not 13.
60887         (o_colon_minutes): New rule.
60888         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
60889         (yylex): Set the "negative" member of signed numbers.
60890
60891 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
60892
60893         * doc/getdate.texi (Time of day items, Time zone items):
60894         Describe new formats +00:00, UTC+00:00.
60895
60896 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
60897
60898         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
60899         spurious "-l"s.  Problem reported by Stepan Kasal.
60900
60901 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
60902
60903         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
60904         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
60905
60906 2004-12-04  Simon Josefsson  <jas@extundo.com>
60907
60908         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
60909         Vandoorselaere <yoann@prelude-ids.org>.
60910
60911 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
60912
60913         Changes imported from coreutils.
60914         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
60915         exist.
60916         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
60917
60918 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
60919
60920         Changes imported from coreutils.
60921         * lib/hard-locale.c: Assume <locale.h> exists.
60922         Include "strdup.h".
60923         (GLIBC_VERSION): New macro.
60924         (hard_locale): Assume setlocale exists.
60925         Rewrite to avoid #ifdef.
60926         Use strdup rather than malloc + strcpy.
60927         * lib/human.c: Assume <locale.h> exists.
60928         (human_readable): Assume localeconv exists.
60929
60930 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
60931
60932         * modules/hard-locale (Depends-on): Add strdup.
60933
60934 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
60935
60936         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
60937         convert T2, not T.  (Imported from libc.)
60938
60939 2004-11-30  Simon Josefsson  <jas@extundo.com>
60940
60941         * modules/restrict (License): Change to LGPL.
60942
60943 2004-11-30  Simon Josefsson  <jas@extundo.com>
60944
60945         * m4/restrict.m4: Add copyright and copying conditions.
60946
60947 2004-11-30  Simon Josefsson  <jas@extundo.com>
60948
60949         * m4/base64.m4: New file.
60950
60951 2004-11-30  Simon Josefsson  <jas@extundo.com>
60952
60953         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
60954         base64.
60955
60956         * tests/test-base64.c: New file.
60957
60958         * modules/base64: New file.
60959
60960 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
60961
60962         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
60963         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
60964
60965         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
60966
60967 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
60968
60969         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
60970         (__getcwd.c): Don't restore errno; glibc doesn't.
60971         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
60972         first, falling back to our code only if its results look suspicious.
60973         Ensure that the resulting buffer is only as large as necessary.
60974
60975         * lib/readutmp.c: Include readutmp.h first.
60976         Include <errno.h>, since readutmp.h no longer does that.
60977         * lib/readutmp.h: Don't include <errno.h>,
60978         <sys/param.h>, <time.h>; not needed to establish interface.
60979         (errno): Remove decl.
60980         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
60981         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
60982         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
60983
60984 2004-11-28  Simon Josefsson  <jas@extundo.com>
60985
60986         * lib/base64.h, base64.c: New file.
60987
60988 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
60989
60990         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
60991
60992 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
60993
60994         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
60995         (Depends-on): Remove pathmax, same.  Add mempcpy.
60996         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
60997         (Makefile.am): Append getcwd.h to lib_SOURCES.
60998         (Include): Add getcwd.h.
60999         (Maintainer): Change from Jim Meyering to "all, glibc",
61000         since getdate now uses intended-for-glibc code.
61001         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
61002         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
61003
61004 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
61005
61006         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
61007         HP's ANSI C compiler.
61008         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
61009         Declaring int functions causes warnings on some modern systems and
61010         shouldn't be needed to compile on ancient ones.
61011         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
61012         defined.
61013
61014         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
61015         with the following changes.
61016         (__set_errno): Parenthesize properly.
61017         Include <stdbool.h>.
61018         (MIN, MAX, MATCHING_INO): New macros.
61019         (__getcwd): Define with prototype, not K&R form.
61020         Use heuristics to allocate default buffer on stack if possible.
61021         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
61022         behavior, and to avoid the PATH_MAX limit when computing
61023         ../../../../...
61024         Use MATCHING_INO to compare inode number to file.
61025         Check for arithmetic overflow in size calculations.
61026         Fix bug in reallocation of dot array that caused getcwd to fail
61027         on directories nested deeper than 75.
61028         Be more careful about saving errno on error.
61029         Do not use realloc; use only free+malloc, as this is a bit
61030         more flexible and avoids a needless copy operation.
61031         Do not inspect st_dev and st_ino for symbolic links; POSIX
61032         doesn't specify the latter.
61033         Check for closedir errors.
61034         Avoid needless casts.
61035         Use "#ifdef weak_alias" around weak_alias, to be like other
61036         glibc code.
61037         The following changes to getcwd.c have effect only when used in
61038         gnulib; they have no effect inside glibc proper.
61039         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
61040         as alloca isn't used.
61041         (alloca, __alloca): Likewise.
61042         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
61043         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
61044         unconditionally, as gnulib assumes C89 or better.
61045         Do not include <sys/param.h>.
61046         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
61047         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
61048         better.
61049         (NULL) [!defined NULL]: Remove; we assume C89 or better.
61050         Include <dirent.h> in a way that is compatible with modern Autoconf.
61051         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
61052         New macros, if not already defined.
61053         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
61054         Use "_LIBC", not "defined _LIBC", for consistency.
61055         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
61056         a mempcpy module.
61057         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
61058         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
61059         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
61060         credit only to Jim Meyering and adjust the copyright dates.
61061         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
61062         <stdlib.h>, <unistd.h>, "pathmax.h".
61063         Instead, include "xgetcwd.h" (first) and "getcwd.h".
61064         (INITIAL_BUFFER_SIZE): Remove.
61065         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
61066
61067 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
61068
61069         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
61070         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
61071         Use the _ONCE methods, for efficiency.
61072         Check for fcntl.h.  In test program, include <errno.h>
61073         and <fcntl.h> if available.  Remove old K&R cruft from
61074         test program.  Check for common errors in GNU/Linux,
61075         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
61076         don't do AC_LIBOBJ, as that's getcwd.m4's job.
61077         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
61078         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
61079         name accordingly.
61080         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
61081         accommodate new getcwd.c.
61082         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
61083         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
61084         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
61085         that's all we need now.
61086
61087 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
61088
61089         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
61090         argp-parse.c depends on getopt internals, that means we should
61091         always use our getopt, to be on the safe side.
61092         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
61093         order not to spoil the result of an eventual previous invocation
61094         of gl_GETOPT_SUBSTITUTE.
61095
61096 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
61097
61098         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
61099         redefinition warnings. To avoid them, include the defines
61100         in `#if !defined __need_getopt ... #endif'. The only place
61101         where __getopt_argv_const is used is in definitions
61102         of getopt_long and getopt_long_only below, which are as well
61103         protected by `#ifndef __need_getopt'.
61104         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
61105         __need_getopt after including <stdio.h> and <unistd.h> These
61106         headers might have defined it.
61107
61108 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
61109
61110         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
61111
61112 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
61113
61114         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
61115         (futimens): New function, which uses futimes if available.
61116         (futimens, utimens): Support timespec==NULL, with same semantics
61117         as utime and utimens.
61118         * lib/utimens.h (futimens): New decl.
61119
61120 2004-11-23  Jim Meyering  <jim@meyering.net>
61121
61122         * lib/getopt_.h: Remove trailing blanks.
61123
61124 2004-11-23  Jim Meyering  <jim@meyering.net>
61125
61126         * lib/__fpending.c: Add comment.
61127
61128 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
61129
61130         * modules/canonicalize (Depends-on): Add xreadlink.
61131         Problem reported by James Youngman.
61132
61133 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
61134
61135         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
61136         New macros.
61137         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
61138         optopt): Use them instead of invoking ## directly; otherwise, the
61139         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
61140
61141 2004-11-19  Bruno Haible  <bruno@clisp.org>
61142
61143         * lib/strtok_r.c: Move comments from here...
61144         * lib/strtok_r.h: ... to here.
61145
61146 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
61147
61148         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
61149         implementations that mishandle size_t overflow.
61150
61151 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
61152
61153         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
61154         might fail.  Problem reported by Yoann Vandoorselaere.
61155         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
61156         implementations that mishandle size_t overflow.
61157
61158 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
61159
61160         * modules/canon-host (Depends-on): Add strdup.
61161
61162 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
61163
61164         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
61165
61166 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
61167
61168         * lib/canon-host.c: Include "strdup.h".
61169         (canon_host): Use getaddrinfo if available, so that IPv6 works.
61170         Use strdup instead of malloc/strcpy to duplicate strings.
61171
61172         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
61173         (human_space_before_unit): New constant.
61174         * lib/human.c (human_readable): Support it.
61175
61176         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
61177         (xgetcwd): Set errno correctly when failing.
61178         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
61179         the failure is actually due to a PATH_MAX problem.
61180
61181         Further getopt changes to make it more likely that glibc will
61182         buy the changes back.
61183         * lib/getopt.c (POSIXLY_CORRECT): New constant.
61184         (getopt): Use it, so to preserve glibc semantic
61185         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
61186         when compiling for libc.
61187         * lib/getopt_.h (__getopt_argv_const): Bring it back.
61188         (getopt_long, getopt_long_only): Use it.
61189
61190         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
61191         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
61192         (getopt): Argv is now char * const *, as per standard.
61193         (_getopt_internal_r, _getopt_internal): Argv is now char **,
61194         not char *__getopt_argv_const *.
61195         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
61196         _getopt_long_only_r): Likewise.
61197         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
61198         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
61199         _getopt_long_r, _getopt_long_only_r): Likewise.
61200         * lib/getopt_.h (__getopt_argv_const): Remove.
61201         (getopt): Argv is now char * const *, as per standard.
61202
61203         * lib/getdate.y (tORDINAL): New token.
61204         (day, relunit): Allow it for relative times.
61205         (relative_time_table): Use tORDINAL for ordinals.
61206
61207 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
61208
61209         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
61210         Document that "second" isn't allowed as an ordinal number.
61211
61212 2004-11-16  Jim Meyering  <jim@meyering.net>
61213
61214         * modules/closeout (Depends-on): Add fpending.
61215
61216 2004-11-15  Jim Meyering  <jim@meyering.net>
61217
61218         * lib/closeout.c: Include "__fpending.h" once again.
61219         Include <stdbool.h>.
61220         (close_stdout): Don't fail just because stdout was closed initially,
61221         since some programs don't write to stdout in the normal course of
61222         operation (other than --version and --help), and we don't want this
61223         function to make e.g. `touch file >&-' fail.
61224         But do fail if it was closed and someone has tried to write to it.
61225         E.g., `printf foo >&-' must fail.
61226
61227 2004-11-13  Jim Meyering  <jim@meyering.net>
61228
61229         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
61230
61231 2004-11-12  Simon Josefsson  <jas@extundo.com>
61232
61233         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
61234         small doc fix is still pending.
61235
61236 2004-11-11  Simon Josefsson  <jas@extundo.com>
61237
61238         * modules/strtok_r: New file.
61239
61240         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
61241         strtok_r.
61242
61243 2004-11-11  Simon Josefsson  <jas@extundo.com>
61244
61245         * m4/strtok_r.m4: New file.
61246
61247         * m4/getopt.m4: Replace opterr.
61248
61249 2004-11-11  Simon Josefsson  <jas@extundo.com>
61250
61251         * lib/strtok_r.h, strtok_r.c: New file.
61252
61253 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
61254
61255         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
61256         of replacing opterr, getopt, etc.  This should handle the
61257         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
61258
61259 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
61260
61261         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
61262         we can stop lying to compilers about the constness of argv when we
61263         are compiled outside glibc.
61264         (getopt, getopt_long, getopt_long_only): Use it.
61265         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
61266         _getopt_internal, getopt): Likewise.
61267         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
61268         _getopt_long_only_r): Likewise.
61269         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
61270         _getopt_long_r, _getopt_long_only_r): Likewise.
61271
61272         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
61273         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
61274         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
61275         the other external symbols.
61276         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
61277         declaration, since the above renaming now works around collisions.
61278
61279 2004-11-11  Jim Meyering  <jim@meyering.net>
61280
61281         * lib/linebreak.c: Remove trailing blanks.
61282         * lib/alloca_.h: Likewise.
61283         * lib/acosl.c: Likewise.
61284         * lib/euidaccess.c: Likewise.
61285         * lib/allocsa.h: Likewise.
61286
61287 2004-11-10  Simon Josefsson  <jas@extundo.com>
61288
61289         * m4/getaddrinfo.m4: New file.
61290
61291 2004-11-10  Simon Josefsson  <jas@extundo.com>
61292
61293         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
61294
61295 2004-11-10  Simon Josefsson  <jas@extundo.com>
61296
61297         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
61298         getaddrinfo.
61299
61300         * modules/getaddrinfo: New file.
61301
61302 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
61303
61304         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
61305
61306 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
61307
61308         * lib/mktime.c (SHR): New macro, which is a portable
61309         substitute for >> that should work even on Crays.
61310         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
61311         Problem reported by Mark D. Baushke in
61312         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
61313         * lib/getdate.y (SHR): Likewise.
61314         (tm_diff): Use it.
61315         * lib/strftime.c (SHR): Likewise.
61316         (tm_diff): Use it.
61317         * lib/quotearg.c (struct quoting_options): Use unsigned int for
61318         quote_these_too, so that right shifts are well defined.  All uses
61319         changed.
61320
61321 2004-11-10  Jim Meyering  <jim@meyering.net>
61322
61323         Ensure that no close failure goes unreported.
61324         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
61325         return early when it seems there's nothing to flush.
61326         Don't include __fpending.h.
61327
61328 2004-11-10  Jim Meyering  <jim@meyering.net>
61329
61330         * modules/closeout (Depends-on): Remove fpending.
61331
61332 2004-11-10  Jim Meyering  <jim@meyering.net>
61333
61334         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
61335
61336 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
61337
61338         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
61339         gl_FUNC_STRFTIME.
61340         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
61341         and AC_REQUIRE when possible, to avoid duplicate checks.
61342         Check for <wchar.h>.
61343
61344 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
61345
61346         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
61347
61348 2004-11-09  Bruno Haible  <bruno@clisp.org>
61349
61350         * m4/sockpfaf.m4: New file.
61351
61352 2004-11-05  Bruno Haible  <bruno@clisp.org>
61353
61354         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
61355         Reported by Mark D. Baushke <mdb@cvshome.org>.
61356
61357 2004-11-04  Bruno Haible  <bruno@clisp.org>
61358
61359         2004-09-11  Bruno Haible  <bruno@clisp.org>
61360                 * allocsa.valgrind: New file.
61361         2004-02-06  Bruno Haible  <bruno@clisp.org>
61362                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
61363                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
61364                 Reported by Christopher Seip <chris.seip@hp.com>.
61365
61366 2004-11-04  Bruno Haible  <bruno@clisp.org>
61367
61368         * modules/allocsa (Files): Add lib/allocsa.valgrind.
61369         (Makefile.am): Distribute it.
61370
61371 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
61372
61373         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
61374         with errno == ERANGE if the buffer is too small.
61375         Problem reported by Mark D. Baushke.
61376
61377 2004-11-03  Albert Chin  <china@thewrittenword.com>
61378             Paul Eggert  <eggert@cs.ucla.edu>
61379
61380         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
61381         equivalent, substitute $ac_type for equivalent type rather than
61382         blindly using uint32_t *always* which won't work if uint32_t is not
61383         available.  Define _UINT32_T to work around typedef of uint32_t if
61384         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
61385         2.5.1.
61386
61387 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
61388
61389         * m4/jm-macros.m4: Sync from coreutils.
61390         (gl_MACROS): Check for mbrlen, for pathchk.
61391         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
61392
61393 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
61394
61395         * lib/xreadlink.c (MAXSIZE): New macro.
61396         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
61397         size does not exceed MAXSIZE.  Avoid cast.
61398         As suggested by Mark D. Baushke in
61399         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
61400         if readlink fails with buffer size just under MAXSIZE, try again
61401         with MAXSIZE.
61402
61403 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
61404
61405         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
61406
61407 2004-11-02  Derek R. Price  <derek@ximbiot.com>
61408         and  Paul Eggert  <eggert@cs.ucla.edu>
61409
61410         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
61411         (get_date): Overparenthesize to avoid GCC warning.
61412
61413 2004-11-02  Bruno Haible  <bruno@clisp.org>
61414
61415         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
61416         returns void.
61417
61418 2004-11-02  Bruno Haible  <bruno@clisp.org>
61419
61420         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
61421         function returns void.
61422
61423 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
61424
61425         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
61426         fflush_unlocked, flockfile, funlockfile, funlockfile,
61427         fputs_unlocked, putc_unlocked.
61428
61429 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
61430
61431         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
61432         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
61433         already declared.
61434
61435 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
61436
61437         * modules/getdate (Files): Add doc/getdate.texi.
61438         (Depends-on): Add setenv, xalloc.
61439
61440 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
61441
61442         * lib/getdate.y: Add support for TZ="foo" within a date string.
61443         Fix some bugs near time_t boundaries.  Reject dates with
61444         out-of-range components, e.g., "Sept 31".
61445         Include <stdlib.h>, "setenv.h", "xalloc.h".
61446         (ISDIGIT_LOCALE): Remove; unused.
61447         Note that the TZ and time functions used here are not reentrant.
61448         (mktime_ok, get_tz): New functions.
61449         (TZBUFSIZE): New constant.
61450         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
61451         This requires that we sometimes generate our own TZ="XXX..." setting.
61452
61453 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
61454
61455         * doc/getdate.texi: New file, from coreutils with modifications for
61456         the new TZ parsing.
61457
61458 2004-10-27  Derek R. Price  <derek@ximbiot.com>
61459
61460         * lib/mktime.c (not_equal_tm): Remove redundant check.
61461
61462 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
61463
61464         * modules/regex (lib_SOURCES): Add regex.c.
61465         Reported by James Youngman in
61466         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
61467
61468 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
61469
61470         * lib/getdate.y: Use Bison 1.875 features, and some minor
61471         code cleanups.  This change does not affect semantics.
61472         Don't include <stdlib.h>; no longer needed.
61473         Don't include unlocked-io.h; only the "#if TEST" code uses
61474         stdio, and performance isn't crucial there.
61475         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
61476         Bison 1.875 features as described below.
61477         All uses of "PC." replaced by "pc->".
61478         (YYSTYPE): Add a forward declaration.
61479         (yylex, yyerror): Use full prototypes in forward decls.
61480         Use "%pure-parser" rather than obsolescent "%pure_parser".
61481         Use %parse-param and %lex-param instead of obsolescent
61482         YYPARSE_PARAM and YYLEX_PARAM.
61483         (meridian_table, month_and_day_table, time_units_table,
61484         relative_time_table, time_zone_table, military_table,
61485         lookup_zone, lookup_word, get_date):
61486         Use NULL instead of 0 where appropriate.
61487         (to_hour): Avoid abort (), to avoid a dependency on
61488         stdlib.h.
61489         (yyerror, yylex): Now accepts parser_control * arg.
61490         (main) [TEST]: Use '\0' rather than 0 for char.
61491
61492 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
61493
61494         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
61495
61496 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
61497
61498         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
61499         It's now the caller's responsibility to handle the case where
61500         !HAVE_GETPAGESIZE && !defined getpagesize.
61501
61502         * lib/mktime.c (leapyear): Arg is long int, not int.
61503
61504 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
61505
61506         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
61507
61508 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
61509
61510         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
61511         missing.  Problem reported by James Youngman.
61512
61513 2004-10-16  Simon Josefsson  <jas@extundo.com>
61514
61515         * gnulib-tool: Fix comments.  Fix parse problem.
61516         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
61517
61518 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
61519
61520         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
61521         implementation of getopt_long.  Problem reported by Alexander Taler in:
61522         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
61523
61524 2004-10-15  Bruno Haible  <bruno@clisp.org>
61525
61526         * gnulib-tool: Untabify. Initialize supplied_libname.
61527         (func_usage): More homogenous output.
61528         (func_modules_transitive_closure, func_modules_to_filelist,
61529         func_emit_lib_Makefile_am): New functions.
61530         (func_import): New function, extracted from big case statement. Use
61531         func_get_license, func_modules_transitive_closure,
61532         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
61533         opt_lgpl. Don't use test -a, as it's not portable.
61534         (func_create_testdir): Use func_modules_transitive_closure,
61535         func_modules_to_filelist, func_emit_lib_Makefile_am.
61536
61537 2004-10-15  Bruno Haible  <bruno@clisp.org>
61538
61539         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
61540
61541 2004-10-15  Bruno Haible  <bruno@clisp.org>
61542
61543         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
61544         the portions belonging to each module.
61545         Suggested by Derek Robert Price <derek@ximbiot.com>.
61546
61547 2004-10-12  Simon Josefsson  <jas@extundo.com>
61548
61549         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
61550         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
61551         to real functions.
61552
61553 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
61554
61555         * modules/vsnprintf: New file.
61556
61557 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
61558
61559         * m4/vsnprintf.m4: New file.
61560
61561 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
61562
61563         * lib/vsnprintf.h: New file.
61564         * lib/vsnprintf.c: New file.
61565
61566 2004-10-11  Bruno Haible  <bruno@clisp.org>
61567
61568         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
61569         vsnprintf.
61570
61571 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
61572
61573         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
61574
61575 2004-10-07  Bruno Haible  <bruno@clisp.org>
61576
61577         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
61578         fits into the provided buffer.
61579
61580 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
61581
61582         * lib/diacrit.c, diacrit.h: Add GPL notice.
61583
61584         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
61585         notice.
61586         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
61587         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
61588         This avoids a potential constant-folding bug.
61589
61590 2004-10-05  Bruno Haible  <bruno@clisp.org>
61591
61592         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
61593         for the declaration of strsep.
61594
61595 2004-10-05  Bruno Haible  <bruno@clisp.org>
61596
61597         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
61598
61599 2004-10-04  Simon Josefsson  <jas@extundo.com>
61600
61601         * modules/memmem: New file.
61602         * tests/test-memmem.c: New file.
61603         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
61604
61605 2004-10-04  Simon Josefsson  <jas@extundo.com>
61606
61607         * m4/memmem.m4: New file.
61608
61609 2004-10-04  Simon Josefsson  <jas@extundo.com>
61610
61611         * lib/memmem.h: New file.
61612         * lib/memmem.c: New file, taken from glibc.
61613
61614 2004-10-04  Simon Josefsson  <jas@extundo.com>
61615
61616         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
61617         '#ifdef USE_UNLOCKED_IO'.
61618
61619 2004-10-04  Simon Josefsson  <jas@extundo.com>
61620
61621         * config/srclist.txt: Add memmem from glibc.
61622
61623 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
61624
61625         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
61626
61627         * modules/argmatch, modules/argp, modules/closeout, modules/error,
61628         modules/exclude, modules/getdate, modules/getline,
61629         modules/getndelim2, modules/getpass, modules/getpass-gnu,
61630         modules/getusershell, modules/linebuffer, modules/md5,
61631         modules/mountlist, modules/posixtm, modules/readtokens,
61632         modules/readutmp, modules/regex, modules/sha1,
61633         modules/version-etc, modules/yesno:
61634         Remove dependency on unlocked-io.
61635
61636 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
61637
61638         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
61639
61640         * m4/unlocked-io.m4: Add copyright notice.
61641         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
61642
61643 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
61644
61645         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
61646         * lib/xmalloc.c (xmemdup): Likewise.
61647         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
61648         XFREE): Remove these long-obsolescent macros.
61649         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
61650         * lib/xstrdup.c: Remove.
61651
61652         * lib/regex.c (re_comp): Cast gettext return value to char *,
61653         Problem reported by Martin Neitzel via Mark D. Baushke.
61654
61655 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
61656
61657         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
61658         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
61659         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
61660         regex.c, sha1.c, version-etc.c, yesno.c:
61661         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
61662         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
61663         the includer's responsibility.
61664
61665         Sync from coreutils.
61666
61667         * lib/modechange.c (mode_compile): Don't decrement a pointer that
61668         points to the start of a string, as the C Standard says the
61669         resulting behavior is undefined.
61670
61671         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
61672         simple -> simple_backups, numbered_existing ->
61673         numbered_existing_backups, numbered -> numbered_backups
61674         to avoid shadowing problems.  All uses changed.
61675         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
61676         * lib/backupfile.c (check_extension, numbered_backup):
61677         Rename locals to avoid shadowing 'basename'.
61678         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
61679         once.
61680
61681         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
61682         * lib/.cvsignore: Add getopt.h.
61683
61684 2004-10-04  Bruno Haible  <bruno@clisp.org>
61685
61686         * modules/README: New file.
61687         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
61688         not a module.
61689
61690 2004-10-02  Jim Meyering  <jim@meyering.net>
61691
61692         * lib/dirfd.h, getpagesize.h: Add copyright notice.
61693
61694 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
61695
61696         * modules/strsep: New file.
61697
61698 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
61699
61700         * m4/strsep.m4: New file.
61701
61702 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
61703
61704         * lib/strsep.h: New file.
61705         * lib/strsep.c: New file.
61706
61707 2004-10-01  Simon Josefsson  <jas@extundo.com>
61708
61709         * lib/snprintf.c (snprintf): Handle size==0.
61710
61711 2004-10-01  Simon Josefsson  <jas@extundo.com>
61712             Bruno Haible  <bruno@clisp.org>
61713
61714         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
61715         (snprintf): Declare 'args'.
61716
61717 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
61718
61719         * lib/snprintf.c: Remove comments as to why each header is needed.
61720
61721 2004-10-01  Bruno Haible  <bruno@clisp.org>
61722
61723         * MODULES.html.sh: Add strsep.
61724
61725 2004-09-30  Simon Josefsson  <jas@extundo.com>
61726
61727         * modules/snprintf: New file.
61728
61729 2004-09-30  Simon Josefsson  <jas@extundo.com>
61730
61731         * m4/snprintf.m4: New file.
61732
61733 2004-09-30  Simon Josefsson  <jas@extundo.com>
61734
61735         * lib/snprintf.h, lib/snprintf.c: New files.
61736
61737 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
61738
61739         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
61740         (hol_entry_help): Never translate an empty string.
61741         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
61742         * lib/argp.h (OPTION_NO_TRANS): New option.
61743
61744 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
61745
61746         * modules/argp (Maintainer): Replace Simon Josefsson
61747         by Sergey Poznyakoff.
61748
61749 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
61750
61751         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
61752         changes merged back into glibc.
61753
61754 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
61755
61756         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
61757
61758 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
61759
61760         * lib/xvasprintf.c: Include xalloc.h.
61761         (xvasprintf): Use xalloc_die, not xmalloc_die.
61762
61763 2004-09-29  Bruno Haible  <bruno@clisp.org>
61764
61765         * modules/alloca-opt: New file, derived from modules/alloca.
61766         * modules/allocsa: Depend on alloca-opt instead of alloca.
61767         * modules/setenv: Likewise.
61768         * modules/vasnprintf: Likewise.
61769         * MODULES.html.sh: Add alloca-opt.
61770
61771 2004-09-28  Simon Josefsson  <jas@extundo.com>
61772
61773         * gnulib-tool: New parameter --lgpl, to asseert that modules are
61774         LGPL, and to replace license template from GPL to LGPL.
61775
61776 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
61777
61778         * modules/dummy: Change license to LGPL.
61779
61780 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
61781
61782         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
61783
61784 2004-09-24  Simon Josefsson  <jas@extundo.com>
61785
61786         * modules/minmax (License): Change from GPL to LGPL.
61787
61788 2004-09-23  Simon Josefsson  <jas@extundo.com>
61789
61790         * gnulib-tool (--import): Typo.
61791
61792 2004-09-23  Simon Josefsson  <jas@extundo.com>
61793
61794         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
61795
61796 2004-09-22  Bruno Haible  <bruno@clisp.org>
61797
61798         * modules/*: Add 'License' field.
61799         * gnulib-tool: Accept --extract-license option.
61800         (func_get_license): New function.
61801
61802 2004-09-21  Bruno Haible  <bruno@clisp.org>
61803
61804         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
61805         Reported by Simon Josefsson.
61806
61807 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
61808
61809         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
61810         gl_AC_TYPE_LONG_LONG.
61811
61812 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
61813
61814         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
61815
61816 2004-09-18  Simon Josefsson  <jas@extundo.com>
61817         and  Paul Eggert  <eggert@cs.ucla.edu>
61818
61819         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
61820         calls with autoreconf.  Define GL_LIB.
61821
61822 2004-09-14  Karl Berry  <karl@gnu.org>
61823
61824         * config/srclist.txt: unsync setenv.c, sigh.
61825
61826 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
61827
61828         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
61829         Problem reported by Bruno Haible in:
61830         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
61831
61832 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
61833
61834         * config/srclist.txt: Comment out argp-pvh.c.
61835
61836 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
61837
61838         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
61839         in case some system header has #define'd it.  Problem reported by
61840         Soeren D. Schulze in
61841         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
61842
61843 2004-09-09  Karl Berry  <karl@gnu.org>
61844
61845         * regex.[ch]: delete from the root.  These were supposed to be
61846                 synced with emacs cvs, but this has not happened for about
61847                 a year, and anyway nothing else uses emacs regex.[ch].
61848                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
61849                 lib/regex[.ch] is untouched.
61850
61851 2004-09-09  Bruno Haible  <bruno@clisp.org>
61852
61853         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
61854
61855 2004-09-09  Bruno Haible  <bruno@clisp.org>
61856
61857         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
61858         modifications.
61859         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
61860
61861 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
61862
61863         * modules/xvasprintf: New file.
61864         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
61865
61866 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
61867
61868         * lib/xvasprintf.h: New file.
61869         * lib/xvasprintf.c: New file.
61870         * lib/xasprintf.c: New file.
61871
61872 2004-09-08  Bruno Haible  <bruno@clisp.org>
61873
61874         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
61875
61876 2004-09-08  Bruno Haible  <bruno@clisp.org>
61877
61878         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
61879         length is > INT_MAX.
61880         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
61881         more.
61882
61883 2004-09-08  Bruno Haible  <bruno@clisp.org>
61884
61885         * lib/stdint_.h: New file, taken from GNU clisp.
61886
61887 2004-09-08  Bruno Haible  <bruno@clisp.org>
61888             Oskar Liljeblad  <oskar@osk.mine.nu>
61889
61890         * modules/stdint: New file.
61891         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
61892
61893 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
61894
61895         Import from coreutils.
61896         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
61897         strings on unbounded length.  alloca's performance benefits aren't
61898         that important here.
61899         (V_STRDUP): Remove.
61900         (parse_with_separator): New function, with most of the internals
61901         of the old parse_user_spec.  Allow user to omit both user and group,
61902         for compatibility with FreeBSD.
61903         Clone only the user name, not the entire spec.
61904         Do not set *uid, *gid unless entirely successful.
61905         Avoid memory leak in some failing cases.
61906         Fix regression for USER.GROUP reported by Dmitry V. Levin in
61907         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
61908         (parse_user_spec): Rewrite to use parse_with_separator.
61909
61910 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
61911
61912         * modules/userspec: Don't depend on alloca.
61913
61914 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
61915
61916         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
61917
61918 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
61919
61920         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
61921         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
61922         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
61923
61924 2004-08-16  Simon Josefsson  <jas@extundo.com>
61925
61926         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
61927         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
61928         Add --dry-run for --import.
61929         Let user provided command line parameters override configure.ac
61930         settings.
61931
61932 2004-08-12  Simon Josefsson  <jas@extundo.com>
61933
61934         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
61935         as discussed with Paul Eggert in threads rooted at
61936         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
61937         and
61938         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
61939         Before, the test was empty, and relied on ELIDE_CODE in source
61940         code.)
61941         (gl_PREREQ_GETOPT): New macro.
61942         (gl_GETOPT): Use them.
61943
61944 2004-08-12  Simon Josefsson  <jas@extundo.com>
61945
61946         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
61947         * lib/getopt_.h: Renamed from getopt.h.
61948
61949 2004-08-12  Simon Josefsson  <jas@extundo.com>
61950
61951         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
61952         Change default library name from libfoo to libgnu.
61953         Now, if you have a configure.ac that says:
61954                 gl_SOURCE_BASE(gl)
61955                 gl_M4_BASE(gl/m4)
61956                 gl_MODULES(error getopt etcetera)
61957                 gl_INIT
61958         you can import all you need by running:
61959                 ../gnulib/gnulib-tool --import
61960
61961         * modules/getopt (Files): Rename getopt.h to getopt_.h.
61962         (Makefile.am): Rewrite, use logic from argz.
61963         (Include): Use <getopt.h> instead of "getopt.h".
61964
61965 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
61966
61967         * modules/argp (Files): Add m4/unlocked-io.m4.
61968         (Depends-on): Add extensions.
61969
61970 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
61971
61972         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
61973         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
61974         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
61975         Check for program_invocation_name, program_invocation_short_name,
61976         flockfile, funlockfile, features.h, _getopt_long_only_r.
61977
61978 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
61979
61980         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
61981         its complicated substitute.
61982         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
61983         and program_invocation_name.
61984         (__argp_basename) [!_LIBC]: Remove; the only use was
61985         replaced by its body.
61986         (__argp_short_program_name): Change condition from
61987         !defined __argp_short_program_name to
61988         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
61989         to match argp-namefrob.h.
61990         (__argp_failure): Don't assume strerror_r returns char *.
61991         * lib/argp-parse.c (N_): Define unconditionally.
61992         (argp_default_options): Fill out initializers with 0 to avoid
61993         gcc warnings.
61994
61995 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
61996
61997         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
61998         getopt1.c.
61999
62000 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
62001
62002         Merge from coreutils.
62003
62004         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
62005
62006         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
62007         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
62008
62009 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
62010
62011         Merge from coreutils.
62012
62013         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
62014         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
62015         for Reliant Unix 5.43.
62016
62017         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
62018         (union fooround): Use uintmax_t, not long int.
62019         The rest is a merge from libc:
62020         [defined _LIBC]: Include <shlib-compat.h>.
62021         (_obstack) [defined _LIBC]: Remove after 2.3.4.
62022
62023         * lib/settime.c (settime): Recode to avoid warning with
62024         Sun Forte C 6U2.
62025
62026         * lib/strverscmp.c: Convert to UTF-8.
62027
62028 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
62029
62030         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
62031         m4/uintmax_t.m4.
62032
62033 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
62034
62035         * modules/xalloc-die: New file.
62036         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
62037
62038         * modules/md5 (Files): Add m4/uint32_t.m4.
62039         * modules/sha1: Renamed from modules/sha.
62040         (Files):
62041         Rename lib/sha.h to lib/sha1.h.
62042         Rename lib/sha.c to lib/sha1.c.
62043         Rename m4/sha.m4 to m4/sha1.m4.
62044         (lib_SOURCES): Likewise.
62045         (configure.ac): Rename gl_SHA to gl_SHA1.
62046         (Include): sha.h -> sha1.h.
62047
62048 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
62049
62050         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
62051         * m4/sha1.m4: Renamed from sha.m4.
62052         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
62053
62054 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
62055
62056         * lib/obstack.h (obstack_empty_p):
62057         Don't assume that chunk->contents is suitably aligned.
62058         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
62059         Likewise. Problem reported by Benno in
62060         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
62061
62062         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
62063         readable.  This could be improved further but it'd take some work.
62064
62065 2004-08-08  Simon Josefsson  <jas@extundo.com>
62066
62067         * modules/xgethostname (Depends-on): Remove exit and error (not
62068         used).
62069
62070         * modules/getpass-gnu: Add getpass.h.
62071         (Depends-on): Add stdbool.
62072         * modules/getpass: Add getpass.h.
62073
62074 2004-08-08  Simon Josefsson  <jas@extundo.com>
62075
62076         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
62077         Check getpass declaration.
62078
62079 2004-08-08  Simon Josefsson  <jas@extundo.com>
62080
62081         * lib/xgethostname.c: Don't include error.h (not used).
62082
62083         * lib/getpass.h: Add.
62084         * lib/getpass.c: Include getpass.h first.
62085
62086 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
62087
62088         * lib/xalloc-die.c: New file.
62089         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
62090         All uses removed.
62091         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
62092         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
62093         xalloc-die.c.
62094         (_, N_, xalloc_die): Move to xalloc-die.c.
62095         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
62096         so that we needn't mess with xalloc_msg_memory_exhausted.
62097
62098         * lib/sha1.h: Renamed from sha.h.
62099         (SHA1_H): Renamed from _SHA_H.
62100         (sha1_ctx): Renamed from sha_ctx.
62101         (sha1_init_ctx): Renamed from sha_init_ctx.
62102         (sha1_process_block): Renamed from sha_process_block.
62103         (sha1_process_bytes): Renamed from sha_process_bytes.
62104         (sha1_finish_ctx): Renamed from sha_finish_ctx.
62105         (sha1_read_ctx): Renamed from sha_read_ctx.
62106         (sha1_stream): Renamed from sha_stream.
62107         (sha1_buffer): Renamed from sha_buffer.
62108         * lib/sha1.c: Likewise; renamed from sha.c.
62109         Do not include <sys/types.h>.
62110         Include <stddef.h> rather than <stdlib.h>.
62111
62112 2004-08-08  Bruno Haible  <bruno@clisp.org>
62113
62114         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
62115         FILESYSTEM_PREFIX_LEN.
62116         * lib/progreloc.c: Likewise.
62117         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
62118
62119 2004-08-06  Simon Josefsson  <jas@extundo.com>
62120
62121         * modules/progname (Depends-on): Don't depend on stdbool.
62122
62123 2004-08-06  Simon Josefsson  <jas@extundo.com>
62124
62125         * modules/getsubopt: New file.
62126         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
62127         getsubopt.
62128
62129 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
62130
62131         More merge from coreutils.
62132
62133         * m4/utimens.m4, m4/utimecmp.m4: New files.
62134         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
62135         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
62136         prereq.m4, sha.m4: Import changes from coreutils.
62137
62138 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
62139
62140         More merge from coreutils.
62141         * modules/raise, modules/readtokens0, modules/utimens:
62142         * modules/utimecmp, module/xnanosleep: New files.
62143         * modules/strftime: Add lib/strftime.h.
62144         Change include from <time.h> to "strftime.h".
62145         * modules/yesno: Add lib/yesno.h.
62146         * modules/backupfile: Remove lib/addext.c.
62147         * modules/euidaccess: Add stat-macros.h.
62148         * modules/canonicalize, modules/euidaccess,
62149         modules/filemode, modules/lchown, modules/makepath,
62150         modules/rmdir, modules/stat: Likewise.
62151
62152 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
62153
62154         Merge from tar.
62155         * lib/argp-help.c (make_hol, hol_append): Don't assume that
62156         SIZE_MAX is a valid preprocessor constant.
62157         (__argp_basename): Change from "#ifndef _LIBC"
62158         to "#ifndef __argp_short_program_name", so that
62159         we don't compile these functions for tar.
62160
62161         More merges from coreutils.
62162         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
62163         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
62164         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
62165         * lib/addext.c: Remove; no longer needed.
62166         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
62167         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
62168         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
62169         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
62170         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
62171         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
62172         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
62173         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
62174         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
62175         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
62176         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
62177         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
62178         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
62179         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
62180         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
62181         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
62182         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
62183         Import changes from coreutils.
62184
62185 2004-08-05  Simon Josefsson  <jas@extundo.com>
62186
62187         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
62188
62189 2004-08-05  Simon Josefsson  <jas@extundo.com>
62190
62191         * m4/getsubopt.m4: New file.
62192
62193 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
62194
62195         Merge from coreutils.
62196
62197         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
62198         * m4/getcwd-path-max.m4: New files.
62199
62200         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
62201         FILESYSTEM_PREFIX_LEN ->
62202         FILE_SYSTEM_PREFIX_LEN.
62203         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
62204         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
62205         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
62206         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
62207
62208         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
62209         prerequisite modules now handle the DOS stuff.
62210         Don't check for unistd.h.
62211
62212 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
62213
62214         Merge from coreutils.
62215
62216         * lib/.gdb-history: Remove; this doesn't belong here.
62217
62218         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
62219         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
62220         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
62221         * lib/getcwd.c: New files.
62222
62223         * lib/dirname.h: Include <stdbool.h>.
62224         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
62225         for consistency with POSIX terminology.  All uses changed.
62226         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
62227         (strip_trailing_slashes): Use bool for booleans.
62228         * lib/stripslash.c (strip_trailing_slashes): Likewise.
62229
62230         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
62231         sometimes returns a positive errno value even when it succeeds.
62232         (print_errno_message) [!LIBC]: Fall back on strerror if
62233         __strerror_r fails.
62234
62235         * lib/path-concat.c (mempcpy): Don't define if a system header defines
62236         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
62237         (longest_relative_suffix): New function.
62238         (path_concat): Use it.  Assume first argument is not NULL.
62239         Port to DOS.  Omit redundant separators.
62240         Report an error instead of returning NULL.
62241         Use mempcpy instead of memcpy.
62242         (xpath_concat): Remove: not declared or used.
62243
62244         * lib/same.h: Include <stdbool.h>
62245         (same_name): Return bool, not int.
62246         * lib/same.c (same_name): Likewise.
62247         (errno): Don't declare; we assume C89 or better now.
62248
62249         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
62250         if not already defined.
62251
62252         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
62253         * lib/dup-safer.c (errno): Likewise.
62254
62255 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
62256
62257         Merge from coreutils.
62258         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
62259         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
62260         * modules/path-concat: Don't depend on strdup.
62261
62262 2004-08-03  Simon Josefsson  <jas@extundo.com>
62263
62264         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
62265         * lib/progname.h: Don't include stdbool.h.
62266
62267 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
62268
62269         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
62270         * MODULES.html.sh (func_all_modules): Remove fatal.
62271
62272 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
62273
62274         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
62275
62276 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
62277
62278         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
62279         working.
62280
62281 2004-08-02  Simon Josefsson  <jas@extundo.com>
62282
62283         * lib/getsubopt.h: New file, with comments from Bruno Haible.
62284         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
62285         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
62286
62287 2004-08-01  Simon Josefsson  <jas@extundo.com>
62288
62289         * lib/xgetdomainname.c: Include stdlib.h, for free().
62290
62291 2004-07-19  Bruno Haible  <bruno@clisp.org>
62292
62293         * MODULES.html.sh (func_all_modules): Add dummy.
62294
62295 2004-07-16  Simon Josefsson  <jas@extundo.com>
62296
62297         * modules/dummy: New file.
62298
62299 2004-07-16  Simon Josefsson  <jas@extundo.com>
62300
62301         * lib/dummy.c: New file.
62302
62303 2004-07-16  Bruno Haible  <bruno@clisp.org>
62304
62305         * lib/backupfile.h: Add extern "C" for C++.
62306         * lib/closeout.h: Likewise.
62307         * lib/copy-file.h: Likewise.
62308         * lib/findprog.h: Likewise.
62309         * lib/full-write.h: Likewise.
62310         * lib/pathname.h: Likewise.
62311         * lib/progname.h: Likewise.
62312         * lib/stpcpy.h: Likewise.
62313         * lib/stpncpy.h: Likewise.
62314         * lib/strcase.h: Likewise.
62315         * lib/strstr.h: Likewise.
62316         * lib/xalloc.h: Likewise.
62317
62318         * lib/mbswidth.h: Add extern "C" for C++.
62319         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
62320
62321 2004-07-13  Robert Millan  <robertmh@gnu.org>
62322
62323         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
62324
62325 2004-07-09  Simon Josefsson  <jas@extundo.com>
62326
62327         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
62328         failed without this.)
62329
62330 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
62331
62332         * modules/chown (Files): Add lib/fchown-stub.c, since
62333         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
62334
62335 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
62336
62337         * lib/fchown-stub.c: New file.
62338
62339 2004-06-24  Jim Meyering  <jim@meyering.net>
62340
62341         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
62342
62343 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
62344
62345         * modules/argz: Omit "#include".
62346
62347         * MODULES.html.sh (func_all_modules): Add calloc, to match
62348         2004-06-01 addition of calloc module.
62349
62350 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
62351
62352         * m4/argz.m4: New file, which is autoupdated from libtool.
62353
62354 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
62355
62356         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
62357         libtool.
62358
62359 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
62360
62361         * config/srclist-update: Don't insist on "USA." before the
62362         close-comment, as libtool omits the period and puts the */ on a
62363         separate line.
62364         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
62365         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
62366
62367 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
62368
62369         * modules/argz: New file.
62370         * MODULES.html.sh (func_all_modules): Add argz.
62371
62372 2004-06-12  Jim Meyering  <jim@meyering.net>
62373         and  Paul Eggert  <eggert@cs.ucla.edu>
62374
62375         * modules/hash (Files): Add lib/xalloc.h.
62376         * modules/pipe (Depends-on): Add wait-process.
62377         * modules/stat (Depends-on): Add xalloc.
62378         * modules/userspec (Files): Add lib/userspec.h.
62379         * modules/xstrto
62380
62381         Upgrade from gettext-0.13.
62382         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
62383         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
62384         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
62385
62386 2004-06-10  Jim Meyering  <jim@meyering.net>
62387
62388         * lib/calloc.c: New file.
62389
62390 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
62391
62392         * lib/getdate.y (yylex): Allow space between sign and number.
62393         Problem reported by Dan Jacobson.
62394
62395 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
62396
62397         Merge from coreutils CVS.
62398
62399         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
62400         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
62401         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
62402         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
62403         xstrtol.m4: Fix copyright date and/or serial number.
62404
62405         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
62406         See if we need an fchown replacement.
62407         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
62408         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
62409         and use the replacement function if we detect either defect.
62410
62411         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
62412         gl_UTIMECMP.
62413
62414 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
62415         and  Jim Meyering  <jim@meyering.net>
62416
62417         Merge from coreutils CVS.
62418
62419         * lib/stat-macros.h: New file, with contents from file-type.h
62420         and coreutils' system.h.
62421         * lib/file-type.c: Include "stat-macros.h".
62422         * lib/file-type.h (file_type): Move all macro definitions to new file,
62423         stat-macros.h.
62424
62425         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
62426         Wrap old code with this conditional.
62427         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
62428         function that does not dereference symlinks.
62429         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
62430
62431         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
62432         dependency problems.
62433         (xreadlink): Accept new arg SIZE, for efficiency.
62434         All decls and uses changed.
62435         * lib/xreadlink.h: Include <stddef.h>, for size_t.
62436
62437         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
62438         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
62439
62440         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
62441         sysexits.h.
62442
62443 2004-06-01  Jim Meyering  <jim@meyering.net>
62444
62445         * m4/calloc.m4: New file.
62446
62447 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
62448
62449         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
62450         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
62451         Also, fix a typo in a diagnostic.
62452
62453 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
62454
62455         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
62456         or AC_FUNC_REALLOC.
62457
62458 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
62459
62460         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
62461         macros to be defined.
62462         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
62463         the allocator returns NULL because the requested size is zero.
62464
62465 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
62466
62467         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
62468         var.  Add comment explaining why libc still defines it.  This
62469         merges the following patch from glibc:
62470         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
62471
62472 2004-05-20  Andreas Schwab  <schwab@suse.de>
62473
62474         * m4/free.m4: Replace free if it not known to work, not the other
62475         way round.
62476
62477 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
62478
62479         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
62480         present in glibc since revision 1.1 of this file.
62481         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
62482         obstack_alignment_mask, obstack_alloc, obstack_base,
62483         obstack_blank, obstack_blank_fast, obstack_chunk_size,
62484         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
62485         obstack_grow0, obstack_init, obstack_int_grow,
62486         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
62487         obstack_next_free, obstack_object_size, obstack_ptr_grow,
62488         obstack_ptr_grow_fast, obstack_room): Remove declarations of
62489         nonexistent functions.
62490
62491 2004-05-18  Karl Berry  <karl@gnu.org>
62492
62493         * config/srclist.txt: break link for vasnprintf.c.
62494
62495 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
62496
62497         Port obstack to the AS/400, where pointers are 16 bytes wide and
62498         you cannot cast an integer to a valid pointer.  This patch is
62499         currently waiting to be integrated into glibc; see
62500         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
62501
62502         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
62503         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
62504         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
62505         (struct obstack): temp member is now a union of a pointer and
62506         an integer, instead of an integer.  All integer uses changed.
62507         This does not affect the physical layout of struct obstack,
62508         except on hosts (like the AS/400) where the size or alignment of
62509         void * is greater than that of ptrdiff_t.
62510         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
62511         __STDC__)]: Store temporary in pointer member of union, not
62512         integer member.
62513         * lib/obstack.c: Include <stddef.h>, for offsetof.
62514         (struct fooalign): Remove; it doesn't need a name.
62515         (union fooround): Change double to long double, and add void *.
62516         (DEFAULT_ALIGNMENT): Use offsetof to compute.
62517         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
62518         not a macro.  Hence the values are always int; so remove all
62519         casts-to-int in uses.
62520
62521 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
62522
62523         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
62524         we can get this patch merged into glibc.
62525
62526 2004-05-17  Derek R. Price  <derek@ximbiot.com>
62527             Paul Eggert  <eggert@cs.ucla.edu>
62528
62529         * m4/argp: Depend on alloca.
62530
62531 2004-05-17  Derek R. Price  <derek@ximbiot.com>
62532             Paul Eggert  <eggert@cs.ucla.edu>
62533
62534         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
62535         freecoding.
62536
62537 2004-05-17  Bruno Haible  <bruno@clisp.org>
62538
62539         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
62540         precision that consists of a '.' followed by an empty digit string.
62541         Patch by Tor Lillqvist <tml@iki.fi>.
62542
62543 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
62544
62545         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
62546         for backward compatibility with older code.  We need our own
62547         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
62548         it under some other name, and our alloca.h will define it.
62549
62550 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
62551             Derek Price  <derek@ximbiot.com>
62552
62553         * lib/alloca.c: Include <alloca.h>, to get our interface.
62554         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
62555         include <alloca.h> first.  Use C89 prototype for alloca; this
62556         requires including <stddef.h> for size_t.  Use extern "C" if C++.
62557         Use #elif for simplicity, since we can assume C89 now.
62558         Don't try to source the system alloca.h since it will not be found
62559         and to prevent recursively including its replacement.
62560         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
62561         * lib/regex.c: Likewise.
62562
62563 2004-05-16  Derek Price  <derek@ximbiot.com>
62564             Paul Eggert  <eggert@cs.ucla.edu>
62565
62566         getline cleanup.  This changes the getndelim2 API: both order of
62567         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
62568         no delimiter).
62569
62570         * lib/getline.c: Don't include stddef.h or stdio.h, since our
62571         interface does that.
62572         (getline): Always use getdelim, so that we don't have two
62573         copies of this code.
62574         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
62575         if available.
62576         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
62577         (GETNDELIM2_MAXIMUM): New macro.
62578         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
62579         instead of the old practice of delim2==0.  All callers changed.
62580         Return -1 on overflow, instead of returning junk.
62581         Do not set *linesize unless allocation succeeds.
62582         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
62583         that we include sys/types.h.
62584         * lib/getnline.h: Likewise.
62585         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
62586         (getndelim2): Reorder arguments.
62587         * lib/getnline.c (getnline, getndelim):
62588         Don't discard the NMAX argument.
62589         (getnline): Invoke getndelim, to avoid code duplication.
62590         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
62591         of (size_t) -1 by callers of the getnline family.
62592
62593 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
62594
62595         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
62596         Check for gettimeofday.
62597         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
62598         Check for settimeofday, stime.
62599
62600 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
62601
62602         * lib/nanosleep.c (suspended): Change its type from int to
62603         sig_atomic_t volatile.
62604         (first_call): Make it private to rpl_nanosleep, and have it
62605         be zero initially as that's a bit faster.
62606         (my_usleep): Round up fractional times instead of truncating them,
62607         as this is the usual meaning for 'sleep'.
62608
62609         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
62610         doesn't work.
62611         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
62612         (ENOSYS): Define if not defined.
62613         (settime): Fall back on stime if it exists and settimeofday fails.
62614         But don't bother with fallbacks if a method fails with errno == EPERM.
62615
62616 2004-05-11  Jim Meyering  <jim@meyering.net>
62617
62618         Prior to this change, the save_cwd caller required read access to the
62619         current directory on most systems (ones with the fchdir function).
62620
62621         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
62622         fails, try write-only, and finally, resort to using xgetcwd.
62623
62624 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
62625
62626         * lib/obstack.c, obstack.h: Import changes from libc.
62627
62628 2004-04-28  Bruno Haible  <bruno@clisp.org>
62629
62630         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
62631         also implicitly appends .exe to executables.
62632         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
62633         accepts Windows pathnames.
62634         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
62635         Treat Cygwin like Windows, since it now accepts Windows pathnames.
62636         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
62637         Treat Cygwin like Windows, since it now accepts Windows pathnames.
62638         Reported by Derek Robert Price <derek@ximbiot.com>.
62639
62640 2004-04-21  Karl Berry  <karl@gnu.org>
62641
62642         * config/srclist.txt (localcharset.c): break sync.
62643
62644 2004-04-20  Paul Eggert  <eggert@twinsun.com>
62645
62646         * m4/host-os.m4: Add a copyright notice.
62647
62648 2004-04-20  Jim Meyering  <jim@meyering.net>
62649
62650         Change UTILS_ to gl_ in AC_DEFINE'd names.
62651         Change utils_- and jm_-prefixed variables, too.
62652         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
62653         UTILS_FUNC_MKDIR_TRAILING_SLASH.
62654         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
62655
62656         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
62657         Don't emit trailing blanks.
62658         Also rename jm_-prefixed variables to have gl_ prefix.
62659
62660         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
62661         Also rename jm_-prefixed variables to have gl_ prefix.
62662
62663         * m4/jm-macros.m4: Reflect the renamings.
62664         * m4/prereq.m4: Likewise.
62665
62666 2004-04-20  Jim Meyering  <jim@meyering.net>
62667
62668         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
62669         memory.
62670
62671 2004-04-20  Jim Meyering  <jim@meyering.net>
62672             Bruno Haible  <bruno@clisp.org>
62673
62674         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
62675         memory when realloc fails.
62676
62677 2004-04-19  Jim Meyering  <jim@meyering.net>
62678
62679         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
62680         now that readutmp.c may call `free (0)'.
62681
62682 2004-04-19  Bruno Haible  <bruno@clisp.org>
62683
62684         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
62685         * m4/inttypes_h.m4: Likewise.
62686         * m4/stdint_h.m4: Likewise.
62687         * m4/intmax_t.m4: Likewise.
62688         * m4/uintmax_t.m4: Likewise.
62689
62690 2004-04-18  Jim Meyering  <jim@meyering.net>
62691
62692         * m4/prereq.m4: Don't forbid jm_ prefix.
62693
62694         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
62695         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
62696         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
62697         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
62698         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
62699         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
62700         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
62701         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
62702         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
62703         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
62704         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
62705         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
62706         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
62707         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
62708         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
62709         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
62710         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
62711         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
62712         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
62713
62714 2004-04-18  Jim Meyering  <jim@meyering.net>
62715
62716         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
62717         failure, don't leak memory and do call END_UTMP_ENT.
62718
62719 2004-04-16  Jim Meyering  <jim@meyering.net>
62720
62721         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
62722         coreutils' stat program.
62723         (gl_PREREQ): Don't require jm_PREREQ_STAT.
62724
62725 2004-04-11  Paul Eggert  <eggert@twinsun.com>
62726
62727         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
62728         C89.
62729         (CHAR_BIT): Remove, since we assume C89.
62730         Include <stdint.h> if available, as per current Autoconf CVS advice.
62731
62732 2004-03-31  Jim Meyering  <jim@meyering.net>
62733
62734         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
62735         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
62736         * m4/xalloc.m4: Likewise.
62737
62738 2004-03-30  Paul Eggert  <eggert@twinsun.com>
62739
62740         Merge from coreutils.
62741
62742         * m4/inttostr.m4: New file.
62743         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
62744         Require AM_STDBOOL_H and gl_TIMESPEC instead.
62745         Require gl_CLOCK_TIME.
62746         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
62747
62748 2004-03-30  Paul Eggert  <eggert@twinsun.com>
62749
62750         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
62751         not bool, to be more consistent with Unix conventions.
62752         Suggested by Bruno Haible.
62753
62754         Merge from coreutils.
62755
62756         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
62757         * lib/umaxtostr.c: New files.
62758
62759         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
62760         the usual <time.h> dance.
62761         (get_date): Change signature to support fractional time stamps.
62762         All callers changed.
62763         * lib/getdate.y: Include "getdate.h" first, as we can now
62764         assume C89 and don't need to worry about 'const'.
62765         Similarly, include "unlocked-io.h" near start, not in middle.
62766         Include <limits.h>.
62767         (textint.value): Use long int rather than int.
62768         (textint.digits): Use size_t rather than int.
62769         (BILLION, LOG10_BILLION): New constants.
62770         (parser_control): New member rel_ns.  Members day_ordinal,
62771         time_zone, month, day, hour, minutes, rel_year, rel_month,
62772         rel_day, rel_hour, rel_minutes, rel_seconds
62773         are now long int, not int.  Member seconds is now struct timespec,
62774         not int.  New member timespec_seen.  Members dates_seen, days_seen,
62775         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
62776         not int.
62777         (%union.intval): Now long int, not int.
62778         New member timespec.
62779         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
62780         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
62781         (spec): Now is a timespec or an item list.
62782         (timespec, items): New nonterminals.
62783         (time, rel, relunit, number, get_date):
62784         Add support for fractional seconds.
62785         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
62786         (gmtime, localtime, mktime): Remove decls; not needed with C89.
62787         (to_hour): First arg is now long int, not int.
62788         (to_year): Returns long int, not int.
62789         Don't treat year -70 like 70.
62790         (tm_diff): Returns long int, not int.
62791         (lookup_word): Use bool instead of int when appropriate.
62792         (yylex): Use size_t for count, not int.
62793         Detect overflow when parsing large integer constants.
62794         Add support for fractions.
62795         (get_date): Make pointers 'const' if possible.
62796         Use more-portable code to detect integer overflow.
62797         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
62798         Don't use ctime; it's not reliable if the year has >4 digits.
62799
62800         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
62801         This is for compatibility with BSD.
62802
62803         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
62804         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
62805         From coreutils' system.h.
62806
62807         * lib/userspec.c: Don't include "posixver.h".
62808         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
62809         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
62810         compatible extension.  Simplify code by removing a boolean int
62811         that was always nonzero if a string was nonnull.
62812
62813 2004-03-30  Jim Meyering  <jim@meyering.net>
62814
62815         Merge from coreutils.
62816
62817         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
62818         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
62819         on some systems one must include <grp.h> before it.
62820         Reported by Christian Krackowizer.
62821
62822 2004-03-30  Jim Meyering  <jim@meyering.net>
62823
62824         Merge from coreutils.
62825
62826         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
62827
62828         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
62829         an empty input stream.
62830
62831         * lib/readtokens.c: Include <stdbool.h>.
62832         (readtoken): Use `size_t' rather than int/long.
62833         All callers adjusted.
62834         Use `bool' rather than `int' where appropriate.
62835         Use memset rather than an explicit loop.
62836         Use x2nrealloc rather than xrealloc.
62837         Allow the use of `\0' as a delimiter.
62838         (readtokens): Likewise.
62839         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
62840
62841 2004-03-30  Jim Meyering  <jim@meyering.net>
62842
62843         * m4/realloc.m4: Remove file, since now it does no more than
62844         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
62845         the `configure.ac' section of module/realloc.
62846         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
62847
62848 2004-03-30  Bruno Haible  <bruno@clisp.org>
62849
62850         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
62851         nonnull.
62852
62853 2004-03-29  Paul Eggert  <eggert@twinsun.com>
62854
62855         Merge changes to getloadavg.c from coreutils and Emacs.
62856
62857         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
62858         Define to an expression, not to the empty string.
62859         Include cloexec.h and xalloc.h.
62860         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
62861         Use set_cloexec_flag rather than rolling our own.
62862         * lib/cloexec.c, lib/cloexec.h: New files.
62863
62864 2004-03-29  Paul Eggert  <eggert@twinsun.com>
62865
62866         * m4/cloexec.m4: New file.
62867
62868 2004-03-18  Paul Eggert  <eggert@twinsun.com>
62869
62870         * lib/getopt.h: Sync with libc CVS.
62871
62872 2004-03-18  Paul Eggert  <eggert@twinsun.com>
62873             Bruno Haible  <bruno@clisp.org>
62874
62875         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
62876         mbswidth.
62877
62878 2004-03-18  Paul Eggert  <eggert@twinsun.com>
62879             Bruno Haible  <bruno@clisp.org>
62880
62881         * lib/mbswidth.h: Include <wchar.h> only if
62882         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
62883         <wchar.h>.
62884         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
62885
62886 2004-03-09  Paul Eggert  <eggert@twinsun.com>
62887
62888         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
62889         Sync with libc CVS.
62890         * lib/getopt_int.h: New file, also synced from libc.
62891
62892 2004-03-09  Paul Eggert  <eggert@twinsun.com>
62893
62894         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
62895         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
62896         Bring back getopt.c, getopt.h, getopt1.c.
62897
62898 2004-03-07  Paul Eggert  <eggert@twinsun.com>
62899
62900         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
62901         All uses changed.  Check for sa_sigaction member; this fixes
62902         a bug first reported by Jason Andrade in
62903         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
62904
62905 2004-03-07  Paul Eggert  <eggert@twinsun.com>
62906
62907         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
62908         '#if' expressions.  Unlike the code it replaces, it does not
62909         depend on (defined _SC_PAGESIZE).  However, it does depend on
62910         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
62911         first reported by Jason Andrade in
62912         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
62913
62914 2004-02-25  Simon Josefsson  <jas@extundo.com>
62915
62916         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
62917
62918 2004-02-25  Simon Josefsson  <jas@extundo.com>
62919
62920         * lib/strdup.h: New file.
62921         * lib/strdup.c: Include it.
62922         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
62923         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
62924
62925 2004-02-23  Karl Berry  <karl@gnu.org>
62926
62927         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
62928         (from fencepost.gnu.org:/gd/gnuorg).
62929
62930 2004-02-23  Karl Berry  <karl@gnu.org>
62931
62932         * config/srclistvars.sh (GNUORG) [karl]: redefine.
62933         * config/srclist.txt: add maintain/standards documents.
62934
62935 2004-02-18  Bruno Haible  <bruno@clisp.org>
62936
62937         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
62938         Reported by Derek Robert Price <derek@ximbiot.com>.
62939
62940 2004-02-16  Karl Berry  <karl@gnu.org>
62941
62942         * config/mkinstalldirs, install-sh: update from automake.
62943
62944 2004-02-06  Karl Berry  <karl@gnu.org>
62945
62946         * m4/po.m4: update from gettext 0.14.1.
62947
62948 2004-02-06  Karl Berry  <karl@gnu.org>
62949
62950         * lib/config.charset: update from gettext 0.14.1.
62951
62952 2004-02-05  Paul Eggert  <eggert@twinsun.com>
62953
62954         Add comments and code, prompted by suggestions from Bruno Haible
62955         for sh-quote.
62956         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
62957         describing the enum quoting_style values.
62958         * lib/quotearg.c (quotearg_alloc): New function.
62959         (quotearg_buffer_restyled): Treat lone { and } as special.
62960         Treat = as special.  Work around bug with older shells
62961         that "see" a '\' that is really the 2nd byte of a multibyte char.
62962         Quote empty string with shell_quoting_style.
62963
62964 2004-02-03  Bruno Haible  <bruno@clisp.org>
62965
62966         * m4/pipe.m4: New file, from GNU gettext.
62967
62968 2004-02-03  Bruno Haible  <bruno@clisp.org>
62969
62970         * lib/pipe.h: New file, from GNU gettext.
62971         * lib/pipe.c: New file, from GNU gettext.
62972
62973 2004-01-27  Bruno Haible  <bruno@clisp.org>
62974
62975         * m4/execute.m4: New file, from GNU gettext.
62976
62977 2004-01-27  Bruno Haible  <bruno@clisp.org>
62978
62979         * lib/execute.h: New file, from GNU gettext.
62980         * lib/execute.c: New file, from GNU gettext.
62981         * lib/w32spawn.h: New file, from GNU gettext.
62982
62983 2004-01-24  Paul Eggert  <eggert@twinsun.com>
62984
62985         Merge from diffutils.
62986
62987         * lib/file-type.c (file_type): Add typed memory objects.
62988         * lib/file-type.h (S_TYPEISTMO): New macro.
62989
62990         * lib/c-stack.h (c_stack_action): Remove argv argument.
62991         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
62992         (die): Don't calculate message unless segv_action returns.
62993         (get_stack_location, min_address_from_argv, max_address_from_argv,
62994         volatile stack_base, volatile_stack_size): Remove.
62995         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
62996         that every segmentation violation is a stack overflow.  (Ouch!)
62997         See Debian bug 136249 (still outstanding) for more info about why
62998         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
62999
63000 2004-01-24  Paul Eggert  <eggert@twinsun.com>
63001
63002         Exit-status fix from coreutils.
63003
63004         Use exit_failure consistently in place of EXIT_FAILURE,
63005         so that program exit statuses are consistent on failure.
63006
63007         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
63008         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
63009         * lib/argmatch.h: Comment fix to match the above.
63010         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
63011         Now a macro referring to exit_failure, instead of a separate
63012         variable.  Include "exitfail.h" to get it.
63013         * lib/xstrtol.h: Include "exitfail.h".
63014         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
63015
63016         * lib/long-options.c (parse_long_options): Use prototype
63017         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
63018         for clarity.
63019
63020 2004-01-21  Jim Meyering  <jim@meyering.net>
63021
63022         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
63023         so as not to conflict with a different-sized __mktime_internal
63024         function in GNU libc.
63025         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
63026         Problem building statically-linked `ls' reported by Michael Brunnbauer.
63027
63028 2004-01-20  Karl Berry  <karl@gnu.org>
63029
63030         * config/config.guess: update from config.
63031
63032         * config/srclistvars.sh: GNUWWWLICENSES for karl.
63033
63034 2004-01-20  Bruno Haible  <bruno@clisp.org>
63035
63036         Safer stack allocation.
63037         * lib/setenv.c: Include allocsa.h.
63038         (alloca): Remove fallback definition.
63039         (freea): Remove macro.
63040         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
63041         instead of freea.
63042
63043 2004-01-20  Bruno Haible  <bruno@clisp.org>
63044
63045         * m4/eealloc.m4: New file, from GNU gettext.
63046
63047 2004-01-20  Bruno Haible  <bruno@clisp.org>
63048
63049         * m4/allocsa.m4: New file, from GNU gettext.
63050
63051 2004-01-20  Bruno Haible  <bruno@clisp.org>
63052
63053         * lib/xallocsa.h: New file, from GNU gettext.
63054         * lib/xallocsa.c: New file, from GNU gettext.
63055
63056 2004-01-20  Bruno Haible  <bruno@clisp.org>
63057
63058         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
63059
63060 2004-01-20  Bruno Haible  <bruno@clisp.org>
63061
63062         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
63063         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
63064         specially.
63065
63066 2004-01-20  Bruno Haible  <bruno@clisp.org>
63067
63068         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
63069         patch.
63070
63071 2004-01-20  Bruno Haible  <bruno@clisp.org>
63072
63073         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
63074
63075 2004-01-20  Bruno Haible  <bruno@clisp.org>
63076
63077         * lib/eealloc.h: New file.
63078
63079 2004-01-20  Bruno Haible  <bruno@clisp.org>
63080
63081         * lib/binary-io.h: Avoid warnings on Cygwin.
63082
63083 2004-01-20  Bruno Haible  <bruno@clisp.org>
63084
63085         * lib/allocsa.h: New file, from GNU gettext.
63086         * lib/allocsa.c: New file, from GNU gettext.
63087
63088 2004-01-18  Karl Berry  <karl@gnu.org>
63089
63090         * doc/gpl.texi, doc/lgpl.texi: new files.
63091
63092 2004-01-18  Karl Berry  <karl@gnu.org>
63093
63094         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
63095         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
63096
63097 2004-01-15  Paul Eggert  <eggert@twinsun.com>
63098
63099         Merge from coreutils.
63100
63101         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
63102         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
63103         (gl_DEFAULT_POSIX2_VERSION): Move
63104         the documentation from 'configure' into 'config.hin',
63105         so that 'configure --help' isn't burdened by it and
63106         we don't have to worry about its formatting there.
63107         Reword the documentation so that it's more succinct
63108         and can be run together into a single paragraph.
63109         * m4/same.m4 (gl_SAME): Check for pathconf.
63110
63111 2004-01-15  Paul Eggert  <eggert@twinsun.com>
63112
63113         Merge from coreutils.
63114
63115         * lib/posixver.c: Include posixver.h.
63116
63117         * lib/same.c: Include <stdbool.h>, <limits.h>.
63118         (_POSIX_NAME_MAX): Define if not defined.
63119         (MIN): New macro.
63120         (same_name): If file names are silently truncated, report
63121         that the file names are the same if they are the same after
63122         the silent truncation.
63123
63124         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
63125         conversion function.
63126         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
63127         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
63128         longer needed.
63129
63130 2004-01-15  Jim Meyering  <jim@meyering.net>
63131
63132         Merge from coreutils.
63133
63134         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
63135         if no library is required.
63136         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
63137         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
63138         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
63139         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
63140         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
63141         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
63142         value, $ac_cv_search_crypt, if it's "none required".
63143         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
63144         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
63145         not gl_FUNC_GETLOADAVG.
63146         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
63147         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
63148
63149 2004-01-15  Jim Meyering  <jim@meyering.net>
63150
63151         Merge from coreutils.
63152
63153         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
63154         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
63155         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
63156
63157         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
63158         optional configure-time default.
63159
63160         * lib/version-etc.c (version_etc_copyright): Update copyright date.
63161
63162         * lib/xreadlink.c (xreadlink): Correct outdated comment.
63163
63164 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
63165
63166         Merge from coreutils.
63167
63168         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
63169         value, $ac_cv_search_nanosleep, if it's "none required".
63170
63171 2004-01-14  Paul Eggert  <eggert@twinsun.com>
63172
63173         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
63174         with like-named macro in fnmatch.c.
63175         (EXT): Use an internal constant instead.
63176
63177         Merge fnmatch patches from glibc.
63178         * lib/fnmatch.c (mbsinit): Remove define.
63179         Add libc_hidden_ver (__fnmatch, fnmatch).
63180         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
63181         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
63182
63183 2004-01-14  Karl Berry  <karl@gnu.org>
63184
63185         * config/install-sh: update from automake.
63186
63187 2004-01-13  Karl Berry  <karl@gnu.org>
63188
63189         * config/install-sh: update from automake.
63190
63191 2004-01-09  Karl Berry  <karl@gnu.org>
63192
63193         * config/install-sh: update from automake.
63194
63195 2004-01-05  Karl Berry  <karl@gnu.org>
63196
63197         * config/config.{sub,guess}: update from config.
63198
63199 2003-12-31  Karl Berry  <karl@gnu.org>
63200
63201         * config/depcomp: update from automake.
63202
63203 2003-12-14  Karl Berry  <karl@gnu.org>
63204
63205         * lib/config.charset: update from gettext-runtime.
63206
63207 2003-12-03  Paul Eggert  <eggert@twinsun.com>
63208
63209         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
63210         Bug reported by Alfred M. Szmidt.
63211
63212 2003-12-03  Bruno Haible  <bruno@clisp.org>
63213
63214         * m4/gettext.m4: Upgrade from gettext-0.13.
63215         * m4/po.m4: Upgrade from gettext-0.13.
63216         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
63217         * m4/intmax.m4: New file, from gettext-0.13.
63218         * m4/printf-posix.m4: New file, from gettext-0.13.
63219
63220 2003-11-29  Karl Berry  <karl@gnu.org>
63221
63222         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
63223
63224 2003-11-25  Paul Eggert  <eggert@twinsun.com>
63225             Bruno Haible  <bruno@clisp.org>
63226
63227         * lib/printf-parse.h: Don't include sys/types.h.
63228         (ARG_NONE): New macro.
63229         (char_directive): Change type of *arg_index fields to size_t.
63230         * lib/printf-parse.c: Don't include sys/types.h.
63231         (SSIZE_MAX): Remove macro.
63232         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
63233         Remove unnecessary overflow check.
63234         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
63235         fields.
63236
63237 2003-11-25  Bruno Haible  <bruno@clisp.org>
63238
63239         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
63240
63241 2003-11-25  Bruno Haible  <bruno@clisp.org>
63242
63243         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
63244         gt_TYPE_SSIZE_T.
63245
63246 2003-11-24  Paul Eggert  <eggert@twinsun.com>
63247
63248         * modules/alloca: Remove dependency on xalloc.
63249
63250 2003-11-24  Paul Eggert  <eggert@twinsun.com>
63251
63252         * lib/alloca.c: Remove dependency on xalloc module.
63253         (xalloc_die): Remove.
63254         (memory_full) [!defined emacs]: New macro.
63255         [!defined emacs]: Don't include xalloc.h.
63256         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
63257         address arithmetic overflows.  Change datatypes a bit to avoid
63258         unnecessary casts.
63259
63260 2003-11-22  Jim Meyering  <jim@meyering.net>
63261
63262         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
63263         s/size/size_t/.
63264
63265 2003-11-21  Karl Berry  <karl@gnu.org>
63266
63267         * config/config.{sub,guess}: update from config.
63268
63269 2003-11-18  Karl Berry  <karl@gnu.org>
63270
63271         * config/config.{sub,guess}: update from config.
63272
63273         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
63274
63275 2003-11-17  Paul Eggert  <eggert@twinsun.com>
63276
63277         * README: Mention that S+T cannot overflow if S is the size of
63278         an existing object and T is sufficiently small.
63279
63280 2003-11-17  Jim Meyering  <jim@meyering.net>
63281
63282         On systems without utime and without a utimes function capable of
63283         dealing with a NULL struct utimbuf* argument, this utime replacement
63284         could -- in unusual circumstances -- leak a file descriptor.
63285         * lib/utime.c: Include <unistd.h> and <errno.h>.
63286         (utime_null): Be sure to close `fd' and to preserve errno.
63287         Reported by Geoff Collyer via Arnold Robbins.
63288
63289 2003-11-17  Bruno Haible  <bruno@clisp.org>
63290
63291         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
63292         (Depends-on): Add xsize.
63293
63294 2003-11-17  Bruno Haible  <bruno@clisp.org>
63295
63296         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
63297
63298 2003-11-17  Bruno Haible  <bruno@clisp.org>
63299
63300         * lib/vasnprintf.c (alloca): Remove fallback definition.
63301         (freea): Remove definition.
63302         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
63303         Reported by Paul Eggert.
63304
63305 2003-11-16  Paul Eggert  <eggert@twinsun.com>
63306             Bruno Haible  <bruno@clisp.org>
63307
63308         Protect against address arithmetic overflow.
63309         * lib/printf-args.h: Include stddef.h.
63310         (arguments): Change type of field 'count' to size_t.
63311         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
63312         'unsigned int' where appropriate.
63313         * lib/printf-parse.h: Include sys/types.h.
63314         (char_directive): Change type of *arg_index fields to ssize_t.
63315         (char_directives): Change type of fields 'count', max_*_length to
63316         size_t.
63317         * lib/printf-parse.c: Include sys/types.h and xsize.h.
63318         (SSIZE_MAX): Define fallback value.
63319         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
63320         instead of 'int' where appropriate. Check a_allocated, d_allocated
63321         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
63322         * lib/vasnprintf.c: Include xsize.h.
63323         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
63324         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
63325         overflow. Avoid wraparound when converting a width or precision from
63326         decimal to binary.
63327
63328 2003-11-16  Bruno Haible  <bruno@clisp.org>
63329
63330         Update from GNU gettext.
63331         * lib/printf-parse.c: Generalize to it can be compiled for wide
63332         strings.
63333         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
63334         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
63335         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
63336         SNPRINTF): New macros.
63337         Don't include <alloca.h> if the file is used inside libintl.
63338         (local_wcslen): New function, for Solaris 2.5.1.
63339         (VASNPRINTF): Use it instead of wcslen.
63340
63341 2003-11-16  Bruno Haible  <bruno@clisp.org>
63342
63343         * lib/xsize.h (xmax): New function.
63344         (xsum, xsum3, xsum4): Declare as "pure" functions.
63345
63346 2003-11-12  Paul Eggert  <eggert@twinsun.com>
63347
63348         * modules/xalloc (Files): Undo latest change, since xalloc.h
63349         no longer needs SIZE_MAX or PTRDIFF_MAX.
63350
63351 2003-11-12  Paul Eggert  <eggert@twinsun.com>
63352
63353         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
63354         gl_PTRDIFF_MAX.
63355
63356 2003-11-12  Paul Eggert  <eggert@twinsun.com>
63357
63358         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
63359         "return", to pacify some unknown compiler.  Problem reported
63360         by Joerg Schilling.
63361
63362 2003-11-12  Paul Eggert  <eggert@twinsun.com>
63363
63364         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
63365         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
63366         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
63367         heuristic is just as accurate as far as we know, and it removes a
63368         dependency on size_max.m4 and ptrdiff_max.m4.
63369
63370 2003-11-11  Bruno Haible  <bruno@clisp.org>
63371
63372         * modules/xsize (Files): Add m4/size_max.m4.
63373         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
63374
63375 2003-11-11  Bruno Haible  <bruno@clisp.org>
63376
63377         * m4/size_max.m4: New file.
63378         * m4/ptrdiff_max.m4: New file.
63379         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
63380         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
63381         (gl_XALLOC): Invoke it.
63382
63383 2003-11-11  Bruno Haible  <bruno@clisp.org>
63384
63385         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
63386         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
63387         defined.
63388
63389 2003-11-10  Paul Eggert  <eggert@twinsun.com>
63390
63391         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
63392         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
63393         rejected some allocations of exactly SIZE_MAX - 2 bytes.
63394         From Bruno Haible.
63395         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
63396         not (size_t) -1, since it's defined here.
63397
63398 2003-11-09  Karl Berry  <karl@gnu.org>
63399
63400         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
63401
63402 2003-11-06  Paul Eggert  <eggert@twinsun.com>
63403
63404         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
63405         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
63406         Reject sizes of exactly SIZE_MAX bytes.
63407         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
63408         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
63409
63410 2003-11-05  Bruno Haible  <bruno@clisp.org>
63411
63412         * lib/xsize.h: Include limits.h, to avoid a possible collision with
63413         SIZE_MAX defined in <limits.h> on Solaris.
63414
63415 2003-11-04  Jim Meyering  <jim@meyering.net>
63416
63417         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
63418         variable names, rather than @VAR@.
63419         * modules/poll: Likewise.
63420
63421 2003-11-04  Bruno Haible  <bruno@clisp.org>
63422
63423         * modules/xsize: New file.
63424         * modules/linebreak: Depend on xsize.
63425         * MODULES.html.sh (func_all_modules): Add xsize.
63426
63427 2003-11-04  Bruno Haible  <bruno@clisp.org>
63428
63429         * m4/xsize.m4: New file.
63430
63431 2003-11-04  Bruno Haible  <bruno@clisp.org>
63432
63433         * lib/xsize.h: New file.
63434         * lib/linebreak.c: Include xsize.h.
63435         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
63436         argument for overflow.
63437         Suggested by Paul Eggert.
63438
63439 2003-11-03  Karl Berry  <karl@gnu.org>
63440
63441         * config/config.{guess,sub}: update from config.
63442
63443 2003-11-03  Jim Meyering  <jim@meyering.net>
63444
63445         * modules/userspec (lib_SOURCES): Add userspec.h.
63446         (Include): Add "userspec.h".
63447         Improve description.
63448
63449 2003-11-03  Jim Meyering  <jim@meyering.net>
63450
63451         * lib/userspec.c: Include "userspec.h".
63452         * lib/userspec.h: New file.
63453
63454 2003-11-03  Bruno Haible  <bruno@clisp.org>
63455
63456         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
63457
63458 2003-11-03  Bruno Haible  <bruno@clisp.org>
63459
63460         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
63461         available, to avoid (extremely rare) race condition.
63462         Suggested by Paul Eggert.
63463
63464 2003-11-02  Karl Berry  <karl@gnu.org>
63465
63466         * config/srclist.txt (vasprintf.c): sync broken, sigh.
63467
63468 2003-10-31  Paul Eggert  <eggert@twinsun.com>
63469
63470         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
63471         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
63472         (read_filesystem_list): Set and use me_type_malloced.
63473         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
63474         whatever the type happens to be), for brevity and consistency.
63475         Check for size calculation overflow on Alphas running OSF/1.
63476
63477 2003-10-31  Jim Meyering  <jim@meyering.net>
63478
63479         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
63480
63481         * lib/linebuffer.c: Include <string.h> for declaration of memset.
63482
63483 2003-10-30  Paul Eggert  <eggert@twinsun.com>
63484             Bruno Haible  <bruno@clisp.org>
63485
63486         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
63487         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
63488
63489 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
63490
63491         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
63492         netbsd*-gnu*.  Suggested by Robert Millan.
63493
63494 2003-10-29  Paul Eggert  <eggert@twinsun.com>
63495
63496         * modules/group-member: Depend on stdbool.
63497
63498 2003-10-29  Paul Eggert  <eggert@twinsun.com>
63499
63500         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
63501
63502 2003-10-29  Paul Eggert  <eggert@twinsun.com>
63503
63504         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
63505         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
63506         after the 'gnu' in these cases.  This fixes some bugs in the
63507         previous change, and is based on suggestions by Robert Millan.
63508
63509 2003-10-29  Paul Eggert  <eggert@twinsun.com>
63510
63511         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
63512         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
63513         no longer needed.
63514         * lib/quotearg.c (quotearg_n_options): Use it.
63515         * lib/group-member.c: Include <stdbool.h>.
63516         (free_group_info): Arg is now const *; don't free arg.
63517         (get_group_info): Now returns bool and accepts struct group_info *,
63518         rather than returning a malloc'ed struct group_info *.
63519         All uses changed.  Check for overflow in internal size calculation.
63520
63521         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
63522         rather than xmalloc/xrealloc.
63523         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
63524         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
63525         conformance bug: the old code used a pointer after freeing the
63526         storage that it addressed.
63527         * lib/hash.c (hash_initialize): Simplify the code by using
63528         xalloc_oversized rather than doing it by hand.
63529         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
63530         the buffer preserved.  Use free and xmalloc instead.
63531         * lib/quotearg.c (quotearg_n_options): Likewise.
63532         Use a simpler test for size overflow.  Don't use xalloc_oversized
63533         because unsigned int might be wider than size_t (!); this suggests
63534         that we should switch from unsigned int to size_t for slot numbers.
63535
63536 2003-10-28  Paul Eggert  <eggert@twinsun.com>
63537
63538         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
63539         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
63540         NetBSD kernels.  Requested by Richard Stallman.
63541
63542 2003-10-27  Paul Eggert  <eggert@twinsun.com>
63543
63544         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
63545         to allocate the returned structure.  Do not allocate a subarray,
63546         as x2nrealloc will do that.
63547         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
63548         instead of xnrealloc.
63549         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
63550
63551 2003-10-27  Bruno Haible  <bruno@clisp.org>
63552
63553         * lib/stdbool_.h: Better support for BeOS.
63554
63555 2003-10-26  Paul Eggert  <eggert@twinsun.com>
63556
63557         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
63558         now uses inline.
63559
63560 2003-10-26  Paul Eggert  <eggert@twinsun.com>
63561
63562         * lib/xalloc.h (xalloc_oversized): New static inline function, for
63563         callers that want to do their own size-overflow checking.  Include
63564         <stdbool.h>, since xalloc_oversized returns bool.
63565         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
63566         to use xalloc_oversized.
63567
63568         Add two functions x2realloc, x2nrealloc, for programs that grow
63569         arrays dynamically by doubling their sizes.
63570         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
63571         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
63572         New functions.
63573
63574         Port to C99 semantics for 'inline' of external functions.
63575         Bug reported by Bruno Haible.
63576         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
63577         with the old contents of xnmalloc.
63578         (xnmalloc, xmalloc): Use it.
63579         (xnrealloc_inline): New static inline function,
63580         with the old contents of xnrealloc.
63581         (xnrealloc, xrealloc): Use it.
63582
63583         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
63584         that.
63585
63586 2003-10-26  Karl Berry  <karl@gnu.org>
63587
63588         * config/srclist.txt (COPYING.DOC): no longer available from
63589         /gd/gnuorg; don't know where the ultimate source is.
63590
63591 2003-10-25  Paul Eggert  <eggert@twinsun.com>
63592
63593         Fix several address-calculation bugs in the hash modules,
63594         plus some minor code cleanup.
63595
63596         * lib/hash.h: Include <stdbool.h>, for bool.
63597         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
63598         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
63599         hash_get_n_entries, hash_get_max_bucket_length,
63600         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
63601         hash_rehash): Use size_t rather than unsigned.
63602         * lib/hash.c (struct hash_table, hash_get_n_buckets,
63603         hash_get_n_buckets_used, hash_get_n_entries,
63604         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
63605         hash_get_entries, hash_do_for_each, hash_string, is_prime,
63606         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
63607         Likewise.
63608         (SIZE_MAX): Define if not defined.
63609         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
63610         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
63611         hash_print):
63612         Use const * when possible.
63613         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
63614         (check_tuning): Fix bug: if tuning parameters were very close to
63615         0 or 1, rounding errors could have caused subscript violations.
63616         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
63617         (hash_initialize): Add 'fail:' label
63618         to free table and return NULL, and use it to simplify code.
63619         Use calloc rather than clearing the storage ourself.
63620         (hash_initialize, hash_rehash): Check for arithmetic overflow in
63621         buffer size calculations.
63622         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
63623         Include <stddef.h>, for size_t.
63624         * lib/hash-pjw.c (hash_pjw): Likewise.
63625         Switch to method described by Bruno Haible.
63626         Include <limits.h>, for CHAR_BIT.
63627         (SIZE_BITS): New macro.
63628
63629 2003-10-23  Paul Eggert  <eggert@twinsun.com>
63630
63631         * m4/getline.m4 (AM_FUNC_GETLINE):
63632         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
63633         hosts.  Problem reported by Derek Robert Price in
63634         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
63635         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
63636         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
63637
63638 2003-10-21  Paul Eggert  <eggert@twinsun.com>
63639
63640         * lib/getndelim2.c (getndelim2): When size calculation overflows,
63641         ceiling the allocation at NMAX bytes rather than silently
63642         discarding input bytes before NMAX is reached.  This makes
63643         a difference only if NMAX exceeds SIZE_MAX / 2.
63644
63645         * lib/obstack.c: Merge from glibc.
63646         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
63647         Add libc_hidden_def (_obstack_newchunk).
63648         (_obstack_free) [! defined _LIBC]: Remove.
63649         [defined _LIBC]: Make a strong alias from obstack_free, rather than
63650         a clone of the function body.
63651         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
63652         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
63653
63654         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
63655         glibc.
63656         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
63657         arg to memcpy.
63658
63659         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
63660         (obstack_ptr_grow_fast, obstack_int_grow_fast):
63661         Don't use lvalue casts, as GCC plans to remove support for them
63662         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
63663         was also present in the non-GCC version, indicating that this
63664         code had always been buggy and had never been widely used.
63665         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
63666         Use the fast variant of each macro, rather than copying the
63667         definiens of the fast variant; that way, we'll be more likely to
63668         catch future bugs in the fast variants.
63669
63670 2003-10-20  Bruno Haible  <bruno@clisp.org>
63671
63672         * modules/wait-process: New file.
63673         * MODULES.html.sh (func_all_modules): Add wait-process.
63674
63675 2003-10-20  Bruno Haible  <bruno@clisp.org>
63676
63677         * m4/wait-process.m4: New file.
63678
63679 2003-10-20  Bruno Haible  <bruno@clisp.org>
63680
63681         * lib/wait-process.h: New file, from GNU gettext.
63682         * lib/wait-process.c: New file, from GNU gettext.
63683
63684 2003-10-19  Jim Meyering  <jim@meyering.net>
63685
63686         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
63687         HPUX 10.20.
63688
63689 2003-10-18  Karl Berry  <karl@gnu.org>
63690
63691         * config/config.guess: update from config.
63692
63693 2003-10-16  Paul Eggert  <eggert@twinsun.com>
63694
63695         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
63696         (getgroups): First arg is int, not size_t.
63697         Don't let 'free' mangle errno.
63698
63699 2003-10-16  Paul Eggert  <eggert@twinsun.com>
63700
63701         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
63702
63703 2003-10-16  Karl Berry  <karl@gnu.org>
63704
63705         * config/config.{guess,sub}: update from config.
63706
63707 2003-10-16  Jim Meyering  <jim@meyering.net>
63708
63709         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
63710         memcpy.
63711
63712 2003-10-15  Paul Eggert  <eggert@twinsun.com>
63713
63714         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
63715         (SIZE_MAX): Remove.
63716         (new_exclude, add_exclude_file): Initial size no longer needs to
63717         be a power of 2.
63718         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
63719         our own address arithmetic overflow checking.
63720
63721         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
63722         (fnmatch): Do not alloca more than 2000 wide characters;
63723         instead, use malloc for large buffers.
63724         Check for address arithmetic overflow, and return -1
63725         with errno set to ENOMEM in that case.
63726         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
63727         (NEW_PATTERN): Do not alloca more than 8000 bytes;
63728         instead, return -1.  Check for address arithmetic overflow.
63729
63730 2003-10-14  Paul Eggert  <eggert@twinsun.com>
63731
63732         Handle invalid suffixes and overflow independently, so that
63733         callers can treat them independently as needed.  Fix some bugs in
63734         suffix handling, e.g., "100k@" was not diagnosed as an invalid
63735         suffix for a human-readable blocksize.  The major caller-visible
63736         change is the addition of a new
63737         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
63738         that both overflow and suffix chars were found.
63739
63740         * lib/human.c (humblock): Don't check separately for invalid suffix
63741         char; that is xstrtoumax's job (now that its bug is fixed).
63742         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
63743         INTMAX_MAX]: New macros.
63744         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
63745         TYPE_MAXIMUM): New macros.
63746         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
63747         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
63748         if overflow occurs, as it's what __strtol does and it's more useful
63749         in practice.
63750         (__xstrtol): If __strtol reports some error other than ERANGE,
63751         reflect it to the caller as LONGINT_INVALID.  If it reports
63752         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
63753         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
63754         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
63755         value.
63756         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
63757         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
63758         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
63759         [defined UINTMAX_MAX]: New macros.
63760
63761 2003-10-14  Bruno Haible  <bruno@clisp.org>
63762
63763         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
63764
63765 2003-10-14  Bruno Haible  <bruno@clisp.org>
63766
63767         * m4/sig_atomic_t: New file, from GNU gettext.
63768         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
63769
63770 2003-10-14  Bruno Haible  <bruno@clisp.org>
63771
63772         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
63773         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
63774         Also use volatile where needed.
63775
63776 2003-10-12  Paul Eggert  <eggert@twinsun.com>
63777
63778         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
63779         Change maintainer from Bruno Haible to 'all'.
63780
63781 2003-10-12  Paul Eggert  <eggert@twinsun.com>
63782
63783         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
63784
63785 2003-10-12  Paul Eggert  <eggert@twinsun.com>
63786
63787         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
63788         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
63789         and define in terms of the other primitives.
63790         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
63791         (SIZE_MAX): Define if not already defined.
63792         (array_size_overflow): New function.
63793         (xalloc_die): Abort instead of exiting if 'error' returns.
63794         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
63795         (xmalloc, xrealloc): Use them.
63796         (xcalloc): Check for address arithmetic overflow.
63797         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
63798         a bit faster than strcpy.
63799
63800 2003-10-10  Simon Josefsson  <jas@extundo.com>
63801
63802         * modules/argp (Depends-on): Add restrict and strcase.
63803
63804 2003-10-10  Simon Josefsson  <jas@extundo.com>
63805
63806         * m4/argp.m4: Add AC_C_INLINE.
63807
63808 2003-10-08  Paul Eggert  <eggert@twinsun.com>
63809
63810         Merge getpass from libc, plus a few fixes.
63811
63812         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
63813         Include <stdbool.h>.
63814         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
63815         __fsetlocking to empty.
63816         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
63817         do include <bits/libc-lock.h>.
63818         Do not include <fcntl.h>; not needed.
63819         [_LIBC]: Include <wchar.h>.
63820         (NOTCANCEL_MODE): New macro.
63821         (flockfile, funlockfile) [_LIBC]: New macros.
63822         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
63823         [!_LIBC]: New macros.
63824         (call_fclose): New function.
63825         (getpass): Use it.  Save tty stream separately; this simplifies the
63826         code and makes it more reliable if stdin happens to equal stdout.
63827         Invoke __fsetlocking on tty.
63828         Handle thread cancellation if needed.
63829         Namespace cleanup (use __tcgetattr, __getline).
63830         Use bool for Booleans.
63831         [USE_IN_LIBIO]: Handle wide streams.
63832         [!_LIBC]: Unconditionally do the fseek, since we don't know what
63833         stream might go where.
63834
63835         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
63836         doesn't have to include <stdio.h> before us.
63837         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
63838         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
63839         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
63840         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
63841         if not declared, so that we can use getpass.c code from libc without
63842         rewriting it.
63843         (flockfile, ftrylockfile, funlockfile): New macros.
63844
63845 2003-10-08  Paul Eggert  <eggert@twinsun.com>
63846
63847         * modules/getpass: Depend on stdbool.
63848
63849 2003-10-08  Paul Eggert  <eggert@twinsun.com>
63850
63851         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
63852
63853 2003-10-07  Karl Berry  <karl@gnu.org>
63854
63855         * config/config.{guess,sub}: update from config.
63856
63857 2003-10-06  Jim Meyering  <jim@meyering.net>
63858             Bruno Haible  <bruno@clisp.org>
63859
63860         This lets translators provide better translations for the
63861         "Written by ..." part of --version output.
63862         * lib/version-etc.h: Include stdarg.h.
63863         (version_etc_copyright): Declare as readonly.
63864         (version_etc): Make this function variadic with a NULL-terminated list
63865         of author name strings.
63866         (version_etc_va): New declaration.
63867         * lib/version-etc.c: Include stdarg.h, stdlib.h.
63868         (version_etc_copyright): Declare as readonly.
63869         (version_etc_va): New function. Provide a different translatable string
63870         for each possible number of authors < 10. Abbreviate when there are 10
63871         authors or more.
63872         (version_etc): Make this function variadic. Call version_etc_va.
63873         Suggestion from Gary V. Vaughan.
63874
63875         * lib/long-options.h (parse_long_options): Change prototype: the
63876         authors string is moved to the end and becomes variadic.
63877         * lib/long-options.c: Include stdarg.h.
63878         (parse_long_options): Make this function variadic, too.
63879         Call version_etc_va, not version_etc.
63880
63881 2003-10-06  Bruno Haible  <bruno@clisp.org>
63882
63883         * modules/version-etc-2: Remove file.
63884         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
63885
63886 2003-10-06  Bruno Haible  <bruno@clisp.org>
63887
63888         * modules/fatal-signal: New file.
63889         * MODULES.html.sh (func_all_modules): Add fatal-signal.
63890
63891 2003-10-06  Bruno Haible  <bruno@clisp.org>
63892
63893         * m4/fatal-signal.m4: New file.
63894         * m4/signalblocking.m4: New file, from GNU gettext.
63895
63896 2003-10-06  Bruno Haible  <bruno@clisp.org>
63897
63898         * lib/version-etc-2.h: Remove file.
63899         * lib/version-etc-2.c: Remove file.
63900
63901 2003-10-06  Bruno Haible  <bruno@clisp.org>
63902
63903         * lib/fatal-signal.h: New file, from GNU gettext.
63904         * lib/fatal-signal.c: New file, from GNU gettext.
63905
63906 2003-10-05  Paul Eggert  <eggert@twinsun.com>
63907
63908         * README: Rework advice for preventing empty .o files.
63909         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
63910         not <sys/types.h>.
63911
63912 2003-10-04  Karl Berry  <karl@gnu.org>
63913
63914         * lib/argp*: update from libc.
63915
63916 2003-10-04  Karl Berry  <karl@gnu.org>
63917
63918         * config/config.{guess,sub}: update from config.
63919
63920 2003-10-02  Bruno Haible  <bruno@clisp.org>
63921
63922         * modules/lchown (Include): Add lchown.h.
63923         * modules/time_r (Include): Use "..." syntax.
63924         * modules/xgetdomainname (Include): Add xgetdomainname.h.
63925
63926 2003-10-01  Simon Josefsson  <jas@extundo.com>
63927
63928         * MODULES.html.sh (func_all_modules): Move gethostname from section
63929         'based on' to section 'lacking' POSIX:2001.
63930
63931 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
63932
63933         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
63934         to output mode on the same stream.
63935
63936 2003-09-29  Paul Eggert  <eggert@twinsun.com>
63937
63938         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
63939         Fix arg typo in previous patch.
63940
63941 2003-09-28  Jim Meyering  <jim@meyering.net>
63942
63943         * lib/error.c: Correct cpp indentation.
63944
63945 2003-09-27  Paul Eggert  <eggert@twinsun.com>
63946
63947         * modules/free: New file.
63948
63949 2003-09-27  Paul Eggert  <eggert@twinsun.com>
63950
63951         * m4/free.m4: New file.
63952
63953 2003-09-27  Paul Eggert  <eggert@twinsun.com>
63954
63955         * lib/minmax.h (MIN, MAX)
63956         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
63957         Omit the special code that used __typeof__, since we worry that
63958         it could be more trouble than it's worth.  See:
63959         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
63960         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
63961
63962         * lib/free.c: New file.
63963
63964 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
63965
63966         Trivial fixes to Makefile.am parts of module listings.
63967         * modules/strstr: Append strstr.h to lib_SOURCES.
63968         * modules/strcase: Likewise, for strcase.h.
63969
63970 2003-09-27  Karl Berry  <karl@gnu.org>
63971
63972         * config/mkinstalldirs: update from automake.
63973
63974 2003-09-26  Paul Eggert  <eggert@twinsun.com>
63975
63976         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
63977         (error_tail): Do not loop, reallocating temporary buffer, since
63978         the output cannot contain more wide characters than the input
63979         contains bytes, the size must be big enough already.  This avoids
63980         one potential size overflow calculation.  Check for size overflow
63981         when calculating temporary buffer size.  Free temporary buffer
63982         when done, if it was allocated with malloc; this plugs a memory
63983         leak.  Remove casts from void * to pointers, that are no longer
63984         needed now that we're assuming C89 or better.
63985
63986         Merge error changes from glibc.
63987
63988         * lib/error.c, error.h: Update copyright notice header to match glibc.
63989         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
63990         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
63991         Disable cancellation while printing error.
63992         * lib/error.h: Prepend __ to parameter names.
63993
63994 2003-09-26  Jim Meyering  <jim@meyering.net>
63995
63996         * lib/error.c (error_tail): Move some declarations
63997         into inner scope where the local variables are used.
63998
63999 2003-09-26  Bruno Haible  <bruno@clisp.org>
64000
64001         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
64002         stpncpy().
64003         Don't define stpncpy through config.h; it's now done through stpncpy.h.
64004
64005 2003-09-26  Bruno Haible  <bruno@clisp.org>
64006
64007         * lib/stpncpy.h (gnu_stpncpy): New declaration.
64008         (stpncpy): Define as alias for gnu_stpncpy.
64009         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
64010
64011 2003-09-25  Simon Josefsson  <jas@extundo.com>
64012
64013         * lib/xgetdomainname.h: New file.
64014         * lib/xgetdomainname.c: New file.
64015
64016 2003-09-25  Simon Josefsson  <jas@extundo.com>
64017             Bruno Haible  <bruno@clisp.org>
64018
64019         * modules/getdomainname: New file.
64020         * modules/xgetdomainname: New file.
64021         * MODULES.html.sh (func_all_modules): Add getdomainname,
64022         xgetdomainname.
64023
64024 2003-09-25  Simon Josefsson  <jas@extundo.com>
64025             Bruno Haible  <bruno@clisp.org>
64026
64027         * m4/getdomainname.m4: New file.
64028
64029 2003-09-25  Simon Josefsson  <jas@extundo.com>
64030             Bruno Haible  <bruno@clisp.org>
64031
64032         * lib/getdomainname.h: New file.
64033         * lib/getdomainname.c: New file.
64034
64035 2003-09-25  Karl Berry  <karl@gnu.org>
64036
64037         * lib/argp-fmtstream.c, argp-help.c: update from libc.
64038
64039 2003-09-25  Karl Berry  <karl@gnu.org>
64040
64041         * config/install-sh: update from automake.
64042
64043 2003-09-25  Bruno Haible  <bruno@clisp.org>
64044
64045         * modules/version-etc-2: New file, from modules/version-etc with
64046         modifications.
64047         * MODULES.html.sh (func_all_modules): Add version-etc-2.
64048
64049 2003-09-25  Bruno Haible  <bruno@clisp.org>
64050
64051         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
64052         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
64053
64054 2003-09-24  Simon Josefsson  <jas@extundo.com>
64055
64056         * modules/xgethostname: Add xgethostname.h.
64057
64058 2003-09-24  Paul Eggert  <eggert@twinsun.com>
64059
64060         * lib/linebuffer.c (freebuffer): Don't free the argument, just
64061         the buffer associated with the argument.  Bug reported by
64062         Simon Josefsson.
64063
64064 2003-09-24  Paul Eggert  <eggert@twinsun.com>
64065
64066         * README: Document assumptions that 'int' is at least 32 bits
64067         wide, that integer arithmetic is 2's complement without overflow,
64068         that there are no holes in integer values, that adding sizes of
64069         two nonoverlapping objects can't overflow, and that all-bits-zero
64070         yields scalar zero.  Fix spelling and capitalization typos.
64071
64072 2003-09-19  Karl Berry  <karl@gnu.org>
64073
64074         * lib/argp.h: update from libc.
64075
64076 2003-09-17  Paul Eggert  <eggert@twinsun.com>
64077
64078         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
64079         to avoid spurious warnings like "AC_RUN_IFELSE was called before
64080         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
64081
64082 2003-09-17  Paul Eggert  <eggert@twinsun.com>
64083
64084         * gnulib-tool: Use "test -h", not "test -L", for portability
64085         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
64086         (tags_regexp): Remove, since \| doesn't conform to POSIX.
64087         (sed_extract_prog): Issue s commands one-by-one, rather than
64088         using \| in one s command.
64089
64090 2003-09-16  Paul Eggert  <eggert@twinsun.com>
64091
64092         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
64093         input error, instead of returning NULL the next time we are called
64094         (and therefore losing track of errno).
64095
64096 2003-09-16  Bruno Haible  <bruno@clisp.org>
64097
64098         * gnulib-tool (func_create_testdir): Warn about duplicated
64099         dependencies.
64100
64101 2003-09-15  Paul Eggert  <eggert@twinsun.com>
64102
64103         * modules/argmatch, modules/fatal, modules/obstack,
64104         modules/xalloc, modules/xgethostname: Sort dependencies by
64105         importance, not alphabetically.
64106
64107 2003-09-15  Paul Eggert  <eggert@twinsun.com>
64108
64109         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
64110         fails, so that the caller gets the proper errno.
64111
64112         * lib/readutmp.c (read_utmp): Likewise.
64113         Check for fstat error.  Close stream and free storage
64114         when failing.
64115
64116 2003-09-14  Karl Berry  <karl@gnu.org>
64117
64118         * config/srclist.txt (strdup.c): disable for c89 changes.
64119
64120 2003-09-14  Jim Meyering  <jim@meyering.net>
64121
64122         * lib/getloadavg.c: Correct cpp indentation.
64123         * lib/strdup.c: Likewise.
64124         * lib/vasnprintf.c: Likewise.
64125
64126 2003-09-14  Bruno Haible  <bruno@clisp.org>
64127
64128         * modules/fwriteerror: New file.
64129         * MODULES.html.sh (func_all_modules): Add fwriteerror.
64130
64131 2003-09-14  Bruno Haible  <bruno@clisp.org>
64132
64133         * lib/fwriteerror.h: New file.
64134         * lib/fwriteerror.c: New file.
64135
64136 2003-09-12  Paul Eggert  <eggert@twinsun.com>
64137
64138         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
64139         modules/xgethostname, modules/xalloc: Depend on exit.
64140
64141 2003-09-12  Paul Eggert  <eggert@twinsun.com>
64142
64143         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
64144
64145         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
64146         and AC_MINIX, too, so that their extensions are available.
64147
64148         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
64149         This macro has been superseded by gl_BACKUPFILE.
64150
64151         More patches to assume C89 or better.
64152
64153         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
64154
64155         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
64156         unconditionally.
64157         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
64158         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
64159         Include <string.h>, <stdlib.h> unconditionally.
64160         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
64161         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
64162         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
64163         headers or for string.h.
64164         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
64165         or strtoul.
64166
64167         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
64168         headers.
64169         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
64170         * m4/userspec.m4 (gl_USERSPEC): Likewise.
64171         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
64172         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
64173         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
64174         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
64175         memcpy, memset.
64176         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
64177         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
64178         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
64179         strtol.
64180         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
64181         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
64182         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
64183         strtoul.
64184
64185 2003-09-12  Paul Eggert  <eggert@twinsun.com>
64186
64187         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
64188         * lib/obstack.c [!defined _LIBC]: Likewise.
64189         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
64190         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
64191         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
64192
64193         More changes to assume C89 or better.
64194
64195         * lib/error.c (error_tail): Assume vprintf.
64196
64197         * lib/argmatch.c (getenv): Remove decl.
64198         * lib/progreloc.c (get_full_program_name): Define via prototype.
64199         * lib/setenv.c (clearenv): Likewise.
64200         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
64201         needed.
64202         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
64203         (malloc, memcpy): Remove decls.
64204         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
64205         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
64206         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
64207         (memcpy): Remove macro.
64208         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
64209         (__P): Remove.  All uses removed.
64210         (PTR): Remove.  All uses changed to void *.
64211         (CHAR_BIT, NULL): Remove.
64212         (spaces, zeros, memset_space, memset_zero)
64213         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
64214         Remove.
64215         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
64216         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
64217         Define with prototype.
64218         Remove now-unnecessary prototype decl.
64219         (extra_args_spec): Assume ANSI C.  All uses changed.
64220         (extra_args_spec_iso): Remove.
64221         (my_strftime, emacs_strftimeu): Define via prototype.
64222         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
64223         unconditionally.
64224         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
64225         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
64226         (strtoul, strtol): Remove decls.
64227         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
64228         LONG_MAX): Remove.
64229         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
64230         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
64231         (LOCALE_PARAM_PROTO): New macro.
64232         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
64233         (INTERNAL (strtol), strtol): Define with a prototype.
64234         (PARAMS): Remove.  All uses removed.
64235         * lib/tempname.c: Include <string.h> unconditionally.
64236         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
64237         * lib/xgethostname.c (main): Define with a prototype.
64238         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
64239         Include <stdlib.h> unconditionally.
64240         (calloc, malloc, realloc, free): Remove decls.
64241         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
64242         Include <stdlib.h> unconditionally.  Sort include file names.
64243         (strtod): Remove.
64244         (xstrtod): Define with a prototype.
64245         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
64246         (strtol, strtoul): Remove decls.
64247
64248 2003-09-11  Paul Eggert  <eggert@twinsun.com>
64249
64250         More patches to assume C89 or better.
64251         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
64252         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
64253         string.h, memchr, STDC_HEADERS.
64254
64255 2003-09-11  Paul Eggert  <eggert@twinsun.com>
64256
64257         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
64258         Include <stdlib.h>, <string.h> unconditionally.
64259         Remove now-unnecessary cast to char *.
64260         * lib/strnlen.c: Include <string.h> unconditionally.
64261         * lib/yesno.c (yesno): Define with a prototype.
64262
64263 2003-09-11  Bruno Haible  <bruno@clisp.org>
64264
64265         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
64266
64267 2003-09-10  Jim Meyering  <jim@meyering.net>
64268
64269         * lib/error.c: Correct indentation of cpp directives.
64270
64271 2003-09-10  Bruno Haible  <bruno@clisp.org>
64272
64273         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
64274         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
64275         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
64276         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
64277         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
64278         <stdlib.h> and <string.h> checks.
64279         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
64280         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
64281
64282 2003-09-10  Bruno Haible  <bruno@clisp.org>
64283
64284         * lib/strcspn.c: Include <string.h> unconditionally.
64285         * lib/strpbrk.c: Include <string.h> unconditionally.
64286         * lib/strstr.c: Include <string.h> unconditionally.
64287         * lib/unicodeio.c: Include <string.h> unconditionally.
64288         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
64289         * lib/unsetenv.c: Likewise.
64290         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
64291         * lib/yesno.c: Include <stdlib.h> unconditionally.
64292         (rpmatch): Add prototype.
64293
64294 2003-09-09  Paul Eggert  <eggert@twinsun.com>
64295
64296         More patches to assume C89 or better.
64297         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
64298         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
64299         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
64300         or for string.h.
64301         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
64302         stdlib.h.
64303         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
64304         C headers.
64305         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
64306         string.h.
64307         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
64308         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
64309         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
64310         or for string.h.
64311         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
64312         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
64313         C headers.
64314         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
64315         memcpy.
64316         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
64317         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
64318         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
64319         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
64320         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
64321         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
64322         string.h, free.
64323         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
64324         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
64325         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
64326         C headers, or for string.h.
64327         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
64328         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
64329         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
64330         headers, memory.h, stdlib.h, string.h, strings.h.
64331         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
64332         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
64333         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
64334         strchr.
64335         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
64336         headers, memory.h, string.h.
64337         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
64338         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
64339         free.
64340         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
64341         headers.
64342         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
64343         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
64344         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
64345         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
64346         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
64347
64348 2003-09-09  Paul Eggert  <eggert@twinsun.com>
64349
64350         More K&R removal.
64351
64352         * lib/acosl.c (main): Use a prototype.
64353         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
64354         tanl.c: Likewise.
64355
64356         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
64357
64358         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
64359         (getopt, etopt_long, getopt_long_only, _getopt_internal)
64360         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
64361         with a prototype.
64362         * lib/getopt.c (const): Remove macro.
64363         Include <string.h> unconditionally.
64364         (my_index): Remove; all uses changed to strchr.
64365         (strlen): Remove decl.
64366         (exchange): Remove forward decl; no longer needed.
64367         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
64368         Define with prototype.
64369         * lib/getopt1.c (const): Remove macro.
64370         (getopt_long, getopt_long_only, main): Define with prototype.
64371
64372         * lib/getugroups.c: Include <string.h> unconditionally.
64373
64374         * lib/getusershell.c: Include <stdlib.h> unconditionally.
64375         (getusershell, setusershell, endusershell, readname, main):
64376         Define with prototypes.
64377
64378         * lib/group-member.c: Include group-member.h first.
64379         Include <stdlib.h> unconditionally.
64380
64381         * lib/hard-locale.c: Include hard-locale.h first.
64382         Include <stdlib.h>, <string.h> unconditionally.
64383
64384         * lib/hash.c (free, malloc): Remove decls.
64385         Include <stdlib.h> unconditionally.
64386
64387         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
64388         (getenv): Do not declare.
64389
64390         * lib/idcache.c: Include <string.h> unconditionally.
64391
64392         * lib/long-options.c: Include long-options.h first, to test interface.
64393         Include <stdlib.h> unconditionally.
64394
64395         * lib/makepath.c: Include makepath.h first, to test interface.
64396         Include <stdlib.h> and <string.h> unconditionally.
64397
64398         * lib/linebuffer.c: Include <stdlib.h>.
64399         (free): Remove decl.
64400
64401         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
64402         stddef.h. rpl_malloc returns void *, not char *.
64403         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
64404         prototype.
64405
64406         * lib/md5.h: Include <limits.h> unconditionally.
64407         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
64408         (__P): Remove; all uses removed.
64409         * lib/md5.c: Include "md5.h" first.
64410         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
64411         md5_buffer, md5_process_bytes, md5_process_block):
64412         Define with prototypes.
64413         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
64414         * lib/sha.c: Include "sha.h" first.
64415         Include <stdlib.h>, <string.h> unconditionally.
64416
64417         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
64418         * lib/memcmp.c (__ptr_t): Likewise.
64419         * lib/memrchr.c (__ptr_t): Likewise.
64420         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
64421         Include <string.h> unconditionally.
64422         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
64423         * lib/memchr.c: Include <stdlib.h> unconditionally.
64424         * lib/memchr.c (LONG_MAX): Remove.
64425         * lib/memrchr.c (LONG_MAX): Likewise.
64426         * lib/memchr.c (__memchr): Define via a prototype.
64427         * lib/memrchr.c (__memrchr): Likewise.
64428         * lib/memcmp.c (__P): Remove, and remove all uses.
64429         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
64430         Remove forward decls; no longer needed.
64431         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
64432         Use types required by C89 in prototype.
64433
64434         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
64435         * lib/savedir.c: Likewise.
64436         * lib/mkdir.c (free): Remove decl.
64437         * lib/rmdir.c (rmdir): Define with a prototype.
64438         * lib/savedir.c: Include savedir.h first, to test interface.
64439
64440         * lib/mktime.c (STDC_HEADERS): Remove.
64441         Include <stdlib.h>, <string.h> unconditionally.
64442
64443         * lib/modechange.c: Include <stdlib.h> unconditionally.
64444         (malloc): Remove decl.
64445
64446         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
64447         (free): Remove decl.
64448
64449         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
64450         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
64451         (This type really should be intptr_t, but that's a C99ism.)
64452         (_obstack_memcpy): Remove: all uses changed to memcpy.
64453         Include <string.h> unconditionally.
64454         (struct obstack): Assume __STDC__ for types of members
64455         chunkfun, freefun, extra_arg.
64456         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
64457         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
64458         obstack_begin, obstack_specify_allocation,
64459         obstack_specify_allocation_with_arg, obstack_chunkfun,
64460         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
64461         Remove unprototyped decls and the macros that use them.
64462         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
64463         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
64464         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
64465         (defined __STDC__ && __STDC__)]:
64466         Remove nonprototyped code.
64467         Include <stdlib.h> unconditionally.
64468         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
64469         _obstack_allocated_p, _obstack_free, obstack_free,
64470         _obstack_memory_used, print_and_abort):
64471         Define using prototypes.
64472         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
64473         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
64474         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
64475         obstack_next_free, obstack_object_size, obstack_room) [0]:
64476         Remove unused, unprototyped code.
64477
64478         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
64479
64480         * lib/physmem.c (physmem_total, physmem_available, main): Define
64481         with prototypes.
64482
64483         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
64484         (main): Define with a prototype.
64485
64486         * lib/posixver.c (getenv): Remove decl.
64487
64488         * lib/putenv.c (malloc): Returns void *, not char *.
64489         Include <string.h> unconditionally.
64490         (strchr, memcpy, NULL): Do not define.
64491
64492         * lib/readtokens.c: Include readtokens.h first, to test interface.
64493         Include <stdlib.h>, <string.h> unconditionally.
64494         (init_tokenbuffer): Define with a prototype.
64495
64496         * lib/regex.c (PARAMS): Remove.  All uses removed.
64497         All uses of _RE_ARGS removed, too.
64498         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
64499         unconditionally.
64500         (bzero): Assume memset exists.
64501         (memcmp, memcpy, NULL): Remove.
64502         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
64503         char, or assignments to local vars of type signed char.
64504         (init_syntax_once, PREFIX(extract_number_and_incr),
64505         PREFIX(print_partial_compiled_pattern),
64506         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
64507         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
64508         PREFIX(regex_grow_registers), PREFIX(regex_compile),
64509         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
64510         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
64511         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
64512         wcs_compile_range, byte_compile_range, truncate_wchar,
64513         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
64514         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
64515         count_mbs_length, wcs_re_match_2_internal,
64516         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
64517         PREFIX(alt_match_null_string_p),
64518         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
64519         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
64520         regfree, PREFIX(extract_number)): Define with prototype.  Remove
64521         now-unnecessary declaration, if any.
64522         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
64523         regcomp, regexec):
64524         Remove now-unnecessary casts among pointer types.
64525         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
64526
64527         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
64528         (free): Remove decl.
64529
64530         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
64531
64532         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
64533         (free): Remove decl.
64534
64535         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
64536         * lib/xgetcwd.c: Likewise.
64537
64538         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
64539         (free): Remove decl.
64540
64541         * lib/strchrnul.c (strchrnul): Define with a prototype.
64542         Fix bug: c_in was not converted to char before searching.
64543
64544         The following changes are not K&R related:
64545
64546         * lib/group-member.h: Include <sys/types.h>, so that this file is
64547         self-contained.
64548         * lib/makepath.h: Likewise.
64549
64550         * lib/getusershell.c (readname, default_index, line_size, readname):
64551         Use size_t, not int, for sizes.
64552         (readname): If the size overflows, report an error instead of
64553         looping forever.
64554
64555 2003-09-09  Paul Eggert  <eggert@twinsun.com>
64556
64557         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
64558         libc.
64559
64560 2003-09-09  Paul Eggert  <eggert@twinsun.com>
64561
64562         * README: New section: portability guidelines.
64563
64564 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
64565
64566         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
64567         C89 spec.
64568
64569 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
64570
64571         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
64572
64573 2003-09-08  Paul Eggert  <eggert@twinsun.com>
64574
64575         Assume C89 or better; remove K&R cruft.
64576         A few of these changes were first proposed by Derek Robert Price
64577         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
64578
64579         * lib/addext.c: Include <string.h> unconditionally.
64580         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
64581         Don't declare getenv or malloc.
64582
64583         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
64584         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
64585         (NULL): Remove.
64586         (find_stack_direction, alloca): Use prototypes.
64587
64588         * lib/atexit.c (atexit): Define using a prototype.
64589
64590         * lib/basename.c, dirname.c, stripslash.c:
64591         Include <string.h> unconditionally.
64592
64593         * lib/bcopy.c: Include <stddef.h>.
64594         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
64595
64596         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
64597
64598         * lib/error.h (error, error_at_line, error_print_progname)
64599         [! (defined (__STDC__) && __STDC__)]: Remove decls.
64600         * lib/error.c: Include error.h first, to check interface.
64601         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
64602         (VA_START): Remove; all uses changeed to va_start.
64603         (exit, strerror): Remove decls.
64604         (error_print_progname): Prototype uncondionally.
64605         Don't include <errno.h>; no longer needed.
64606         (private_strerror): Remove.
64607         (error_tail): Always define.
64608         (error, error_at_line): Assume C89 or better; always use prototypes.
64609         * lib/fatal.c: Include "fatal.h" first, to test interface.
64610         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
64611         (VA_START): Remove; all uses changed to va_start.
64612         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
64613         this case.
64614         (exit): Remove decl.
64615         (fatal): Prototype unconditionally.  Assume va_start works.
64616         Abort at end, to pacify gcc.
64617
64618         * lib/euidaccess.c (main): Define with a prototype.
64619
64620         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
64621
64622         * lib/exitfail.c: Include <stdlib.h> unconditionally.
64623
64624         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
64625         prototypes.
64626         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
64627         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
64628         (getenv): Remove decl.
64629         (fnmatch): Define using a prototype.
64630         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
64631         (FCT): Define using a prototype.
64632
64633         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
64634
64635         * lib/gethostname.c: Include <stddef.h>.
64636         (gethostname): Define with prototype.  Length is size_t, not int.
64637
64638 2003-09-08  Paul Eggert  <eggert@twinsun.com>
64639
64640         Assume C89 or better; remove K&R cruft.
64641         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
64642         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
64643         string.h, getenv, malloc.
64644         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
64645         headers.
64646         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
64647         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
64648         do not check for strerror.
64649         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
64650         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
64651         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
64652         do not check for doprnt or vprintf.
64653         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
64654         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
64655
64656 2003-09-08  Paul Eggert  <eggert@twinsun.com>
64657
64658         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
64659         getversion.c should have been removed then, but was accidentally
64660         preserved.
64661
64662         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
64663         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
64664
64665 2003-09-08  Karl Berry  <karl@gnu.org>
64666
64667         * config/config.sub, config.guess, srclistvars.sh: update from savannah
64668                 config, forget about prep.
64669
64670         * config/depcomp, missing: update from automake.
64671
64672 2003-09-07  Paul Eggert  <eggert@twinsun.com>
64673
64674         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
64675         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
64676
64677 2003-09-07  Paul Eggert  <eggert@twinsun.com>
64678
64679         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
64680         copy_tm_result.  Bug reported by Simon Josefsson in
64681         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
64682
64683 2003-09-06  Paul Eggert  <eggert@twinsun.com>
64684
64685         * m4/time_r.m4: New file.
64686         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
64687         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
64688         is. Check for timegm declaration.
64689         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
64690         Do not check for gmtime_r.
64691         Replace mktime if __mktime_internal does not exist and if mktime
64692         hasn't been replaced already.
64693
64694 2003-09-06  Paul Eggert  <eggert@twinsun.com>
64695
64696         * lib/time_r.c, lib/time_r.h: New files.
64697
64698         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
64699         __localtime_r.
64700         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
64701         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
64702
64703         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
64704         __gmtime_r.
64705         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
64706         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
64707         Include <time_r.h>.
64708
64709         * lib/timegm.c: Switch to glibc implementation, with the following
64710         changes:
64711         [defined HAVE_CONFIG_H]: Include <config.h>.
64712         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
64713         (__mktime_internal) [!defined _LIBC]: New decl.
64714         (__gmtime_r) [!defined _LIBC]: New macro and function.
64715         (timegm): Use a prototype, since gnulib assumes C89.
64716         Do not bother declaring tmp to be const, as it's not really usefu.
64717         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
64718         (timegm): Declare only if HAVE_DECL_TIMEGM.
64719
64720 2003-09-06  Paul Eggert  <eggert@twinsun.com>
64721
64722         * MODULES.html.sh (func_all_modules): Add time_r.
64723         * modules/time_r: New file.
64724         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
64725         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
64726
64727 2003-09-03  Paul Eggert  <eggert@twinsun.com>
64728
64729         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
64730         Bug reported by Lute Kamstra in
64731         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
64732
64733         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
64734         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
64735         course with correspondingly smaller numbers for tomorrow and
64736         yesterday.  From Tadayoshi Funaba.  Originally installed into
64737         sh-utils on 1999-08-07, but the patch got lost (I guess during the
64738         coreutils merge?).
64739
64740 2003-08-31  Simon Josefsson  <jas@extundo.com>
64741
64742         * modules/timegm: New file.
64743         * MODULES.html.sh (func_all_modules): Add timegm.
64744
64745 2003-08-31  Simon Josefsson  <jas@extundo.com>
64746
64747         * m4/timegm.m4: New file.
64748
64749 2003-08-31  Simon Josefsson  <jas@extundo.com>
64750
64751         * lib/timegm.h: New file.
64752         * lib/timegm.c: New file.  Based on
64753         wget-1.8.2/src/http.c:mktime_from_utc.
64754
64755 2003-08-31  Karl Berry  <karl@gnu.org>
64756
64757         * lib/argp.h: update from libc.
64758
64759 2003-08-28  Bruno Haible  <bruno@clisp.org>
64760
64761         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
64762         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
64763         followed by '#define fnmatch fnmatch_posix' gives an error.
64764
64765 2003-08-28  Bruno Haible  <bruno@clisp.org>
64766
64767         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
64768         warning on QNX, which defines O_BINARY to 000000.
64769
64770 2003-08-27  Jim Meyering  <jim@meyering.net>
64771
64772         * m4/mkstemp.m4: Require that the system mkstemp be able to create
64773         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
64774         would fail after 32.  Reported by Danny Levinson.  Details here:
64775         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
64776
64777 2003-08-24  Bruno Haible  <bruno@clisp.org>
64778
64779         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
64780         MSVC7 <stdio.h> is included later.
64781
64782 2003-08-22  Simon Josefsson  <jas@extundo.com>
64783
64784         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
64785
64786 2003-08-20  Karl Berry  <karl@gnu.org>
64787
64788         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
64789
64790 2003-08-20  Bruno Haible  <bruno@clisp.org>
64791
64792         * modules/progname: New file.
64793         * MODULES.html.sh (func_all_modules): Add progname.
64794
64795 2003-08-20  Bruno Haible  <bruno@clisp.org>
64796
64797         * lib/progname.h: New file, from GNU gettext.
64798         * lib/progname.c: New file, from GNU gettext.
64799         * lib/progreloc.c: New file, from GNU gettext.
64800
64801 2003-08-19  Jim Meyering  <jim@meyering.net>
64802
64803         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
64804         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
64805
64806 2003-08-19  Bruno Haible  <bruno@clisp.org>
64807
64808         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
64809         more.
64810
64811 2003-08-19  Bruno Haible  <bruno@clisp.org>
64812
64813         * lib/xstrdup.c: Assume <string.h> exists.
64814
64815 2003-08-18  Paul Eggert  <eggert@twinsun.com>
64816
64817         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
64818         in makefile rules.
64819
64820 2003-08-18  Jim Meyering  <jim@meyering.net>
64821
64822         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
64823         * m4/lib-ld.m4: Likewise.
64824
64825 2003-08-18  Jim Meyering  <jim@meyering.net>
64826
64827         * lib/setenv.h: Indent nested cpp directive.
64828         * lib/vasnprintf.c: Remove trailing blanks.
64829
64830 2003-08-17  Simon Josefsson  <jas@extundo.com>
64831
64832         * modules/xstrndup: New file.
64833         * MODULES.html.sh (func_all_modules): Add xstrndup.
64834
64835 2003-08-17  Simon Josefsson  <jas@extundo.com>
64836
64837         * modules/argp: Fix autoconf macro name. Add more dependencies.
64838
64839 2003-08-17  Simon Josefsson  <jas@extundo.com>
64840
64841         * m4/xstrndup.m4: New file.
64842
64843 2003-08-17  Simon Josefsson  <jas@extundo.com>
64844
64845         * m4/argp.m4: New file.
64846
64847 2003-08-17  Simon Josefsson  <jas@extundo.com>
64848             Bruno Haible  <bruno@clisp.org>
64849
64850         * lib/xstrndup.h: New file.
64851         * lib/xstrndup.c: New file.
64852
64853 2003-08-17  Bruno Haible  <bruno@clisp.org>
64854
64855         * modules/strndup (Files, Include): Add lib/strndup.h.
64856
64857 2003-08-17  Bruno Haible  <bruno@clisp.org>
64858
64859         * modules/euidaccess (Files): Add lib/euidaccess.h.
64860
64861 2003-08-17  Bruno Haible  <bruno@clisp.org>
64862
64863         * lib/strndup.h: New file.
64864
64865 2003-08-17  Bruno Haible  <bruno@clisp.org>
64866
64867         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
64868         like AC_GNU_SOURCE.
64869         * modules/extensions (configure.ac): Comment out the invocation of
64870         gl_USE_SYSTEM_EXTENSIONS.
64871
64872 2003-08-16  Paul Eggert  <eggert@twinsun.com>
64873
64874         Merges from coreutils, etc.
64875         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
64876         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
64877         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
64878         fixing a typo.
64879         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
64880         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
64881
64882 2003-08-16  Paul Eggert  <eggert@twinsun.com>
64883
64884         Document merge from coreutils.
64885         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
64886         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
64887         * modules/utime: Add m4/utimes-null.m4.
64888
64889 2003-08-16  Paul Eggert  <eggert@twinsun.com>
64890
64891         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
64892         space, undoing this 2003-08-12 change:
64893         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
64894
64895 2003-08-16  Paul Eggert  <eggert@twinsun.com>
64896
64897         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
64898         strtoul.c from libc, undoing this 2003-08-12 change:
64899         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
64900
64901 2003-08-16  Jim Meyering  <jim@meyering.net>
64902
64903         Merges from coreutils.
64904         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
64905         prefix.  Adjust cache variables similarly.  Create 500 rather than
64906         just 300 files, to exercise bug on Darwin6.5, too.
64907         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
64908         $missing_dir.
64909         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
64910         AM_SYS_POSIX_TERMIOS.
64911         Reported by mkc@mathdogs.com.
64912         Also change use of $am_cv_sys_posix_termios
64913         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
64914         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
64915         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
64916         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
64917         in /proc/mounts until it finds one with matching device number.  This
64918         is unnecessary when the FILE argument *is* a mount point.  No stat call
64919         is necessary in that case.  So, disable the statvfs-testing code on
64920         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
64921         as RedHat bug# 84846.
64922         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
64923         to 1MB, so as not to render systems with no stack size limit (e.g.,
64924         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
64925         Include <unistd.h>.  On some systems,
64926         it is required for the definition of _SC_PAGESIZE.
64927
64928 2003-08-16  Jim Meyering  <jim@meyering.net>
64929
64930         Merge from coreutils.
64931         * lib/xstrtoimax.c: #else #if -> #elif.
64932         * lib/xstrtoumax.c: Likewise.
64933
64934 2003-08-16  Jim Meyering  <jim@meyering.net>
64935
64936         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
64937         * m4/utimes.m4: Removed.
64938         * m4/utimes-null.m4: Renamed from utimes.m4.
64939
64940         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
64941         to 1MB, so as not to render systems with no stack size limit (e.g.,
64942         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
64943         Include <unistd.h>.  On some systems,
64944         it is required for the definition of _SC_PAGESIZE.
64945
64946 2003-08-16  Jim Meyering  <jim@meyering.net>
64947         and Paul Eggert  <eggert@cs.ucla.edu>
64948
64949         Merges from coreutils, etc.
64950
64951         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
64952         using the latest version from cvs.  This avoids problems with #line
64953         directives using a vendor (Sun) compiler.
64954         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
64955         Don't set GETGROUPS_LIB here; now it's
64956         done via getgroups.m4's wrapper function.
64957         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
64958         rather than just in sh-util/configure.in, so that the
64959         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
64960         same.
64961         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
64962         AC_FUNC_GETLOADAVG where to find getloadavg.c.
64963         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
64964         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
64965         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
64966         Remove code that is now done by the newly-required macros.
64967         Append $(EXEEXT) to DF_PROG.
64968         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
64969         Do not invoke or require the following here,
64970         since prereq.m4 or some gnulib .m4 now does this for us:
64971         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
64972         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
64973         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
64974         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
64975         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
64976         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
64977         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
64978         AC_FUNC_OBSTACK.
64979         Do not replace the following functions, as this is now the job
64980         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
64981         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
64982         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
64983         atexit getpass, strdup, getpagesize.
64984         Replace 'raise'.
64985         Do not check for the following functions, as this is now the job
64986         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
64987         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
64988         setregid.
64989         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
64990         Check for sys/sysctl.h.
64991         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
64992         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
64993         of checking for ssize_t ourselves.
64994
64995         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
64996         Require every macro that gnulib/modules/* suggests for us.
64997         (jm_PREREQ_ADDEXT): New macro.
64998         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
64999         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
65000
65001         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
65002         (gl_PHYSMEM): Use it.
65003         Also check for `table' function.
65004         Check for new headers and functions.
65005         Add check for sys/sysmp.h.
65006         With suggestions from Kaveh Ghazi.
65007         Ignore headers that are present but cannot be compiled.  This
65008         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
65009         C 5.4.
65010
65011 2003-08-15  Paul Eggert  <eggert@twinsun.com>
65012
65013         Document merge from coreutils.
65014         * modules/userspec: Depend on posixver.
65015         * modules/strftime: Depend on tzset.
65016
65017 2003-08-15  Paul Eggert  <eggert@twinsun.com>
65018
65019         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
65020         rather than tab, after '#' in shell-script copyright notices.
65021         Suggested by Bruno Haible.
65022
65023 2003-08-15  Paul Eggert  <eggert@twinsun.com>
65024
65025         * config/srclist-update: Use three spaces, rather than tab, after '#'
65026         in shell-script copyright notices.  Suggested by Bruno Haible.
65027         Remove unnecessary parenthesization in regular expression.
65028
65029 2003-08-15  Jim Meyering  <jim@meyering.net>
65030
65031         Merge from coreutils.
65032         * lib/xgethostname.c: Include <stdlib.h>.
65033         (xghostname): Don't exit for anything other than memory-related
65034         failure; just return NULL.
65035         * lib/userspec.c: Include "posixver.h".
65036         (parse_user_spec): Accept `.' as a separator only
65037         in pre-POSIX-200112 mode.
65038         * lib/strtoimax.c: Use #elif rather than #else #if.
65039         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
65040         Remove function, now that we can rely on a working tzset function.
65041         [!_LIBC]: Ensure that the required autoconf test has been run.
65042         [!defined _NL_CURRENT && HAVE_STRFTIME]:
65043         Use underlying_strftime for %r.
65044         * lib/sha.c: Merge in some clean-up and optimization changes from
65045         glibc.
65046         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
65047         Ensure that it is a multiple of 64.
65048         Rearrange loop exit tests so as to avoid performing an
65049         additional fread after encountering an error or EOF.
65050         * lib/realloc.c: Update copyright date.
65051
65052 2003-08-15  Jim Meyering  <jim@meyering.net>
65053         and Paul Eggert  <eggert@twinsun.com>
65054
65055         Merge from coreutils.
65056         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
65057         member but strut utmpx does not.  Needed for AIX 4.3.3.
65058         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
65059
65060 2003-08-15  Jim Meyering  <jim@meyering.net>
65061         and Paul Eggert  <eggert@cs.ucla.edu>
65062
65063         Merges from coreutils, etc.
65064         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
65065         Require gl_FUNC_TZSET_CLOBBER.
65066         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
65067         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
65068         members.
65069
65070 2003-08-14  Paul Eggert  <eggert@twinsun.com>
65071
65072         Help the merge from coreutils.
65073         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
65074         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
65075         * m4/tzset.m4: Use it too.
65076
65077 2003-08-14  Paul Eggert  <eggert@twinsun.com>
65078
65079         * modules/tzset: New file.
65080
65081 2003-08-14  Jim Meyering  <jim@meyering.net>
65082
65083         Merges from coreutils.
65084         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
65085         variable names, rather than @FNMATCH_H@.
65086         * modules/alloca: Likewise for $(ALLOCA_H).
65087
65088         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
65089         the three copies of the literal target, `fnmatch.h'.
65090         * modules/alloca (alloca.h): Likewise.
65091
65092 2003-08-14  Jim Meyering  <jim@meyering.net>
65093
65094         Merge from coreutils.
65095         * m4/tzset.m4: New file.
65096         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
65097         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
65098         otherwise, AIX 5.1 systems would end up using the latter.
65099         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
65100         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
65101         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
65102         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
65103
65104 2003-08-14  Jim Meyering  <jim@meyering.net>
65105
65106         Merge from coreutils.
65107         * lib/obstack.h: Whitespace changes.
65108         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
65109         and xcalloc return values.
65110         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
65111         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
65112         hang on OSF/1 5.1 for DIR on both local and remote file systems.
65113         Reported by (and fix confirmed by) Nelson H. F. Beebe.
65114         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
65115         error from mntctl.
65116         Use mntctl's return value to drive the entry-processing loop, since
65117         we can't rely on the value of the vmt_length member in the last
65118         entry.  On some systems doing so could result in exhausting
65119         virtual memory.  Based in part on a patch from Mike Jetzer.
65120
65121 2003-08-14  Jim Meyering  <jim@meyering.net>
65122         and Paul Eggert  <eggert@twinsun.com>
65123
65124         Merges from coreutils, plus other fixes.
65125         * lib/physmem.c: Merge in portability changes from gcc/libiberty
65126         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
65127         for credits and details.  Thanks to Kaveh Ghazi for helping
65128         to keep these files in sync.
65129         (ARRAY_SIZE): Define it.
65130         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
65131         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
65132         (memcasecmp): Don't assume size_t fits in unsigned int.
65133         Remove casts and duplicate code.
65134         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
65135         (memcpy): Remove definition.
65136         Merge in some clean-up and optimization changes from glibc.
65137         [BLOCKSIZE]: Move definition to top of file.
65138         Ensure that it is a multiple of 64.
65139         Rearrange loop exit tests so as to avoid performing an
65140         additional fread after encountering an error or EOF.
65141         * lib/md5.h (md5_uintptr): Define.
65142         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
65143         return to the initial working directory.  Preserve errno
65144         for caller.
65145         * lib/idcache.c: Include "xalloc.h".
65146         (xmalloc, xrealloc): Remove decls.
65147         (getuser): Remove casts no longer required in C89.
65148         * lib/human.c: Include stdio.h, for sprintf.
65149         * lib/group-member.c: Include "xalloc.h".
65150         (xmalloc, xrealloc): Remove decls.
65151         (get_group_info): Remove casts no longer required in C89.
65152         * lib/getusershell.c (readname): Remove casts no longer required in
65153         C89.
65154         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
65155         * lib/getline.c: Whitespace fix, from coreutils.
65156
65157 2003-08-13  Paul Eggert  <eggert@twinsun.com>
65158
65159         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
65160         Check for isascii.
65161
65162         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
65163         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
65164         Undo previous (whitespace-only) change.
65165
65166 2003-08-13  Paul Eggert  <eggert@twinsun.com>
65167
65168         * lib/exclude.c: Include <ctype.h>
65169         (IN_CTYPE_DOMAIN): New macro.
65170         (is_space): New fn.
65171         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
65172         and empty lines.
65173
65174         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
65175         Undo previous (whitespace-only) change.
65176
65177 2003-08-13  Paul Eggert  <eggert@twinsun.com>
65178
65179         * config/srclist-update: Change update back to the old behavior,
65180         leaving whitespace alone.  Use one 'sed' command rather than a
65181         pipeline.
65182         (fixlicense): Now a variable, not a function.
65183         (remove_trailing_blanks): Remove.
65184         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
65185         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
65186         Undo previous (whitespace-only) change.
65187
65188 2003-08-12  Paul Eggert  <eggert@twinsun.com>
65189
65190         Merge from coreutils.
65191         * modules/euidaccess: Add lib_SOURCES, include for new
65192         file euidaccess.h
65193
65194 2003-08-12  Paul Eggert  <eggert@twinsun.com>
65195
65196         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
65197         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
65198         Normalize leading white space and remove trailing white space.
65199
65200         Merge from coreutils
65201         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
65202
65203         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
65204         0.12.1.  These files are now being upgraded automatically by
65205         ../config/srclist-update.
65206
65207 2003-08-12  Paul Eggert  <eggert@twinsun.com>
65208
65209         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
65210         Normalize leading white space and remove trailing white space.
65211         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
65212         notice, as per ../config/srclist-update.
65213
65214         Merge from coreutils.
65215         * lib/euidaccess.h: New file.
65216         * lib/euidaccess.c: Include it.
65217         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
65218         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
65219         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
65220
65221 2003-08-12  Paul Eggert  <eggert@twinsun.com>
65222
65223         * config/srclist-update: Add copyright notice.
65224         (remove_id_lines, remove_trailing_blanks): New constants.
65225         (fixfile): Use them to normalize spacing a bit in copied files.
65226         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
65227         Normalize leading white space and remove trailing white space.
65228
65229         * config/texinfo.tex: Sync with texinfo.
65230
65231         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
65232         strtoul.c from libc, to merge coreutils whitespace changes.
65233
65234         * config/srclist.txt: Get the following m4 files from gettext:
65235         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
65236         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
65237         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
65238         wint_t.m4.
65239
65240 2003-08-12  Karl Berry  <karl@gnu.org>
65241
65242         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
65243         been made.
65244
65245 2003-08-11  Paul Eggert  <eggert@twinsun.com>
65246
65247         * modules/gnu-source, m4/gnu-source.m4:
65248         Remove; we're assuming Autoconf 2.54 or later now.
65249         Suggested by Bruno Haible.
65250         * MODULES.html.sh (func_all_modules): Remove gnu-source.
65251
65252 2003-08-11  Bruno Haible  <bruno@clisp.org>
65253
65254         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
65255
65256 2003-08-11  Bruno Haible  <bruno@clisp.org>
65257
65258         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
65259         (vasnprintf): Use it instead of wcslen.
65260
65261 2003-08-11  Bruno Haible  <bruno@clisp.org>
65262
65263         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
65264         value to ensure that _Bool promotes to int. Use #define for _Bool when
65265         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
65266
65267 2003-08-10  Karl Berry  <karl@gnu.org>
65268
65269         * lib/regex.h: update from libc (whitespace fix).
65270
65271 2003-08-09  Paul Eggert  <eggert@twinsun.com>
65272
65273         Merge some files from coreutils.  These changes were
65274         originally made by Jim Meyering.
65275         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
65276         many older Unixes require this.
65277         * lib/alloca.c (alloca): Remove cast to argument of free;
65278         no longer needed in C89.
65279         * lib/alloca_.h, regex.h: Fix white space to match
65280         what GNU indent does.
65281
65282 2003-08-09  Paul Eggert  <eggert@twinsun.com>
65283
65284         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
65285         apparently Emacs's Unicode mode got confused before my 2003-08-05
65286         checkin.
65287
65288 2003-08-08  Paul Eggert  <eggert@twinsun.com>
65289
65290         * m4/extensions.m4: New file.
65291         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
65292         Require gl_USE_SYSTEM_EXTENSIONS.
65293         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
65294         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
65295
65296 2003-08-08  Paul Eggert  <eggert@twinsun.com>
65297
65298         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
65299         * modules/extensions, modules/gnu-source: New files.
65300         * modules/timespec, modules/unlocked-io: Depend on extensions.
65301
65302 2003-08-07  Paul Eggert  <eggert@twinsun.com>
65303
65304         * modules/restrict: New file.
65305         * MODULES.html.sh (func_all_modules): Add restrict.
65306         * modules/regex: Depend on restrict.
65307
65308 2003-08-07  Paul Eggert  <eggert@twinsun.com>
65309
65310         * m4/restrict.m4: New file.
65311         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
65312
65313 2003-08-07  Bruno Haible  <bruno@clisp.org>
65314
65315         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
65316         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
65317
65318 2003-08-07  Bruno Haible  <bruno@clisp.org>
65319
65320         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
65321         makes the module 'getndelim2' compatible with the module 'getline'.
65322
65323 2003-08-05  Paul Eggert  <eggert@twinsun.com>
65324
65325         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
65326         byte with "\201" to avoid glitches when editing that source file
65327         with multi-gnome-terminal.
65328
65329 2003-08-05  Paul Eggert  <eggert@twinsun.com>
65330
65331         * lib/bumpalloc.h: Remove.
65332
65333 2003-08-05  Paul Eggert  <eggert@twinsun.com>
65334
65335         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
65336         * modules/bumpalloc: Remove.
65337
65338 2003-08-04  Paul Eggert  <eggert@twinsun.com>
65339
65340         * lib/getloadavg.c: Change copyright notice and spacing to conform to
65341         GNU coding style.
65342
65343         Merge from coreutils.
65344         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
65345         1. From glibc.
65346         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
65347         from Karl Berry, implemented by Jim Meyering.
65348         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
65349         from Dmitry V. Levin.
65350         Remove anachronistic cast of xrealloc.
65351         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
65352         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
65353         type. Otherwise, it wouldn't compile with at least /bin/cc on
65354         ymp-cray-unicos9.0.2.X.
65355         Combine two mostly-identical uses of alloca into one.
65356         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
65357
65358 2003-08-04  Dave Love  <d.love@dl.ac.uk>
65359
65360         [From Emacs.]
65361
65362         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
65363         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
65364         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
65365         obsolete NLIST_NAME_UNION.
65366         [__GNU__]: Undef BSD and FSCALE.
65367         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
65368
65369 2003-08-03  Paul Eggert  <eggert@twinsun.com>
65370
65371         * lib/stdbool_.h (_Bool): Make it signed char, instead of
65372         an enum type, so that it's guaranteed to promote to int.  See:
65373         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
65374
65375 2003-08-03  Karl Berry  <karl@gnu.org>
65376
65377         * config/depcomp: update from automake.
65378
65379 2003-07-31  Paul Eggert  <eggert@twinsun.com>
65380
65381         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
65382         (strerror): Don't assume that a printable int fits in 14 bytes.
65383
65384 2003-07-31  Bruno Haible  <bruno@clisp.org>
65385
65386         * modules/getpass-gnu: New file.
65387         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
65388
65389 2003-07-31  Bruno Haible  <bruno@clisp.org>
65390
65391         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
65392
65393 2003-07-24  Karl Berry  <karl@gnu.org>
65394
65395         * config/missing: update from automake.
65396
65397 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
65398             Bruno Haible  <bruno@clisp.org>
65399
65400         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
65401         * lib/getline.c (getline, getdelim): Likewise.
65402         Remove _GNU_SOURCE define; now it's defined in config.h through
65403         m4/getline.m4.
65404
65405 2003-07-23  Karl Berry  <karl@gnu.org>
65406
65407         * config/config.sub: update from prep.
65408
65409 2003-07-22  Paul Eggert  <eggert@twinsun.com>
65410
65411         * modules/xalloc (Depends-on): Add exitfail.
65412         * modules/xmemcoll: Likewise.
65413
65414 2003-07-22  Paul Eggert  <eggert@twinsun.com>
65415
65416         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
65417         over-parenthesization in macros.
65418
65419         Sync with coreutils.
65420
65421         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
65422         required by C99.
65423
65424         Use `exit_failure' for xalloc and xmemcoll instead of their own
65425         private exit-failure variables.
65426         * lib/xalloc.h (xalloc_exit_failure): Remove.
65427         * lib/xmalloc.c: Likewise.  Include exitfail.h.
65428         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
65429         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
65430         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
65431         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
65432
65433 2003-07-20  Jim Meyering  <jim@meyering.net>
65434
65435         * modules/closeout (Depends-on): Add exitfail.
65436         Suggestion from Bruno Haible.
65437
65438 2003-07-19  Karl Berry  <karl@gnu.org>
65439
65440         * config/config.sub: update from prep.
65441
65442 2003-07-18  Paul Eggert  <eggert@twinsun.com>
65443
65444         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
65445         Remove.
65446         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
65447         to test that it can stand by itself.  Include "exitfail.h".
65448         Clients should set exit_failure instead.
65449         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
65450
65451 2003-07-18  Bruno Haible  <bruno@clisp.org>
65452
65453         * modules/getndelim2: New file.
65454         * modules/getline: Share files with module getndelim2.
65455         * modules/getnline: Depend on getndelim2 instead of sharing files with
65456         it. Add getnline.c to lib_SOURCES.
65457         * MODULES.html.sh (func_all_modules): Add getndelim2.
65458
65459 2003-07-18  Bruno Haible  <bruno@clisp.org>
65460
65461         * m4/getndelim2.m4: New file.
65462         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
65463         invoke gl_PREREQ_GETNDELIM2.
65464         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
65465         gl_PREREQ_GETNDELIM2.
65466         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
65467         gl_GETNDELIM2.
65468
65469 2003-07-18  Bruno Haible  <bruno@clisp.org>
65470
65471         * lib/getndelim2.h: New file.
65472         * lib/getndelim2.c: Make into a module of its own. Include config.h,
65473         getndelim2.h.
65474         (getndelim2): Make non-static. Change return type to ssize_t.
65475         * lib/getline.h: Change argument names.
65476         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
65477         * lib/getnline.c: Include getndelim2.h.
65478
65479 2003-07-18  Andreas Schwab  <schwab@suse.de>
65480
65481         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
65482
65483 2003-07-17  Karl Berry  <karl@gnu.org>
65484
65485         * config/config.sub: update from prep.
65486
65487 2003-07-17  Bruno Haible  <bruno@clisp.org>
65488
65489         * modules/getnline: New file.
65490         * modules/getline: Add lib/getndelim2.c to source file list.
65491         * MODULES.html.sh (func_all_modules): Add getnline.
65492
65493 2003-07-17  Bruno Haible  <bruno@clisp.org>
65494
65495         * m4/getnline.m4: New file.
65496
65497 2003-07-17  Bruno Haible  <bruno@clisp.org>
65498
65499         * m4/Makefile.am.in: Remove file.
65500         * m4/Makefile.am: Remove file.
65501         * m4/Makefile.in: Remove file.
65502
65503 2003-07-17  Bruno Haible  <bruno@clisp.org>
65504
65505         * lib/getnline.h: New file.
65506         * lib/getnline.c: New file.
65507         * lib/getndelim2.c: New file, extracted from getline.c.
65508         (getndelim2): Renamed from getdelim2, with added nmax argument.
65509         * lib/getline.c: Include getndelim2.c.
65510         (getdelim2): Moved out to getndelim2.c.
65511         (getline, getdelim): Update.
65512
65513 2003-07-17  Bruno Haible  <bruno@clisp.org>
65514
65515         * lib/Makefile.am: Remove file.
65516         * lib/Makefile.in: Remove file.
65517
65518 2003-07-17  Bruno Haible  <bruno@clisp.org>
65519
65520         * configure.in: Remove file.
65521         * Makefile.in: Remove file.
65522
65523 2003-07-17  Bruno Haible  <bruno@clisp.org>
65524
65525         * MODULES.html.sh: Put the </BODY> right before </HTML>.
65526
65527 2003-07-16  Karl Berry  <karl@gnu.org>
65528
65529         * config/srclist-update: was running fixlicense twice, which caused
65530                 texinfo.tex to be nullified for some reason.  Simplify,
65531                 $gplsrc is no longer needed as far as I can see?
65532
65533 2003-07-16  Jim Meyering  <jim@meyering.net>
65534
65535         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
65536
65537 2003-07-15  Paul Eggert  <eggert@twinsun.com>
65538
65539         * config/srclist.txt: Get the following files from gettext-runtime/intl
65540         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
65541         ref-del.sin.  From Bruno Haible.
65542         * config/srclist-update (fixfile): Change grep pattern again, since the
65543         previous fix didn't work (there was another trailing $).  Use
65544         '[$]' to escape the $s.
65545
65546 2003-07-15  Karl Berry  <karl@gnu.org>
65547
65548         * lib/vasnprintf.c: update from gettext.
65549
65550 2003-07-15  Karl Berry  <karl@gnu.org>
65551
65552         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
65553         gets expanded when surrounded by '$'.
65554
65555 2003-07-15  Jim Meyering  <jim@meyering.net>
65556
65557         * modules/save-cwd: Don't depend on error.  From Derek Price.
65558
65559 2003-07-15  Jim Meyering  <jim@meyering.net>
65560
65561         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
65562
65563 2003-07-14  Simon Josefsson  <jas@extundo.com>
65564
65565         * modules/mempcpy: New file.
65566         * MODULES.html.sh (func_all_modules): Add mempcpy.
65567
65568 2003-07-14  Simon Josefsson  <jas@extundo.com>
65569
65570         * m4/mempcpy.m4: New file.
65571
65572 2003-07-14  Simon Josefsson  <jas@extundo.com>
65573
65574         * lib/mempcpy.h: New file.
65575         * lib/mempcpy.c: New file.
65576
65577 2003-07-14  Paul Eggert  <eggert@twinsun.com>
65578
65579         * modules/getdate, modules/posixtm: Depend on mktime.
65580
65581 2003-07-14  Paul Eggert  <eggert@twinsun.com>
65582
65583         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
65584         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
65585         unicodeio.c, unicodeio.h, unlocked-io.h:
65586         Switch from LGPL to GPL.
65587
65588 2003-07-14  Paul Eggert  <eggert@twinsun.com>
65589
65590         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
65591         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
65592         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
65593         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
65594         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
65595         updated automatically by ../config/srclist-update.  This changes
65596         their license from LPGL to GPL.
65597
65598 2003-07-14  Paul Eggert  <eggert@twinsun.com>
65599
65600         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
65601         assumed to refer to the root of the most recent stable gettext version.
65602         * config/srclistvars.sh: Add defaults for eggert.
65603         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
65604         Match "This program" as well as "The program".  This is needed
65605         for gettext.
65606
65607 2003-07-14  Jim Meyering  <jim@meyering.net>
65608
65609         Don't emit diagnostics.  Let callers do that.
65610         * lib/save-cwd.c: Don't include "error.h".
65611         (save_cwd): Don't call error.  Ensure that errno is valid
65612         when returning nonzero.
65613
65614         * lib/save-cwd.h (restore_cwd): Update prototype.
65615         * lib/save-cwd.c (restore_cwd): Remove two parameters.
65616         Simplify.  Don't call error upon failure.  Let callers do that.
65617         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
65618         when auditing is enabled.  But don't bother updating the #if.
65619
65620 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
65621
65622         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
65623         it breaks C++ compilation.
65624         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
65625
65626 2003-07-10  Simon Josefsson  <jas@extundo.com>
65627
65628         * modules/strchrnul (Makefile.am): Add strchrnul.h.
65629
65630 2003-07-10  Jim Meyering  <jim@meyering.net>
65631
65632         * m4/clock_time.m4: Remove trailing blank.
65633         * m4/intmax_t.m4: Likewise.
65634
65635 2003-07-10  Jim Meyering  <jim@meyering.net>
65636
65637         * lib/vasnprintf.c: Remove trailing blanks.
65638         Make cpp indentation consistent.
65639
65640 2003-07-09  Paul Eggert  <eggert@twinsun.com>
65641
65642         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
65643         posixver.c, strftime.c, strnlen.c, strverscmp.c:
65644         Switch from LGPL to GPL.
65645
65646 2003-07-09  Paul Eggert  <eggert@twinsun.com>
65647
65648         * config/srclist.txt: Sort sublists.  Add
65649         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
65650         that differ from gnulib for one reason or another; we'd like this list
65651         to be smaller but for now let's document what we have.
65652
65653 2003-07-08  Paul Eggert  <eggert@twinsun.com>
65654
65655         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
65656         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
65657         and sweeter "eval x=$x".
65658         * config/srclist.txt: Get lib/argp* from glibc.
65659
65660 2003-07-07  Paul Eggert  <eggert@twinsun.com>
65661
65662         * lib/mktime.c: Fix some boundary cases and remove need for floating
65663         point.
65664
65665         Issue a compile-time diagnostic if time_t is floating point, or if
65666         two's complement arithmetic is not in effect, or if arithmetic
65667         right shift does not propagate the sign.  These assumptions were
65668         all in the original code but they weren't checked.
65669
65670         (TIME_T_MIDPOINT, verify): New macros.
65671         (__isleap): Remove; it has integer overflow problems.
65672         (leapyear): New function, without those problems.
65673         (ydhms_tm_diff): Remove; splitting into two parts.
65674         (ydhms_diff): New function, containing the arithmetic part of
65675         the old ydhms_tm_diff function.  Issue a compile-time
65676         diagnostic if we are not using C99 integer division.
65677         Avoid casts when possible.
65678         (guess_time_tm): New function, containing the checking part of
65679         the old ydhms_tm_diff function.  Return the new value, rather than
65680         the difference between it and the old.  Accept a new argument T
65681         so that *T specifies the old value.  Check for overflow in the result.
65682
65683         (__mktime_internal): Use a time_t offset, not a long int offset.
65684         This undoes the 2003-06-04 change, which is no longer needed now
65685         that we have better overflow checking.
65686         (localtime_offset): Likewise.
65687
65688         (__mktime_internal): Avoid harmful overflow on hosts where time_t
65689         and long are 64-bit but int is only 32-bit.
65690         (ydhms_diff): Use long int to store year1 and yday1.
65691         Issue a compile-time diagnostic if long int is not wide enough.
65692
65693         (__mktime_internal): Use long int to store adjusted year and yday.
65694         Use plain C rather than preprocessor commands, if that doesn't
65695         affect efficiency.
65696         Check for overflow (and try to repair) after each probe
65697         rather than checking only at the very end.  This avoids some bugs
65698         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
65699         does not equal GMT offset at maximum time).
65700         Use integer to check for overflow rather than floating point; this
65701         is more portable to non-IEEE hosts, and is a tad faster.
65702         When we detect that we are oscillating between two values,
65703         don't check whether tm_isdst has the requested value, since
65704         we already know the answer.  When tm_isdst has the wrong value,
65705         use a different heuristic to find the right one, based on the
65706         extreme values actually observed in practice in tz2003a,
65707         rather than the (overly optimistic) "previous 3 calendar quarters".
65708
65709         (not_equal_tm, print_tm, check_result): Use "const T" rather than
65710         "T const" to accommodate glibc style.
65711         (check_result): Use less-confusing report format.  "long" -> "long int.
65712         (main): Likewise.
65713         Don't loop if the iteration overflows time_t.
65714         Allow a negative step in the iteration.
65715
65716 2003-07-06  Karl Berry  <karl@gnu.org>
65717
65718         * config/depcomp: update from automake.
65719         * config/config.sub: update from prep.
65720
65721 2003-07-03  Karl Berry  <karl@gnu.org>
65722
65723         * config/config.guess: update from prep.
65724
65725 2003-07-01  Paul Eggert  <eggert@twinsun.com>
65726
65727         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
65728         xreadlink.c now includes it unconditionally.
65729
65730 2003-07-01  Paul Eggert  <eggert@twinsun.com>
65731
65732         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
65733         having it depend on HAVE_SYS_TYPES_H.
65734
65735 2003-07-01  Bruno Haible  <bruno@clisp.org>
65736
65737         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
65738         <sys/types.h> should be sufficient.
65739         Reported by Paul Eggert.
65740
65741 2003-06-26  Karl Berry  <karl@gnu.org>
65742
65743         * config/depcomp: update from automake.
65744
65745 2003-06-26  Bruno Haible  <bruno@clisp.org>
65746
65747         * modules/human: Depend on module stdbool.
65748
65749 2003-06-25  Bruno Haible  <bruno@clisp.org>
65750
65751         * modules/readlink: New file.
65752         * modules/xreadlink: Depend on it.
65753         * MODULES.html.sh (func_all_modules): Add readlink.
65754
65755 2003-06-25  Bruno Haible  <bruno@clisp.org>
65756
65757         * m4/readlink.m4: New file.
65758
65759 2003-06-25  Bruno Haible  <bruno@clisp.org>
65760
65761         * lib/readlink.c: New file.
65762
65763 2003-06-22  Karl Berry  <karl@gnu.org>
65764
65765         * config/srclist.txt: update mkinstalldirs from automake.
65766         * config/mkinstalldirs: update.
65767
65768 2003-06-22  Bruno Haible  <bruno@clisp.org>
65769
65770         Portability to mingw32.
65771         * m4/ssize_t.m4: New file, from GNU gettext.
65772         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
65773         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
65774
65775 2003-06-22  Bruno Haible  <bruno@clisp.org>
65776
65777         * modules/safe-read: Add m4/ssize_t.m4.
65778         * modules/xreadlink: Add m4/ssize_t.m4.
65779
65780 2003-06-20  Bruno Haible  <bruno@clisp.org>
65781
65782         Assume C89, so PARAMS isn't needed.
65783         * lib/unicodeio.h (PARAMS): Remove.
65784         * lib/unicodeio.c: Don't use PARAMS.
65785
65786 2003-06-18  Karl Berry  <karl@gnu.org>
65787
65788         * config/config.{guess,sub}: update from prep.
65789
65790 2003-06-18  Jim Meyering  <jim@meyering.net>
65791
65792         Merge changes from coreutils.
65793         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
65794         Remove explicit declarations of xmalloc and realloc.
65795         Include xalloc.h.
65796         (read_utmp): Remove anachronistic cast of xmalloc.
65797
65798 2003-06-17  Paul Eggert  <eggert@twinsun.com>
65799
65800         Assume C89, so PARAMS isn't needed.
65801         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
65802         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
65803         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
65804         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
65805         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
65806         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
65807         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
65808         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
65809         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
65810         lib/xstrtod.h, lib/xstrtol.h: Likewise.
65811         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
65812         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
65813         no longer needed. Anyway, config.h should always be included before any
65814         other file.
65815
65816 2003-06-11  Simon Josefsson  <jas@extundo.com>
65817
65818         * modules/sysexits: New file.
65819         * MODULES.html.sh (func_all_modules): Add sysexits.
65820
65821 2003-06-11  Simon Josefsson  <jas@extundo.com>
65822
65823         * lib/sysexit_.h: New file.
65824
65825 2003-06-11  Derek Price  <derek@ximbiot.com>
65826
65827         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
65828         necessary.
65829
65830 2003-06-11  Bruno Haible  <bruno@clisp.org>
65831
65832         * m4/sysexits.m4: New file.
65833
65834 2003-06-10  Simon Josefsson  <jas@extundo.com>
65835
65836         * lib/argp.h: New file, from glibc.
65837         * lib/argp-ba.c: New file, from glibc.
65838         * lib/argp-eexst.c: New file, from glibc.
65839         * lib/argp-fmtstream.c: New file, from glibc.
65840         * lib/argp-fmtstream.h: New file, from glibc.
65841         * lib/argp-fs-xinl.c: New file, from glibc.
65842         * lib/argp-help.c: New file, from glibc.
65843         * lib/argp-namefrob.h: New file, from glibc.
65844         * lib/argp-parse.c: New file, from glibc.
65845         * lib/argp-pv.c: New file, from glibc.
65846         * lib/argp-pvh.c: New file, from glibc.
65847         * lib/argp-xinl.c: New file, from glibc.
65848
65849 2003-06-10  Simon Josefsson  <jas@extundo.com>
65850
65851         * modules/strchrnul: New file.
65852
65853 2003-06-10  Simon Josefsson  <jas@extundo.com>
65854
65855         * modules/argp: New file.
65856
65857 2003-06-10  Simon Josefsson  <jas@extundo.com>
65858
65859         * m4/strchrnul.m4: New file.
65860
65861 2003-06-10  Simon Josefsson  <jas@extundo.com>
65862
65863         * lib/strchrnul.h: New file.
65864         * lib/strchrnul.c: New file.
65865
65866 2003-06-10  Bruno Haible  <bruno@clisp.org>
65867
65868         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
65869
65870 2003-06-07  Karl Berry  <karl@gnu.org>
65871
65872         * config/config.{guess,sub}: update from prep.
65873
65874 2003-06-07  Jim Meyering  <jim@meyering.net>
65875
65876         * modules/strtod: Use $(...) notation, not @...@ for
65877         AC_REPLACE'd variables.
65878         * modules/localcharset: Likewise.
65879
65880 2003-06-07  Jim Meyering  <jim@meyering.net>
65881
65882         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
65883         in place of my name in the copyright comment.
65884         Remove definition and uses of __P.
65885
65886         From coreutils.
65887         * lib/stat.c: Don't declare xmalloc explicitly.
65888         Instead, include "xalloc.h".
65889         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
65890         xrealloc, and xcalloc return values.
65891         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
65892         Improve comment.
65893         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
65894
65895 2003-06-07  Bruno Haible  <bruno@clisp.org>
65896
65897         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
65898         avoid AC_CONFIG_LINKS.
65899         * modules/fnmatch (Makefile.am): Use explicit creation rule for
65900         fnmatch.h, to avoid AC_CONFIG_LINKS.
65901         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
65902
65903 2003-06-07  Bruno Haible  <bruno@clisp.org>
65904
65905         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
65906         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
65907         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
65908         directory.
65909         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
65910         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
65911         directory.
65912
65913 2003-06-06  Jim Meyering  <jim@meyering.net>
65914
65915         Merge from coreutils.
65916         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
65917         Consolidate declarations and initializations of *_base* locals.
65918
65919         Merge from coreutils.
65920         This avoids a core dump on systems without GNU putenv,
65921         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
65922         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
65923         (unsetenv): New static function, from GNU libc.
65924         (rpl_putenv): Use it.
65925
65926         * lib/modechange.c: Remove trailing blanks.
65927
65928         Merge from coreutils.
65929         * lib/fsusage.c: Remove declaration of statfs.
65930         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
65931
65932         * lib/posixtm.c: Include <stdbool.h> unconditionally.
65933
65934 2003-06-06  Jim Meyering  <jim@meyering.net>
65935
65936         * lib/stdbool_.h: Renamed from stdbool.h.in.
65937
65938 2003-06-06  Jim Meyering  <jim@meyering.net>
65939             Bruno Haible  <bruno@clisp.org>
65940
65941         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
65942         Adjust Makefile.am snippet not to redirect directly to target.
65943         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
65944
65945 2003-06-05  Paul Eggert  <eggert@twinsun.com>
65946
65947         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
65948         mismatch, look in future quarters as well as past.  This fixes a
65949         bug when processing fall-backwards gaps immediately after a long
65950         period of daylight-saving time.
65951
65952         * lib/mktime.c: Assume freestanding C89 or better.
65953         (HAVE_LIMITS_H): Remove.  Assume it's 1.
65954         (__P): Remove; not used.
65955         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
65956         (mktime, not_equal_tm, print_tm, check_result,
65957         main): Use prototypes.  Use const * where appropriate.
65958         (main): Fix typo in testing code that uncovered by above changes.
65959         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
65960
65961 2003-06-04  Paul Eggert  <eggert@twinsun.com>
65962
65963         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
65964         locale.h, localeconv.  This merges changes from coreutils.
65965
65966         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
65967         It can be removed after the next Autoconf is released.
65968         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
65969         needed.
65970
65971 2003-06-04  Paul Eggert  <eggert@twinsun.com>
65972
65973         * lib/mktime.c: Fix Debian bug 177940
65974         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
65975         (localtime_offset): Now long int, not time_t, because we want it
65976         to be guaranteed to be signed.  All uses changed.
65977         (__mktime_internal): If overflow would occur when adding offset,
65978         don't add it.
65979
65980         Merge 'human' changes from coreutils.  Rewrite to support
65981         locale-specific notations like thousands separators.
65982         * lib/human.c: Simplify authorship notice.
65983         Include human.h immediately after config.h.
65984         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
65985         <limits.h>: Do not include, since human.h does.
65986         (SIZE_MAX, UINTMAX_MAX): New macros.
65987         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
65988         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
65989         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
65990         (power_letter): Renamed from suffixes.
65991         (generate_suffix_backwards): Remove.
65992         (adjust_value): Now takes int style (because of human.h changes)
65993         and long double value (for greater precision on some platforms).
65994         (group_number): New function.
65995         (human_readable): Use it.  Use integer options, not enum.
65996         Put the options before the sizes in the arg list.
65997         Support all the new options.
65998         The old human_readable function has been removed;
65999         use inttostr.h instead.
66000         (human_readable, default_block_size, humblock):
66001         Use uintmax_t, not int, for block sizes.
66002         (human_readable_inexact, block_size_types): Remove.
66003         (block_size_opts): New constant.
66004         (human_options): Renamed from human_block_size, with new signature
66005         that allows block sizes up to UINTMAX_MAX.  All callers changed.
66006         * lib/human.h: Add copyright and authorship notice.
66007         Include <limits.h> and <stdbool.h> unconditionally.
66008         (PARAMS): Remove.  All uses removed.
66009         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
66010         (enum human_inexact_style): Remove tag; now a nameless enum.
66011         (human_floor, human_ceiling, human_round_to_even): Now have
66012         values 2, 0, 1 rather than -1, 1, 0.
66013         (human_group_digits, human_suppress_point_zero, human_autoscale,
66014         human_base_1024, human_SI, human_B): New constants.
66015         (human_readable_inexact, human_block_size): Remove.
66016         (human_readable): Size args are now uintmax_t, not int.
66017         (human_options): New decl.
66018
66019         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
66020         unnecessary now that we assume C89 or better.  This change
66021         imported from coreutils.
66022
66023         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
66024         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
66025         in the 2003-05-30 sync from glibc.
66026
66027         .h files should stand alone, but we shouldn't include <sys/types.h>
66028         if we can get away with just <stddef.h>.
66029
66030         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
66031         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
66032         rather than <sys/types.h>, as we merely need size_t.
66033         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
66034         to get size_t.
66035         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
66036         Include <stdio.h>, to get FILE.
66037         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
66038         memcasecmp.h has included <stddef.h> and all we need is size_t.
66039         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
66040         our interface, instead of including <sys/types.h>
66041
66042 2003-06-04  Paul Eggert  <eggert@twinsun.com>
66043
66044         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
66045         now, as glibc mktime is buggy on non-glibc systems.
66046
66047 2003-06-03  Karl Berry  <karl@gnu.org>
66048
66049         * config/config.sub: update from prep.
66050
66051 2003-06-02  Paul Eggert  <eggert@twinsun.com>
66052
66053         [from coreutils]
66054         Fix some minor time-related bugs with POSIX time arguments.
66055         Some valid time stamps were being rejected (notably -1, and
66056         time stamps before 1900 on 64-bit hosts).  And some invalid
66057         time stamps were being accepted, e.g. September 31.
66058
66059         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
66060         that we can return (time_t) -1 successfully.
66061         * lib/posixtm.c: Likewise.
66062         [HAVE_STDBOOL_H]: Include <stdbool.h>.
66063         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
66064         (t): Remove static var.
66065         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
66066         of static var.  All uses changed.
66067         (year): Do not reject years before 1900; they can occur with
66068         64-bit time_t.
66069         (posix_time_parse): Do not check for out-of-range components;
66070         that is now the caller's responsibility, since our checks were
66071         only approximations.
66072         (posixtime): Use mktime to check for out-of-range components,
66073         since it knows them exactly.
66074         If mktime returns (time_t) -1, check whether an error actually occurred
66075         by invoking localtime on -1.
66076         (main) [TEST_POSIXTIME]: Check for input data errors, and report
66077         posixtime failures better.
66078         Improve the test data (in comments only).
66079
66080 2003-06-02  Karl Berry  <karl@gnu.org>
66081
66082         * config/mkinstalldirs (version): new variable.
66083         (--version): new option.
66084         (usage): improve message.
66085
66086 2003-05-30  Karl Berry  <karl@gnu.org>
66087
66088         * lib/mktime.c: update from libc.
66089
66090 2003-05-30  Bruno Haible  <bruno@clisp.org>
66091
66092         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
66093         * config/config.rpath: Upgrade to gettext-0.12.1.
66094
66095 2003-05-30  Bruno Haible  <bruno@clisp.org>
66096
66097         * m4/gettext.m4: Upgrade to gettext-0.12.1.
66098         * m4/nls.m4: New file, from gettext-0.12.1.
66099         * m4/po.m4: New file, from gettext-0.12.1.
66100         * m4/progtest.m4: Upgrade to gettext-0.12.1.
66101
66102 2003-05-30  Bruno Haible  <bruno@clisp.org>
66103
66104         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
66105         * lib/localcharset.h: Likewise.
66106         * lib/localcharset.c: Likewise.
66107
66108 2003-05-29  Karl Berry  <karl@gnu.org>
66109
66110         * config/config.rpath: update from gettext.
66111
66112 2003-05-28  Paul Eggert  <eggert@twinsun.com>
66113
66114         Assume the headers required for C89 freestanding compilers.
66115         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
66116         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
66117         * m4/human.m4 (gl_HUMAN): Likewise.
66118         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
66119         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
66120         * m4/userspec.m4 (gl_USERSPEC): Likewise.
66121         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
66122         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
66123         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
66124
66125 2003-05-28  Paul Eggert  <eggert@twinsun.com>
66126
66127         Assume the headers required for C89 freestanding compilers.
66128         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
66129         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
66130         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
66131         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
66132         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
66133         define, since <limits.h> is guaranteed to do that.
66134         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
66135         * lib/exclude.c: Include <stdbool.h> unconditionally.
66136         * lib/tempname.c: Include <stddef.h> unconditionally.
66137         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
66138         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
66139         <stddef.h> does that.
66140         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
66141         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
66142         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
66143         needed.
66144         * lib/xstrtol.c: Likewise.
66145         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
66146         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
66147
66148         * lib/addext.c (addext): Use assignment rather than cast, to avoid
66149         warnings on some platforms.
66150
66151         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
66152         arbitrarily.
66153
66154 2003-05-26  Jim Meyering  <jim@meyering.net>
66155
66156         Merge in a change from coreutils:
66157         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
66158         that is guaranteed to be `no'.  Use `no_such_member' to indicate
66159         that condition, rather than `-1' which is slightly misleading.
66160         Change the name of the cache variable to have the gl_ prefix.
66161         Prompted by a patch from Richard Dawe for DJGPP.
66162
66163 2003-05-24  Karl Berry  <karl@gnu.org>
66164
66165         * config/config.guess: update from prep.
66166
66167 2003-05-22  Karl Berry  <karl@gnu.org>
66168
66169         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
66170
66171 2003-05-20  Karl Berry  <karl@gnu.org>
66172
66173         * config/config.guess: update from prep.
66174
66175 2003-05-18  Karl Berry  <karl@gnu.org>
66176
66177         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
66178         might actually be set by the user.
66179
66180         * config/depcomp, install-sh, mdate-sh: update from automake.
66181
66182 2003-05-17  Bruno Haible  <bruno@clisp.org>
66183
66184         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
66185         invalid expansion for AC_EGREP_CPP.
66186         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
66187         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
66188         Suggested by Akim Demaille <akim@epita.fr> in
66189         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
66190
66191 2003-05-12  Jim Meyering  <jim@meyering.net>
66192
66193         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
66194         the space-padded-by-default conversion specifiers, %e, %k, %l.
66195
66196 2003-05-12  Bruno Haible  <bruno@clisp.org>
66197
66198         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
66199         the string is longer than 4 KB.
66200
66201 2003-05-11  Karl Berry  <karl@gnu.org>
66202
66203         * config/config.{guess,sub}: update from prep.
66204
66205 2003-05-09  Bruno Haible  <bruno@clisp.org>
66206
66207         * modules/error: Add m4/strerror_r.m4 to file list.
66208
66209 2003-05-03  Bruno Haible  <bruno@clisp.org>
66210
66211         Upgrade to Unicode-4.0.
66212         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
66213         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
66214         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
66215         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
66216         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
66217         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
66218         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
66219         Change width of U+E0100..U+E01EF from 1 to 0.
66220
66221 2003-04-25  Jim Meyering  <jim@meyering.net>
66222
66223         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
66224         of type size_t, not int.
66225
66226 2003-04-25  Bruno Haible  <bruno@clisp.org>
66227
66228         * lib/copy-file.c: Include <stddef.h>, for size_t.
66229
66230 2003-04-21  Paul Eggert  <eggert@twinsun.com>
66231
66232         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
66233         code which expansion is under static control.  Patch imported from
66234         Akim Demaille's patch to Bison; see
66235         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
66236
66237 2003-04-14  Bruno Haible  <bruno@clisp.org>
66238
66239         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
66240
66241 2003-04-11  Jim Meyering  <jim@meyering.net>
66242
66243         Merge changes from Coreutils.
66244
66245         2003-03-22  Jim Meyering  <jim@meyering.net>
66246
66247         * lib/strftime.c (widen): Cast alloca return value to proper type.
66248
66249         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
66250
66251         From GNU libc.
66252         * lib/strftime.c (my_strftime): Handle very large width
66253         specifications for numeric values correctly.  Improve checks for
66254         overflow.
66255
66256         2003-01-19  Jim Meyering  <jim@meyering.net>
66257
66258         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
66259         definitions.
66260         (nl_get_alt_digit) [! defined my_strftime]: Define.
66261         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
66262         _nl_get_alt_digit and _nl_get_walt_digit.
66263
66264         * lib/strftime.c (my_strftime): Merge in locale-related changes from
66265         libc. These changes have no effect outside of _LIBC.
66266
66267 2003-04-10  Bruno Haible  <bruno@clisp.org>
66268
66269         * modules/findprog: New file.
66270         * MODULES.html.sh (func_all_modules): Add it.
66271
66272 2003-04-10  Bruno Haible  <bruno@clisp.org>
66273
66274         * m4/findprog.m4: New file.
66275         * m4/eaccess.m4: New file.
66276
66277 2003-04-10  Bruno Haible  <bruno@clisp.org>
66278
66279         * lib/findprog.h: New file, from GNU gettext.
66280         * lib/findprog.c: New file, from GNU gettext.
66281
66282 2003-04-05  Jim Meyering  <jim@meyering.net>
66283
66284         Merge changes from Coreutils.
66285
66286         * lib/exclude.h (PARAMS): Remove definition and uses.
66287         * lib/exclude.c: Remove uses of `PARAMS'.
66288
66289         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
66290         Add test-cases for DOS filenames. Declare program_name.
66291         (main): Set up program_name.  Patch by Rich Dawe.
66292
66293         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
66294         error from mntctl.
66295         Use mntctl's return value to drive the entry-processing loop, since
66296         we can't rely on the value of the vmt_length member in the last
66297         entry.  On some systems doing so could result in exhausting
66298         virtual memory.  Based in part on a patch from Mike Jetzer.
66299
66300 2003-04-04  Bruno Haible  <bruno@clisp.org>
66301
66302         * modules/linebreak: New file.
66303         * MODULES.html.sh (func_all_modules): Add it.
66304
66305 2003-04-04  Bruno Haible  <bruno@clisp.org>
66306
66307         * m4/linebreak.m4: New file.
66308
66309 2003-04-04  Bruno Haible  <bruno@clisp.org>
66310
66311         * lib/linebreak.h: New file, from GNU gettext.
66312         * lib/linebreak.c: New file, from GNU gettext with slight
66313         modifications.
66314         * lib/lbrkprop.h: New file, from GNU gettext.
66315
66316 2003-04-03  Bruno Haible  <bruno@clisp.org>
66317
66318         * modules/utf8-ucs4: New file.
66319         * modules/utf16-ucs4: New file.
66320         * modules/ucs4-utf8: New file.
66321         * modules/ucs4-utf16: New file.
66322         * MODULES.html.sh (func_all_modules): Add them.
66323
66324 2003-04-03  Bruno Haible  <bruno@clisp.org>
66325
66326         * m4/utf-ucs4.m4: New file.
66327         * m4/ucs4-utf.m4: New file.
66328
66329 2003-04-03  Bruno Haible  <bruno@clisp.org>
66330
66331         * lib/utf8-ucs4.h: New file, from GNU gettext.
66332         * lib/utf16-ucs4.h: New file, from GNU gettext.
66333         * lib/ucs4-utf8.h: New file, from GNU gettext.
66334         * lib/ucs4-utf16.h: New file, from GNU gettext.
66335
66336 2003-04-02  Bruno Haible  <bruno@clisp.org>
66337
66338         * modules/binary-io: New file.
66339         * MODULES.html.sh (func_all_modules): Add it.
66340
66341 2003-04-02  Bruno Haible  <bruno@clisp.org>
66342
66343         * lib/binary-io.h: New file, from GNU gettext.
66344
66345 2003-04-01  Bruno Haible  <bruno@clisp.org>
66346
66347         * modules/pathname: New file.
66348         * MODULES.html.sh (func_all_modules): Add it.
66349
66350 2003-04-01  Bruno Haible  <bruno@clisp.org>
66351
66352         * lib/pathname.h: New file, from GNU gettext.
66353         * lib/concatpath.c: New file, from GNU gettext.
66354
66355 2003-03-30  Bruno Haible  <bruno@clisp.org>
66356
66357         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
66358
66359 2003-03-30  Bruno Haible  <bruno@clisp.org>
66360
66361         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
66362         function chown() doesn't exist.
66363
66364 2003-03-28  Bruno Haible  <bruno@clisp.org>
66365
66366         * modules/copy-file: New file.
66367         * MODULES.html.sh (func_all_modules): Add it.
66368
66369 2003-03-28  Bruno Haible  <bruno@clisp.org>
66370
66371         * m4/copy-file.m4: New file.
66372
66373 2003-03-28  Bruno Haible  <bruno@clisp.org>
66374
66375         * lib/copy-file.h: New file, from GNU gettext.
66376         * lib/copy-file.c: New file, from GNU gettext.
66377
66378 2003-03-18  Jim Meyering  <jim@meyering.net>
66379
66380         * lib/quote.c (quote_n): Fix typo in comment.
66381
66382 2003-03-18  Bruno Haible  <bruno@clisp.org>
66383
66384         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
66385         checking.
66386         * m4/onceonly_2_57.m4: Likewise.
66387
66388 2003-03-17  Bruno Haible  <bruno@clisp.org>
66389
66390         * m4/onceonly.m4: Require autoconf 2.54 or newer.
66391         (m4_quote): Remove macro.
66392         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
66393
66394 2003-03-14  Jim Meyering  <jim@meyering.net>
66395
66396         Merge changes from Coreutils.
66397         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
66398         to be const, in order to avoid warnings.
66399         (obstack_room): Likewise.
66400         (obstack_empty_p): Likewise.
66401
66402 2003-03-14  Bruno Haible  <bruno@clisp.org>
66403
66404         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
66405         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
66406
66407 2003-03-13  Paul Eggert  <eggert@twinsun.com>
66408
66409         Merge changes from Bison.
66410         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
66411         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
66412         when compiling Bison 1.875's `bitset bset = obstack_alloc
66413         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
66414         * lib/hash.c: Include <stdbool.h> unconditionally.
66415
66416 2003-03-13  Paul Eggert  <eggert@twinsun.com>
66417
66418         * m4/onceonly.m4 (m4_quote): New macro.
66419         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
66420         Quote AC_FOREACH variable-expansions properly.
66421
66422 2003-03-13  Paul Eggert  <eggert@twinsun.com>
66423
66424         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
66425
66426 2003-03-09  Paul Eggert  <eggert@twinsun.com>
66427
66428         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
66429         Reported by Bruce Becker; see:
66430         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
66431
66432 2003-03-03  Paul Eggert  <eggert@twinsun.com>
66433             Bruno Haible  <bruno@clisp.org>
66434
66435         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
66436         Reported by John Hughes, see
66437         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
66438
66439 2003-02-20  Bruno Haible  <bruno@clisp.org>
66440
66441         * MODULES.html.sh (func_all_modules): Add poll.
66442
66443 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
66444
66445         * modules/poll: New file.
66446
66447 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
66448
66449         * lib/poll_.h: New file.
66450         * lib/poll.c: New file.
66451
66452 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
66453
66454         * m4/poll.m4: New file.
66455
66456 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
66457
66458         * modules/mathl: New file.
66459
66460 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
66461
66462         * lib/mathl.h: New file.
66463         * lib/acosl.c: New file.
66464         * lib/asinl.c: New file.
66465         * lib/atanl.c: New file.
66466         * lib/ceill.c: New file.
66467         * lib/cosl.c: New file.
66468         * lib/expl.c: New file.
66469         * lib/floorl.c: New file.
66470         * lib/frexpl.c: New file.
66471         * lib/ldexpl.c: New file.
66472         * lib/logl.c: New file.
66473         * lib/sincosl.c: New file.
66474         * lib/sinl.c: New file.
66475         * lib/sqrtl.c: New file.
66476         * lib/tanl.c: New file.
66477         * lib/trigl.c: New file.
66478         * lib/trigl.h: New file.
66479
66480 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
66481
66482         * m4/mathl.m4: New file.
66483
66484 2003-02-18  Bruno Haible  <bruno@clisp.org>
66485
66486         * MODULES.html.sh (func_all_modules): Add mathl.
66487
66488 2003-02-17  Bruno Haible  <bruno@clisp.org>
66489
66490         * modules/mkdtemp: New module.
66491         * MODULES.html.sh (func_all_modules): Add it.
66492
66493 2003-02-17  Bruno Haible  <bruno@clisp.org>
66494
66495         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
66496
66497 2003-02-17  Bruno Haible  <bruno@clisp.org>
66498
66499         * lib/mkdtemp.h: New file, from GNU gettext.
66500         * lib/mkdtemp.c: New file, from GNU gettext.
66501
66502 2003-02-02  Jim Meyering  <jim@meyering.net>
66503
66504         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
66505         e.g. glibc-2.2.93.
66506
66507 2003-01-31  Bruno Haible  <bruno@clisp.org>
66508
66509         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
66510         'rpl_rename'.
66511         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
66512         'rpl_strnlen'.
66513         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
66514         'rpl_strtod'.
66515         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
66516         'rpl_utime'.
66517
66518 2003-01-31  Bruno Haible  <bruno@clisp.org>
66519
66520         * lib/rename.c: #undef rename before defining rpl_rename.
66521         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
66522
66523 2003-01-30  Bruno Haible  <bruno@clisp.org>
66524
66525         * modules/vasnprintf, modules/vasprintf: New modules.
66526         * MODULES.html.sh (func_all_modules): Add them.
66527
66528 2003-01-30  Bruno Haible  <bruno@clisp.org>
66529
66530         * m4/signed.m4: New file, from GNU gettext.
66531         * m4/longdouble.m4: New file, from GNU gettext.
66532         * m4/wchar_t.m4: New file, from GNU gettext.
66533         * m4/wint_t.m4: New file, from GNU gettext.
66534         * m4/vasnprintf.m4: New file.
66535         * m4/vasprintf.m4: New file.
66536
66537 2003-01-30  Bruno Haible  <bruno@clisp.org>
66538
66539         * lib/printf-args.h: New file, from GNU gettext.
66540         * lib/printf-args.c: New file, from GNU gettext.
66541         * lib/printf-parse.h: New file, from GNU gettext.
66542         * lib/printf-parse.c: New file, from GNU gettext.
66543         * lib/vasnprintf.h: New file, from GNU gettext.
66544         * lib/vasnprintf.c: New file, from GNU gettext.
66545         * lib/asnprintf.c: New file, from GNU gettext.
66546         * lib/vasprintf.h: New file, from GNU gettext with modifications.
66547         * lib/vasprintf.c: New file, from GNU gettext.
66548         * lib/asprintf.c: New file, from GNU gettext.
66549
66550 2003-01-29  Bruno Haible  <bruno@clisp.org>
66551
66552         * modules/stpncpy: New module.
66553         * MODULES.html.sh (func_all_modules): Add it.
66554
66555 2003-01-29  Bruno Haible  <bruno@clisp.org>
66556
66557         * m4/stpncpy.m4: New file.
66558
66559 2003-01-29  Bruno Haible  <bruno@clisp.org>
66560
66561         * lib/stpncpy.h: New file, from GNU gettext with modifications.
66562         * lib/stpncpy.c: New file, from GNU gettext with modifications.
66563
66564 2003-01-28  Bruno Haible  <bruno@clisp.org>
66565
66566         * modules/c-ctype: New module.
66567         * MODULES.html.sh (func_all_modules): Add it.
66568
66569 2003-01-28  Bruno Haible  <bruno@clisp.org>
66570
66571         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
66572         Paul Eggert.
66573         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
66574         Paul Eggert.
66575
66576 2003-01-27  Bruno Haible  <bruno@clisp.org>
66577
66578         * modules/xsetenv: New module.
66579         * MODULES.html.sh (func_all_modules): Add it.
66580
66581 2003-01-27  Bruno Haible  <bruno@clisp.org>
66582
66583         * lib/xsetenv.h: New file, from GNU gettext.
66584         * lib/xsetenv.c: New file, from GNU gettext.
66585
66586 2003-01-23  Jim Meyering  <jim@meyering.net>
66587
66588         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
66589         from working on systems without dirfd (at least Irix and OSF1/Tru64).
66590
66591 2003-01-23  Bruno Haible  <bruno@clisp.org>
66592
66593         * modules/minmax: New module.
66594         * MODULES.html.sh (func_all_modules): Add it.
66595
66596 2003-01-23  Bruno Haible  <bruno@clisp.org>
66597
66598         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
66599         Eggert.
66600
66601 2003-01-22  Bruno Haible  <bruno@clisp.org>
66602
66603         * modules/exit: New module.
66604         * MODULES.html.sh (func_all_modules): Add it.
66605
66606 2003-01-22  Bruno Haible  <bruno@clisp.org>
66607
66608         * lib/exit.h: New file, from GNU gettext.
66609
66610 2003-01-19  Bruno Haible  <bruno@clisp.org>
66611
66612         * gnulib-tool: Recognize option --extract-maintainer.
66613         (func_get_maintainer): New function.
66614         * modules/*: Add Maintainer entry.
66615
66616 2003-01-16  Jim Meyering  <jim@meyering.net>
66617
66618         * m4/regex.m4: The `regex' struct is both input and output.
66619         Initialize it before each use.  Patch by Tim Waugh.
66620
66621 2003-01-16  Bruno Haible  <bruno@clisp.org>
66622
66623         * MODULES.html.sh: Add a table of contents. Add the module name as
66624         leftmost column. Add hyperlinks.
66625
66626 2003-01-15  Bruno Haible  <bruno@clisp.org>
66627
66628         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
66629
66630 2003-01-15  Bruno Haible  <bruno@clisp.org>
66631
66632         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
66633         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
66634         suffix.
66635
66636 2003-01-15  Bruno Haible  <bruno@clisp.org>
66637
66638         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
66639
66640 2003-01-15  Bruno Haible  <bruno@clisp.org>
66641
66642         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
66643         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
66644
66645 2003-01-14  Jim Meyering  <jim@meyering.net>
66646
66647         * lib/same.c (same_name): Tweak a comment.
66648
66649 2003-01-14  Bruno Haible  <bruno@clisp.org>
66650
66651         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
66652         when a string comparison is sufficient.
66653
66654 2003-01-14  Bruno Haible  <bruno@clisp.org>
66655
66656         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
66657         'unsigned int'.
66658
66659 2003-01-14  Bruno Haible  <bruno@clisp.org>
66660
66661         * lib/hash-pjw.c: Add comment about low quality of this function.
66662
66663 2003-01-13  Bruno Haible  <bruno@clisp.org>
66664
66665         * modules/stpcpy: Distribute lib/stpcpy.h.
66666         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
66667
66668 2003-01-13  Bruno Haible  <bruno@clisp.org>
66669
66670         * modules/*: Add a description.
66671         * modules/strpbrk: Fix Makefile.am snippet.
66672         * modules/strtoimax: Fix dependencies.
66673         * modules/strtoumax: Likewise.
66674
66675 2003-01-13  Bruno Haible  <bruno@clisp.org>
66676
66677         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
66678         * modules/alloca (Makefile.am): All object files depend on alloca.h.
66679         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
66680
66681 2003-01-13  Bruno Haible  <bruno@clisp.org>
66682
66683         * gnulib-tool (func_create_testdir): Store config/* files in the main
66684         directory.
66685         * config.rpath: Move to ...
66686         * config/config.rpath: ... here.
66687         * modules/gettext: Contains config/config.rpath, not config.rpath.
66688         * modules/iconv: Likewise.
66689
66690 2003-01-12  Paul Eggert  <eggert@twinsun.com>
66691
66692         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
66693         to avoid collisions with libcurses and libreadline.
66694
66695         * m4/getstr.m4: Remove.
66696         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
66697
66698 2003-01-12  Paul Eggert  <eggert@twinsun.com>
66699
66700         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
66701         to avoid collisions with libcurses and libreadline.
66702
66703         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
66704         * lib/getstr.h, getstr.c: Remove.
66705         * lib/getline.c: Include "getline.h", to check interface.
66706         Move body of old getstr.c here: this defines MIN_CHUNK and
66707         declares getdelim2, which is renamed from getstr.
66708         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
66709
66710         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
66711         All uses changed.
66712         * lib/linebuffer.h: Likewise.
66713         (readline): Remove backward-compatibility macro.
66714
66715 2003-01-12  Paul Eggert  <eggert@twinsun.com>
66716
66717         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
66718         to avoid collisions with libcurses and libreadline.
66719         * getstr: Remove.
66720         * MODULES.html.sh: Remove getstr.
66721         * modules/getline: Depend on unlocked-io, not getstr.
66722
66723 2003-01-12  Jim Meyering  <jim@meyering.net>
66724
66725         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
66726
66727 2003-01-10  Bruno Haible  <bruno@clisp.org>
66728
66729         * modules/alloca: Change Makefile.am requirements. Simplify Include
66730         requirements. Add lib/alloca_.h to file list.
66731
66732 2003-01-10  Bruno Haible  <bruno@clisp.org>
66733
66734         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
66735
66736 2003-01-10  Bruno Haible  <bruno@clisp.org>
66737
66738         * lib/alloca_.h: New file.
66739         * lib/getdate.y: Unconditionally include alloca.h.
66740         * lib/makepath.c: Likewise.
66741         * lib/setenv.c: Likewise.
66742         * lib/userspec.c: Likewise.
66743
66744 2003-01-09  Karl Berry  <karl@gnu.org>
66745
66746         * MODULES.html.sh: include `dirname $0` in PATH, to find
66747         gnulib-tool.
66748
66749 2003-01-09  Bruno Haible  <bruno@clisp.org>
66750
66751         * modules/stdbool: Change configure.ac, Makefile.am requirements.
66752         Simplify Include requirements. Add lib/stdbool.h.in to file list.
66753
66754 2003-01-09  Bruno Haible  <bruno@clisp.org>
66755
66756         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
66757
66758 2003-01-09  Bruno Haible  <bruno@clisp.org>
66759
66760         * lib/stdbool.h.in: New file.
66761
66762 2003-01-09  Bruno Haible  <bruno@clisp.org>
66763
66764         * gnulib-tool (func_all_modules): Ignore files ending in ~.
66765         * MODULES.html.sh: Likewise.
66766
66767 2003-01-08  Jim Meyering  <jim@meyering.net>
66768
66769         * lib/full-write.c: Undefine and define-away `const' after inclusion
66770         of errno.h, not before.  Suggestion from Bruno Haible.
66771
66772 2003-01-08  Bruno Haible  <bruno@clisp.org>
66773
66774         * modules/full-read: Depend on full-write.
66775
66776 2003-01-08  Bruno Haible  <bruno@clisp.org>
66777
66778         * lib/safe-read.c: Include specification header first, to ensure its
66779         selfcontainedness.
66780         * lib/full-write.c: Likewise.
66781
66782 2003-01-07  Jim Meyering  <jim@meyering.net>
66783
66784         * lib/full-write.c: Rework so that it may serve to define full_read,
66785         too.
66786         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
66787
66788 2003-01-07  Bruno Haible  <bruno@clisp.org>
66789
66790         * lib/strtoimax.c: Include <stdint.h> as an alternative to
66791         <inttypes.h>.
66792         * lib/xstrtol.h: Likewise.
66793         * lib/xstrtoimax.c: Likewise.
66794         * lib/xstrtoumax.c: Likewise.
66795         * lib/human.h: Likewise.
66796
66797         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
66798         on systems that have <inttypes.h> but not <stdint.h>.
66799
66800 2003-01-07  Bruno Haible  <bruno@clisp.org>
66801
66802         * MODULES.html.sh: Add copyright notice.
66803         (missed_files): Omit CVS directory entries.
66804         (func_module): Make it work with sed-3.02.
66805         * MODULES.txt: Remove file.
66806
66807 2003-01-06  Jim Meyering  <jim@meyering.net>
66808
66809         * lib/version-etc.c: Update year in translatable copyright string.
66810
66811 2003-01-03  Karl Berry  <karl@gnu.org>
66812
66813         * config/config.{guess,sub}: update from prep.
66814
66815 2003-01-02  Karl Berry  <karl@gnu.org>
66816
66817         * doc/COPYING.DOC: belatedly updated to 1.2.
66818
66819 2003-01-01  Karl Berry  <karl@gnu.org>
66820
66821         * gnulib-tool (func_verify_module): report module name $module in
66822         error message, not $1.
66823         * gnulib-tool (create-testdir): don't complain if destdir couldn't
66824         be created, only if it doesn't exist.
66825         * gnulib-tool (last_checkin_date): don't expand the $Date here.
66826
66827 2002-12-31  Paul Eggert  <eggert@twinsun.com>
66828
66829         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
66830
66831 2002-12-31  Paul Eggert  <eggert@twinsun.com>
66832
66833         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
66834         memcmp if strcoll doesn't work.
66835
66836 2002-12-31  Bruno Haible  <bruno@clisp.org>
66837
66838         * lib/utime.c (utime_null): No need to call ftruncate if the file was
66839         nonempty.
66840
66841 2002-12-31  Bruno Haible  <bruno@clisp.org>
66842
66843         * lib/memcoll.c (STRCOLL): New macro.
66844         (memcoll): Use it.
66845
66846 2002-12-31  Bruno Haible  <bruno@clisp.org>
66847
66848         * lib/localcharset.h: New file.
66849         * lib/localcharset.c: Include it.
66850         * lib/unicodeio.c: Likewise.
66851
66852 2002-12-31  Bruno Haible  <bruno@clisp.org>
66853
66854         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
66855         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
66856
66857 2002-12-31  Bruno Haible  <bruno@clisp.org>
66858
66859         * lib/getline.h: Include <stddef.h>, for size_t.
66860
66861         * lib/unicodeio.h: Include <stddef.h>, for size_t.
66862         * lib/unicodeio.c: Don't include <stddef.h>.
66863
66864 2002-12-31  Bruno Haible  <bruno@clisp.org>
66865
66866         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
66867         HAVE_TM_ZONE.
66868
66869 2002-12-24  Karl Berry  <karl@gnu.org>
66870
66871         * config/config.guess: update from prep.
66872
66873 2002-12-24  Bruno Haible  <bruno@clisp.org>
66874
66875         General infrasructure.
66876         * m4/README: Rewritten.
66877         * m4/onceonly.m4: New file.
66878         * m4/onceonly_2_57.m4: New file.
66879
66880         Module atexit.
66881         * m4/atexit.m4: New file.
66882
66883         Module strtod.
66884         * m4/strtod.m4: New file.
66885
66886         Module strtol.
66887         * m4/strtol.m4: New file.
66888
66889         Module strtoul.
66890         * m4/strtoul.m4: New file.
66891
66892         Module memchr.
66893         * m4/memchr.m4: New file.
66894
66895         Module memcmp.
66896         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
66897         (jm_FUNC_MEMCMP): Invoke it.
66898
66899         Module memcpy.
66900         * m4/memcpy.m4: New file.
66901
66902         Module memmove.
66903         * m4/memmove.m4: New file.
66904
66905         Module memset.
66906         * m4/memset.m4: New file.
66907
66908         Module strcspn.
66909         * m4/strcspn.m4: New file.
66910
66911         Module strpbrk.
66912         * m4/strpbrk.m4: New file.
66913
66914         Module strstr.
66915         * m4/strstr.m4: New file.
66916
66917         Module strerror.
66918         * m4/strerror.m4: New file.
66919
66920         Module mktime.
66921         * m4/mktime.m4: Renamed from jm-mktime.m4.
66922         (gl_PREREQ_MKTIME): New macro.
66923         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
66924
66925         Module malloc.
66926         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
66927         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
66928         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
66929
66930         Module realloc.
66931         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
66932         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
66933         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
66934
66935         Module strftime.
66936         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
66937         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
66938         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
66939         gl_TM_GMTOFF.
66940         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
66941
66942         Module xalloc.
66943         * m4/xalloc.m4: New file.
66944
66945         Module alloca.
66946         * m4/alloca.m4: New file.
66947
66948         Module putenv.
66949         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
66950         (jm_FUNC_PUTENV): Invoke it.
66951
66952         Module setenv.
66953         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
66954         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
66955         when invoked twice.
66956         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
66957         gt_FUNC_SETENV.
66958
66959         Module memrchr.
66960         * m4/memrchr.m4: New file.
66961
66962         Module stpcpy.
66963         * m4/stpcpy.m4: New file.
66964
66965         Module strcase.
66966         * m4/strcase.m4: New file.
66967
66968         Module strdup.
66969         * m4/strdup.m4: New file.
66970
66971         Module strnlen.
66972         * m4/strnlen.m4: New file.
66973
66974         Module strndup.
66975         * m4/strndup.m4: New file.
66976
66977         Module xstrtod.
66978         * m4/xstrtod.m4: New file.
66979
66980         Module xstrtol.
66981         * m4/xstrtol.m4: New file.
66982
66983         Module getdate.
66984         * m4/getdate.m4: New file.
66985
66986         Module unlocked-io.
66987         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
66988         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
66989         * m4/jm-glibc-io.m4n: Remove file.
66990
66991         Module long-options.
66992         * m4/long-options.m4: New file.
66993
66994         Module md5.
66995         * m4/md5.m4: New file.
66996
66997         Module sha.
66998         * m4/sha.m4: New file.
66999
67000         Module getstr.
67001         * m4/getstr.m4: New file.
67002
67003         Module getline.
67004         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
67005         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
67006         <sys/types.h>, for size_t. Use the function name gnu_getline, not
67007         simply getline. Infoke gl_PREREQ_GETLINE.
67008
67009         Module obstack.
67010         * m4/obstack.m4: New file.
67011
67012         Module hash.
67013         * m4/hash.m4: New file.
67014
67015         Module readtokens.
67016         * m4/readtokens.m4: New file.
67017
67018         Module strverscmp.
67019         * m4/strverscmp.m4: New file.
67020
67021         Module stdbool.
67022         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
67023         OSF/1.
67024
67025         Module strtoll.
67026         * m4/strtoll.m4: New file.
67027
67028         Module strtoull.
67029         * m4/strtoull.m4: New file.
67030
67031         Module strtoimax.
67032         * m4/strtoimax.m4: New file.
67033
67034         Module strtoumax.
67035         * m4/strtoumax.m4: New file.
67036
67037         Module xstrtoimax.
67038         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
67039         jm_AC_PREREQ_XSTRTOIMAX.
67040         Moved the strtol prerequisites to strtol.m4.
67041         Moved the strtoll prerequisites to strtoll.m4.
67042         Moved the strtoimax prerequisites to strtoimax.m4.
67043
67044         Module xstrtoumax.
67045         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
67046         jm_AC_PREREQ_XSTRTOUMAX.
67047         Moved the strtoul prerequisites to strtoul.m4.
67048         Moved the strtoull prerequisites to strtoull.m4.
67049         Moved the strtoumax prerequisites to strtoumax.m4.
67050
67051         Module chown.
67052         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
67053         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
67054
67055         Module dup2.
67056         * m4/dup2.m4: New file.
67057
67058         Module ftruncate.
67059         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
67060         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
67061
67062         Module getgroups.
67063         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
67064         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
67065
67066         Module gettimeofday.
67067         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
67068         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
67069         gl_PREREQ_GETTIMEOFDAY.
67070
67071         Module mkdir.
67072         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
67073         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
67074
67075         Module mkstemp.
67076         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
67077         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
67078         jm_AC_TYPE_UINTMAX_T.
67079         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
67080
67081         Module stat.
67082         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
67083         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
67084
67085         Module lstat.
67086         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
67087         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
67088
67089         Module timespec.
67090         * m4/timespec.m4 (gl_TIMESPEC): New macro.
67091         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
67092         * m4/st_mtim.m4: Indentation.
67093
67094         Module nanosleep.
67095         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
67096         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
67097         gl_PREREQ_NANOSLEEP.
67098
67099         Module regex.
67100         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
67101         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
67102         (gl_REGEX): New macro.
67103
67104         Module rename.
67105         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
67106         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
67107
67108         Module rmdir.
67109         * m4/rmdir.m4: New file.
67110
67111         Module utime.
67112         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
67113         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
67114         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
67115
67116         Module dirname.
67117         * m4/dirname.m4: New file.
67118
67119         Module getopt.
67120         * m4/getopt.m4: New file.
67121
67122         Module unistd-safer.
67123         * m4/unistd-safer.m4: New file.
67124
67125         Module fnmatch.
67126         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
67127         declaration.
67128         (gl_PREREQ_FNMATCH_EXTRA): New macro.
67129         (gl_FUNC_FNMATCH_POSIX): New macro.
67130         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
67131         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
67132         simply fnmatch.
67133
67134         Module exclude.
67135         * m4/exclude.m4: New file.
67136
67137         Module human.
67138         * m4/human.m4: New file.
67139
67140         Module acl.
67141         * m4/acl.m4: Nop.
67142
67143         Module backupfile.
67144         * m4/backupfile.m4: New file.
67145         * m4/d-ino.m4: Indentation.
67146
67147         Module fsusage.
67148         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
67149         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
67150         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
67151
67152         Module dirfd.
67153         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
67154         requirements.
67155
67156         Module euidaccess.
67157         * m4/euidaccess.m4: New file.
67158
67159         Module file-type.
67160         * m4/file-type.m4: New file.
67161
67162         Module fileblocks.
67163         * m4/fileblocks.m4: New file.
67164
67165         Module filemode.
67166         * m4/filemode.m4: New file.
67167
67168         Module isdir.
67169         * m4/isdir.m4: New file.
67170
67171         Module lchown.
67172         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
67173         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
67174
67175         Module makepath.
67176         * m4/makepath.m4: New file.
67177
67178         Module modechange.
67179         * m4/modechange.m4: New file.
67180
67181         Module mountlist.
67182         * m4/mountlist.m4: New file.
67183         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
67184         Indentation.
67185
67186         Module path-concat.
67187         * m4/path-concat.m4: New file.
67188
67189         Module pathmax.
67190         * m4/pathmax.m4: New file.
67191
67192         Module same.
67193         * m4/same.m4: New file.
67194
67195         Module save-cwd.
67196         * m4/save-cwd.m4: New file.
67197
67198         Module savedir.
67199         * m4/savedir.m4: New file.
67200
67201         Module xgetcwd.
67202         * m4/xgetcwd.m4: New file.
67203         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
67204
67205         Module xreadlink.
67206         * m4/xreadlink.m4: New file.
67207
67208         Module safe-read.
67209         * m4/safe-read.m4: New file.
67210
67211         Module safe-write.
67212         * m4/safe-write.m4: New file.
67213
67214         Module closeout.
67215         * m4/closeout.m4: New file.
67216
67217         Module stdio-safer.
67218         * m4/stdio-safer.m4: New file.
67219
67220         Module getpass.
67221         * m4/getpass.m4: New file.
67222
67223         Module getugroups.
67224         * m4/getugroups.m4: New file.
67225
67226         Module group-member.
67227         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
67228         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
67229
67230         Module idcache.
67231         * m4/idcache.m4: New file.
67232
67233         Module userspec.
67234         * m4/userspec.m4: New file.
67235
67236         Module gettime.
67237         * m4/clock_time.m4: New file.
67238         * m4/gettime.m4: New file.
67239
67240         Module settime.
67241         * m4/settime.m4: New file.
67242
67243         Module posixtm.
67244         * m4/posixtm.m4: New file.
67245
67246         Module gethostname.
67247         * m4/gethostname.m4: New file.
67248
67249         Module canon-host.
67250         * m4/canon-host.m4: New file.
67251
67252         Module gettext.
67253         * m4/codeset.m4: New file, from gettext-0.11.5.
67254         * m4/gettext.m4: New file, from gettext-0.11.5.
67255         * m4/glibc21.m4: New file, from gettext-0.11.5.
67256         * m4/iconv.m4: New file, from gettext-0.11.5.
67257         * m4/intdiv0.m4: New file, from gettext-0.11.5.
67258         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
67259         * m4/inttypes.m4: New file, from gettext-0.11.5.
67260         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
67261         * m4/isc-posix.m4: New file, from gettext-0.11.5.
67262         * m4/lcmessage.m4: New file, from gettext-0.11.5.
67263         * m4/lib-ld.m4: New file, from gettext-0.11.5.
67264         * m4/lib-link.m4: New file, from gettext-0.11.5.
67265         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
67266         * m4/progtest.m4: New file, from gettext-0.11.5.
67267         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
67268         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
67269         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
67270
67271         Module localcharset.
67272         * m4/localcharset.m4: New file.
67273
67274         Module hard-locale.
67275         * m4/hard-locale.m4: New file.
67276
67277         Module mbswidth.
67278         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
67279         onceonly macros.
67280         * m4/mbrtowc.m4: Add comment.
67281
67282         Module memcasecmp.
67283         * m4/memcasecmp.m4: New file.
67284
67285         Module memcoll.
67286         * m4/memcoll.m4: New file.
67287
67288         Module unicodeio.
67289         * m4/unicodeio.m4: New file.
67290
67291         Module rpmatch.
67292         * m4/rpmatch.m4: New file.
67293
67294         Module yesno.
67295         * m4/yesno.m4: New file.
67296
67297         Module exitfail.
67298         * m4/exitfail.m4: New file.
67299
67300         Module c-stack.
67301         * m4/c-stack.m4 (gl_C_STACK): New macro.
67302         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
67303
67304         Module error.
67305         * m4/error.m4 (gl_ERROR): New macro.
67306         (jm_PREREQ_ERROR): Use onceonly macros.
67307
67308         Module fatal.
67309         * m4/fatal.m4: New file.
67310
67311         Module getloadavg.
67312         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
67313         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
67314
67315         Module getpagesize.
67316         * m4/getpagesize.m4: New file.
67317
67318         Module getusershell.
67319         * m4/getusershell.m4: New file.
67320
67321         Module physmem.
67322         * m4/physmem.m4: New file.
67323
67324         Module posixver.
67325         * m4/posixver.m4: New file.
67326
67327         Module quotearg.
67328         * m4/quotearg.m4: New file.
67329
67330         Module quote.
67331         * m4/quote.m4: New file.
67332
67333         Module readutmp.
67334         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
67335
67336         Module sig2str.
67337         * m4/sig2str.m4: New file.
67338
67339         Other.
67340         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
67341         ulonglong.m4.
67342         * m4/intmax_t.m4: New file.
67343         * m4/d-type.m4: Indentation.
67344         * m4/jm-macros.m4: Update.
67345         * m4/prereq.m4 (jm_PREREQ): Update.
67346         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
67347         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
67348         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
67349         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
67350         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
67351         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
67352         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
67353         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
67354         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
67355         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
67356         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
67357         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
67358         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
67359         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
67360         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
67361         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
67362         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
67363         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
67364         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
67365
67366 2002-12-24  Bruno Haible  <bruno@clisp.org>
67367
67368         * MODULES.txt: Update according to m4/ changes.
67369
67370         Module gettext.
67371         * config.rpath: New file, from gettext-0.11.5.
67372
67373         * modules/*: New module descriptions.
67374         * gnulib-tool: New file.
67375         * MODULES.html.sh: New file.
67376
67377 2002-12-21  Karl Berry  <karl@gnu.org>
67378
67379         * doc/fdl.texi: update to version 1.2.
67380
67381 2002-12-19  Karl Berry  <karl@gnu.org>
67382
67383         * config/config.guess: update from prep.
67384
67385 2002-12-18  Bruno Haible  <bruno@clisp.org>
67386
67387         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
67388         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
67389
67390 2002-12-17  Bruno Haible  <bruno@clisp.org>
67391
67392         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
67393         stdlib.h, string.h.
67394
67395 2002-12-17  Bruno Haible  <bruno@clisp.org>
67396
67397         * lib/canon-host.c (strdup): Remove unused declaration.
67398
67399         * lib/fsusage.c: Include full_read.h.
67400         (get_fs_usage): Use full_read instead of safe_read.
67401
67402         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
67403
67404 2002-12-12  Karl Berry  <karl@gnu.org>
67405
67406         * config/config.guess: update from prep.
67407
67408 2002-12-11  Bruno Haible  <bruno@clisp.org>
67409
67410         * m4/setenv.m4: New file, from gettext-0.11.5.
67411
67412 2002-12-11  Bruno Haible  <bruno@clisp.org>
67413
67414         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
67415         not unsetenv().
67416         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
67417         modifications:
67418
67419         2002-12-11  Bruno Haible  <bruno@clisp.org>
67420
67421                 * setenv.c (alloca): Fall back to malloc.
67422                 (freea): New macro.
67423                 (setenv): Use freea() to free memory allocated with alloca().
67424
67425         2002-11-13  Bruno Haible  <bruno@clisp.org>
67426
67427                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
67428                 function declarations.
67429                 * unsetenv.c (unsetenv): Likewise.
67430
67431         2002-03-04  Bruno Haible  <bruno@clisp.org>
67432
67433                 Portability to AIX 4.3.3.
67434                 * unsetenv.c: New file, extracted from setenv.c.
67435                 * setenv.c: Move the unsetenv() function to unsetenv.c.
67436
67437         2001-12-20  Bruno Haible  <bruno@clisp.org>
67438
67439                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
67440                 use malloc instead. For SunOS 4.
67441
67442         2001-12-11  Bruno Haible  <bruno@clisp.org>
67443
67444                 * setenv.c: Declare alloca.
67445                 (compar_fn_t): New typedef.
67446                 (KNOWN_VALUE, STORE_VALUE): Use it.
67447
67448         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
67449         setenv.h.
67450
67451 2002-12-10  Paul Eggert  <eggert@twinsun.com>
67452
67453         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
67454         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
67455         Choose values that are less likely to collide with system fnmatch
67456         options.
67457         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
67458         defined (e.g., a pure POSIX system).
67459         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
67460         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
67461
67462 2002-12-06  Paul Eggert  <eggert@twinsun.com>
67463
67464         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
67465         a pain in practice to deal with generated m4 files.  This change
67466         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
67467
67468         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
67469         and jm-glibc-io.m4, as they are no longer a special case.
67470         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
67471         kludge and the auto-generation stuff.  Check only whether the
67472         functions are declared, not whether they exist, since older hosts
67473         that don't declare the functions can't use the optimization anyway.
67474
67475 2002-12-06  Jim Meyering  <jim@meyering.net>
67476
67477         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
67478
67479         Merge in changes from libc's misc/error.c, in preparation
67480         for the merge of gnulib's changes back into libc.
67481
67482         * lib/error.c (_): Define only if not already defined.
67483         Move definition to follow all #include directives.
67484         Include unlocked-io.h only if !_LIBC.
67485         [_LIBC]: Include <libio/libioP.h>.
67486         [USE_IN_LIBIO]: Include <libio/iolibio.h>
67487         (fflush): Tweak definition to use INTUSE.
67488         (putc): Define.
67489
67490 2002-12-05  Paul Eggert  <eggert@twinsun.com>
67491
67492         * lib/alloca.c [defined emacs]: Include "lisp.h".
67493         (xalloc_die) [defined emacs]: New macro.
67494         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
67495         [! defined emacs]: Include <xalloc.h>.
67496         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
67497         (pointer): Typedef to POINTER_TYPE *.
67498         (malloc): Remove decl; we now always use xmalloc.
67499         (alloca): Use old-style definition, since Emacs needs this.
67500         Check for arithmetic overflow when computing combined size.
67501
67502 2002-12-04  Paul Eggert  <eggert@twinsun.com>
67503
67504         Do not generate unlocked-io.h automatically, since it's easier to
67505         maintain it by hand.
67506
67507         * lib/unlocked-io.h: New file, from GNU diffutils,
67508         but with proper copyright notice and attribution.
67509         * lib/gen-uio: Remove.
67510         * lib/Makefile.am: Add copyright notice.
67511         (libfetish_a_SOURCES): Add unlocked-io.h.
67512         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
67513         (DISTCLEANFILES, io_functions): Remove macros.
67514         (EXTRA_DIST): Remove gen_uio.
67515         (unlocked-io.h): Remove rule.
67516
67517 2002-12-04  Jim Meyering  <jim@meyering.net>
67518
67519         Reflect the fact that stat.c and lstat.c are no longer generated.
67520         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
67521         (DISTCLEANFILES): Likewise.
67522         (EXTRA_DIST): Likewise.
67523         (all_local): Don't depend on stat.c or lstat.c.
67524         (stat.c, lstat.c): Remove rules.
67525         (EXTRA_DIST): Remove xstat.in.
67526
67527         * lib/xstat.in: Remove file.  Contents moved into stat.c.
67528         * lib/stat.c: New file.  Contents mostly from xstat.in.
67529         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
67530         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
67531
67532         * lib/safe-read.c: Rework so that it may serve to define safe_write,
67533         too.
67534         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
67535
67536 2002-12-03  Jim Meyering  <jim@meyering.net>
67537
67538         * lib/safe-read.c, safe-write.c: Change variable names and comments,
67539         but not semantics, to minimize the differences between these two files.
67540         (safe_read): Change comment to mention SAFE_READ_ERROR.
67541
67542         * lib/safe-read.c (IS_EINTR): Define.
67543         (safe_read): Use IS_EINTR in place of in-function cpp directives.
67544
67545 2002-12-02  Jim Meyering  <jim@meyering.net>
67546
67547         * lib/safe-read.c (EINTR): Define.
67548         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
67549         (INT_MAX): Provide fallback.
67550         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
67551
67552         * lib/safe-read.h (SAFE_READ_ERROR): Define.
67553
67554 2002-12-02  Bruno Haible  <bruno@clisp.org>
67555
67556         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
67557         Define, taken from safe-read.c.
67558         (INT_MAX): Provide fallback.
67559         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
67560         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
67561
67562         * lib/safe-read.c (EINTR): Remove definition.
67563         (safe_read): Don't use EINTR if it is absent.
67564
67565 2002-12-01  Jim Meyering  <jim@meyering.net>
67566
67567         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
67568         zero.
67569         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
67570
67571 2002-11-27  Paul Eggert  <eggert@twinsun.com>
67572
67573         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
67574         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
67575         with `if (! (value < limit)) abort ();', for readability.
67576
67577 2002-11-26  Karl Berry  <karl@gnu.org>
67578
67579         * lib/strdup.c: copy from libc again, with jim's ok.
67580         * lib/.cppi-disable: re-add strdup.c
67581
67582 2002-11-25  Karl Berry  <karl@gnu.org>
67583
67584         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
67585         instead of "strtol.c".
67586
67587 2002-11-25  Karl Berry  <karl@gnu.org>
67588
67589         * config/install-sh: update from automake for variable quoting, $0 in
67590         error msgs, etc.
67591
67592         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
67593         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
67594         entry.
67595
67596 2002-11-25  Jim Meyering  <jim@meyering.net>
67597
67598         * lib/mktime.c: Sync from libc, now that it has the latest fix.
67599
67600 2002-11-24  Karl Berry  <karl@gnu.org>
67601
67602         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
67603         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
67604
67605 2002-11-24  Jim Meyering  <jim@meyering.net>
67606
67607         Update from coreutils:
67608
67609         * lib/mktime.c: Merge in changes from libc.
67610
67611         Avoid a link-time failure on some Linux systems.
67612         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
67613         (otherwise).
67614         (__mon_yday): Declare with the STATIC attribute.
67615         (__mktime_internal): Likewise.
67616         Based on a report from Greg Schafer.
67617
67618 2002-11-23  Jim Meyering  <jim@meyering.net>
67619
67620         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
67621         Use `unsigned', not `int', as type of index.
67622
67623         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
67624
67625         * lib/fsusage.c: Remove unneeded parentheses around operands of
67626         `defined'.
67627
67628 2002-11-22  Paul Eggert  <eggert@twinsun.com>
67629
67630         * lib/quotearg.h: Allow multiple inclusion by surrounding with
67631         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
67632         so that we can be included first.
67633         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
67634         * lib/quotearg.c: Include quotearg.h immediately after config.h.
67635         No need to include stddef.h or sys/types.h any more.
67636         Surround local include files with "", not "<>".
67637         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
67638         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
67639         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
67640         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
67641         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
67642         (ISPRINT): Remove; no longer needed now that we assume C89.
67643
67644         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
67645         Preserve errno.
67646
67647         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
67648         quotearg_char): Use SIZE_MAX rather than
67649         (size_t) -1 when we are talking about "infinity".
67650
67651         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
67652
67653 2002-11-22  Paul Eggert  <eggert@twinsun.com>
67654
67655         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
67656         hint that one should use `if (! x) abort ();' rather than `assert
67657         (x);', and anyway it's one less thing to worry about configuring.
67658         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
67659         hash_rehash, hash_insert): Use abort rather than assert.
67660
67661 2002-11-22  Bruno Haible  <bruno@clisp.org>
67662
67663         * lib/safe-read.h: Assume C89. Add comments.
67664         (safe_read): Change return type to size_t.
67665         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
67666         byte counts > SSIZE_MAX correctly.
67667         * lib/safe-write.h: New file.
67668         * lib/safe-write.c: New file.
67669         * lib/full-read.h: New file.
67670         * lib/full-read.c: New file.
67671         * lib/full-write.h: Assume C89. Add comments.
67672         * lib/full-write.c: Include safe-write.h.
67673         (full_write): Rewritten to use safe_write.
67674         Suggested by Jim Meyering and Paul Eggert.
67675
67676 2002-11-21  Jim Meyering  <jim@meyering.net>
67677
67678         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
67679
67680         Merge in changes from the coreutils.
67681
67682         2002-09-25  Paul Eggert  <eggert@twinsun.com>
67683         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
67684         <stdint.h>.
67685         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
67686         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
67687         int.  Work more efficiently if X is the same width as uintmax_t.
67688         Do not compare X to -1, to avoid bogus compiler warning.
67689         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
67690         Don't assume that f_frsize and f_bsize are the same type.
67691
67692         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
67693         warning on FreeBSD.
67694
67695         * lib/makepath.c (make_path): Restore umask *before* creating the final
67696         component.
67697         (make_path): Minor reformatting.
67698
67699         * lib/xmalloc.c: Adjust to work with new autoconf macros,
67700         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
67701         HAVE_MALLOC/HAVE_REALLOC.
67702
67703         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
67704         dummy ones.  At least on GNU/Linux systems, `auto' means something
67705         else.
67706         From Michael Stone.
67707
67708 2002-11-21  Bruno Haible  <bruno@clisp.org>
67709
67710         Remove case insensitive option matching.
67711         * lib/argmatch.h (argcasematch): Remove declaration.
67712         (ARGCASEMATCH): Remove macro.
67713         (__xargmatch_internal): Remove case_sensitive argument.
67714         (XARGMATCH): Update.
67715         (XARGCASEMATCH): Remove macro.
67716         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
67717         case_sensitive argument.
67718         (argcasematch): Remove function.
67719         (__xargmatch_internal): Remove case_sensitive argument.
67720         (main): Use XARGMATCH instead of XARGCASEMATCH.
67721
67722         * lib/xmalloc.c: Change compile-time error message. Add comment about
67723         required autoconf version.
67724
67725 2002-11-20  Paul Eggert  <eggert@twinsun.com>
67726
67727         Merge argmatch cleanups from Bison.  Assume C89.
67728
67729         * lib/argmatch.c: Include config.h here, not in argmatch.h.
67730         Include stdlib.h, for EXIT_FAILURE.
67731         Always include <string.h>, since we assume C89.
67732         (EXIT_FAILURE): Remove pre-C89 bug workaround.
67733         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
67734         Include <stddef.h> instead, since it's all we need for size_t.
67735         (PARAMS): Remove.  All uses removed.
67736         (ARRAY_CARDINALITY): Do not bother to #undef.
67737         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
67738         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
67739         Remove unnecessary parentheses.
67740         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
67741         Insert necessary parentheses.
67742         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
67743         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
67744
67745 2002-11-19  Bruno Haible  <bruno@clisp.org>
67746
67747         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
67748         * lib/mbswidth.h: Include <stddef.h>, for size_t.
67749
67750         * lib/mbswidth.h (PARAMS): Remove macro.
67751         (mbswidth, mbsnwidth): Use ANSI C function declarations.
67752         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
67753
67754         * lib/gcd.h (PARAMS): Remove macro.
67755         (gcd): Use ANSI C function declarations.
67756         * lib/gcd.c (gcd): Likewise.
67757
67758 2002-11-15  Bruno Haible  <bruno@clisp.org>
67759
67760         * lib/strcspn.c: Include <stddef.h>.
67761         (strcspn): Use ANSI C function declaration. Change return type to
67762         size_t. Use NULL.
67763         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
67764         (strpbrk): Use NULL.
67765         * lib/strpbrk.h (PARAMS): Remove macro.
67766         (strpbrk): Use ANSI C function declaration.
67767         * lib/strstr.c: Don't include <sys/types.h>.
67768         * lib/strstr.h (PARAMS): Remove macro.
67769         (strstr): Use ANSI C function declarations.
67770
67771 2002-11-14  Karl Berry  <karl@gnu.org>
67772
67773         * config/mkinstalldirs: `do' on separate line, instead of
67774         `for var; do'.
67775
67776 2002-11-06  Bruno Haible  <bruno@clisp.org>
67777
67778         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
67779         * lib/gcd.c (gcd): Likewise.
67780
67781 2002-11-05  Bruno Haible  <bruno@clisp.org>
67782
67783         * lib/gcd.h: New file, from gettext-0.11.5.
67784         * lib/gcd.c: New file, from gettext-0.11.5.
67785
67786 2002-11-05  Bruno Haible  <bruno@clisp.org>
67787
67788         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
67789         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
67790         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
67791         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
67792
67793         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
67794         <libintl.h>.
67795         * lib/makepath.c: Include gettext.h instead of <locale.h> and
67796         <libintl.h>.
67797
67798         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
67799         * lib/human.c: Include gettext.h instead of <libintl.h>.
67800         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
67801         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
67802         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
67803         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
67804         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
67805         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
67806         (textdomain): Remove definition.
67807         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
67808
67809         * lib/long-options.c: Remove include of <libintl.h> and definition of
67810         _.
67811         * lib/same.c: Remove include of <libintl.h> and definition of _.
67812
67813 2002-11-04  Owen Taylor  <otaylor@redhat.com>
67814
67815         * lib/config.charset: A few additions for Solaris.
67816
67817 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
67818
67819         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
67820         * lib/localcharset.c (locale_charset): Declare as extern "C".
67821
67822 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
67823
67824         * lib/config.charset: msdos in uk_UA uses CP1125.
67825
67826 2002-11-04  Bruno Haible  <bruno@clisp.org>
67827
67828         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
67829         * lib/strcase.h: New file, from GNU gettext-0.11.5.
67830         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
67831         * lib/strstr.h: New file, from GNU gettext-0.11.5.
67832         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
67833
67834 2002-11-04  Bruno Haible  <bruno@clisp.org>
67835
67836         * lib/localcharset.c (locale_charset): Don't return an empty string.
67837
67838 2002-11-04  Bruno Haible  <bruno@clisp.org>
67839
67840         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
67841         aliases.
67842
67843 2002-11-04  Bruno Haible  <bruno@clisp.org>
67844
67845         * lib/config.charset: Update for newest glibc. Add canonical names
67846         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
67847
67848 2002-11-04  Bruno Haible  <bruno@clisp.org>
67849
67850         * lib/config.charset: Add support for NetBSD.
67851
67852 2002-11-04  Bruno Haible  <bruno@clisp.org>
67853
67854         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
67855
67856 2002-11-01  Bruno Haible  <bruno@clisp.org>
67857
67858         * configure.in: Add AC_CONFIG_AUX_DIR call.
67859         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
67860         test/Makefile.
67861         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
67862
67863 2002-09-28  Karl Berry  <karl@gnu.org>
67864
67865         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
67866         installed automake until the next release, since changes have been
67867         made.
67868
67869 2002-09-25  Karl Berry  <karl@gnu.org>
67870
67871         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
67872         * lib/getopt*: copy from libc/posix.
67873         * lib/gettext.h: copy from gettext.
67874         * lib/.cppi-disable: add strdup.c, gettext.h.
67875
67876 2002-09-25  Karl Berry  <karl@gnu.org>
67877
67878         * config/srclist.txt: enable gettext.h check.
67879         * config/config.{guess,sub}: update from prep.
67880         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
67881                 from automake 1.6.3.
67882         See srclist*.
67883
67884 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
67885
67886         * regex.c (PATFETCH): Remove the translating fetch.
67887         (PATFETCH_RAW): Rename to PATFETCH.
67888         (set_image_of_range): New fun.
67889         (SET_RANGE_TABLE_WORK_AREA): Use it.
67890         (regex_compile): Don't translate the pattern chars so eagerly.
67891         Only do it when inserting an `exactn' bytecode or when handling
67892         a char-range.
67893         (mutually_exclusive_p): Avoid empty statement.
67894
67895 2002-07-06  Jim Meyering  <meyering@lucent.com>
67896
67897         * m4/README: Don't mention Makefile.am.in.
67898         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
67899
67900 2002-07-01  Jim Meyering  <meyering@lucent.com>
67901
67902         * lib/c-stack.c: Include sys/time.h.
67903         From Volker Borchert.
67904
67905 2002-06-26  Paul Eggert  <eggert@twinsun.com>
67906
67907         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
67908
67909 2002-06-26  Paul Eggert  <eggert@twinsun.com>
67910
67911         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
67912         New macro.  Use it uniformly instead of
67913         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
67914         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
67915         reported by Vin Shelton.
67916
67917 2002-06-22  Paul Eggert  <eggert@twinsun.com>
67918
67919         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
67920         Do not assume SA_SIGINFO behavior.
67921         Bug reported by Jim Meyering on NetBSD 1.5.2.
67922
67923 2002-06-22  Jim Meyering  <meyering@lucent.com>
67924
67925         * m4/c-stack.m4: New file, from diffutils-2.8.2.
67926         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
67927
67928         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
67929         now that configure.ac uses AC_GNU_SOURCE.
67930         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
67931         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
67932
67933         Update to latest tools.  Suggestions from Paul Eggert.
67934         * m4/stdbool.m4: New file, from diffutils-2.8.2.
67935         * m4/gnu-source.m4: Update from diffutils-2.8.2.
67936         * m4/fnmatch.m4: Likewise.
67937         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
67938         to AC_HEADER_STDBOOL
67939
67940 2002-06-22  Jim Meyering  <meyering@lucent.com>
67941
67942         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
67943         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
67944
67945 2002-06-22  Jim Meyering  <meyering@lucent.com>
67946
67947         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
67948
67949         * lib/exitfail.c, exitfail.h: Likewise.
67950         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
67951
67952         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
67953         of fnmatch.h.
67954         (EXTRA_DIST): Add fnmatch_loop.c.
67955         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
67956
67957         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
67958         * lib/fnmatch.c: Update from diffutils-2.8.2.
67959         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
67960         * lib/fnmatch.h: Remove file.
67961
67962 2002-06-21  Jim Meyering  <meyering@lucent.com>
67963
67964         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
67965         * m4/mbrtowc.m4: Likewise.
67966
67967         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
67968         * m4/mbswidth.m4: Reflect name change:
67969         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
67970         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
67971
67972         * m4/lib-link.m4: Update from gettext-0.11.2.
67973         * m4/gettext.m4: Likewise.
67974
67975         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
67976         From Alfred M. Szmidt.
67977
67978 2002-06-18  Paul Eggert  <eggert@twinsun.com>
67979
67980         * lib/file-type.h: Report an error if neither S_ISREG nor
67981         S_IFREG is defined, instead of using a test specific to glibc
67982         2.2.  This should be safe, since POSIX requires S_ISREG and
67983         Unix Version 7 had S_IFREG.  We don't need to check for
67984         <sys/types.h> since we don't use any symbols that it defines.
67985
67986 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
67987
67988         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
67989         $@-t, so that each temporary file name is unique and valid in the first
67990         8 characters, for operation under DOS.
67991
67992 2002-06-15  Paul Eggert  <eggert@twinsun.com>
67993
67994         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
67995
67996 2002-06-15  Jim Meyering  <meyering@lucent.com>
67997
67998         Work even with DJGPP 2.03, which lacks support for symlinks.
67999         From Richard Dawe.
68000         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
68001         is defined.
68002         * lib/lchown.c (S_ISLNK): Likewise.
68003
68004 2002-06-15  Jim Meyering  <meyering@lucent.com>
68005
68006         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
68007         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
68008         have been included before this file.
68009
68010 2002-06-14  Jim Meyering  <meyering@lucent.com>
68011
68012         * lib/file-type.h: Use the version from diffutils-2.8.2.
68013         * lib/file-type.c: Likewise.
68014
68015 2002-06-07  Jim Meyering  <meyering@lucent.com>
68016
68017         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
68018         They're needed at least for NetBSD 1.5.2.
68019         ($statxfs_includes): Include those same headers.
68020         ($statxfs_includes): Include sys/vfs.h if available.
68021         ($statxfs_includes): Likewise for sys/statvfs.h.
68022         Check for the following members in both structs statfs and statvfs:
68023         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
68024
68025 2002-06-01  Jim Meyering  <meyering@lucent.com>
68026
68027         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
68028         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
68029
68030 2002-05-28  Jim Meyering  <meyering@lucent.com>
68031
68032         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
68033         Reported by Volker Borchert.
68034
68035 2002-05-27  Jim Meyering  <meyering@lucent.com>
68036
68037         Fix a problem seen only on nonconforming systems whereby ls.c's
68038         use of localtime, and then of gettimeofday would cause trouble:
68039         the localtime call used to initialize rpl_gettimeofday's save
68040         mechanism would clobber ls's current local time information so
68041         that in any long listing the first file would always be listed
68042         with date 1970-01-01.  Analysis by Volker Borchert.
68043
68044         * lib/gettimeofday.c (localtime): Undefine.
68045         (rpl_localtime): New function.
68046
68047 2002-05-27  Jim Meyering  <meyering@lucent.com>
68048
68049         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
68050         localtime.
68051
68052         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
68053         use the replacement function; it wouldn't resolve at link time.
68054         Reported by Volker Borchert.
68055
68056 2002-05-22  Jim Meyering  <meyering@lucent.com>
68057
68058         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
68059         file-type.h.
68060         * lib/file-type.h: New file.
68061         * lib/file-type.c (file_type): New file/function.  Extracted from
68062         diffutils.
68063
68064 2002-04-30  Jim Meyering  <meyering@lucent.com>
68065
68066         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
68067
68068 2002-04-29  Paul Eggert  <eggert@twinsun.com>
68069
68070         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
68071
68072 2002-04-29  Paul Eggert  <eggert@twinsun.com>
68073
68074         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
68075         Do not check for alloca.h (no longer used) or stdbool.h (was never
68076         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
68077
68078 2002-04-29  Paul Eggert  <eggert@twinsun.com>
68079
68080         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
68081
68082 2002-04-29  Jim Meyering  <meyering@lucent.com>
68083
68084         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
68085         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
68086         Use AC_FUNC_STRNLEN here instead.
68087
68088         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
68089         With autoconf-2.53a, it's part of AC_PROG_CC.
68090
68091 2002-04-28  Paul Eggert  <eggert@twinsun.com>
68092
68093         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
68094         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
68095
68096 2002-04-28  Paul Eggert  <eggert@twinsun.com>
68097
68098         * lib/sig2str.h, lib/sig2str.c: New files.
68099         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
68100
68101 2002-04-28  Paul Eggert  <eggert@twinsun.com>
68102
68103         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
68104         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
68105         of 127, since 64 is the largest conceivable number for ancient
68106         nonstandard hosts.
68107         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
68108
68109 2002-04-28  Jim Meyering  <meyering@lucent.com>
68110
68111         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
68112
68113 2002-04-24  Jim Meyering  <meyering@lucent.com>
68114
68115         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
68116         (jm_PREREQ): Use it.
68117
68118         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
68119         mach/mach.h fcntl.h.
68120         Check for this function: setlocale.
68121
68122 2002-04-24  Jim Meyering  <meyering@lucent.com>
68123
68124         * lib/gettext.h: New file, from Gettext.
68125         * lib/Makefile.am (INCLUDES): Remove -I../intl.
68126         (libfetish_a_SOURCES): Add gettext.h.
68127
68128 2002-04-16  Jim Meyering  <meyering@lucent.com>
68129
68130         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
68131         ut_pid, ut_id, ut_exit.
68132
68133 2002-04-16  Jim Meyering  <meyering@lucent.com>
68134
68135         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
68136         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
68137         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
68138
68139 2002-04-12  Jim Meyering  <meyering@lucent.com>
68140
68141         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
68142         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
68143         existence of the getmntinfo function.  Needed for Darwin 5.3.
68144
68145         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
68146         This is necessary at least on Darwin 5.3.
68147
68148         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
68149         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
68150         strnlen.o in the library, and that makes some versions of ranlib
68151         object.
68152
68153 2002-04-12  Jim Meyering  <meyering@lucent.com>
68154
68155         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
68156
68157 2002-04-09  Jim Meyering  <meyering@lucent.com>
68158
68159         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
68160         to be more precise.  Rather than saying we're checking whether the
68161         function `works', say what we're testing.
68162         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
68163         Reported by Bruno Haible.
68164
68165 2002-03-10  Jim Meyering  <meyering@lucent.com>
68166
68167         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
68168         Suggestion from Santiago Vila.
68169
68170 2002-03-08  Jim Meyering  <meyering@lucent.com>
68171
68172         * lib/rename.c: Mention that this wrapper is needed also on
68173         mips-dec-ultrix4.4 systems.
68174
68175 2002-03-02  Jim Meyering  <meyering@lucent.com>
68176
68177         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
68178         not HAVE_CLOCK_SETTIME.
68179
68180 2002-02-27  Paul Eggert  <eggert@twinsun.com>
68181
68182         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
68183         Check for clock_settime.
68184
68185 2002-02-27  Paul Eggert  <eggert@twinsun.com>
68186
68187         * lib/nanosleep.h: Rename to....
68188         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
68189
68190         * lib/gettime.c: New file.
68191         * lib/settime.c: New file.
68192         * lib/stime.c: Remove.
68193
68194         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
68195         timespec.h.  Remove nanosleep.h.
68196
68197 2002-02-25  Paul Eggert  <eggert@twinsun.com>
68198
68199         * m4/acl.m4: New file.
68200         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
68201         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
68202
68203 2002-02-25  Paul Eggert  <eggert@twinsun.com>
68204
68205         * lib/acl.c, lib/acl.h: New files.
68206         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
68207
68208 2002-02-24  Jim Meyering  <meyering@lucent.com>
68209
68210         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
68211         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
68212         cause trouble.  Reported by Nelson Beebe.
68213
68214 2002-02-23  Paul Eggert  <eggert@twinsun.com>
68215
68216         * lib/path-concat.c (xpath_concat): Reorder code to pacify
68217         compilers that don't know that xalloc_die never returns.
68218
68219 2002-02-20  Jim Meyering  <meyering@lucent.com>
68220
68221         * lib/getdate.c: Regenerate using bison-1.33.
68222
68223 2002-02-17  Jim Meyering  <meyering@lucent.com>
68224
68225         * config/config.guess (main): Don't use `head -1'; it's no longer
68226         portable. Use `sed 1q' instead.
68227
68228 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
68229
68230         * m4/codeset.m4: Upgrade to gettext-0.11.
68231         * m4/gettext.m4: Upgrade to gettext-0.11.
68232         * m4/glibc21.m4: Upgrade to gettext-0.11.
68233         * m4/iconv.m4: Upgrade to gettext-0.11.
68234         * m4/isc-posix.m4: Upgrade to gettext-0.11.
68235         * m4/lcmessage.m4: Upgrade to gettext-0.11.
68236         * m4/lib-ld.m4: New file, from gettext-0.11.
68237         * m4/lib-link.m4: New file, from gettext-0.11.
68238         * m4/lib-prefix.m4: New file, from gettext-0.11.
68239         * m4/progtest.m4: Upgrade to gettext-0.11.
68240
68241 2002-02-15  Paul Eggert  <eggert@twinsun.com>
68242
68243         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
68244         (jm_PREREQ): Use it.
68245
68246 2002-02-15  Paul Eggert  <eggert@twinsun.com>
68247
68248         * lib/posixver.c, lib/posixver.h: New files.
68249         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
68250
68251 2002-02-02  Paul Eggert  <eggert@twinsun.com>
68252             Bruno Haible  <bruno@clisp.org>
68253
68254         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
68255         (fwrite_success_callback): New declaration.
68256         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
68257         print_unicode_char. Call failure callback instead of error.
68258         (fwrite_success_callback): New function.
68259         (exit_failure_callback): New function.
68260         (fallback_failure_callback): New function.
68261         (print_unicode_char): Call unicode_to_mb.
68262
68263 2002-01-26  Jim Meyering  <meyering@lucent.com>
68264
68265         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
68266         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
68267
68268 2002-01-26  Jim Meyering  <meyering@lucent.com>
68269
68270         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
68271
68272 2002-01-22  Paul Eggert  <eggert@twinsun.com>
68273
68274         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
68275
68276 2002-01-22  Jim Meyering  <meyering@lucent.com>
68277
68278         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
68279         Otherwise, some versions of automake would omit the rule that makes
68280         Makefile from Makefile.in.
68281
68282 2002-01-21  Paul Eggert  <eggert@twinsun.com>
68283
68284         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
68285         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
68286         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
68287         (memcoll): Set errno to zero if there is no error.
68288
68289         * lib/quotearg.c (quotearg_buffer_restyled):
68290         Fix bug with quoting buffers containing NUL when backslashing escapes.
68291         This bug was exposed by the other changes in this patch.
68292         (quotearg_n_options): New arg ARGSIZE.
68293         All callers changed.
68294         (quoting_options_from_style): New function.
68295         (quotearg_n_style): Use it.
68296         (quotearg_n_style_mem): New function.
68297
68298         * lib/quotearg.h (quotearg_n_style_mem): New function.
68299
68300 2002-01-19  Jim Meyering  <meyering@lucent.com>
68301
68302         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
68303         Remove useless quotes: DF_PROG="df".
68304         * m4/strnlen.m4: New file.
68305
68306 2002-01-16  Paul Eggert  <eggert@twinsun.com>
68307
68308         * lib/backupfile.c (ISDIGIT): Comment fix.
68309         * lib/getdate.y (ISDIGIT): Likewise.
68310         * lib/posixtm.c (ISDIGIT, year): Likewise.
68311         * lib/strverscmp.c (ISDIGIT): Likewise.
68312         * lib/userspec.c (ISDIGIT): Likewise.
68313
68314 2002-01-16  Jim Meyering  <meyering@lucent.com>
68315
68316         * lib/getdate.y: Add three semicolons, each just before a closing
68317         brace. Bison (as of version 1.31) no longer papers over that mistake.
68318
68319 2002-01-05  Jim Meyering  <meyering@lucent.com>
68320
68321         * lib/version-etc.c (version_etc_copyright): Update copyright year.
68322
68323 2001-12-19  Paul Eggert  <eggert@twinsun.com>
68324
68325         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
68326         not silently exit merely because the output buffer happens to
68327         have nothing pending.
68328
68329 2001-12-18  Paul Eggert  <eggert@twinsun.com>
68330
68331         See the big note in ../ChangeLog.
68332         * lib/human.c (suffixes): Prefer K to k for 1024.
68333         (generate_suffix_backwards): New function.
68334         (human_readable_inexact): Use it.
68335         * lib/xstrtol.c (__xstrtol): If there is no number but there
68336         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
68337         Accept 'K' as well as 'k'.
68338
68339 2001-12-15  Jim Meyering  <meyering@lucent.com>
68340
68341         * lib/regex.h (__restrict_arr): Update from libc.
68342
68343         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
68344         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
68345         (STREQ): Define.
68346
68347 2001-12-14  Jim Meyering  <meyering@lucent.com>
68348
68349         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
68350         Suggestion from Bruno Haible.
68351
68352 2001-12-10  Jim Meyering  <meyering@lucent.com>
68353
68354         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
68355         xrealloc, Instead, include "xalloc.h".
68356         (initbuffer): Don't cast xmalloc return value to char*.
68357         (readline): Reword comment.
68358         Don't cast xrealloc return value to char*
68359         Return NULL, not 0.
68360
68361 2001-12-09  Jim Meyering  <meyering@lucent.com>
68362
68363         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
68364         about `signed and unsigned type in conditional expression'.
68365         * lib/posixtm.c (posix_time_parse): Likewise.
68366
68367         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
68368
68369         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
68370         to avoid a pedantic warning.
68371
68372         * lib/getstr.c: Don't include assert.h.
68373         (getstr): Remove warning-evoking assertions.
68374         Return -1 if offset parameter is out of bounds.
68375         Change the type of a local from int to size_t.
68376
68377         * lib/strftime.c (my_strftime_localtime_r): Include this function
68378         definition in the `#if ! HAVE_TM_GMTOFF' block.
68379
68380         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
68381         Include xalloc.h instead.
68382
68383 2001-12-02  Jim Meyering  <meyering@lucent.com>
68384
68385         * lib/tempname.c: Don't declare getenv, thus reverting the change of
68386         2001-11-18.  It's no longer necessary, now that stdlib.h is always
68387         included.
68388
68389         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
68390         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
68391
68392 2001-11-30  Akim Demaille  <akim@epita.fr>
68393
68394         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
68395         before being defined.
68396
68397 2001-11-27  Paul Eggert  <eggert@twinsun.com>
68398
68399         * lib/quotearg.h (quotearg_n, quotearg_n_style):
68400         First arg is int, not unsigned.
68401         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
68402         (SIZE_MAX, UINT_MAX): New macros.
68403         (quotearg_n_options): Abort if N is negative.
68404         Avoid overflow check on hosts where size_t is 64 bits and int
68405         is 32 bits, as overflow is impossible there.
68406         Fix off-by-one typo that caused unnecessary reallocation.
68407
68408 2001-11-27  Jim Meyering  <meyering@lucent.com>
68409
68410         * lib/tempname.c: Merge with version from libc.
68411         * lib/regex.c: Likewise.
68412
68413         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
68414         systems for which STDC_HEADERS is 0, it was not included, resulting in
68415         a warning about an integer-to-pointer conversion problem with getenv.
68416         Reported by Volker Borchert.
68417
68418 2001-11-26  Jim Meyering  <meyering@lucent.com>
68419
68420         * lib/gtod.h: Remove file.
68421         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
68422         * lib/gettimeofday.c: Don't include gtod.h.
68423         (GTOD_init): Remove function.
68424         (rpl_gettimeofday): Do its job here instead, rather than aborting.
68425         Suggestion from Volker Borchert.
68426
68427 2001-11-23  Jim Meyering  <meyering@lucent.com>
68428
68429         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
68430         it.
68431         * lib/hash.c (struct hash_table): Define it here instead.
68432
68433 2001-11-22  Jim Meyering  <meyering@lucent.com>
68434
68435         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
68436
68437 2001-11-20  Jim Meyering  <meyering@lucent.com>
68438
68439         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
68440         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
68441
68442 2001-11-19  Jim Meyering  <meyering@lucent.com>
68443
68444         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
68445         directory.  Use "conftestXXXXXX" as the template.
68446         Suggestion from Paul Eggert.
68447
68448         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
68449         immediately, so the test doesn't mistakenly hit the max-open-files
68450         limit.
68451
68452 2001-11-18  Paul Eggert  <eggert@twinsun.com>
68453
68454         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
68455         (TEMPORARIES): New macro.
68456         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
68457         removes an artificial limitation (e.g. HP-UX 10.20, where
68458         TMP_MAX is 17576).
68459
68460 2001-11-18  Jim Meyering  <meyering@lucent.com>
68461
68462         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
68463
68464 2001-11-18  Jim Meyering  <meyering@lucent.com>
68465
68466         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
68467         on SunOS 4.
68468
68469         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
68470         files will be created before anything else.
68471
68472 2001-11-17  Paul Eggert  <eggert@twinsun.com>
68473
68474         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
68475         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
68476
68477 2001-11-17  Jim Meyering  <meyering@lucent.com>
68478
68479         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
68480         Prompted by a report from Bob Proulx.
68481
68482         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
68483         Instead, require UTILS_FUNC_MKSTEMP.
68484
68485 2001-11-17  Jim Meyering  <meyering@lucent.com>
68486
68487         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
68488         Now, that's done as part of AC_FUNC_STRTOD.
68489
68490 2001-11-17  Jim Meyering  <meyering@lucent.com>
68491
68492         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
68493         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
68494         rather than group writable.  Patch by Juan F. Codagnone.
68495
68496         * lib/readtokens.c: Remove explicit declarations of xmalloc and
68497         xrealloc, Instead, include "xalloc.h".
68498
68499         * lib/mountlist.c: Include unlocked-io.h after all system headers.
68500         Remove explicit declarations of xmalloc, xrealloc,
68501         and xstrdup.  Instead, include "xalloc.h".
68502
68503         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
68504         unlocked-io.h.
68505         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
68506         Likewise.
68507         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
68508
68509         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
68510         Reported by Padraig Brady.
68511
68512         * lib/mkstemp.c: #undef mkstemp.
68513         Include config.h.
68514         (rpl_mkstemp): Rename from mkstemp.
68515         Protoize.
68516
68517 2001-11-16  Jim Meyering  <meyering@lucent.com>
68518
68519         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
68520         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
68521         determine the amount of total physical memory, use pstat_getstatic.
68522         HPUX-11 doesn't define _SC_PHYS_PAGES.
68523         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
68524         If sysconf couldn't be used to determine the amount of available
68525         physical memory, use both pstat_getstatic and pstat_getdynamic.
68526         Based on a patch from Bob Proulx.
68527
68528 2001-11-10  Jim Meyering  <meyering@lucent.com>
68529
68530         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
68531         (jm_PREREQ): Use it.
68532
68533 2001-11-09  Jim Meyering  <meyering@lucent.com>
68534
68535         * m4/jm-macros.m4: Require autoconf-2.52f.
68536         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
68537         Use these AC_-prefixed names, not the AM_-prefixed ones.
68538
68539         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
68540
68541 2001-11-05  Jim Meyering  <meyering@lucent.com>
68542
68543         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
68544
68545 2001-11-04  Jim Meyering  <meyering@lucent.com>
68546
68547         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
68548         $DEFS.
68549
68550 2001-11-03  Jim Meyering  <meyering@lucent.com>
68551
68552         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
68553         of AC_DEFUN.
68554
68555         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
68556         know the name of the variable in the macro definition.
68557
68558 2001-11-03  Jim Meyering  <meyering@lucent.com>
68559
68560         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
68561         in argmatch_to_argument call.
68562
68563         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
68564         argument.
68565
68566         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
68567         e.g., a fault due to an attempt to free a NULL pointer.
68568
68569 2001-11-01  Jim Meyering  <meyering@lucent.com>
68570
68571         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
68572         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
68573
68574 2001-11-01  Jim Meyering  <meyering@lucent.com>
68575
68576         * lib/dirfd.c, lib/dirfd.h: New files.
68577         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
68578
68579         * lib/hash.c (hash_print) [TESTING]: Clean up.
68580
68581 2001-10-22  Paul Eggert  <eggert@twinsun.com>
68582
68583         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
68584         to avoid a warning if -Wall.
68585
68586 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
68587
68588         * README: New file
68589         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
68590         (per RMS's instructions, this is now the canonical source)
68591         * lgpl/, gpl/: New directories.
68592
68593 2001-10-21  Paul Eggert  <eggert@twinsun.com>
68594
68595         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
68596
68597 2001-10-21  Jim Meyering  <meyering@lucent.com>
68598
68599         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
68600         this code would end up calling gettext even in packages built
68601         with --disable-nls.
68602         * lib/getopt.c (_): Likewise.
68603         * lib/regex.c (_): Likewise.
68604
68605 2001-10-20  Paul Eggert  <eggert@twinsun.com>
68606
68607         * m4/error.m4 (jm_PREREQ_ERROR):
68608         Do not invoke AC_CHECK_FUNCS with strerror_r, as
68609         AC_FUNC_STRERROR_R does that.
68610         Check for strerror declaration.
68611
68612         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
68613         are supposed to have them these days.
68614         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
68615         Merge changes from latest Autoconf CVS.
68616         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
68617         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
68618         POSIX decided to standardize on the int flavor of strerror_r.
68619
68620 2001-10-20  Paul Eggert  <eggert@twinsun.com>
68621
68622         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
68623         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
68624         Use strerror_r that is only a macro, even if it is not a function.
68625         (strerror): Check for HAVE_DECL_STRERROR before declaring.
68626         (private_strerror): Use prototypes, not old-style function definition.
68627         (print_errno_message): New function.
68628         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
68629         char*-flavored one.
68630         (error_tail, error, error_at_line): Use it.
68631
68632 2001-10-11  Jim Meyering  <meyering@lucent.com>
68633
68634         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
68635         and quote_n (1, ... to avoid clobbering a buffer.
68636
68637 2001-10-05  Jim Meyering  <meyering@lucent.com>
68638
68639         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
68640         hash-pjw.h.
68641         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
68642         * lib/hash-pjw.h: New file.
68643
68644 2001-09-30  Jim Meyering  <meyering@lucent.com>
68645
68646         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
68647         `struct fsstat' has the `f_fstypename' member.
68648         Use that to define FS_TYPE, which is now used to make
68649         the getfsstat link test tighter.
68650
68651 2001-09-30  Jim Meyering  <meyering@lucent.com>
68652
68653         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
68654         Include <sys/ucred.h>, for Apple Darwin.
68655         Include sys/mount.h and sys/fs_types.h only if available.
68656         (FS_TYPE): Define.
68657         (read_filesystem_list): Use FS_TYPE.
68658
68659 2001-09-29  Paul Eggert  <eggert@twinsun.com>
68660
68661         * lib/exclude.c (excluded_filename): 0 -> false, since it's
68662         a boolean context.
68663
68664 2001-09-29  Jim Meyering  <meyering@lucent.com>
68665
68666         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
68667         [one-argument getmntent function]): Include stdio.h before mntent.h.
68668         SunOS 4.1.x needs it for the declaration of `FILE'.
68669         Patch by Volker Borchert.
68670
68671         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
68672         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
68673         sys/fs_types.h, and make the link-test for getfsstat guard #include
68674         directives with appropriate #if HAVE_*_H tests so that we can
68675         detect getfsstat on Apple Darwin1.3.7 systems.
68676         Reported by Nelson Beebe.
68677         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
68678
68679 2001-09-28  Paul Eggert  <eggert@twinsun.com>
68680
68681         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
68682         #defines strtoimax.  Also treat the other strto* functions
68683         like strtoimax.
68684
68685         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
68686         Check for strtoul and strtoumax,
68687         as those declarations are made even in the signed case.
68688         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
68689         Likewise, for strtol and strtoimax.
68690
68691 2001-09-28  Paul Eggert  <eggert@twinsun.com>
68692
68693         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
68694         #defines strtoimax.  Also treat the other strto* functions
68695         like strtoimax.
68696
68697         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
68698         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
68699         (strtoimax, strtoumax): Do not declare if already defined as a macro.
68700
68701 2001-09-26  Jim Meyering  <meyering@lucent.com>
68702
68703         Most macros in unlocked-io.h had the wrong number of arguments.
68704         * lib/gen-uio: New script.
68705         (USE_UNLOCKED_IO): Define to 1 if not already defined.
68706         * lib/unlocked-io.hin: Remove file.
68707         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
68708         rather than trying to embed it here.
68709         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
68710         Reported by Padraig Brady.
68711
68712 2001-09-25  Volker Borchert  <bt@teknon.de>
68713
68714         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
68715         `result'.
68716
68717 2001-09-24  Jim Meyering  <meyering@lucent.com>
68718
68719         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
68720
68721 2001-09-23  Jim Meyering  <meyering@lucent.com>
68722
68723         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
68724         instead of the mere test for existence of mntent.h.  The latter
68725         would get a false-positive on AIX 3.4 systems.
68726         In the outer getmntent if-block, don't die if neither of the getmntent
68727         tests succeeds.  Instead, just fall through and continue with the
68728         remaining tests.
68729
68730 2001-09-23  Jim Meyering  <meyering@lucent.com>
68731
68732         * lib/mountlist.c: Remove useless parentheses in #if directives.
68733         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
68734         the deprecated MOUNTED symbol is no longer defined in mntent.h.
68735
68736 2001-09-22  Jim Meyering  <meyering@lucent.com>
68737
68738         * m4/gettext.m4: New file.  From gettext.
68739         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
68740         * m4/progtest.m4: Likewise
68741         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
68742         * m4/glibc21.m4: Likewise.
68743
68744         * m4/libintl.m4: Remove.  No longer used.
68745
68746 2001-09-22  Jim Meyering  <meyering@lucent.com>
68747
68748         * lib/localcharset.c: Update from latest gettext.
68749         * lib/config.charset: Likewise.
68750
68751 2001-09-20  Jim Meyering  <meyering@lucent.com>
68752
68753         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
68754         strtoimax.
68755         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
68756         strtoumax.
68757
68758 2001-09-20  Jim Meyering  <meyering@lucent.com>
68759
68760         * lib/xstrtol.c (strtoimax): Guard declaration with
68761         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
68762         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
68763         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
68764         (strtoumax): Likewise, for completeness (it wasn't necessary).
68765
68766 2001-09-17  Paul Eggert  <eggert@twinsun.com>
68767
68768         * lib/strtoimax.c (HAVE_LONG_LONG):
68769         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
68770         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
68771         to work around bug in IBM C compiler.
68772
68773 2001-09-17  Jim Meyering  <meyering@lucent.com>
68774
68775         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
68776         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
68777         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
68778         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
68779         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
68780         whenever the right hand side need not be expanded by the shell.
68781
68782 2001-09-16  Paul Eggert  <eggert@twinsun.com>
68783
68784         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
68785         library.  It's not correct, as some older glibcs are buggy.
68786         fnmatch wasn't fixed until glibc 2.2.
68787
68788         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
68789         special shell magic here.
68790
68791 2001-09-16  Jim Meyering  <meyering@lucent.com>
68792
68793         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
68794         * m4/jm-macros.m4: Require it.
68795
68796 2001-09-16  Jim Meyering  <meyering@lucent.com>
68797
68798         * lib/mkdir.c: New file.
68799
68800 2001-09-15  Jim Meyering  <meyering@lucent.com>
68801
68802         * m4/jm-macros.m4: Check for help2man.
68803
68804 2001-09-11  Jim Meyering  <meyering@lucent.com>
68805
68806         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
68807         The body, by Paul Eggert, was moved here from configure.in.
68808         * m4/jm-macros.m4: Require UTILS_HOST_OS.
68809
68810 2001-09-04  Paul Eggert  <eggert@twinsun.com>
68811
68812         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
68813         (jm_PREREQ): Use it.
68814
68815 2001-09-04  Paul Eggert  <eggert@twinsun.com>
68816
68817         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
68818         Use ssize_t, not int, to store result of readlink.
68819         Check for ssize_t overflow as well as size_t overflow,
68820         as POSIX says the result of readlink is implementation-defined
68821         when ssize_t overflows.
68822         Remove unnecessary cast to char*.
68823         Use free+malloc instead of realloc, as the storage doesn't need
68824         to be preserved and it's clearer and can be more efficient that way.
68825         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
68826         * lib/xreadlink.h (xreadlink): Update prototype.
68827
68828 2001-09-04  Paul Eggert  <eggert@twinsun.com>
68829
68830         * lib/xgetcwd.c: Revert some of the previous change; intead,
68831         fix the HAVE_GETCWD_NULL code to behave more like the
68832         !HAVE_GETCWD_NULL code used to.
68833
68834         Include "xalloc.h".
68835         (xgetcwd): Do not return NULL when memory is exhausted; instead,
68836         invoke xalloc_die.
68837
68838 2001-09-03  Paul Eggert  <eggert@twinsun.com>
68839
68840         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
68841         sys/param.h, as pathmax.h includes them.
68842
68843 2001-09-03  Paul Eggert  <eggert@twinsun.com>
68844
68845         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
68846         (jm_PREREQ_XGETCWD): New macro.
68847
68848         * m4/getcwd.m4: New file.
68849
68850 2001-09-03  Paul Eggert  <eggert@twinsun.com>
68851
68852         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
68853         like the HAVE_GETCWD_NULL code.
68854         Include pathmax.h if not HAVE_GETCWD.
68855         Do not include xalloc.h.
68856         (INITIAL_BUFFER_SIZE): New symbol.
68857         Do not use xmalloc / xrealloc, since the caller is responsible for
68858         handling errors.  Preserve errno around `free' during failure.
68859         Do not overrun buffer when using getwd.
68860
68861 2001-09-03  Paul Eggert  <eggert@twinsun.com>
68862
68863         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
68864         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
68865         getcwd (NULL, 0).
68866
68867 2001-09-03  Paul Eggert  <eggert@twinsun.com>
68868
68869         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
68870         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
68871         spotted by Jim Meyering.
68872
68873 2001-09-03  Jim Meyering  <meyering@lucent.com>
68874
68875         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
68876         failure.
68877
68878 2001-09-02  Jim Meyering  <meyering@lucent.com>
68879
68880         * lib/error.c: Update from GNU libc.
68881
68882 2001-09-01  Jim Meyering  <meyering@lucent.com>
68883
68884         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
68885         Used by df.
68886
68887 2001-09-01  Jim Meyering  <meyering@lucent.com>
68888
68889         * lib/xreadlink.c: New file.
68890         * lib/xreadlink.h: New file.
68891         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
68892         xreadlink.h.
68893
68894         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
68895         doesn't conflict with sparc Solaris 7's definition in
68896         /usr/include/sys/int_types.h.
68897
68898         * lib/exclude.c: Use `""', not `<>' to #include non-system header
68899         files.
68900         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
68901         and strncasecmp as r-values.  Unixware didn't have declarations.
68902
68903 2001-08-31  Paul Eggert  <eggert@twinsun.com>
68904
68905         * lib/xstrtol.h: Add copyright notice.
68906         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
68907         LONGINT_INVALID_SUFFIX_CHAR.
68908
68909 2001-08-31  Paul Eggert  <eggert@twinsun.com>
68910
68911         * lib/xstrtol.c (strtoimax): New decl.
68912
68913 2001-08-31  Paul Eggert  <eggert@twinsun.com>
68914
68915         * lib/xgetcwd.c: Don't include pathmax.h.
68916         Include stdlib.h and unistd.h if available.
68917         Include xalloc.h.
68918         (xmalloc, xstrdup, free): Remove decls.
68919         (xgetcwd): Don't assume sizes fit in unsigned.
68920         Check for overflow when computing sizes.
68921         Simplify reallocation code.
68922
68923 2001-08-31  Paul Eggert  <eggert@twinsun.com>
68924
68925         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
68926         a directory's st_size can have an arbitrary value, so the old
68927         usage could waste an arbitrary amount of memory.  All uses
68928         changed.
68929         * lib/savedir.h: Update prototype.
68930
68931 2001-08-31  Paul Eggert  <eggert@twinsun.com>
68932
68933         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
68934
68935         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
68936         old strtoimax.c.
68937
68938         Also, make the following further changes to make this file's
68939         configuration more similar to that of strtol.c:
68940         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
68941         (strtoumax, uintmax_t, strtoull, strtol): Remove.
68942         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
68943         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
68944         changed to signed values.
68945
68946         And make the following changes as well:
68947         Fix copyright notice, as 1999 was missing.
68948         (verify): New macro.
68949         (strtoimax): Check sizes at compile-time, not run-time.
68950         Prefer strtol to strtoll if both work.
68951         (main): Remove; it was not that useful and was a pain to maintain.
68952
68953         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
68954
68955 2001-08-31  Jim Meyering  <meyering@lucent.com>
68956
68957         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
68958         Use an initial, malloc'd, buffer of length 128 rather than
68959         a statically allocated one of length 1024.
68960
68961 2001-08-30  Paul Eggert  <eggert@twinsun.com>
68962
68963         Simplify code, partly by assuming autoconf 2.52 semantics.
68964
68965         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
68966
68967         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
68968         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
68969         All uses removed.
68970         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
68971         Move AC_REQUIRE to next-to-top level, to avoid confusion.
68972         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
68973         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
68974         jm_AC_HEADER_INTTYPES_H.
68975         * m4/jm-macros.m4 (jm_MACROS): Likewise.
68976
68977         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
68978
68979         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
68980         Quote first arg of AC_DEFUN.
68981         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
68982         since they are needed to parse the include file even if we need
68983         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
68984         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
68985         but with opposite signedness.
68986
68987 2001-08-30  Paul Eggert  <eggert@twinsun.com>
68988
68989         Merge 'exclude' changes from tar 1.13.22.
68990         This fixes one or two unlikely storage allocation overflow bugs,
68991         but doesn't change user-visible behavior otherwise.
68992
68993 2001-08-30  Paul Eggert  <eggert@twinsun.com>
68994
68995         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
68996         (jm_PREREQ_EXCLUDE): New macro.
68997
68998 2001-08-30  Paul Eggert  <eggert@twinsun.com>
68999
69000         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
69001         tm to be declared.
69002
69003 2001-08-30  Paul Eggert  <eggert@twinsun.com>
69004
69005         * lib/hash.c: Remove '2001' from copyright notice.
69006
69007 2001-08-30  Paul Eggert  <eggert@twinsun.com>
69008
69009         * lib/full-write.h: New file.
69010         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
69011         * lib/full-write.c: Correct credits, as cccp.c no longer
69012         exists and anyway it was so heavily changed from the old cccp
69013         code as to be unrecognizable.  Include full-write.h.
69014         (full_write) Return size_t, with short writes meaning failure.
69015         All callers changed.  This fixes a bug with large buffers
69016         on 64-bit hosts.
69017         * lib/utime.c: Include full-write.h.
69018
69019 2001-08-30  Paul Eggert  <eggert@twinsun.com>
69020
69021         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
69022         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
69023         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
69024         Include if available.
69025         (<xalloc.h>): Include
69026         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
69027         (verify): New macro.  Use it to verify that EXCLUDE macros do not
69028         collide with FNM macros.
69029         (struct patopts): New struct.
69030         (struct exclude): Use it, as exclude patterns now come with options.
69031         (new_exclude): Support above changes.
69032         (new_exclude, add_exclude_file):
69033         Initial size must now be a power of two to simplify overflow checking.
69034         (free_exclude, fnmatch_no_wildcards): New function.
69035         (excluded_filename): No longer requires options arg, as the options
69036         are determined by add_exclude.  Now returns bool, not int.
69037         (excluded_filename, add_exclude):
69038         Add support for the fancy new exclusion options.
69039         (add_exclude, add_exclude_file): Now takes int options arg.
69040         Check for arithmetic overflow when computing sizes.
69041         (add_exclude_file): xrealloc might modify errno, so don't
69042         realloc until after errno might be used.
69043
69044         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
69045         New macros.
69046         (free_exclude): New decl.
69047         (add_exclude, add_exclude_file): Now takes int options arg.
69048         (excluded_filename): No longer requires options arg, as the options
69049         are determined by add_exclude.  Now returns bool, not int.
69050
69051 2001-08-30  Paul Eggert  <eggert@twinsun.com>
69052
69053         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
69054
69055 2001-08-27  Jim Meyering  <meyering@lucent.com>
69056
69057         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
69058
69059         * lib/version-etc.c (N_): Remove definition.
69060         Revert most of last change.
69061         Instead, simply don't mark the `Copyright...' string for translation.
69062         Based on advice from Paul Eggert.
69063
69064         * lib/strtoxmax.c: Tweak comment.
69065
69066 2001-08-26  Jim Meyering  <meyering@lucent.com>
69067
69068         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
69069
69070         * m4/xstrtoimax.m4: New file.
69071         * m4/xstrtoumax.m4: Add comments explaining why we
69072         AC_REPLACE_FUNCS(strtol).
69073
69074 2001-08-26  Jim Meyering  <meyering@lucent.com>
69075
69076         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
69077         of copyright with `%s' so translators don't get an untranslated
69078         message in 2002.
69079         (COPYRIGHT_YEAR): Define.
69080         (version_etc): Use fprintf rather than fputs.
69081         Suggestion from Ulrich Drepper.
69082
69083         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
69084
69085         * lib/strtoll.c: New file, from GNU libc.
69086         * lib/xstrtoimax.c: New file.
69087
69088         * lib/xstrtol.h: Add xstrtoimax.
69089         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
69090         * lib/strtoimax.c: New file.  Likewise, but first define
69091         STRTOUXMAX_SIGNED.
69092
69093         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
69094         ...
69095         * lib/strtoxmax.c: ... then renamed to this.
69096
69097 2001-08-18  Paul Eggert  <eggert@twinsun.com>
69098
69099         * m4/inttypes.m4: Add AC_PREREQ(2.13).
69100         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
69101         (jm_AC_TYPE_INTMAX_T): New macro.
69102         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
69103
69104         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
69105
69106         * m4/longlong.m4: Renamed from ulonglong.m4.
69107         * m4/inttypes.m4: Renamed from inttypes_h.m4.
69108         * m4/uintmax_t.m4: Removed.
69109
69110 2001-08-13  Paul Eggert  <eggert@twinsun.com>
69111
69112         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
69113         Port to Solaris 8, where 'sed' requires a space after the 'r'
69114         command, and where sh dislikes "$/".  Clean up the spacing a bit.
69115         Redirect output to $tmp just once.
69116
69117 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
69118
69119         * lib/addext.c (<errno.h>): Include.
69120         (errno): Declare if not defined.
69121         (addext): Work correctly when pathconf returns -1 and leaves
69122         errno alone because there is no limit.  Also, work even if
69123         pathconf returns a value greater than SIZE_MAX.
69124
69125 2001-08-12  Jim Meyering  <meyering@lucent.com>
69126
69127         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
69128         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
69129         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
69130         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
69131         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
69132         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
69133         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
69134         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
69135         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
69136         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
69137         utime.m4, utimes.m4, xstrtoumax.m4:
69138         Quote the first argument in each use of AC_DEFUN.
69139
69140 2001-08-12  Jim Meyering  <meyering@lucent.com>
69141
69142         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
69143         Simply `return getcwd (NULL, 0);'.
69144         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
69145         Use 1300 as initial value for length, not PATH_MAX.
69146
69147         * lib/pathmax.h: Clean up cpp syntax.
69148
69149 2001-08-12  Jim Meyering  <meyering@lucent.com>
69150
69151         * lib/gettimeofday.c: New file.
69152         * lib/gtod.h: New file.
69153         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
69154
69155 2001-08-05  Jim Meyering  <meyering@lucent.com>
69156
69157         * m4/jm-macros.m4: Require autoconf-2.52.
69158
69159 2001-08-04  Jim Meyering  <meyering@lucent.com>
69160
69161         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
69162         stmt, to get in sync with glibc.
69163
69164 2001-08-03  Paul Eggert  <eggert@twinsun.com>
69165
69166         The following changes are from gettext 0.10.39 as maintained by
69167         Bruno Haible.
69168
69169         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
69170         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
69171         with inverted sense.  All uses changed.
69172
69173         * lib/mbswidth.c: Don't include <limits.h>.
69174         Include <stdlib.h> and <string.h> unconditionally.
69175         (iswcntrl, mbsinit, ISCNTRL): New macros.
69176         (mbsnwidth): Use K&R style function declarations.
69177         Don't bother checking for MB_LEN_MAX == 1, since the compiler
69178         can optimize it when MB_CUR_MAX == 1.
69179         The width of control characters is zero, not 1.
69180
69181 2001-08-03  Paul Eggert  <eggert@twinsun.com>
69182
69183         The following changes are from gettext 0.10.39 as maintained by
69184         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
69185
69186         * m4/codeset.m4: Upgrade to serial AM1.
69187         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
69188         all uses changed.  Quote first arg of AC_DEFUN.
69189         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
69190
69191         * m4/iconv.m4: Upgrade to serial AM2.
69192         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
69193         Add --with-libconv-prefix.
69194         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
69195         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
69196         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
69197         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
69198         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
69199
69200         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
69201         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
69202         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
69203         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
69204         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
69205         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
69206         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
69207         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
69208         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
69209
69210         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
69211         string.h any more.
69212
69213         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
69214         not the default value.
69215
69216         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
69217         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
69218         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
69219         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
69220         Also check for iswcntrl, used for wcwidth fallback.
69221         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
69222         to Autoconf 2.13.
69223
69224 2001-08-03  Jim Meyering  <meyering@lucent.com>
69225
69226         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
69227         as it was in the original.  Reported by Paul Eggert.
69228
69229 2001-07-16  Jim Meyering  <meyering@lucent.com>
69230
69231         * m4/gettimeofday.m4: New file.
69232         Prompted by a report from Bernhard Baehr.
69233
69234 2001-07-15  Jim Meyering  <meyering@lucent.com>
69235
69236         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
69237         stuff. Now it's in ../Makefile.cfg.
69238
69239 2001-07-15  Jim Meyering  <meyering@lucent.com>
69240
69241         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
69242         (BUILT_SOURCES): Add unlocked-io.h.
69243         (io_functions): Define.
69244         (unlocked-io.h): New rule.
69245         (DISTCLEANFILES): Add unlocked-io.h.
69246         (all-local): Depend on unlocked-io.h, to ensure it is created.
69247
69248         * lib/unlocked-io.hin: New file
69249
69250         * lib/regex.c: Update from glibc.
69251
69252 2001-07-05  Jim Meyering  <meyering@lucent.com>
69253
69254         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
69255         recommendation.
69256         (libfetish_a_SOURCES): Put all .h files here instead.
69257         Remove a thus-exposed (better checks in automake) duplicate and
69258         two unnecessary .h files.
69259
69260 2001-07-04  Jim Meyering  <meyering@lucent.com>
69261
69262         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
69263         that generates jm-glibc-io.m4 so that it doesn't trigger any make
69264         distcheck failure.
69265
69266 2001-07-02  Jim Meyering  <meyering@lucent.com>
69267
69268         The following changes were prompted by suggestions from Bruno Haible.
69269
69270         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
69271         is now generated.
69272         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
69273         definition of EXTRA_DIST.
69274         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
69275         ensure that the generated file is created/updated whenever the list
69276         of $(unlocked_functions) is changed.
69277         (jm-glibc-io.m4): New rule.
69278         (unlocked-io.h): New rule -- currently unused.
69279
69280 2001-06-24  Jim Meyering  <meyering@lucent.com>
69281
69282         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
69283         unmatched right bracket, rather than kludging it with an extra,
69284         falsely-matching quote in a comment.  Patch by Akim Demaille.
69285
69286 2001-06-11  Jim Meyering  <meyering@lucent.com>
69287
69288         * lib/regex.c: Update from GNU libc.
69289
69290 2001-05-27  Jim Meyering  <meyering@lucent.com>
69291
69292         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
69293         Check for ut_type in struct utmp.
69294
69295 2001-05-27  Jim Meyering  <meyering@lucent.com>
69296
69297         * lib/readutmp.h (UT_TYPE): Define.
69298
69299 2001-05-24  Jim Meyering  <meyering@lucent.com>
69300
69301         * lib/argmatch.c: Include "quote.h".
69302         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
69303         quote function.  Reported by Göran Uddeborg.
69304
69305 2001-05-22  Jim Meyering  <meyering@lucent.com>
69306
69307         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
69308         now that we use the package-supplied version unconditionally.
69309         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
69310
69311 2001-05-21  Jim Meyering  <meyering@lucent.com>
69312
69313         * m4/regex.m4: Change a couple backticks to single quotes to avoid
69314         shell syntax errors.
69315
69316 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
69317
69318         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
69319
69320 2001-05-20  Paul Eggert  <eggert@twinsun.com>
69321
69322         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
69323         Don't bother to check library strftime, since
69324         we'll be using our own my_strftime function anyway.
69325         Define my_strftime instead of strftime.
69326
69327 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
69328
69329         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
69330         which is not yet declared.
69331
69332 2001-05-15  Jim Meyering  <meyering@lucent.com>
69333
69334         * m4/regex.m4: Use proper quoting so brackets appear in the test
69335         program.
69336         Reported by, and with help from, Bruno Haible.
69337
69338 2001-05-13  Jim Meyering  <meyering@lucent.com>
69339
69340         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
69341         undefined.
69342
69343 2001-05-11  Paul Eggert  <eggert@twinsun.com>
69344
69345         dirname code cleanup.  base_name now behaves more compatibly
69346         with POSIX basename when given file names that have trailing
69347         slashes, and similarly for dir_name.  Add new primitives
69348         base_len and dir_len.  Put the directory-name-related decls
69349         into dirname.h.
69350
69351         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
69352         * lib/backupfile.c (base_name): Likewise.
69353         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
69354         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
69355         * lib/makepath.c (strip_trailing_slashes): Likewise.
69356         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
69357         ISSLASH): Likewise.
69358         * lib/rename.c (strip_trailing_slashes): Likewise.
69359         * lib/same.c (base_name): Likewise.
69360         * lib/stripslash.c (ISSLASH): Likewise.
69361
69362         * lib/addext.c: Include <dirname.h> after size_t is defined.
69363         * lib/backupfile.c: Likewise.
69364
69365         * lib/addext.c (addext): Use base_len to trim redundant
69366         trailing slashes instead of doing it ourselves.
69367         But do not trim the last slash if it is not redundant.
69368
69369         * lib/backupfile.c (find_backup_file_name,
69370         max_backup_version): Use base_len instead of rolling it ourselves.
69371         Handle the case of "" and (on DOS) "C:" correctly.
69372
69373         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
69374         needed. Include <string.h>, <dirname.h>.
69375         (base_name): Allow file names ending in slashes, other than names
69376         that are all slashes.  In this case, return the basename followed
69377         by the slashes.  This is more general, and can be used in places
69378         where the original base_name purposely had an assertion failure.
69379         (base_len): New function.
69380
69381         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
69382         Do not include <assert.h>; no longer needed.
69383         Include xalloc.h.
69384         (memrchr): Remove decl.
69385         (dir_name_r): Remove.
69386         (dir_len): Renamed from dirlen.  All callers changed.
69387         Rewrite in terms of base_name, for simplicity and consistency.
69388         (dir_name): Never return NULL.  All callers changed.
69389         Do not include <stdlib.h> in test program; no longer needed.
69390         return 0; is fine for test program.
69391
69392         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
69393         New macros.
69394         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
69395
69396         * lib/path-concat.c (path_concat): Use base_len to compute
69397         base length, not strlen; this means we cannot rely on memcpy
69398         to null-terminate.
69399
69400         * lib/same.c (STREQ): Remove.
69401         (same_name): Handle the case where the basename ends in trailing '/'.
69402
69403         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
69404         a slash was stripped.  Do not strip the last slash after a
69405         file system prefix.
69406
69407 2001-05-11  Paul Eggert  <eggert@twinsun.com>
69408
69409         * lib/Makefile.am (libfetish_a_SOURCES):
69410         Add strftime.c, since we now compile it on all hosts.
69411
69412         * lib/strftime.c (my_strftime):
69413         Define to nstrftime if emacs, but only if my_strftime is not defined.
69414         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
69415         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
69416         Add one more extra argument: a nanoseconds value.
69417         All uses changed.
69418         (ns): New macro.
69419         (my_strftime function): Add %N format.
69420         (emacs_strftimeu): Renamed from emacs_strftime,
69421         with extra ut argument.
69422
69423 2001-05-09  Paul Eggert  <eggert@twinsun.com>
69424
69425         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
69426
69427 2001-04-21  Jim Meyering  <meyering@lucent.com>
69428
69429         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
69430         doesn't interfere.
69431
69432 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
69433
69434         * m4/ftruncate.m4: Check for chsize.
69435         Link with ftruncate.o unconditionally if ftruncate is missing.
69436         This was required when cross-compiling to i586-mingw32msvc.
69437
69438 2001-04-08  Jim Meyering  <meyering@lucent.com>
69439
69440         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
69441         recomputed; that's necessary when the offset spans a DST transition.
69442         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
69443
69444 2001-04-02  Jim Meyering  <meyering@lucent.com>
69445
69446         * lib/regex.h, regex.c: Update from GNU libc.
69447
69448 2001-03-24  Jim Meyering  <meyering@lucent.com>
69449
69450         * m4/jm-macros.m4: Require autoconf-2.49d.
69451
69452 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
69453
69454         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
69455
69456 2001-03-19  Paul Eggert  <eggert@twinsun.com>
69457
69458         * lib/version-etc.c (version_etc_copyright): Update to 2001.
69459
69460 2001-03-17  Jim Meyering  <meyering@lucent.com>
69461
69462         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
69463         now that the version in autoconf is equivalent.
69464         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
69465
69466         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
69467         Suggestion from Akim Demaille.
69468
69469         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
69470         (jm_PREREQ_TEMPNAME): New function.
69471
69472 2001-03-16  Paul Eggert  <eggert@twinsun.com>
69473
69474         * lib/tempname.c (uint64_t): Define to uintmax_t if
69475         not defined, and if UINT64_MAX is not defined.
69476         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
69477         Reported by John David Anglin.
69478
69479 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
69480
69481         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
69482         resolve alias if codeset is empty.
69483         * lib/config.charset (BeOS): Use wildcard syntax.
69484
69485 2001-03-13  Jim Meyering  <meyering@lucent.com>
69486
69487         * lib/path-concat.c (path_concat)
69488         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
69489         concatenating e.g., `C:' and `foo'.
69490         From Bruno Haible.
69491
69492 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
69493
69494         * lib/localcharset.c (locale_charset): Don't use
69495         setlocale(LC_CTYPE,NULL). Don't return NULL.
69496         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
69497
69498 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
69499
69500         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
69501         support for DOS/DJGPP.
69502
69503 2001-03-01  Paul Eggert  <eggert@twinsun.com>
69504
69505         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
69506         lacks mkstemp.  Compile our own tempname.c if we compile our own
69507         mkstemp.c, as mkstemp relies on tempname.
69508
69509 2001-03-01  Jim Meyering  <meyering@lucent.com>
69510
69511         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
69512         AH_VERBATIM really does output its argument verbatim.
69513
69514 2001-02-28  Paul Eggert  <eggert@twinsun.com>
69515
69516         * lib/Makefile.am (libfetish_a_SOURCES):
69517         Add dup-safer.c, fopen-safer.c.
69518         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
69519
69520         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
69521         * lib/unistd-safer.h: New files.
69522
69523 2001-02-25  Paul Eggert  <eggert@twinsun.com>
69524
69525         The mkstemp replacement is taken from glibc 2.2.2, with some
69526         portability fixes for use outside glibc, as follows:
69527
69528         * lib/tempname.c (struct_stat64): New macro.
69529         (direxists, __gen_tempname): Use it.
69530         This avoids a portability problem with Solaris 8.
69531
69532         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
69533         (<stddef.h>, <stdint.h>, <string.h>):
69534         Include only if STDC_HEADERS || _LIBC.
69535         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
69536         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
69537         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
69538         (__set_errno): Define this macro if <errno.h> doesn't.
69539         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
69540         Define these macros if <stdio.h> doesn't.
69541         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
69542         Define these macros if <sys/stat.h>
69543         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
69544         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
69545         __xstat64): Define if not _LIBC.
69546         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
69547         (__gen_tempname): Invoke gettimeofday only if
69548         HAVE_GETTIMEOFDAY || _LIBC;
69549         otherwise, fall back on plain "time".
69550         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
69551
69552         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
69553
69554         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
69555
69556 2001-02-18  Paul Eggert  <eggert@twinsun.com>
69557
69558         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
69559
69560 2001-02-17  Paul Eggert  <eggert@twinsun.com>
69561
69562         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
69563         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
69564         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
69565         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
69566
69567 2001-02-17  Paul Eggert  <eggert@twinsun.com>
69568
69569         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
69570         Remove workaround macros for hosts that have mbrtowc but not
69571         mbstate_t, as we now insist on proper declarations for both
69572         before using mbrtowc.
69573
69574 2001-02-17  Jim Meyering  <meyering@lucent.com>
69575
69576         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
69577         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
69578         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
69579         UnixWare 7.1.1.
69580
69581         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
69582         rather than AC_CACHE_VAL.
69583
69584 2001-02-17  Jim Meyering  <meyering@lucent.com>
69585
69586         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
69587         around included file name.
69588
69589         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
69590
69591         * lib/strftime.c: Update from GNU libc (the only changes were to
69592         comments).
69593
69594 2001-02-17  Jim Meyering  <meyering@lucent.com>
69595
69596         * lib/regex.c: Update from libc.
69597
69598 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
69599
69600         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
69601         clash.
69602
69603 2001-02-16  Paul Eggert  <eggert@twinsun.com>
69604
69605         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
69606         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
69607         Reported by Mark Hounschell via Paul Eggert.
69608
69609 2001-02-07  Jim Meyering  <meyering@lucent.com>
69610
69611         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
69612
69613 2001-02-05  Jim Meyering  <meyering@lucent.com>
69614
69615         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
69616         it includes the patch required for `large file' support with at least
69617         HP-UX's 10.20 /bin/cc.
69618
69619 2001-02-03  Jim Meyering  <meyering@lucent.com>
69620
69621         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
69622         AS_IF, now that it works once again (mysteriously).
69623         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
69624
69625 2001-01-30  Jim Meyering  <meyering@lucent.com>
69626
69627         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
69628         * m4/chown.m4: Rename conftestchown to conftest.chown.
69629         * m4/rename.m4: s/conftestdir/conftest.d1/ and
69630         s/conftestdir2/conftest.d2/.
69631         * m4/utimes.m4: s/conftestdata/conftest.data/
69632         Inspired by Pavel Roskin's change in autoconf.
69633
69634 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
69635
69636         * lib/config.charset: Update for FreeBSD 4.2.
69637
69638 2001-01-27  Jim Meyering  <meyering@lucent.com>
69639
69640         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
69641         a use of AS_IF.
69642         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
69643
69644 2001-01-26  Jim Meyering  <meyering@lucent.com>
69645
69646         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
69647         quotearg.c includes it.
69648
69649 2001-01-26  Jim Meyering  <meyering@lucent.com>
69650
69651         * lib/quotearg.c: Include stddef.h.
69652         * lib/quote.c: Include stddef.h.
69653         Reported by Axel Kittenberger.
69654
69655         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
69656         line in double quotes so that it evokes a better diagnostic.
69657         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
69658         Reported by Axel Kittenberger.
69659
69660 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
69661
69662         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
69663         as if it was a `charset'.
69664
69665 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
69666
69667         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
69668         has const.
69669
69670 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
69671
69672         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
69673         to avoid a warning.  Add back 'const' to inptr.
69674
69675 2001-01-20  Jim Meyering  <meyering@lucent.com>
69676
69677         Be sure that headers are checked before used in code compiled
69678         for the type checks.
69679         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
69680         In place of that, invoke jm_CHECK_ALL_TYPES.
69681         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
69682         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
69683         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
69684         The check for ssize_t was mistakenly run before the test for unistd.h.
69685
69686         The configure-time check for stdbool.h was missing.
69687         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
69688         (jm_PREREQ_HASH): New function.
69689
69690 2001-01-17  Jim Meyering  <meyering@lucent.com>
69691
69692         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
69693         for autoconf-2.49c.
69694         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
69695
69696 2001-01-16  Jim Meyering  <meyering@lucent.com>
69697
69698         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
69699         From Bruno Haible.
69700
69701 2001-01-14  Jim Meyering  <meyering@lucent.com>
69702
69703         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
69704         foo and bar.  Create conftestdir/ in the script, not in the C code.
69705         Remove directories in the script, not in the C code.
69706         Remove conftestdir{,2} before trying to create the directory.
69707         Make the entire configure script fail if the mkdir fails.
69708
69709 2001-01-14  Jim Meyering  <meyering@lucent.com>
69710
69711         * lib/rename.c: New file.  From Volker Borchert.
69712         Include stdlib.h, string.h or strings.h, and xalloc.h.
69713         Use strip_trailing_slashes rather than open-coding it.
69714
69715 2001-01-03  Paul Eggert  <eggert@twinsun.com>
69716
69717         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
69718
69719 2001-01-03  Jim Meyering  <meyering@lucent.com>
69720
69721         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
69722         of local `inptr' to avoid warning with some system declarations of
69723         iconv.
69724
69725 2001-01-02  Volker Borchert  <bt@teknon.de>
69726
69727         * m4/rename.m4: New file.
69728         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
69729
69730 2001-01-01  Jim Meyering  <meyering@lucent.com>
69731
69732         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
69733         even on systems with utmpx.h.  It's necessary for the declaration of
69734         utmp's ut_user member.  Reported by Andreas Jaeger.
69735
69736         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
69737         available. They are required for the declarations of getgrgid and
69738         getpwuid resp.
69739         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
69740         Reported by Andreas Jaeger.
69741
69742 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
69743
69744         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
69745         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
69746         so `make install' also works in VPATH builds.
69747
69748 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
69749
69750         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
69751         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
69752         can be used in subdirectories.
69753
69754 2000-12-29  Paul Eggert  <eggert@twinsun.com>
69755
69756         * lib/modechange.c: Do not assume that mode_t uses the
69757         traditional octal encoding.  E.g. "chmod 1 FOO" should set
69758         the other-execute bit of FOO even if S_IXOTH != 1.
69759
69760         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
69761         WOTH, XOTH, ALLM): New macros.
69762         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
69763          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
69764         Use them.
69765         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
69766         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
69767         (mode_compile):
69768         No need to use uintmax_t; unsigned long is long enough.
69769         Don't bother to get suffix since we don't use it.
69770
69771 2000-12-26  Jim Meyering  <meyering@lucent.com>
69772
69773         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
69774         better with autoheader.
69775
69776 2000-12-24  Jim Meyering  <meyering@lucent.com>
69777
69778         * lib/hash.c (is_prime): Return explicit boolean values.
69779         (hash_get_first): Return NULL to appease Irix5.6's 89.
69780         Reported by Nelson Beebe.
69781
69782 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
69783
69784         * lib/localcharset.c (locale_charset): Add support for Win32.
69785
69786 2000-12-18  Paul Eggert  <eggert@twinsun.com>
69787
69788         * lib/physmem.h, lib/physmem.c: New files.
69789
69790         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
69791         (noinst_HEADERS): Add physmem.h.
69792
69793         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
69794         't' for compatibility with Solaris 8 sort.
69795
69796 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
69797
69798         * lib/config.charset: Add support for BeOS.
69799
69800 2000-12-17  Jim Meyering  <meyering@lucent.com>
69801
69802         * m4/dos.m4 (jm_AC_DOS): New file and macro.
69803         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
69804
69805 2000-12-16  Jim Meyering  <meyering@lucent.com>
69806
69807         This bug had a serious impact on chown: `chown N:M FILE' (for integer
69808         N and M) would have treated it like `chown N:N FILE'.
69809
69810         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
69811
69812 2000-12-16  Jim Meyering  <meyering@lucent.com>
69813
69814         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
69815         SHELLS_FILE to a file name that's useful on djgpp systems.
69816         Include stdlib.h.
69817         (ADDITIONAL_DEFAULT_SHELLS): Define.
69818         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
69819         Based mostly on a patch from Prashant TR.
69820
69821 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
69822
69823         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
69824         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
69825         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
69826
69827 2000-12-08  Andreas Schwab  <schwab@suse.de>
69828
69829         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
69830         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
69831
69832 2000-12-07  Jim Meyering  <meyering@lucent.com>
69833
69834         * lib/stripslash.c (ISSLASH): Define.
69835         (strip_trailing_slashes): Use ISSLASH rather than comparing against
69836         `/'.
69837         From Prashant TR.
69838
69839         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
69840         (dir_name_r): Declare this function as static.
69841         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
69842         manifest itself on a name containing a mix of slashes and
69843         backslashes.
69844         Make this function work with names starting with a DOS-style
69845         drive letter and colon prefix.
69846         (dir_name): Append `.' if necessary.
69847         Based mostly on patches from Prashant TR and Eli Zaretskii.
69848
69849         * lib/dirname.h (dir_name_r): Remove prototype.
69850
69851 2000-12-06  Paul Eggert  <eggert@twinsun.com>
69852
69853         * m4/off_t-format.m4: Remove this file.
69854         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
69855
69856 2000-12-06  Jim Meyering  <meyering@lucent.com>
69857
69858         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
69859         replacement strtoull, we may well need the replacement strtoul, too.
69860         Check for declarations of strtoul and strtoull.
69861         Check for strtol.  Mainly as a cue to cause automake to include
69862         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
69863         Check for limits.h -- strtol.c needs it.
69864
69865 2000-12-05  Jim Meyering  <meyering@lucent.com>
69866
69867         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
69868
69869 2000-12-04  Jim Meyering  <meyering@lucent.com>
69870
69871         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
69872         Also include memory.h, stdlib.h, unistd.h if appropriate.
69873         Reported by Andreas Jaeger (conflicting declaration of malloc).
69874
69875 2000-12-02  Jim Meyering  <meyering@lucent.com>
69876
69877         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
69878         * m4/jm-macros.m4 (jm_MACROS): require it.
69879
69880 2000-12-02  Jim Meyering  <meyering@lucent.com>
69881
69882         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
69883
69884 2000-12-01  Paul Eggert  <eggert@twinsun.com>
69885
69886         * lib/memrchr.c: Include <config.h> before any system include file.
69887
69888 2000-11-30  Jim Meyering  <meyering@lucent.com>
69889
69890         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
69891
69892 2000-11-30  Jim Meyering  <meyering@lucent.com>
69893
69894         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
69895
69896 2000-11-29  Paul Eggert  <eggert@twinsun.com>
69897
69898         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
69899
69900 2000-11-26  Jim Meyering  <meyering@lucent.com>
69901
69902         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
69903
69904 2000-11-22  Paul Eggert  <eggert@twinsun.com>
69905
69906         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
69907         size of (size_t) -1; it's not portable.
69908
69909 2000-11-17  Jim Meyering  <meyering@lucent.com>
69910
69911         * lib/strstr.c: Update from GNU libc.
69912
69913 2000-11-17  Akim Demaille  <akim@epita.fr>
69914
69915         * lib/obstack.h: Formatting changes.
69916         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
69917         prevent type checking.
69918         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
69919         cast the value to (void *): assigning a `foo *' to a `void *'
69920         variable is valid.
69921         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
69922
69923 2000-11-16  Jim Meyering  <meyering@lucent.com>
69924
69925         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
69926
69927 2000-11-11  Jim Meyering  <meyering@lucent.com>
69928
69929         * lib/error.c: Add a couple #includes, merging from GNU libc version.
69930
69931 2000-11-10  Jim Meyering  <meyering@lucent.com>
69932
69933         * lib/obstack.h: Update from GNU libc.
69934         * lib/obstack.c: Likewise.
69935
69936 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
69937
69938         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
69939
69940 2000-11-06  Paul Eggert  <eggert@twinsun.com>
69941
69942         * lib/getusershell.c (setusershell): Use rewind rather than
69943         fseek/fseeko, to avoid configuration hassles with fseeko.
69944         Don't bother opening SHELLS_FILE if shellstream is NULL;
69945         it's not necessary.
69946
69947 2000-11-05  Jim Meyering  <meyering@lucent.com>
69948
69949         * lib/makepath.h (make_dir): Declare.
69950         * lib/makepath.c (make_dir): Remove `static' attribute.
69951         Tweak a comment.
69952
69953 2000-11-04  Jim Meyering  <meyering@lucent.com>
69954
69955         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
69956
69957 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
69958
69959         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
69960         last one in a bucket, advance to the next bucket.
69961
69962 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
69963
69964         * lib/fnmatch.c: Do not comment out all the code if we are using
69965         the GNU C library, because in some cases we are replacing buggy
69966         code in the GNU C library itself.
69967
69968 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
69969
69970         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
69971         (regex_compile): Catch bogus \(\1\).
69972
69973 2000-10-30  Paul Eggert  <eggert@twinsun.com>
69974
69975         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
69976         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
69977         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
69978
69979 2000-10-30  Paul Eggert  <eggert@twinsun.com>
69980
69981         * lib/error.h, getline.h, modechange.h:
69982         Remove "2000" from Copyright line, as the file hasn't been
69983         changed this year other than in the copyright notice.
69984
69985         * lib/xalloc.h: Add "2000" to Copyright line, as this file
69986         was changed this year.
69987
69988 2000-10-29  Jim Meyering  <meyering@lucent.com>
69989
69990         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
69991         renaming.
69992         * m4/ls-mntd-fs.m4: Likewise
69993
69994 2000-10-29  Jim Meyering  <meyering@lucent.com>
69995
69996         * lib/xstat.in: Fix grammar in comment.
69997
69998 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
69999
70000         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
70001         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
70002         doesn't define __restrict_arr.
70003
70004 2000-10-28  Jim Meyering  <meyering@lucent.com>
70005
70006         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
70007         (jm_PREREQ_MEMCHR): New function.
70008
70009 2000-10-28  Jim Meyering  <meyering@lucent.com>
70010
70011         * lib/memchr.c: Update from libc.
70012         Adjust for portability:
70013         [HAVE_STDLIB_H]: Include stdlib.h.
70014         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
70015         Undef __memchr, too.
70016         [!weak_alias]: Define __memchr to memchr.
70017
70018         * lib/regex.c: Update from libc.
70019         * lib/regex.h: Likewise.
70020         * lib/getopt1.c: Likewise.
70021         * lib/memcmp.c: Likewise.
70022
70023         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
70024         Avoid using fseek, when possible -- it's broken by design.
70025         Patch by Ulrich Drepper.
70026
70027 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
70028
70029         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
70030         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
70031         Giving in to popular pressure to shut up the compiler with casts.
70032
70033 2000-10-26  Jim Meyering  <meyering@lucent.com>
70034
70035         * lib/strftime.c: Update from libc.
70036
70037 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
70038
70039         * regex.c: More `unsigned char' -> `re_char' changes.
70040         Also change several `int' into `re_wchar_t'.
70041         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
70042         (PUSH_FAILURE_POINTER): Don't cast any more.
70043         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
70044         We want GCC to complain, since this piece of code makes
70045         re_match non-reentrant, which *should* be fixed.
70046         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
70047         (EXTEND_BUFFER): Use RETALLOC.
70048         (SET_LIST_BIT): Don't cast.
70049         (re_wchar_t): New type.
70050         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
70051         that those two functions will always properly return.
70052         (IMMEDIATE_QUIT_CHECK): Cast to void.
70053         (analyse_first): Use recursion rather than an explicit stack.
70054         (re_compile_fastmap): Can't fail anymore.
70055         (re_search_2): Don't check re_compile_fastmap for failure.
70056         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
70057         Now also sets the new value (passed in a new argument).
70058         (re_match_2_internal): Use it.
70059         Also, use a new var `reg' of type size_t when looping through regs
70060         rather than reuse the inappropriate `mcnt'.
70061
70062 2000-10-25  Jim Meyering  <meyering@lucent.com>
70063
70064         * lib/obstack.c: Update from libc.
70065
70066 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
70067
70068         * regex.c (regex_compile): Change the way of handling a range from
70069         a char less than 256 to a char not less than 256.
70070
70071 2000-10-24  Andrew Innes  <andrewi@gnu.org>
70072
70073         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
70074         NT-Emacs only.
70075         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
70076         so that re_search functions only quit when callers expect them to.
70077
70078 2000-10-23  Jim Meyering  <meyering@lucent.com>
70079
70080         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
70081         wrong.  That set_locale call must not have any side effects.
70082         From Paul Eggert.
70083
70084 2000-10-22  Jim Meyering  <meyering@lucent.com>
70085
70086         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
70087         [CYCLIC]: Remove now-unused definition.
70088
70089         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
70090         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
70091         Suggestion from Ulrich Drepper.
70092
70093 2000-10-21  Jim Meyering  <meyering@lucent.com>
70094
70095         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
70096         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
70097         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
70098
70099 2000-10-21  Jim Meyering  <meyering@lucent.com>
70100
70101         * lib/dirname.c (memrchr): Declare if necessary.
70102         (dir_name): Remove the restriction that there be no
70103         trailing slashes.  Now, this code skips past them, effectively
70104         ignoring them.
70105         [TEST_DIRNAME] (main): New unit tests.
70106
70107         * lib/memrchr.c: New file from GNU libc.
70108         Undef __memrchr, too.
70109         [!weak_alias]: Define __memrchr to memrchr.
70110         Guard weak_alias use with `#ifdef weak_alias'.
70111
70112 2000-10-21  Jim Meyering  <meyering@lucent.com>
70113
70114         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
70115         (dir_name): Use dir_name_r.
70116         * lib/dirname.h (dir_name_r): Declare it.
70117
70118 2000-10-17  Jim Meyering  <meyering@lucent.com>
70119
70120         * lib/quote.h (PARAMS): Define and use.
70121         Reported by Akim Demaille.
70122
70123         * lib/getopt.c: Update from libc.
70124
70125 2000-10-16  Jim Meyering  <meyering@lucent.com>
70126
70127         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
70128         setlocale.
70129         From Jan Fedak.
70130
70131 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
70132
70133         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
70134
70135 2000-09-25  Jim Meyering  <meyering@lucent.com>
70136
70137         * lib/md5.h (rol): Define (from GnuPG).
70138
70139         * lib/sha.c: Give credit (GnuPG) where due.
70140         (M): Use rol rather than open-coding it.
70141         Add a FIXME comment.
70142
70143 2000-09-21  Jim Meyering  <meyering@lucent.com>
70144
70145         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
70146         Reported by Michael Stone.
70147
70148 2000-09-20  Jim Meyering  <meyering@lucent.com>
70149
70150         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
70151         (noinst_HEADERS): Add sha.h.
70152         Based on code from Scott G. Miller and from GnuPG.
70153
70154 2000-09-18  Jim Meyering  <meyering@lucent.com>
70155
70156         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
70157         LIBS. Otherwise, everyone ends up linking with -lelf for some
70158         configurations.
70159         Reported by Mike Stone.
70160
70161 2000-09-15  Jim Meyering  <meyering@lucent.com>
70162
70163         * lib/regex.c: Update from libc.
70164
70165 2000-09-10  Jim Meyering  <meyering@lucent.com>
70166
70167         * lib/getopt.c (_getopt_internal): Update from glibc.
70168
70169 2000-09-09  Jim Meyering  <meyering@lucent.com>
70170
70171         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
70172         think it should be used as a general replacement for isascii.
70173         * lib/fnmatch.c: Likewise.
70174         * lib/mbswidth.c: Likewise
70175         * lib/regex.c: Likewise.
70176
70177         Don't use atoi.
70178         * lib/userspec.c: Include sys/param.h and limits.h.
70179         Include xstrtol.h.
70180         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
70181         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
70182         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
70183         UID, GID.  Check range.
70184
70185 2000-09-06  Jim Meyering  <meyering@lucent.com>
70186
70187         * lib/getopt.c (_getopt_internal): Update from glibc.
70188
70189 2000-08-30  Jim Meyering  <meyering@lucent.com>
70190
70191         * lib/strftime.c: Merge in changes from GNU libc.
70192
70193 2000-08-26  Jim Meyering  <meyering@lucent.com>
70194
70195         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
70196         * m4/fpending.m4: New file.
70197
70198 2000-08-26  Jim Meyering  <meyering@lucent.com>
70199
70200         * lib/closeout.c: Include "__fpending.h".
70201         (close_stdout_status): Return right away if there's nothing to flush.
70202
70203         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
70204         * lib/__fpending.c: New file.
70205         * lib/__fpending.h: New file.
70206
70207 2000-08-20  Jim Meyering  <meyering@lucent.com>
70208
70209         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
70210         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
70211         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
70212
70213 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
70214
70215         Improve fileutils installation on systems where running
70216         programs (like install) can't be unlinked.
70217         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
70218         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
70219
70220 2000-08-07  Paul Eggert  <eggert@twinsun.com>
70221
70222         Standardize on "memory exhausted" instead of "Memory exhausted"
70223         or "virtual memory exhausted".
70224         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
70225         "virtual memory exhausted".
70226         * lib/same.c (same_name): Invoke xalloc_die instead of printing
70227         our own message.
70228         * lib/userspec.c (parse_user_spec): Likewise.
70229         * lib/bumpalloc.h: comment fix
70230         * lib/same.c, userspec.c: Include xalloc.h.
70231
70232         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
70233         not char *const and pointing to a constant array.
70234         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
70235         (xrealloc): Comment fix.
70236
70237         * lib/userspec.c (parse_user_spec):
70238         Don't translate a message until just before returning,
70239         to avoid unnecessary translation.
70240
70241 2000-08-07  Jim Meyering  <meyering@lucent.com>
70242
70243         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
70244         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
70245         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
70246         getgroups.c, gethostname.c, getopt.h, group-member.c,
70247         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
70248         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
70249         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
70250         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
70251         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
70252         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
70253         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
70254         yesno.c: Back out Copyright date changes for each file with no change
70255         this year.  This eases coordination with other programs using the same
70256         source code modules.  From Paul Eggert.
70257
70258 2000-08-06  Paul Eggert  <eggert@twinsun.com>
70259
70260         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
70261         not char, for compatibility with glibc 2.1.3 strftime.c.
70262
70263 2000-08-03  Greg McGary  <greg@mcgary.org>
70264
70265         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
70266         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
70267         (EXTEND_BUFFER): Use them.
70268
70269 2000-08-01  Jim Meyering  <meyering@lucent.com>
70270
70271         * lib/dirname.c (ISSLASH): Define.
70272         (BACKSLASH_IS_PATH_SEPARATOR): Define.
70273         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
70274         both `\' and `/' may be use as path separators.
70275         Based on a patch from Prashant TR.
70276
70277 2000-07-31  Paul Eggert  <eggert@twinsun.com>
70278
70279         * lib/quotearg.c (quotearg_n_options): Don't make the initial
70280         slot vector a constant, since it might get modified.
70281
70282 2000-07-31  Jim Meyering  <meyering@lucent.com>
70283
70284         * lib/xmalloc.c: Use `virtual memory exhausted', not
70285         `Memory exhausted'.
70286         * lib/obstack.c (print_and_abort): Likewise.
70287
70288 2000-07-30  Paul Eggert  <eggert@twinsun.com>
70289
70290         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
70291         buffer, so that the caller can always quote one small
70292         component of a "memory exhausted" message in slot 0.
70293         From a suggestion by Jim Meyering.
70294
70295 2000-07-30  Jim Meyering  <meyering@lucent.com>
70296
70297         * lib/makepath.c (make_path): Quote the other instance, too.
70298
70299         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
70300         (STATIC_BUF_SIZE): Define.
70301         (quotearg_n_options): Use only statically allocated storage when
70302         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
70303         than STATIC_BUF_SIZE.
70304
70305 2000-07-29  Jim Meyering  <meyering@lucent.com>
70306
70307         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
70308         * lib/dirname.c (dir_name): Likewise.
70309
70310         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
70311         `/'.
70312
70313         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
70314         (dir_name): Assert that there are no trailing slashes.
70315
70316 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
70317
70318         * lib/mbswidth.h (mbswidth): Add a flags argument.
70319         (mbswidth): New declaration.
70320         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
70321         * lib/mbswidth.c (mbswidth): Add a flags argument.
70322         (mbsnwidth): New function.
70323
70324 2000-07-24  Jim Meyering  <meyering@lucent.com>
70325
70326         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
70327
70328 2000-07-23  Paul Eggert  <eggert@twinsun.com>
70329
70330         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
70331
70332 2000-07-23  Paul Eggert  <eggert@twinsun.com>
70333
70334         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
70335         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
70336         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
70337         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
70338         invoke multibyte primitives.
70339
70340 2000-07-23  Paul Eggert  <eggert@twinsun.com>
70341
70342         * lib/quotearg.c:
70343         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
70344         so that mbstate_t is always defined.
70345
70346         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
70347         be 1 in at least one GCC installation, and this configuration
70348         error is likely to be common.  Ignoring MB_LEN_MAX hurts
70349         performance on hosts that have mbrtowc but have only unibyte
70350         locales, but I assume these hosts are rare.
70351
70352 2000-07-23  Paul Eggert  <eggert@twinsun.com>
70353
70354         * lib/mbswidth.c (_XOPEN_SOURCE):
70355         Don't define; this causes problems on Solaris 7.
70356         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
70357
70358 2000-07-23  Jim Meyering  <meyering@lucent.com>
70359
70360         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
70361         too: getgrgid, getpwuid, getuid.
70362
70363 2000-07-23  Jim Meyering  <meyering@lucent.com>
70364
70365         * lib/basename.c (base_name): Add an assertion.
70366
70367 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
70368
70369         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
70370         shadow its mbsinit function.
70371
70372 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
70373
70374         * lib/mbswidth.h: New file.
70375         * lib/mbswidth.c: New file.
70376         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
70377         (noinst_HEADERS): Add mbswidth.h.
70378
70379 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
70380
70381         * lib/config.charset: Add support for FreeBSD. Improve support for
70382         HP-UX and IRIX 6.
70383
70384 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
70385
70386         * m4/mbswidth.m4: New file.
70387         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
70388
70389 2000-07-15  Jim Meyering  <meyering@lucent.com>
70390
70391         * lib/makepath.c: Include quote.h.
70392         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
70393         corresponding argument in a `quote (...)' call.
70394         Give better diagnostics.
70395
70396         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
70397         (noinst_HEADERS): Add quote.h.
70398
70399         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
70400         from tar's src/misc.c.
70401         * lib/quote.h: New file.  Prototypes for same.
70402
70403 2000-07-14  Paul Eggert  <eggert@twinsun.com>
70404
70405         From a suggestion by Bruno Haible.
70406         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
70407         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
70408         to decide whether to define the BeOS workaround macro;
70409         this adjusts to the change to AC_MBSTATE_T.
70410
70411 2000-07-14  Jim Meyering  <meyering@lucent.com>
70412
70413         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
70414         jm_AC_TYPE_UINTMAX_T.
70415
70416 2000-07-13  Paul Eggert  <eggert@twinsun.com>
70417
70418         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
70419
70420         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
70421         quotearg_buffer_restyled): Add support for
70422         clocale_quoting_style.  Undo previous change to
70423         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
70424         and "{RIGHT QUOTATION MARK}" msgids.
70425
70426 2000-07-10  Paul Eggert  <eggert@twinsun.com>
70427
70428         From a suggestion by Bruno Haible.
70429         * m4/mbstate_t.m4 (AC_MBSTATE_T):
70430         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
70431         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
70432         and mbstate_t, to a single-part test that simply defines mbstate_t.
70433         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
70434         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
70435
70436 2000-07-10  Jim Meyering  <meyering@lucent.com>
70437
70438         * m4/strerror_r.m4: Mirror the correction made in autoconf.
70439
70440         * m4/gnu-source.m4: Output to confdefs.h directly.
70441         Suggestion from Akim Demaille.
70442
70443 2000-07-09  Paul Eggert  <eggert@twinsun.com>
70444
70445         The old behavior of quoting `like this' doesn't look good with
70446         newer, ISO-style fonts.  See:
70447         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
70448
70449         Instead, quote "like this" by default.  Let the translator
70450         tailor the locale-specific quoting behavior by providing
70451         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
70452
70453         * lib/quotearg.c (N_): New macro.
70454         (gettext_default): New function.
70455         (quotearg_buffer_restyled): Use
70456         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
70457         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
70458
70459 2000-07-09  Jim Meyering  <meyering@lucent.com>
70460
70461         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
70462         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
70463
70464         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
70465         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
70466
70467 2000-07-09  Jim Meyering  <meyering@lucent.com>
70468
70469         * lib/Most files: Update copyright dates to include 2000.
70470
70471 2000-07-08  Jim Meyering  <meyering@lucent.com>
70472
70473         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
70474         if not defined.
70475         (xgethostname): Remove now-unnecessary #ifdef.
70476         Move declaration of `err' into loop where it's used.
70477
70478 2000-07-05  Paul Eggert  <eggert@twinsun.com>
70479         and Bruno Haible  <haible@clisp.cons.org>
70480
70481         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
70482         only if the test for an object-type mbstate_t fails.  This
70483         prevents us from mistakenly reporting that mbstate_t is a
70484         system object type after we "#define mbstate_t int" to work
70485         around its lack.
70486
70487 2000-07-05  Paul Eggert  <eggert@twinsun.com>
70488         and Bruno Haible  <haible@clisp.cons.org>
70489
70490         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
70491
70492 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
70493
70494         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
70495         to strerror_r.
70496         Include <ctype.h> for use of isalpha.
70497
70498 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
70499
70500         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
70501         by allocating a larger buffer. Test the gethostname return value for
70502         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
70503         returns an error and ENAMETOOLONG isn't defined.
70504
70505 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
70506
70507         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
70508         dimension.
70509
70510 2000-07-04  Jim Meyering  <meyering@lucent.com>
70511
70512         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
70513         of the deprecated AC_CHECKING.
70514
70515 2000-07-04  Jim Meyering  <meyering@lucent.com>
70516
70517         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
70518         Reported by Bruno Haible.
70519
70520 2000-07-04  Jim Meyering  <meyering@lucent.com>
70521
70522         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
70523         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
70524         lacks mbrtowc.
70525
70526 2000-07-03  Paul Eggert  <eggert@twinsun.com>
70527
70528         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
70529         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
70530
70531 2000-07-03  Paul Eggert  <eggert@twinsun.com>
70532         and Bruno Haible  <haible@clisp.cons.org>
70533
70534         * lib/quotearg.c (mbrtowc):
70535         Assign to *pwc, and return 1 only if result is nonzero.
70536         (iswprint): Use ISPRINT when substituting our own mbrtowc.
70537
70538 2000-07-03  Jim Meyering  <meyering@lucent.com>
70539
70540         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
70541
70542 2000-07-03  Jim Meyering  <meyering@lucent.com>
70543
70544         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
70545         This is necessary to get a definition of e.g., UTMP_FILE on
70546         HP-UX 10.20.
70547         From Bob Proulx.
70548
70549 2000-07-02  Jim Meyering  <meyering@lucent.com>
70550
70551         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
70552
70553         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
70554         AC_LIBOBJ(function_name).
70555         * m4/chown.m4: Likewise.
70556         * m4/fnmatch.m4: Likewise.
70557         * m4/ftruncate.m4: Likewise.
70558         * m4/getgroups.m4: Likewise.
70559         * m4/getline.m4: Likewise.
70560         * m4/group-member.m4: Likewise.
70561         * m4/jm-macros.m4: Likewise.
70562         * m4/lstat.m4: Likewise.
70563         * m4/malloc.m4: Likewise.
70564         * m4/memcmp.m4: Likewise.
70565         * m4/nanosleep.m4: Likewise.
70566         * m4/putenv.m4: Likewise.
70567         * m4/realloc.m4: Likewise.
70568         * m4/regex.m4: Likewise.
70569         * m4/stat.m4: Likewise.
70570         * m4/strftime.m4: Likewise.
70571
70572 2000-07-02  Jim Meyering  <meyering@lucent.com>
70573
70574         * lib/quotearg.c (mbstate_t): Don't define here.
70575
70576 2000-07-02  Jim Meyering  <meyering@lucent.com>
70577
70578         * lib/nanosleep.c (SIGCONT): Define if not already defined.
70579
70580 2000-07-01  Jim Meyering  <meyering@lucent.com>
70581
70582         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
70583
70584 2000-07-01  Jim Meyering  <meyering@lucent.com>
70585
70586         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
70587         problem.
70588
70589 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
70590
70591         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
70592         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
70593
70594 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
70595
70596         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
70597         per change in ../m4/ls-mntd-fs.m4.
70598         (read_filesystem_list): Ignore symbolic links.
70599
70600 2000-06-29  Jim Meyering  <meyering@lucent.com>
70601
70602         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
70603         for declaration of strcmp.
70604
70605         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
70606
70607         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
70608         Avoid warning by casting result to `char *' to remove `const'.
70609
70610 2000-06-28  Jim Meyering  <meyering@lucent.com>
70611
70612         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
70613         included by quotearg.c, for which we perform this test.  From
70614         Bruno Haible.
70615
70616 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
70617
70618         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
70619         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
70620         <utmpx.h> exists, put readutmp.o into LIBOBJS.
70621
70622 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
70623
70624         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
70625
70626 2000-06-26  Paul Eggert  <eggert@twinsun.com>
70627
70628         savedir now sets errno on failure and invokes xmalloc to get memory.
70629         Fix a couple of other minor bugs while we're at it.
70630
70631         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
70632         (NAMLEN): Remove macro.
70633         (malloc, realloc): Remove decls.
70634         (stpcpy): Likewise.
70635         ("xalloc.h"): Include.
70636         (NAME_SIZE_DEFAULT): New macro.
70637         (savedir): Use xmalloc / xrealloc to allocate memory.
70638         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
70639         Skip "" directory entries.
70640         Use strlen to calculate directory entry length, since the old method
70641         is rarely used these days and isn't worth supporting.
70642         Don't use a pointer after freeing it.
70643         Check for integer overflow when calculating allocation size.
70644         Use memcpy to copy entries, instead of stpcpy.
70645         Set errno properly when returning NULL.
70646         Check for readdir error.
70647
70648 2000-06-26  Jim Meyering  <meyering@lucent.com>
70649
70650         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
70651
70652 2000-06-25  Jim Meyering  <meyering@lucent.com>
70653
70654         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
70655         Linux header bug when _XOPEN_SOURCE is defined to 500.
70656
70657 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
70658
70659         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
70660         deficiency.
70661
70662 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
70663
70664         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
70665         Include xalloc.h.
70666         Don't include <stdlib.h>.  Don't declare malloc, realloc.
70667
70668 2000-06-24  Jim Meyering  <meyering@lucent.com>
70669
70670         * m4/strerror_r.m4: Revive this file -- to try out an experimental
70671         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
70672         for which strerror does return char*, but which lacks a conveniently
70673         accessible declaration of the function.  If the compile-test says
70674         strerror_r doesn't work, then resort to a `run'-test that works on
70675         BeOS and segfaults on DEC Unix.
70676
70677 2000-06-24  Jim Meyering  <meyering@lucent.com>
70678
70679         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
70680
70681 2000-06-23  Paul Eggert  <eggert@twinsun.com>
70682
70683         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
70684         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
70685
70686 2000-06-23  Paul Eggert  <eggert@twinsun.com>
70687
70688         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
70689         (mbrtowc, mbstate_t): Define substitutes if
70690         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
70691         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
70692         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
70693
70694 2000-06-23  Jim Meyering  <meyering@lucent.com>
70695
70696         * m4/afs.m4: Add missing AC_MSG_RESULT.
70697         Reported by Bruno Haible.
70698
70699         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
70700         Suggestion from Bruno Haible.
70701
70702 2000-06-23  Jim Meyering  <meyering@lucent.com>
70703
70704         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
70705
70706 2000-06-21  Jim Meyering  <meyering@lucent.com>
70707
70708         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
70709
70710 2000-06-21  Jim Meyering  <meyering@lucent.com>
70711
70712         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
70713         (noinst_HEADERS): Add getstr.h.
70714
70715         * lib/getline.c (getstr): Move into a separate file.
70716         * lib/getstr.c (getstr): New file, extracted from getline.c, with
70717         the following changes: new parameter, delim2; both delim[12]
70718         parameters have type `int', not `char'.  The latter would lose
70719         with 8-bit delimiters.
70720         * lib/getstr.h: New file.
70721
70722 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
70723
70724         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
70725         than 1024, return a memory chunk of least possible size, instead
70726         of size PATH_MAX + 2. In the loop, increment the size proportionally.
70727         Use free/xmalloc instead of xrealloc to avoid copying for very long
70728         paths.
70729
70730 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
70731
70732         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
70733         the empty string.
70734
70735 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
70736
70737         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
70738         address, not strdup.  Include <stdlib.h> and don't declare free().
70739
70740 2000-06-19  Jim Meyering  <meyering@lucent.com>
70741
70742         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
70743
70744 2000-06-18  Jim Meyering  <meyering@lucent.com>
70745
70746         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
70747
70748         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
70749         `checking whether...' message to be consistent with that of the
70750         lstat test.
70751
70752 2000-06-18  Jim Meyering  <meyering@lucent.com>
70753
70754         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
70755         Besides, these days every porting target provides a mkdir function.
70756
70757         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
70758         needed. (this snippet comes from src/system.h).
70759
70760 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
70761
70762         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
70763
70764 2000-06-15  Paul Eggert  <eggert@twinsun.com>
70765
70766         * lib/human.c (adjust_value): New function.
70767         (human_readable_inexact): Apply rounding style even when
70768         printing approximate values.
70769
70770 2000-06-14  Paul Eggert  <eggert@twinsun.com>
70771
70772         * lib/human.c (human_readable_inexact): Allow an input block
70773         size that is not a multiple of the output block size, and vice versa.
70774         Reported by Piergiorgio Sartor.
70775
70776 2000-06-14  Paul Eggert  <eggert@twinsun.com>
70777
70778         * lib/getdate.y (get_date): Apply relative times after time
70779         zone indicator, not before.  Reported by Todd A. Jacobs.
70780
70781 2000-06-13  Jim Meyering  <meyering@lucent.com>
70782
70783         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
70784
70785         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
70786
70787 2000-06-12  Paul Eggert  <eggert@twinsun.com>
70788
70789         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
70790
70791 2000-06-12  Jim Meyering  <meyering@lucent.com>
70792
70793         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
70794         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
70795         optional argument.
70796         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
70797         the optional argument, `lib'.
70798
70799 2000-06-08  Jim Meyering  <meyering@lucent.com>
70800
70801         * m4/largefile.m4: Remove file (now that it's part of autoconf).
70802
70803 2000-06-04  Paul Eggert  <eggert@twinsun.com>
70804
70805         Rewrite largefile configuration so that we don't need to run
70806         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
70807         AC_CANONICAL_HOST in configure.in -- jmm]
70808
70809         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
70810         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
70811         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
70812         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
70813         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
70814         All uses changed.
70815         Instead of inspecting the output of getconf, try to compile the
70816         test program without and with the macro definition.
70817         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
70818         for getconf.  Instead, check for the needed flags by compiling
70819         test programs.
70820
70821 2000-06-04  Paul Eggert  <eggert@twinsun.com>
70822
70823         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
70824
70825 2000-06-04  Jim Meyering  <meyering@lucent.com>
70826
70827         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
70828         SunOS 4.1.4 for which gid_t is an unsigned type.
70829
70830 2000-06-03  Jim Meyering  <meyering@lucent.com>
70831
70832         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
70833         now that autoconf requires that.
70834
70835         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
70836         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
70837         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
70838
70839 2000-06-03  Jim Meyering  <meyering@lucent.com>
70840
70841         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
70842
70843 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
70844
70845         * m4/glibc21.m4: New file.
70846         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
70847
70848 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
70849
70850         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
70851         newer, don't install charset.alias.
70852         * lib/config.charset: Change the Linux/glibc rules so they become empty
70853         on glibc-2.1 or newer.
70854
70855 2000-06-02  Jim Meyering  <meyering@lucent.com>
70856
70857         * lib/mountlist.c: Back out last change.  Instead, do this...
70858         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
70859         me_dummy member using the same `ignore'-testing code.
70860         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
70861         fs_type strings.
70862         From Mark D. Roth.
70863
70864 2000-05-29  Jim Meyering  <meyering@lucent.com>
70865
70866         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
70867         mounts with the `ignore' attribute.  Based on a patch from
70868         Mark D. Roth.
70869
70870 2000-05-28  Jim Meyering  <meyering@lucent.com>
70871
70872         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
70873         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
70874         * m4/stat.m4: Likewise.
70875         * m4/lstat.m4: Likewise.
70876         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
70877
70878         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
70879         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
70880
70881 2000-05-26  Jim Meyering  <meyering@lucent.com>
70882
70883         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
70884
70885 2000-05-24  Jim Meyering  <meyering@lucent.com>
70886
70887         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
70888         autoconf requires that.
70889         * m4/lib-check.m4: Likewise.
70890         * m4/jm-macros.m4: Likewise.
70891         * m4/strftime.m4: Likewise.
70892
70893         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
70894         AC_CHECK_DECLS, now that autoconf requires that.
70895
70896 2000-05-22  Jim Meyering  <meyering@lucent.com>
70897
70898         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
70899         * m4/lstat.m4: Likewise.
70900
70901 2000-05-22  Jim Meyering  <meyering@lucent.com>
70902
70903         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
70904
70905 2000-05-20  Jim Meyering  <meyering@lucent.com>
70906
70907         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
70908         (jm_PREREQ): Use it.
70909
70910 2000-05-18  Jim Meyering  <meyering@lucent.com>
70911
70912         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
70913         back, too, since it may have been modified by allocate_entry.
70914         (hash_delete): Rewrite to use neither the assignment operator
70915         nor the comma operator in an if-expression.
70916
70917 2000-05-15  Paul Eggert  <eggert@twinsun.com>
70918
70919         * lib/closeout.c:
70920         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
70921         Remove; no longer needed.
70922         "quotearg.h": Add include.
70923         (file_name): Do not bother to explicitly initialize to NULL; it's less
70924         efficient on some hosts.
70925         (close_stdout_status): Remove test as to whether stdout was already
70926         closed; it breaks for the case "echo x | sort >&-".
70927         Quote file name colons.
70928         Do not assume that _("write error") lacks format strings.
70929
70930 2000-05-15  Jim Meyering  <meyering@lucent.com>
70931
70932         * lib/version-etc.c (version_etc_copyright): Update the copyright
70933         string used in all --version output.
70934
70935 2000-05-14  Jim Meyering  <meyering@lucent.com>
70936
70937         * lib/closeout.c (close_stdout_set_file_name): New function.
70938         (close_stdout_status): Use new file-scoped global.
70939         Return right away if fstat says the stdout file descriptor is invalid.
70940         * lib/closeout.h (close_stdout_set_file_name): Declare.
70941
70942 2000-05-10  Jim Meyering  <meyering@lucent.com>
70943
70944         * lib/closeout.c [default_exit_status]: New file-scoped variable.
70945         (close_stdout_set_status): New function.
70946         * lib/closeout.h (close_stdout_set_status): Declare.
70947
70948 2000-05-09  Jim Meyering  <meyering@lucent.com>
70949
70950         * m4/gettext.m4: Rename this...
70951         * m4/libintl.m4: ...to this.
70952
70953 2000-05-08  Jim Meyering  <meyering@lucent.com>
70954
70955         * lib/long-options.c: Don't include closeout.h.
70956         (parse_long_options): Don't call close_stdout for --version.
70957
70958 2000-05-06  Paul Eggert  <eggert@twinsun.com>
70959
70960         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
70961         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
70962         2.1.3 bug.  This avoids a clash when files like regex.c define
70963         _GNU_SOURCE.
70964
70965 2000-05-06  Jim Meyering  <meyering@lucent.com>
70966
70967         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
70968         (AC_REPLACE_FUNCS): Add strnlen.
70969
70970         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
70971         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
70972
70973         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
70974         AC_SEARCH_LIBS call for nanosleep.
70975         (LIB_NANOSLEEP): Set and AC_SUBST.
70976
70977 2000-05-06  Jim Meyering  <meyering@lucent.com>
70978
70979         * lib/strnlen.c: Undefine __strnlen and strnlen.
70980         [!weak_alias]: Define __strnlen to strnlen.
70981
70982         * lib/atexit.c: New file, from libiberty.
70983
70984 2000-05-06  Jim Meyering  <meyering@lucent.com>
70985
70986         * lib/closeout.c (close_stdout_status): Also check for errors on the
70987         stderr stream.
70988
70989 2000-05-05  Jim Meyering  <meyering@lucent.com>
70990
70991         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
70992         AC_SEARCH_LIBS call for clock_gettime.
70993         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
70994
70995         * m4/search-libs.m4: Update from autoconf.
70996
70997         su doesn't work on Solaris 2.6.
70998         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
70999         <shadow.h>.  Reported by Dragos Harabor.
71000
71001 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
71002
71003         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
71004         memcpy instead of xmalloc, xrealloc, path_concat.
71005         (locale_charset): Treat empty environment variables as absent.
71006         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
71007
71008 2000-05-04  Jim Meyering  <meyering@lucent.com>
71009
71010         * lib/getopt.c: Update from glibc.
71011         * lib/obstack.c: Likewise.
71012         * lib/obstack.h: Likewise.
71013         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
71014         file
71015
71016         * lib/regex.h: Likewise.
71017         * lib/strndup.c: Likewise.
71018         * lib/strnlen.c: New file, from glibc.
71019
71020 2000-05-03  Jim Meyering  <meyering@lucent.com>
71021
71022         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
71023
71024 2000-05-02  Paul Eggert  <eggert@twinsun.com>
71025
71026         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
71027         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
71028         compile-time test, rather than inspecting host and OS, to
71029         decide whether to define _LARGEFILE_SOURCE.
71030
71031 2000-05-01  Jim Meyering  <meyering@lucent.com>
71032
71033         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
71034
71035         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
71036         Based on a patch from Bruno Haible.
71037
71038 2000-05-01  Jim Meyering  <meyering@lucent.com>
71039
71040         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
71041
71042 2000-04-29  Jim Meyering  <meyering@lucent.com>
71043
71044         * lib/path-concat.c: Declare strdup only if it's not defined.
71045         * lib/canon-host.c: Likewise.
71046
71047 2000-04-28  Jim Meyering  <meyering@lucent.com>
71048
71049         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
71050         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
71051         is included first, then limits.h is included by locale.h by libintl.h.
71052         From John David Anglin.
71053
71054 2000-04-25  Jim Meyering  <meyering@lucent.com>
71055
71056         * lib/makepath.c (S_IRWXUGO): Define.
71057         (make_path): Always perform explicit chmod if MODE specifies any
71058         of the `special' permission bits.  Prompted by a bug report against
71059         install from Mate Wierdl and Joost van Baal.
71060
71061 2000-04-18  Jim Meyering  <meyering@lucent.com>
71062
71063         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
71064         (jm_PREREQ): Use it.
71065
71066 2000-04-18  Jim Meyering  <meyering@lucent.com>
71067
71068         * lib/README: New file.
71069
71070         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
71071         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
71072
71073 2000-04-17  Jim Meyering  <meyering@lucent.com>
71074
71075         Get it right :-)
71076         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
71077         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
71078         Suggestion from Akim Demaille.
71079
71080 2000-04-17  Jim Meyering  <meyering@lucent.com>
71081
71082         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
71083         the definition of it to rpl_strftime also defined-away the system's
71084         declaration.
71085
71086 2000-04-15  Jim Meyering  <meyering@lucent.com>
71087
71088         Use `C' to denote so-called `contiguous' files, the same way
71089         that tar does.
71090         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
71091         (ftypelet): Use S_ISCTG.
71092         From Michael Deutschmann.
71093
71094 2000-04-14  Jim Meyering  <meyering@lucent.com>
71095
71096         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
71097         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
71098         clobbered.
71099
71100 2000-04-14  Jim Meyering  <meyering@lucent.com>
71101
71102         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
71103
71104 2000-04-13  Jim Meyering  <meyering@lucent.com>
71105
71106         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
71107         AH_VERBATIM to insert required #ifndef into config.h.in.
71108         Suggestion from Akim Demaille.
71109
71110 2000-04-12  Jim Meyering  <meyering@lucent.com>
71111
71112         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
71113         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
71114         Christian Krackowizer.
71115
71116         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
71117         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
71118         (AC_SYS_LARGEFILE): Require.
71119         (AM_C_PROTOTYPES): Require.
71120
71121 2000-04-08  Jim Meyering  <meyering@lucent.com>
71122
71123         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
71124         names don't conflict.  Reported by Eli Zaretskii.
71125
71126 2000-04-07  Jim Meyering  <meyering@lucent.com>
71127
71128         * lib/putenv.c: Move inclusion of errno.h so it follows that of
71129         sys/types.h, to work around system header problems on AIX 3.2.5.
71130         From Bruno Haible.
71131
71132 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
71133
71134         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
71135         bug.  Deal with the different error behavior of Irix iconv.
71136
71137 2000-04-05  Paul Eggert  <eggert@twinsun.com>
71138
71139         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
71140         IRIX if the installer said otherwise.
71141
71142 2000-04-05  Jim Meyering  <meyering@lucent.com>
71143
71144         Portability tweaks required for ultrix4.3.
71145         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
71146         (jm_CHECK_DECLS): Add getutent to the list of functions.
71147         (_jm_DECL_HEADERS): Add utmpx.h.
71148         From John David Anglin.
71149
71150         * m4/strftime.m4: Back out the 2000-04-02 change.
71151         Instead of that change, simply undefine putenv in the test program.
71152
71153 2000-04-05  Jim Meyering  <meyering@lucent.com>
71154
71155         Portability tweaks required for ultrix4.3.
71156         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
71157         getutent.
71158         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
71159         * lib/canon-host.c: Declare strdup.
71160         * lib/path-concat.c: Likewise.
71161         From John David Anglin.
71162
71163 2000-04-04  Jim Meyering  <meyering@lucent.com>
71164
71165         Be more DOS 8.3-friendly.
71166         * lib/ref-add.sin: Renamed from ref-add.sed.in.
71167         * lib/ref-del.sin: Renamed from ref-del.sed.in.
71168         * lib/Makefile.am: Reflect renaming.
71169         Reported by Eli Zaretskii.
71170
71171         Use a temporary file name that won't clash with `charset.alias'
71172         in the DOS 8.3 name space.
71173         * lib/Makefile.am (charset_tmp): Define.
71174         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
71175         (uninstall-local): Likewise.
71176         Reported by Eli Zaretskii.
71177
71178 2000-04-03  Jim Meyering  <meyering@lucent.com>
71179
71180         * m4/gettext.m4: Fix typo in comment.
71181
71182         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
71183         textutils/configure.in).  Suggestion from Paul Eggert.
71184         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
71185
71186 2000-04-02  Paul Eggert  <eggert@twinsun.com>
71187
71188         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
71189         variable in the shell rather than using putenv, which isn't
71190         portable.  This avoids the configure-time inter-test dependency
71191         on the potentially-renamed putenv function.
71192
71193 2000-03-30  Paul Eggert  <eggert@twinsun.com>
71194
71195         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
71196         before checking struct stat.st_blksize, so that
71197         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
71198
71199 2000-03-29  Paul Eggert  <eggert@twinsun.com>
71200
71201         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
71202         since strftime.c uses HAVE_STRFTIME to decide whether to use
71203         the underlying strftime.
71204
71205 2000-03-29  Paul Eggert  <eggert@twinsun.com>
71206
71207         * lib/time/strftime.c (my_strftime): Make sure we call the system
71208         strftime, not ourselves, when invoking the underlying strftime.
71209
71210 2000-03-24  Jim Meyering  <meyering@lucent.com>
71211
71212         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
71213         (charset_alias): Define.
71214         (install-exec-local): Factor out common code.
71215         (uninstall-local): Split lines longer than 80.
71216         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
71217         (SUFFIXES): Define.
71218         (.sed.in.sed): New rule.  Don't redirect directly to $@.
71219         (CLEANFILES): Add ref-add.sed and ref-del.sed.
71220
71221 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
71222
71223         * lib/config.charset: Output a line containing "Packages using this
71224         file".
71225         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
71226         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
71227         ref-del.sed): New rules.
71228
71229 2000-03-17  Jim Meyering  <meyering@lucent.com>
71230
71231         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
71232         Otherwise, include <strings.h>
71233
71234 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
71235
71236         * lib/unicodeio.c (utf8_wctomb): New function.
71237         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
71238         format instead of in UCS-4 with platform dependent endianness.
71239
71240 2000-03-10  Jim Meyering  <meyering@lucent.com>
71241
71242         * m4/lib-check.m4: Look for getspnam in -lgen, too.
71243         From Marco Franzen.
71244
71245 2000-03-07  Paul Eggert  <eggert@twinsun.com>
71246
71247         * lib/savedir.c (savedir): Work even if directory size is
71248         negative; this can happen with some screwy NFS configurations.
71249
71250 2000-03-06  Jim Meyering  <meyering@lucent.com>
71251
71252         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
71253         if it's NULL (because we ran out of memory).  From Bruno Haible.
71254
71255 2000-03-05  Jim Meyering  <meyering@lucent.com>
71256
71257         * lib/localcharset.c ("path-concat.h"): Include.
71258         (get_charset_aliases): Use path_concat instead of ANSI string
71259         concatenation.
71260
71261         * lib/unicodeio.h (PARAMS): Define.
71262         Use it to guard prototype.
71263
71264 2000-03-04  Jim Meyering  <meyering@lucent.com>
71265
71266         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
71267         for lib/localcharset.c.
71268
71269 2000-03-04  Jim Meyering  <meyering@lucent.com>
71270
71271         * lib/Makefile.am (install-exec-local): Create $(libdir) before
71272         installing into it.
71273         (uninstall-local): Uncomment this rule so `make distcheck' works
71274         once again.
71275
71276         * lib/unicodeio.c (<errno.h>): Include it.
71277         (errno): Declare if not defined.
71278
71279         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
71280
71281         * lib/config.charset: New version, incorporating remarks from a linux
71282         i18n mailing list.  From Bruno Haible.
71283
71284 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
71285
71286         * m4/codeset.m4: New file.
71287         * m4/iconv.m4: New file.
71288         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
71289
71290 2000-03-03  Jim Meyering  <meyering@lucent.com>
71291
71292         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
71293
71294 2000-03-02  Jim Meyering  <meyering@lucent.com>
71295
71296         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
71297         the messages come out on separate lines.
71298
71299         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
71300         rather than jm_CHECK_DECLARATIONS.
71301         * m4/decl.m4: Remove now-unused file.
71302
71303         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
71304         geteuid.
71305
71306 2000-03-02  Jim Meyering  <meyering@lucent.com>
71307
71308         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
71309
71310 2000-03-01  Jim Meyering  <meyering@lucent.com>
71311
71312         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
71313         * lib/unicodeio.c: Likewise.
71314
71315 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
71316
71317         * lib/config.charset: New file.
71318         * lib/localcharset.c: New file.
71319         * lib/unicodeio.h, lib/unicodeio.c: New files.
71320         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
71321         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
71322         (noinst_HEADERS): Add unicodeio.h.
71323         (all-local, install-exec-local, charset.alias): New targets.
71324
71325 2000-02-28  Paul Eggert  <eggert@twinsun.com>
71326
71327         * lib/quotearg.c (ALERT_CHAR): New macro.
71328         (quotearg_buffer_restyled): Use it.
71329
71330 2000-02-27  Jim Meyering  <meyering@lucent.com>
71331
71332         * m4/check-decl.m4: Add getenv to the list.
71333
71334 2000-02-27  Jim Meyering  <meyering@lucent.com>
71335
71336         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
71337         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
71338
71339         * lib/backupfile.c: Guard inclusion of stdlib.h with
71340         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
71341         Declare malloc if needed.
71342
71343         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
71344         `#ifndef HAVE_DECL..'
71345         now that autoconf always defines the HAVE_DECL_ symbols.
71346         * lib/human.c: Likewise.
71347         * lib/same.c: Likewise.
71348         * lib/strtoumax.c: Likewise.
71349
71350         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
71351         declaration check was not run.
71352         * lib/hash.c: Likewise.
71353         * lib/human.c: Likewise.
71354         * lib/same.c: Likewise.
71355         * lib/strtoumax.c: Likewise.
71356
71357         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
71358         `.', then first look up the entire `.'-containing string as a login
71359         name.
71360
71361 2000-02-23  Jim Meyering  <meyering@lucent.com>
71362
71363         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
71364         in place of my hack.
71365
71366 2000-02-18  Paul Eggert  <eggert@twinsun.com>
71367
71368         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
71369         (textint): New typedef.
71370         (parser_control): Member year changed from int to textint.
71371         All uses changed.
71372         (YYSTYPE): Removed; replaced by %union with int and textint members.
71373         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
71374         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
71375         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
71376         (tSNUMBER, tUNUMBER): Now of type <textintval>.
71377         (date, number, to_year): Use width of number in digits, not its value,
71378         to determine whether it's a 2-digit year, or a 2-digit time.
71379         (yylex): Store number of digits of numeric tokens.
71380         Reported by John Kendall.
71381
71382         (parser_control): Changed from struct parser_control to typedef (for
71383         consistency).  All uses changed.
71384
71385         (tID): Removed; not used.
71386         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
71387
71388 2000-02-14  Paul Eggert  <eggert@twinsun.com>
71389
71390         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
71391         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
71392
71393 2000-02-12  Jim Meyering  <meyering@lucent.com>
71394
71395         * lib/userspec.c (ISDIGIT): Define it.
71396         (isdigit): Remove definition.
71397         (is_number): Use ISDIGIT, not isdigit.
71398         <libintl.h>: Include.
71399         (_ and N_): Define.
71400         (parse_user_spec): Mark translatable strings.
71401
71402 2000-02-10  Jim Meyering  <meyering@lucent.com>
71403
71404         With these changes, nanosleep.[ch] are finally enough like the other
71405         lib/* replacement files to compile on a few more losing systems.
71406
71407         * lib/nanosleep.h: Don't include config.h.
71408         Remove prototype from declaration of nanosleep.
71409         (PARAMS): Remove now-unneeded definition.
71410         * lib/nanosleep.c: #undef nanosleep.
71411         (rpl_nanosleep): Rename from nanosleep.
71412
71413 2000-02-10  Jim Meyering  <meyering@lucent.com>
71414
71415         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
71416         gnu_nanosleep to rpl_nanosleep.
71417
71418 2000-02-09  Jim Meyering  <meyering@lucent.com>
71419
71420         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
71421         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
71422
71423 2000-02-08  Akim Demaille  <akim@epita.fr>
71424
71425         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
71426         `[' and `]' and remove uses of `changequote'.
71427         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
71428         (AC_SYS_LARGEFILE): Likewise.
71429         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
71430         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
71431         of changequote.
71432         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
71433         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
71434         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
71435         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
71436
71437 2000-02-05  Jim Meyering  <meyering@lucent.com>
71438
71439         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
71440         Remove explicit use of AC_HEADER_TIME.  It is required by
71441         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
71442         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
71443         in autoconf whereby the expansion of the latter ended up preceding
71444         the expansion of its prerequisite, AC_HEADER_TIME.
71445         Reported by Volker Borchert.
71446
71447 2000-02-03  Jim Meyering  <meyering@lucent.com>
71448
71449         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
71450
71451 2000-02-03  Jim Meyering  <meyering@lucent.com>
71452
71453         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
71454         rather than with `#if HAVE_UTMPNAME'.
71455
71456 2000-02-02  Jim Meyering  <meyering@lucent.com>
71457
71458         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
71459         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
71460         Reported by Eli Zaretskii.
71461
71462 2000-02-01  Jim Meyering  <meyering@lucent.com>
71463
71464         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
71465
71466 2000-01-31  Jim Meyering  <meyering@lucent.com>
71467
71468         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
71469         functions.  Add the time.h and sys/time.h headers along with the
71470         AC_REQUIRE'ment of AC_HEADER_TIME.
71471
71472 2000-01-31  Jim Meyering  <meyering@lucent.com>
71473
71474         * lib/nanosleep.h (nanosleep): Guard declaration with
71475         `#if ! HAVE_DECL_NANOSLEEP'.
71476         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
71477         the declaration in that vendor's sys/timers.h.
71478         Reported by Christian Krackowizer.
71479
71480         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
71481         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
71482         (ISPRINT): Likewise.
71483         Reported by Tom Tromey.
71484
71485 2000-01-30  Jim Meyering  <meyering@lucent.com>
71486
71487         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
71488
71489         * m4/prereq.m4 (utmp_includes): Define.
71490         Check for ut_user and ut_name members in both struct utmpx
71491         and struct utmp.
71492
71493 2000-01-30  Jim Meyering  <meyering@lucent.com>
71494
71495         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
71496         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
71497         header files where only utmpx.ut_user is declared.
71498
71499         * lib/readutmp.h (UT_USER): Define.
71500
71501 2000-01-29  Jim Meyering  <meyering@lucent.com>
71502
71503         * m4/lib-check.m4: New file containing library-related checks from
71504         fileutils and sh-utils (textutils had none).
71505
71506 2000-01-28  Jim Meyering  <meyering@lucent.com>
71507
71508         * m4/perl.m4: Change format of warning message to look more like that
71509         from the missing script.  Suggestion from François Pinard.
71510
71511 2000-01-25  Jim Meyering  <meyering@lucent.com>
71512
71513         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
71514         well as time.h in the compile check.
71515         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
71516         Fix typo in cross-compiling case: s/yes/no/.
71517
71518 2000-01-23  Jim Meyering  <meyering@lucent.com>
71519
71520         * m4/jm-macros.m4: Move df-related tests here from
71521         fileutils/configure.in
71522
71523         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
71524         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
71525
71526         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
71527         s/space/ac_fsusage_space/.
71528         (jm_FILE_SYSTEM_USAGE): Take two parameters.
71529
71530         * m4/ftruncate.m4: New file (derived from part of
71531         fileutils/configure.in).
71532         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
71533         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
71534
71535         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
71536         AC_SUBST these here, rather than just in sh-util/configure.in, so
71537         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
71538         all the same.
71539         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
71540         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
71541         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
71542         (AC_SUBST(POW_LIBM)): Likewise.
71543         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
71544
71545 2000-01-23  Jim Meyering  <meyering@lucent.com>
71546
71547         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
71548         obstack.c.
71549
71550 2000-01-22  Jim Meyering  <meyering@lucent.com>
71551
71552         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
71553
71554         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
71555
71556         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
71557         configure.in
71558         (AC_CHECK_HEADERS): Likewise for sh-utils.
71559         (AC_CHECK_HEADERS): Likewise for textutils.
71560         Merge the three lists of headers.
71561
71562         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
71563         from fileutils' configure.in.
71564
71565         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
71566         code. Moved tests into their own function (_jm_DECL_HEADERS) in
71567         check-decl.m4.
71568
71569         * m4/check-decl.m4: Use #if rather than #ifdef.
71570         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
71571         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
71572         (_jm_DECL_HEADERS): Define new function.
71573         (jm_CHECK_DECLARATIONS): Require it.
71574
71575 2000-01-22  Jim Meyering  <meyering@lucent.com>
71576
71577         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
71578         [! HAVE_DECL_STRTOULL]: Declare strtoull.
71579         Required for some AIX systems.  Reported by Christian Krackowizer.
71580         [TESTING] (main): New function.
71581
71582         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
71583         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
71584         letters.
71585
71586         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
71587         iswprint.
71588
71589         * lib/strverscmp.c (ISDIGIT): Define.
71590         (strverscmp): Use ISDIGIT, not isdigit.
71591
71592 2000-01-19  Jim Meyering  <meyering@lucent.com>
71593
71594         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
71595         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
71596         defines `struct timespec' in <sys/time.h>
71597
71598         * m4/c-bs-a.m4: Remove uses of changequote altogether.
71599         Thanks to Akim for explaining.
71600
71601 2000-01-17  Paul Eggert  <eggert@twinsun.com>
71602
71603         * lib/nanosleep.c (nanosleep):
71604         Don't use SA_INTERRUPT to decide whether to call sigaction, as
71605         POSIX.1 doesn't require SA_INTERRUPT and some systems
71606         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
71607         it's been part of POSIX.1 since day 1 (in 1988).
71608
71609 2000-01-17  Jim Meyering  <meyering@lucent.com>
71610
71611         * lib/interlock: Remove unused file.  Reported by François Pinard.
71612
71613 2000-01-16  Paul Eggert  <eggert@twinsun.com>
71614
71615         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
71616         alert, backslash, formfeed, and vertical tab unnecessarily in
71617         shell quoting style.
71618
71619 2000-01-16  Jim Meyering  <meyering@lucent.com>
71620
71621         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
71622         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
71623         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
71624         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
71625
71626 2000-01-16  Jim Meyering  <meyering@lucent.com>
71627
71628         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
71629         because the latter didn't work.
71630
71631 2000-01-15  Jim Meyering  <meyering@lucent.com>
71632
71633         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
71634         (AC_REPLACE_FUNCS): Add memcpy and memset.
71635         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
71636         Add strpbrk.
71637         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
71638
71639 2000-01-12  Jim Meyering  <meyering@lucent.com>
71640
71641         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
71642         (jm_PREREQ): Use it.
71643         (jm_PREREQ_READUTMP): New macro.
71644         (jm_PREREQ): Use it.
71645
71646 2000-01-11  Paul Eggert  <eggert@twinsun.com>
71647
71648         Quote multibyte characters correctly.
71649         * m4/c-bs-a.m4: New file.
71650         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
71651         (jm_PREREQ): Use it.
71652
71653 2000-01-11  Paul Eggert  <eggert@twinsun.com>
71654
71655         * m4/uintmax_t.m4: Port to autoconf 2.13.
71656
71657 2000-01-08  Jim Meyering  <meyering@ascend.com>
71658
71659         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
71660         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
71661
71662 2000-01-04  Jim Meyering  <meyering@ascend.com>
71663
71664         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
71665         jm_STRUCT_DIRENT_D_TYPE.
71666         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
71667         jm_STRUCT_DIRENT_D_INO.
71668         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
71669         jm_STRUCT_UTIMBUF.
71670         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
71671         renamings.
71672         * m4/utime.m4: Likewise.
71673
71674         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
71675         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
71676
71677 2000-01-03  Paul Eggert  <eggert@twinsun.com>
71678
71679         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
71680         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
71681
71682 2000-01-02  Jim Meyering  <meyering@ascend.com>
71683
71684         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
71685         remember if this is necessary.
71686
71687 1999-12-26  Jim Meyering  <meyering@ascend.com>
71688
71689         * m4/jm-macros.m4: Use it here.
71690         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
71691
71692 1999-12-23  Jim Meyering  <meyering@ascend.com>
71693
71694         * m4/jm-macros.m4: Check for clock_gettime (moved from
71695         fileutils/configure.in)
71696         Check for gettimeofday.
71697
71698 1999-12-20  Jim Meyering  <meyering@ascend.com>
71699
71700         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
71701         autoconf-2.14a-1999-12-20.
71702
71703 1999-12-19  Jim Meyering  <meyering@ascend.com>
71704
71705         * m4/lstat-slash.m4: New file.
71706         * m4/jm-macros.m4: Use the new macro:
71707         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
71708
71709 1999-12-07  Jim Meyering  <meyering@ascend.com>
71710
71711         * m4/perl.m4: Require that File::Compare be available, too.
71712         Too many systems seem to lack it.
71713
71714         * m4/strftime.m4: Add checks for most of the cpp macros tested in
71715         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
71716
71717 1999-11-18  Paul Eggert  <eggert@twinsun.com>
71718
71719         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
71720         problem with the QNX 4.25 shell, which doesn't propagate exit
71721         status of failed commands inside shell assignments.
71722
71723 1999-11-17  Jim Meyering  <meyering@ascend.com>
71724
71725         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
71726
71727 1999-11-07  Jim Meyering  <meyering@ascend.com>
71728
71729         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
71730
71731 1999-11-06  Jim Meyering  <meyering@ascend.com>
71732
71733         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
71734         * m4/jm-macros.m4 (jm_MACROS): Use it here.
71735
71736 1999-11-05  Jim Meyering  <meyering@ascend.com>
71737
71738         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
71739         configure.in of textutils, fileutils, and sh-utils into this one
71740         (shared between those packages) file.
71741         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
71742         AC_STRUCT_ST_BLKSIZE.
71743
71744 1999-11-03  Jim Meyering  <meyering@ascend.com>
71745
71746         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
71747         of AC_CHECK_TYPE checks includes unistd.h.
71748         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
71749         Suggestion from Akim Demaille.
71750
71751 1999-10-30  Jim Meyering  <meyering@ascend.com>
71752
71753         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
71754         m4-quoted string.
71755         * m4/ls-mntd-fs.m4: Likewise.
71756         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
71757         * m4/jm-winsz1.m4: Likewise.
71758
71759         * m4/const.m4: Remove file, since the fix made it into the experimental
71760         version of autoconf.
71761         * m4/mktime.m4: Likewise.
71762
71763         * m4/check-type.m4: Remove file, now that the latest version of
71764         AC_CHECK_TYPE takes a third arg to specify additional #includes.
71765
71766         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
71767         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
71768         AC_CHECK_TYPE.
71769
71770 1999-10-04  Jim Meyering  <meyering@ascend.com>
71771
71772         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
71773
71774 1999-09-22  Paul Eggert  <eggert@twinsun.com>
71775
71776         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
71777         2.95.1 bug with HP-UX 10.20.
71778
71779 1999-09-17  Jim Meyering  <meyering@ascend.com>
71780
71781         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
71782         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
71783         due to missing strdup (against sh-utils-2.0).
71784
71785 1999-08-29  Jim Meyering  <meyering@ascend.com>
71786
71787         * m4/jm-macros.m4: Require jm_BISON.
71788         * m4/bison.m4: New file.
71789
71790 1999-08-17  Paul Eggert  <eggert@twinsun.com>
71791
71792         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
71793         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
71794
71795 1999-08-05  Jim Meyering  <meyering@ascend.com>
71796
71797         * m4/getline.m4: Rename test file from conftestdata to conftest.data
71798         to avoid conflicts with `conftest' on 8+3 filesystems.
71799         Suggestion from Eli Zaretskii.
71800
71801 1999-08-04  Jim Meyering  <meyering@ascend.com>
71802
71803         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
71804         fileutils and sh-utils (textutils's getline test was inadequate).
71805         (AM_FUNC_GETLINE): Run this test.
71806         (AC_CHECK_FUNCS): Check for getdelim.
71807         Reported by Bob Proulx.
71808
71809 1999-08-02  Jim Meyering  <meyering@ascend.com>
71810
71811         * m4/jm-macros.m4: Add a comment.
71812
71813 1999-08-01  Paul Eggert  <eggert@twinsun.com>
71814
71815         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
71816         <inttypes.h> defines strtoumax as a macro (and not as a
71817         function).
71818
71819 1999-08-01  Paul Eggert  <eggert@twinsun.com>
71820
71821         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
71822         that we can shift, multiply and divide unsigned long long
71823         values; Ultrix cc can't do it.
71824
71825 1999-08-01  Paul Eggert  <eggert@twinsun.com>
71826
71827         * m4/mktime.m4: New file, which is a preview of what should appear
71828         in the next public autoconf release.
71829
71830 1999-08-01  Paul Eggert  <eggert@twinsun.com>
71831
71832         * m4/lfs.m4: Remove this file.
71833         * m4/largefile.m4: New file.  It contains the old contents of
71834         lfs.m4, except that all names with prefix AC_LFS have been
71835         changed to use the prefix AC_SYS_LARGEFILE instead, to be
71836         compatible with future autoconf versions.  Also, some minor m4
71837         quoting problems have been fixed.
71838
71839 1999-08-01  Paul Eggert  <eggert@twinsun.com>
71840
71841         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
71842         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
71843         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
71844         and simplify the shell code.
71845
71846 1999-08-01  Jim Meyering  <meyering@ascend.com>
71847
71848         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
71849         m4.
71850
71851 1999-07-20  Jim Meyering  <meyering@ascend.com>
71852
71853         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
71854
71855 1999-07-15  Jim Meyering  <meyering@ascend.com>
71856
71857         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
71858
71859 1999-05-22  Jim Meyering  <meyering@ascend.com>
71860
71861         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
71862
71863 1999-05-20  Jim Meyering  <meyering@ascend.com>
71864
71865         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
71866         Add a colon after each `then' in case $4 is empty.
71867
71868 1999-05-16  Jim Meyering  <meyering@ascend.com>
71869
71870         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
71871
71872 1999-05-10  Jim Meyering  <meyering@ascend.com>
71873
71874         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
71875
71876         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
71877         AC_FUNC_MKTIME.
71878
71879 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
71880
71881         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
71882
71883 1999-05-04  Paul Eggert  <eggert@twinsun.com>
71884
71885         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
71886         not CPPFLAGS, so that linking works correctly in IRIX.
71887
71888 1999-04-30  Paul Eggert  <eggert@twinsun.com>
71889
71890         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
71891
71892 1999-04-20  Paul Eggert  <eggert@twinsun.com>
71893
71894         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
71895         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
71896         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
71897         jm_AC_TYPE_UNSIGNED_LONG_LONG.
71898         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
71899
71900         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
71901
71902 1999-04-20  Jim Meyering  <meyering@ascend.com>
71903
71904         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
71905         AC_REPLACE xstroull if necessary.  From Paul Eggert.
71906         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
71907
71908 1999-04-18  Jim Meyering  <meyering@ascend.com>
71909
71910         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
71911         * m4/jm-macros.m4: Use it.
71912
71913 1999-04-06  Jim Meyering  <meyering@ascend.com>
71914
71915         * m4/strftime.m4: Remove test for %f.
71916
71917 1999-03-29  Jim Meyering  <meyering@ascend.com>
71918
71919         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
71920         superset of the AC_TYPE_* checks in the textutils, fileutils,
71921         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
71922         AC_TYPE_PID_T.
71923
71924 1999-03-28  Jim Meyering  <meyering@ascend.com>
71925
71926         * m4/jm-macros.m4: Define GNU_PACKAGE here.
71927         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
71928         replaced e.g., in the *.sh files of the sh-utils.
71929
71930 1999-03-20  Jim Meyering  <meyering@ascend.com>
71931
71932         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
71933         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
71934         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
71935
71936 1999-03-19  Jim Meyering  <meyering@ascend.com>
71937
71938         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
71939
71940 1999-03-12  Jim Meyering  <meyering@ascend.com>
71941
71942         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
71943
71944 1999-03-07  Jim Meyering  <meyering@ascend.com>
71945
71946         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
71947         declared.
71948
71949 1999-02-17  Jim Meyering  <meyering@ascend.com>
71950
71951         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
71952         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
71953
71954 1999-02-07  Jim Meyering  <meyering@ascend.com>
71955
71956         * m4/group-member.m4: New file -- extracted from sh-utils'
71957         configure.in.
71958
71959         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
71960         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
71961
71962 1999-02-06  Jim Meyering  <meyering@ascend.com>
71963
71964         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
71965         * m4/fnmatch.m4: Likewise.
71966         * m4/getgroups.m4: Likewise.
71967         * m4/lstat.m4: Likewise.
71968         * m4/malloc.m4: Likewise.
71969         * m4/putenv.m4: Likewise.
71970         * m4/realloc.m4: Likewise.
71971         * m4/regex.m4: Likewise.
71972         * m4/stat.m4: Likewise.
71973         * m4/strftime.m4: Likewise.
71974         Suggestion from Alain Magloire.
71975
71976         * m4/chown.m4: Use `.$ac_objext', not `.o'.
71977         * m4/fnmatch.m4: Likewise.
71978         * m4/getgroups.m4: Likewise.
71979         * m4/getline.m4: Likewise.
71980         * m4/lstat.m4: Likewise.
71981         * m4/malloc.m4: Likewise.
71982         * m4/memcmp.m4: Likewise.
71983         * m4/putenv.m4: Likewise.
71984         * m4/realloc.m4: Likewise.
71985         * m4/regex.m4: Likewise.
71986         * m4/stat.m4: Likewise.
71987         * m4/strftime.m4: Likewise.
71988         Suggestion from Alain Magloire.
71989
71990         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
71991         an argument.
71992
71993         * m4/regex.m4: Add a run-time Test for proper operation of
71994         re_compile_pattern.
71995
71996 1999-01-31  Jim Meyering  <meyering@ascend.com>
71997
71998         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
71999
72000 1999-01-30  Jim Meyering  <meyering@ascend.com>
72001
72002         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
72003
72004         * m4/jm-mktime.m4: Make this a wrapper around the official
72005         AM_FUNC_MKTIME rather than my private copy, now that the official one
72006         is up to date.
72007         * m4/mktime.m4: Remove file.
72008
72009         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
72010         * m4/uptime.m4: Likewise.
72011         * m4/uintmax_t.m4: Likewise.
72012
72013 1999-01-28  Jim Meyering  <meyering@ascend.com>
72014
72015         * m4/jm-macros.m4: Use jm_AFS.
72016         * m4/afs.m4: New file (from fileutils' configure.in).
72017
72018         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
72019         * m4/chown.m4: Likewise.
72020         * m4/d-ino.m4: Likewise.
72021         * m4/d-type.m4: Likewise.
72022         * m4/fnmatch.m4: Likewise.
72023         * m4/getgroups.m4: Likewise.
72024         * m4/gettext.m4: Likewise.
72025         * m4/jm-mktime.m4: Likewise.
72026         * m4/jm-winsz2.m4: Likewise.
72027         * m4/lcmessage.m4: Likewise.
72028         * m4/ls-mntd-fs.m4: Likewise.
72029         * m4/malloc.m4: Likewise.
72030         * m4/memcmp.m4: Likewise.
72031         * m4/putenv.m4: Likewise.
72032         * m4/realloc.m4: Likewise.
72033         * m4/st_mtim.m4: Likewise.
72034         * m4/strftime.m4: Likewise.
72035
72036 1999-01-16  Jim Meyering  <meyering@ascend.com>
72037
72038         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
72039         (ARGMATCH_DIE_DECL): Define.
72040
72041 1999-01-12  Jim Meyering  <meyering@ascend.com>
72042
72043         * m4/Makefile.am.in: Rewrite to avoid using fmt.
72044         Reported by Lars Hecking.
72045
72046 1999-01-10  Jim Meyering  <meyering@ascend.com>
72047
72048         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
72049         gross kludge.
72050         * m4/inttypes_h.m4: Likewise.
72051         * m4/lstat.m4: Likewise.
72052         * m4/malloc.m4: Likewise.
72053         * m4/readdir.m4: Likewise.
72054         * m4/realloc.m4: Likewise.
72055         * m4/st_dm_mode.m4: Likewise.
72056         * m4/stat.m4: Likewise.
72057         * m4/utimbuf.m4: Likewise.
72058         * m4/utimes.m4: Likewise.
72059
72060         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
72061         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
72062         comments in config.h.in are meaningful.
72063
72064         * m4/jm-macros.m4: Require autoconf-2.13 here.
72065
72066         * m4/regex.m4: By default, don't use the included regex.c on systems
72067         with glibc 2.  Suggestion from Uli Drepper.
72068
72069 1999-01-02  Jim Meyering  <meyering@ascend.com>
72070
72071         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
72072
72073 1998-12-18  Jim Meyering  <meyering@ascend.com>
72074
72075         * m4/Makefile.am.in (Makefile.am): Simplify rule.
72076         Based on a suggestion from Lars Hecking.
72077
72078 1998-11-16  Paul Eggert  <eggert@twinsun.com>
72079
72080         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
72081
72082 1998-11-16  Jim Meyering  <meyering@ascend.com>
72083
72084         * m4/lfs.m4: Double-quote the `uname...` expression.
72085
72086 1998-11-14  Jim Meyering  <meyering@ascend.com>
72087
72088         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
72089         * m4/stat.m4: Likewise.
72090
72091 1998-11-03  Jim Meyering  <meyering@ascend.com>
72092
72093         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
72094         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
72095
72096 1998-10-18  Jim Meyering  <meyering@ascend.com>
72097
72098         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
72099
72100 1998-10-17  Jim Meyering  <meyering@ascend.com>
72101
72102         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
72103         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
72104         calls for those previously hard-coded headers.  Instead, take a new
72105         parameter.
72106         (jm_CHECK_DECLARATIONS): Reflect interface change.
72107         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
72108         (jm_CHECK_DECL_LOCALTIME_R): New macro.
72109
72110         * m4/mktime.m4: Test for spring-forward gap before long-running test.
72111
72112 1998-10-14  Jim Meyering  <meyering@ascend.com>
72113
72114         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
72115         instead of "TZ=America/Vancouver".  From Paul Eggert.
72116
72117 1998-10-11  Jim Meyering  <meyering@ascend.com>
72118
72119         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
72120         This adds a test for a recently added compatibility fix for mktime.c.
72121         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
72122
72123 1998-09-27  Jim Meyering  <meyering@ascend.com>
72124
72125         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
72126
72127         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
72128         ../configure.in, including a change from Gordon Matzigkeit to allow
72129         cross-compiling for the Hurd.
72130
72131         * m4/glibc.m4: New file/macro to test for the GNU C Library
72132         versions 1 and 2.  From Gordon Matzigkeit.
72133         Indent.
72134
72135 1998-09-21  Jim Meyering  <meyering@ascend.com>
72136
72137         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
72138
72139 1998-08-18  Paul Eggert  <eggert@twinsun.com>
72140
72141         Port nanosecond-resolution times to UnixWare 2.1.2 and
72142         pedantic Solaris 2.6.
72143
72144         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
72145         AC_STRUCT_ST_MTIM.
72146         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
72147         Generate name of ns member, instead of just 1 or undef.
72148         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
72149
72150 1998-08-15  Jim Meyering  <meyering@ascend.com>
72151
72152         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
72153         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
72154         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
72155         instead of jm_TYPE_SSIZE_T.
72156
72157 1998-08-12  Jim Meyering  <meyering@ascend.com>
72158
72159         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
72160
72161 1998-08-02  Jim Meyering  <meyering@ascend.com>
72162
72163         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
72164         in acconfig.h manually.
72165
72166 1998-07-31  Paul Eggert  <eggert@twinsun.com>
72167
72168         * m4/st_mtim.m4: New file.
72169
72170 1998-07-28  Jim Meyering  <meyering@ascend.com>
72171
72172         * m4/utimes.m4: Undef stat.
72173
72174 1998-07-25  Jim Meyering  <meyering@ascend.com>
72175
72176         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
72177         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
72178
72179 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
72180
72181         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
72182         uid and gid actually remain unchanged.
72183
72184 1998-07-07  Jim Meyering  <meyering@ascend.com>
72185
72186         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
72187
72188 1998-07-04  Jim Meyering  <meyering@ascend.com>
72189
72190         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
72191         to prove that this macro can be used in packages without regex.c.
72192
72193 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
72194
72195         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
72196         is to be used.
72197
72198 1998-07-03  Jim Meyering  <meyering@ascend.com>
72199
72200         * m4/gettext.m4: Add -lintl if it's found to be necessary.
72201
72202         * m4/gettext.m4: New file -- from gettext-0.10.35.
72203         * m4/lcmessage.m4: Likewise.
72204         * m4/progtest.m4: Likewise.
72205
72206         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
72207         * m4/jm-macros.m4: Require the new macro.
72208
72209 1998-06-29  Jim Meyering  <meyering@ascend.com>
72210
72211         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
72212         for the definition of NGROUPS (used in a system header included
72213         by sys/mount.h).
72214
72215 1998-06-28  Jim Meyering  <meyering@ascend.com>
72216
72217         * m4/ls-mntd-fs.m4: New file.
72218         * m4/fstypename.m4: New file.
72219
72220         * m4/jm-macros.m4: Require the new macro.
72221         * m4/jm-glibc-io.m4: New file.
72222
72223 1998-05-19  Jim Meyering  <meyering@ascend.com>
72224
72225         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
72226         * m4/lchown.m4: New file.
72227
72228         * m4/Makefile.am.in: New file.
72229         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
72230
72231 1998-05-14  Jim Meyering  <meyering@ascend.com>
72232
72233         * m4/Makefile.am (EXTRA_DIST): Add them.
72234         * m4/jm-macros.m4: New file.
72235         * m4/utimbuf.m4: New file.
72236
72237 1998-05-12  Jim Meyering  <meyering@ascend.com>
72238
72239         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
72240
72241 1998-05-11  Jim Meyering  <meyering@ascend.com>
72242
72243         * m4/isc-posix.m4: New file.
72244
72245 1998-05-10  Jim Meyering  <meyering@ascend.com>
72246
72247         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
72248
72249 1998-05-09  Jim Meyering  <meyering@ascend.com>
72250
72251         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
72252         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
72253         with automake.
72254
72255         * m4/ssize_t.m4: New file.
72256         * m4/mktime.m4: Remove file -- the new automake has this now.
72257
72258 1998-04-26  Jim Meyering  <meyering@ascend.com>
72259
72260         * m4/assert.m4: New file.
72261         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
72262
72263 1998-04-05  Jim Meyering  <meyering@ascend.com>
72264
72265         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
72266         (jm_PREREQ): Use it here.
72267
72268 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
72269
72270         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
72271         in acconfig.h.
72272
72273 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
72274
72275         * m4/prereq.m4: New file.
72276         * m4/error.m4: New file.
72277         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
72278
72279 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
72280
72281         * m4/getline.m4: Don't set am_cv_func_working_getline before the
72282         cache-check for the same variable -- that defeated the purpose of
72283         the test; the test program was never run.  This was a problem only
72284         on systems with losing getline functions -- HP-UX 10.20 is one.
72285         Reported by Bjorn Helgaas.
72286
72287 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
72288
72289         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
72290
72291 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
72292
72293         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
72294
72295         * m4/const.m4: New file.  Use an initializer in this declaration
72296         typedef int charset[2]; const charset x;
72297         Reported by Bob Glickstein.
72298
72299 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
72300
72301         * m4/chown.m4: Fix reversed types on -1 args to chown.
72302         From Kaveh Ghazi.
72303
72304 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
72305
72306         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
72307         Add lseek and memchr.
72308
72309         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
72310         T.E.Dickey <dickey@clark.net> said that some older preprocessors
72311         have a 20-character limit on names.
72312
72313 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
72314
72315         * m4/inttypes_h.m4: New file.
72316         * m4/uintmax_t.m4: New file.
72317         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
72318
72319
72320         -----
72321
72322         Local Variables:
72323         coding: utf-8
72324         End:
72325
72326         Copyright (C) 1997-2010 Free Software Foundation, Inc.
72327
72328         Copying and distribution of this file, with or without
72329         modification, are permitted provided the copyright notice
72330         and this notice are preserved.